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 babeltrace 1.5.11.
4 #
5 # Report bugs to <[email protected]>.
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
278 $0: [email protected] 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='babeltrace'
592 PACKAGE_TARNAME='babeltrace'
593 PACKAGE_VERSION='1.5.11'
594 PACKAGE_STRING='babeltrace 1.5.11'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL='https://diamon.org/babeltrace'
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_header_list=
635 ac_func_list=
636 ac_subst_vars='pprint_tput
637 am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 babeltracectfirincludedir
641 babeltracectfwriterincludedir
642 babeltracectfincludedir
643 babeltraceincludedir
644 DEFAULT_INCLUDES
645 PACKAGE_CFLAGS
646 PACKAGE_LIBS
647 GMODULE_LIBS
648 GMODULE_CFLAGS
649 ENABLE_DEBUG_INFO_FALSE
650 ENABLE_DEBUG_INFO_TRUE
651 PYTHON_CONFIG
652 PYTHON_INCLUDE
653 pkgpyexecdir
654 pyexecdir
655 pkgpythondir
656 pythondir
657 PYTHON_PLATFORM
658 PYTHON_EXEC_PREFIX
659 PYTHON_PREFIX
660 PYTHON_VERSION
661 PYTHON
662 SWIG_LIB
663 SWIG
664 USE_PYTHON_FALSE
665 USE_PYTHON_TRUE
666 BABELTRACE_BUILD_WITH_LIBC_UUID_FALSE
667 BABELTRACE_BUILD_WITH_LIBC_UUID_TRUE
668 BABELTRACE_BUILD_WITH_LIBUUID_FALSE
669 BABELTRACE_BUILD_WITH_LIBUUID_TRUE
670 UUID_LIBS
671 UUID_CFLAGS
672 LT_NO_UNDEFINED
673 BABELTRACE_BUILD_WITH_MINGW_FALSE
674 BABELTRACE_BUILD_WITH_MINGW_TRUE
675 LIBOBJS
676 ALLOCA
677 GLIB_COMPILE_RESOURCES
678 GLIB_MKENUMS
679 GOBJECT_QUERY
680 GLIB_GENMARSHAL
681 GLIB_LIBS
682 GLIB_CFLAGS
683 PKG_CONFIG_LIBDIR
684 PKG_CONFIG_PATH
685 PKG_CONFIG
686 FLEX_VERSION
687 FLEX
688 BISON_VERSION
689 BISON
690 LD_NO_AS_NEEDED
691 PTHREAD_CFLAGS
692 PTHREAD_LIBS
693 PTHREAD_CC
694 ax_pthread_config
695 LEXLIB
696 LEX_OUTPUT_ROOT
697 LEX
698 YFLAGS
699 YACC
700 LT_SYS_LIBRARY_PATH
701 OTOOL64
702 OTOOL
703 LIPO
704 NMEDIT
705 DSYMUTIL
706 MANIFEST_TOOL
707 RANLIB
708 ac_ct_AR
709 AR
710 DLLTOOL
711 OBJDUMP
712 LN_S
713 NM
714 ac_ct_DUMPBIN
715 DUMPBIN
716 LD
717 FGREP
718 SED
719 LIBTOOL
720 EGREP
721 GREP
722 CPP
723 am__fastdepCC_FALSE
724 am__fastdepCC_TRUE
725 CCDEPMODE
726 am__nodep
727 AMDEPBACKSLASH
728 AMDEP_FALSE
729 AMDEP_TRUE
730 am__quote
731 am__include
732 DEPDIR
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 MAINT
741 MAINTAINER_MODE_FALSE
742 MAINTAINER_MODE_TRUE
743 AM_BACKSLASH
744 AM_DEFAULT_VERBOSITY
745 AM_DEFAULT_V
746 AM_V
747 am__untar
748 am__tar
749 AMTAR
750 am__leading_dot
751 SET_MAKE
752 AWK
753 mkdir_p
754 MKDIR_P
755 INSTALL_STRIP_PROGRAM
756 STRIP
757 install_sh
758 MAKEINFO
759 AUTOHEADER
760 AUTOMAKE
761 AUTOCONF
762 ACLOCAL
763 VERSION
764 PACKAGE
765 CYGPATH_W
766 am__isrc
767 INSTALL_DATA
768 INSTALL_SCRIPT
769 INSTALL_PROGRAM
770 target_os
771 target_vendor
772 target_cpu
773 target
774 host_os
775 host_vendor
776 host_cpu
777 host
778 build_os
779 build_vendor
780 build_cpu
781 build
782 BABELTRACE_LIBRARY_VERSION
783 target_alias
784 host_alias
785 build_alias
786 LIBS
787 ECHO_T
788 ECHO_N
789 ECHO_C
790 DEFS
791 mandir
792 localedir
793 libdir
794 psdir
795 pdfdir
796 dvidir
797 htmldir
798 infodir
799 docdir
800 oldincludedir
801 includedir
802 runstatedir
803 localstatedir
804 sharedstatedir
805 sysconfdir
806 datadir
807 datarootdir
808 libexecdir
809 sbindir
810 bindir
811 program_transform_name
812 prefix
813 exec_prefix
814 PACKAGE_URL
815 PACKAGE_BUGREPORT
816 PACKAGE_STRING
817 PACKAGE_VERSION
818 PACKAGE_TARNAME
819 PACKAGE_NAME
820 PATH_SEPARATOR
821 SHELL'
822 ac_subst_files=''
823 ac_user_opts='
824 enable_option_checking
825 enable_silent_rules
826 enable_maintainer_mode
827 enable_dependency_tracking
828 enable_largefile
829 enable_shared
830 enable_static
831 with_pic
832 enable_fast_install
833 with_aix_soname
834 with_gnu_ld
835 with_sysroot
836 enable_libtool_lock
837 enable_glibtest
838 enable_python_bindings
839 enable_debug_info
840 '
841 ac_precious_vars='build_alias
842 host_alias
843 target_alias
844 CC
845 CFLAGS
846 LDFLAGS
847 LIBS
848 CPPFLAGS
849 CPP
850 LT_SYS_LIBRARY_PATH
851 YACC
852 YFLAGS
853 PKG_CONFIG
854 PKG_CONFIG_PATH
855 PKG_CONFIG_LIBDIR
856 UUID_CFLAGS
857 UUID_LIBS
858 PYTHON
859 PYTHON_INCLUDE
860 PYTHON_CONFIG
861 GMODULE_CFLAGS
862 GMODULE_LIBS'
863
864
865 # Initialize some variables set by options.
866 ac_init_help=
867 ac_init_version=false
868 ac_unrecognized_opts=
869 ac_unrecognized_sep=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
872 cache_file=/dev/null
873 exec_prefix=NONE
874 no_create=
875 no_recursion=
876 prefix=NONE
877 program_prefix=NONE
878 program_suffix=NONE
879 program_transform_name=s,x,x,
880 silent=
881 site=
882 srcdir=
883 verbose=
884 x_includes=NONE
885 x_libraries=NONE
886
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 runstatedir='${localstatedir}/run'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
906 htmldir='${docdir}'
907 dvidir='${docdir}'
908 pdfdir='${docdir}'
909 psdir='${docdir}'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
913
914 ac_prev=
915 ac_dashdash=
916 for ac_option
917 do
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
920 eval $ac_prev=\$ac_option
921 ac_prev=
922 continue
923 fi
924
925 case $ac_option in
926 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 *=) ac_optarg= ;;
928 *) ac_optarg=yes ;;
929 esac
930
931 # Accept the important Cygnus configure options, so we can diagnose typos.
932
933 case $ac_dashdash$ac_option in
934 --)
935 ac_dashdash=yes ;;
936
937 -bindir | --bindir | --bindi | --bind | --bin | --bi)
938 ac_prev=bindir ;;
939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940 bindir=$ac_optarg ;;
941
942 -build | --build | --buil | --bui | --bu)
943 ac_prev=build_alias ;;
944 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
945 build_alias=$ac_optarg ;;
946
947 -cache-file | --cache-file | --cache-fil | --cache-fi \
948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949 ac_prev=cache_file ;;
950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
952 cache_file=$ac_optarg ;;
953
954 --config-cache | -C)
955 cache_file=config.cache ;;
956
957 -datadir | --datadir | --datadi | --datad)
958 ac_prev=datadir ;;
959 -datadir=* | --datadir=* | --datadi=* | --datad=*)
960 datadir=$ac_optarg ;;
961
962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963 | --dataroo | --dataro | --datar)
964 ac_prev=datarootdir ;;
965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967 datarootdir=$ac_optarg ;;
968
969 -disable-* | --disable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=no ;;
984
985 -docdir | --docdir | --docdi | --doc | --do)
986 ac_prev=docdir ;;
987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 docdir=$ac_optarg ;;
989
990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991 ac_prev=dvidir ;;
992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 dvidir=$ac_optarg ;;
994
995 -enable-* | --enable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error $? "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1003 *"
1004 "enable_$ac_useropt"
1005 "*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=\$ac_optarg ;;
1010
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1019
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1022 with_gas=yes ;;
1023
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1030
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1035
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 ac_prev=htmldir ;;
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 | --ht=*)
1040 htmldir=$ac_optarg ;;
1041
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1048
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 ac_prev=infodir ;;
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1053
1054 -libdir | --libdir | --libdi | --libd)
1055 ac_prev=libdir ;;
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1058
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1065
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1070
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1077
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 ac_prev=mandir ;;
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1082
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1085 with_fp=no ;;
1086
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1089 no_create=yes ;;
1090
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 no_recursion=yes ;;
1094
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1103
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 ac_prev=prefix ;;
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1108
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1115
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1122
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1139
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 ac_prev=pdfdir ;;
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1144
1145 -psdir | --psdir | --psdi | --psd | --ps)
1146 ac_prev=psdir ;;
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 psdir=$ac_optarg ;;
1149
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1152 silent=yes ;;
1153
1154 -runstatedir | --runstatedir | --runstatedi | --runstated \
1155 | --runstate | --runstat | --runsta | --runst | --runs \
1156 | --run | --ru | --r)
1157 ac_prev=runstatedir ;;
1158 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1159 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1160 | --run=* | --ru=* | --r=*)
1161 runstatedir=$ac_optarg ;;
1162
1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 ac_prev=sbindir ;;
1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166 | --sbi=* | --sb=*)
1167 sbindir=$ac_optarg ;;
1168
1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171 | --sharedst | --shareds | --shared | --share | --shar \
1172 | --sha | --sh)
1173 ac_prev=sharedstatedir ;;
1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177 | --sha=* | --sh=*)
1178 sharedstatedir=$ac_optarg ;;
1179
1180 -site | --site | --sit)
1181 ac_prev=site ;;
1182 -site=* | --site=* | --sit=*)
1183 site=$ac_optarg ;;
1184
1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 ac_prev=srcdir ;;
1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188 srcdir=$ac_optarg ;;
1189
1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191 | --syscon | --sysco | --sysc | --sys | --sy)
1192 ac_prev=sysconfdir ;;
1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195 sysconfdir=$ac_optarg ;;
1196
1197 -target | --target | --targe | --targ | --tar | --ta | --t)
1198 ac_prev=target_alias ;;
1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200 target_alias=$ac_optarg ;;
1201
1202 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203 verbose=yes ;;
1204
1205 -version | --version | --versio | --versi | --vers | -V)
1206 ac_init_version=: ;;
1207
1208 -with-* | --with-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: $ac_useropt"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217 "with_$ac_useropt"
1218 "*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=\$ac_optarg ;;
1223
1224 -without-* | --without-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error $? "invalid package name: $ac_useropt"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1232 *"
1233 "with_$ac_useropt"
1234 "*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=no ;;
1239
1240 --x)
1241 # Obsolete; use --with-x.
1242 with_x=yes ;;
1243
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249 x_includes=$ac_optarg ;;
1250
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256 x_libraries=$ac_optarg ;;
1257
1258 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259 Try \`$0 --help' for more information"
1260 ;;
1261
1262 *=*)
1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264 # Reject names that are not valid shell variable names.
1265 case $ac_envvar in #(
1266 '' | [0-9]* | *[!_$as_cr_alnum]* )
1267 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1268 esac
1269 eval $ac_envvar=\$ac_optarg
1270 export $ac_envvar ;;
1271
1272 *)
1273 # FIXME: should be removed in autoconf 3.0.
1274 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1278 ;;
1279
1280 esac
1281 done
1282
1283 if test -n "$ac_prev"; then
1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285 as_fn_error $? "missing argument to $ac_option"
1286 fi
1287
1288 if test -n "$ac_unrecognized_opts"; then
1289 case $enable_option_checking in
1290 no) ;;
1291 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1292 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293 esac
1294 fi
1295
1296 # Check all directory arguments for consistency.
1297 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir runstatedir
1301 do
1302 eval ac_val=\$$ac_var
1303 # Remove trailing slashes.
1304 case $ac_val in
1305 */ )
1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307 eval $ac_var=\$ac_val;;
1308 esac
1309 # Be sure to have absolute directory names.
1310 case $ac_val in
1311 [\\/$]* | ?:[\\/]* ) continue;;
1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1313 esac
1314 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1315 done
1316
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1320 build=$build_alias
1321 host=$host_alias
1322 target=$target_alias
1323
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326 if test "x$build_alias" = x; then
1327 cross_compiling=maybe
1328 elif test "x$build_alias" != "x$host_alias"; then
1329 cross_compiling=yes
1330 fi
1331 fi
1332
1333 ac_tool_prefix=
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336 test "$silent" = yes && exec 6>/dev/null
1337
1338
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342 as_fn_error $? "working directory cannot be determined"
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 as_fn_error $? "pwd does not report name of working directory"
1345
1346
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$as_myself" : 'X\(//\)[^/]' \| \
1354 X"$as_myself" : 'X\(//\)$' \| \
1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\/\)[^/].*/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\/\)$/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\).*/{
1370 s//\1/
1371 q
1372 }
1373 s/.*/./; q'`
1374 srcdir=$ac_confdir
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 srcdir=..
1377 fi
1378 else
1379 ac_srcdir_defaulted=no
1380 fi
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1384 fi
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388 pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 srcdir=.
1392 fi
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1405
1406 #
1407 # Report the --help message.
1408 #
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1412 cat <<_ACEOF
1413 \`configure' configures babeltrace 1.5.11 to adapt to many kinds of systems.
1414
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1416
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1419
1420 Defaults for the options are specified in brackets.
1421
1422 Configuration:
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking ...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1432
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1437 [PREFIX]
1438
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1443
1444 For better control, use the options below.
1445
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/babeltrace]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
1467 _ACEOF
1468
1469 cat <<\_ACEOF
1470
1471 Program names:
1472 --program-prefix=PREFIX prepend PREFIX to installed program names
1473 --program-suffix=SUFFIX append SUFFIX to installed program names
1474 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1475
1476 System types:
1477 --build=BUILD configure for building on BUILD [guessed]
1478 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1479 --target=TARGET configure for building compilers for TARGET [HOST]
1480 _ACEOF
1481 fi
1482
1483 if test -n "$ac_init_help"; then
1484 case $ac_init_help in
1485 short | recursive ) echo "Configuration of babeltrace 1.5.11:";;
1486 esac
1487 cat <<\_ACEOF
1488
1489 Optional Features:
1490 --disable-option-checking ignore unrecognized --enable/--with options
1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1493 --enable-silent-rules less verbose build output (undo: "make V=1")
1494 --disable-silent-rules verbose build output (undo: "make V=0")
1495 --disable-maintainer-mode
1496 disable make rules and dependencies not useful (and
1497 sometimes confusing) to the casual installer
1498 --enable-dependency-tracking
1499 do not reject slow dependency extractors
1500 --disable-dependency-tracking
1501 speeds up one-time build
1502 --disable-largefile omit support for large files
1503 --enable-shared[=PKGS] build shared libraries [default=yes]
1504 --enable-static[=PKGS] build static libraries [default=yes]
1505 --enable-fast-install[=PKGS]
1506 optimize for fast installation [default=yes]
1507 --disable-libtool-lock avoid locking (might break parallel builds)
1508 --disable-glibtest do not try to compile and run a test GLIB program
1509 --enable-python-bindings
1510 generate Python bindings
1511 --enable-debug-info enable the debug info feature (default on Linux)
1512 --disable-debug-info disable the debug info feature (default on OS X and
1513 Solaris)
1514
1515 Optional Packages:
1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1519 both]
1520 --with-aix-soname=aix|svr4|both
1521 shared library versioning (aka "SONAME") variant to
1522 provide on AIX, [default=aix].
1523 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1524 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1525 compiler's sysroot if not specified).
1526
1527 Some influential environment variables:
1528 CC C compiler command
1529 CFLAGS C compiler flags
1530 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1531 nonstandard directory <lib dir>
1532 LIBS libraries to pass to the linker, e.g. -l<library>
1533 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1534 you have headers in a nonstandard directory <include dir>
1535 CPP C preprocessor
1536 LT_SYS_LIBRARY_PATH
1537 User-defined run-time library search path.
1538 YACC The `Yet Another Compiler Compiler' implementation to use.
1539 Defaults to the first program found out of: `bison -y', `byacc',
1540 `yacc'.
1541 YFLAGS The list of arguments that will be passed by default to $YACC.
1542 This script will default YFLAGS to the empty string to avoid a
1543 default value of `-d' given by some make applications.
1544 PKG_CONFIG path to pkg-config utility
1545 PKG_CONFIG_PATH
1546 directories to add to pkg-config's search path
1547 PKG_CONFIG_LIBDIR
1548 path overriding pkg-config's built-in search path
1549 UUID_CFLAGS C compiler flags for UUID, overriding pkg-config
1550 UUID_LIBS linker flags for UUID, overriding pkg-config
1551 PYTHON the Python interpreter
1552 PYTHON_INCLUDE
1553 Include flags for python, bypassing python-config
1554 PYTHON_CONFIG
1555 Path to python-config
1556 GMODULE_CFLAGS
1557 C compiler flags for GMODULE, overriding pkg-config
1558 GMODULE_LIBS
1559 linker flags for GMODULE, overriding pkg-config
1560
1561 Use these variables to override the choices made by `configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1563
1564 Report bugs to <[email protected]>.
1565 babeltrace home page: <https://diamon.org/babeltrace>.
1566 _ACEOF
1567 ac_status=$?
1568 fi
1569
1570 if test "$ac_init_help" = "recursive"; then
1571 # If there are subdirs, report their specific --help.
1572 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1573 test -d "$ac_dir" ||
1574 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1575 continue
1576 ac_builddir=.
1577
1578 case "$ac_dir" in
1579 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *)
1581 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1582 # A ".." for each directory in $ac_dir_suffix.
1583 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1584 case $ac_top_builddir_sub in
1585 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1587 esac ;;
1588 esac
1589 ac_abs_top_builddir=$ac_pwd
1590 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1591 # for backward compatibility:
1592 ac_top_builddir=$ac_top_build_prefix
1593
1594 case $srcdir in
1595 .) # We are building in place.
1596 ac_srcdir=.
1597 ac_top_srcdir=$ac_top_builddir_sub
1598 ac_abs_top_srcdir=$ac_pwd ;;
1599 [\\/]* | ?:[\\/]* ) # Absolute name.
1600 ac_srcdir=$srcdir$ac_dir_suffix;
1601 ac_top_srcdir=$srcdir
1602 ac_abs_top_srcdir=$srcdir ;;
1603 *) # Relative name.
1604 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1605 ac_top_srcdir=$ac_top_build_prefix$srcdir
1606 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1607 esac
1608 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609
1610 cd "$ac_dir" || { ac_status=$?; continue; }
1611 # Check for guested configure.
1612 if test -f "$ac_srcdir/configure.gnu"; then
1613 echo &&
1614 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1615 elif test -f "$ac_srcdir/configure"; then
1616 echo &&
1617 $SHELL "$ac_srcdir/configure" --help=recursive
1618 else
1619 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620 fi || ac_status=$?
1621 cd "$ac_pwd" || { ac_status=$?; break; }
1622 done
1623 fi
1624
1625 test -n "$ac_init_help" && exit $ac_status
1626 if $ac_init_version; then
1627 cat <<\_ACEOF
1628 babeltrace configure 1.5.11
1629 generated by GNU Autoconf 2.69
1630
1631 Copyright (C) 2012 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1634 _ACEOF
1635 exit
1636 fi
1637
1638 ## ------------------------ ##
1639 ## Autoconf initialization. ##
1640 ## ------------------------ ##
1641
1642 # ac_fn_c_try_compile LINENO
1643 # --------------------------
1644 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_compile ()
1646 {
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext
1649 if { { ac_try="$ac_compile"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_compile") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1662 fi
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest.$ac_objext; then :
1668 ac_retval=0
1669 else
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673 ac_retval=1
1674 fi
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_compile
1679
1680 # ac_fn_c_try_cpp LINENO
1681 # ----------------------
1682 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_cpp ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 if { { ac_try="$ac_cpp conftest.$ac_ext"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1699 fi
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } > conftest.i && {
1702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 }; then :
1705 ac_retval=0
1706 else
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=1
1711 fi
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_cpp
1716
1717 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1720 # the include files in INCLUDES and setting the cache variable VAR
1721 # accordingly.
1722 ac_fn_c_check_header_mongrel ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if eval \${$3+:} false; then :
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if eval \${$3+:} false; then :
1729 $as_echo_n "(cached) " >&6
1730 fi
1731 eval ac_res=\$$3
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1733 $as_echo "$ac_res" >&6; }
1734 else
1735 # Is the header compilable?
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1737 $as_echo_n "checking $2 usability... " >&6; }
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1740 $4
1741 #include <$2>
1742 _ACEOF
1743 if ac_fn_c_try_compile "$LINENO"; then :
1744 ac_header_compiler=yes
1745 else
1746 ac_header_compiler=no
1747 fi
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1750 $as_echo "$ac_header_compiler" >&6; }
1751
1752 # Is the header present?
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1754 $as_echo_n "checking $2 presence... " >&6; }
1755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1757 #include <$2>
1758 _ACEOF
1759 if ac_fn_c_try_cpp "$LINENO"; then :
1760 ac_header_preproc=yes
1761 else
1762 ac_header_preproc=no
1763 fi
1764 rm -f conftest.err conftest.i conftest.$ac_ext
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1766 $as_echo "$ac_header_preproc" >&6; }
1767
1768 # So? What about this header?
1769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1770 yes:no: )
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1772 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1774 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1775 ;;
1776 no:yes:* )
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1778 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1780 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1782 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1784 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1786 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1787 ( $as_echo "## --------------------------------------------- ##
1788 ## Report this to [email protected] ##
1789 ## --------------------------------------------- ##"
1790 ) | sed "s/^/$as_me: WARNING: /" >&2
1791 ;;
1792 esac
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794 $as_echo_n "checking for $2... " >&6; }
1795 if eval \${$3+:} false; then :
1796 $as_echo_n "(cached) " >&6
1797 else
1798 eval "$3=\$ac_header_compiler"
1799 fi
1800 eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 fi
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806 } # ac_fn_c_check_header_mongrel
1807
1808 # ac_fn_c_try_run LINENO
1809 # ----------------------
1810 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1811 # that executables *can* be run.
1812 ac_fn_c_try_run ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if { { ac_try="$ac_link"
1816 case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>&5
1823 ac_status=$?
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1826 { { case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1829 esac
1830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831 $as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_try") 2>&5
1833 ac_status=$?
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; }; }; then :
1836 ac_retval=0
1837 else
1838 $as_echo "$as_me: program exited with status $ac_status" >&5
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_retval=$ac_status
1843 fi
1844 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1847
1848 } # ac_fn_c_try_run
1849
1850 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1851 # -------------------------------------------------------
1852 # Tests whether HEADER exists and can be compiled using the include files in
1853 # INCLUDES, setting the cache variable VAR accordingly.
1854 ac_fn_c_check_header_compile ()
1855 {
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1858 $as_echo_n "checking for $2... " >&6; }
1859 if eval \${$3+:} false; then :
1860 $as_echo_n "(cached) " >&6
1861 else
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1864 $4
1865 #include <$2>
1866 _ACEOF
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868 eval "$3=yes"
1869 else
1870 eval "$3=no"
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 fi
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879 } # ac_fn_c_check_header_compile
1880
1881 # ac_fn_c_try_link LINENO
1882 # -----------------------
1883 # Try to link conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_c_try_link ()
1885 {
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 rm -f conftest.$ac_objext conftest$ac_exeext
1888 if { { ac_try="$ac_link"
1889 case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_link") 2>conftest.err
1896 ac_status=$?
1897 if test -s conftest.err; then
1898 grep -v '^ *+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1901 fi
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && {
1904 test -z "$ac_c_werror_flag" ||
1905 test ! -s conftest.err
1906 } && test -s conftest$ac_exeext && {
1907 test "$cross_compiling" = yes ||
1908 test -x conftest$ac_exeext
1909 }; then :
1910 ac_retval=0
1911 else
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1914
1915 ac_retval=1
1916 fi
1917 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1918 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1919 # interfere with the next link command; also delete a directory that is
1920 # left behind by Apple's compiler. We do this before executing the actions.
1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 as_fn_set_status $ac_retval
1924
1925 } # ac_fn_c_try_link
1926
1927 # ac_fn_c_check_func LINENO FUNC VAR
1928 # ----------------------------------
1929 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1930 ac_fn_c_check_func ()
1931 {
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934 $as_echo_n "checking for $2... " >&6; }
1935 if eval \${$3+:} false; then :
1936 $as_echo_n "(cached) " >&6
1937 else
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1942 #define $2 innocuous_$2
1943
1944 /* System header to define __stub macros and hopefully few prototypes,
1945 which can conflict with char $2 (); below.
1946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1947 <limits.h> exists even on freestanding compilers. */
1948
1949 #ifdef __STDC__
1950 # include <limits.h>
1951 #else
1952 # include <assert.h>
1953 #endif
1954
1955 #undef $2
1956
1957 /* Override any GCC internal prototype to avoid an error.
1958 Use char because int might match the return type of a GCC
1959 builtin and then its argument prototype would still apply. */
1960 #ifdef __cplusplus
1961 extern "C"
1962 #endif
1963 char $2 ();
1964 /* The GNU C library defines this for functions which it implements
1965 to always fail with ENOSYS. Some functions are actually named
1966 something starting with __ and the normal name is an alias. */
1967 #if defined __stub_$2 || defined __stub___$2
1968 choke me
1969 #endif
1970
1971 int
1972 main ()
1973 {
1974 return $2 ();
1975 ;
1976 return 0;
1977 }
1978 _ACEOF
1979 if ac_fn_c_try_link "$LINENO"; then :
1980 eval "$3=yes"
1981 else
1982 eval "$3=no"
1983 fi
1984 rm -f core conftest.err conftest.$ac_objext \
1985 conftest$ac_exeext conftest.$ac_ext
1986 fi
1987 eval ac_res=\$$3
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991
1992 } # ac_fn_c_check_func
1993
1994 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1995 # -------------------------------------------
1996 # Tests whether TYPE exists after having included INCLUDES, setting cache
1997 # variable VAR accordingly.
1998 ac_fn_c_check_type ()
1999 {
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002 $as_echo_n "checking for $2... " >&6; }
2003 if eval \${$3+:} false; then :
2004 $as_echo_n "(cached) " >&6
2005 else
2006 eval "$3=no"
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2009 $4
2010 int
2011 main ()
2012 {
2013 if (sizeof ($2))
2014 return 0;
2015 ;
2016 return 0;
2017 }
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 $4
2023 int
2024 main ()
2025 {
2026 if (sizeof (($2)))
2027 return 0;
2028 ;
2029 return 0;
2030 }
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033
2034 else
2035 eval "$3=yes"
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 fi
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 fi
2041 eval ac_res=\$$3
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045
2046 } # ac_fn_c_check_type
2047 cat >config.log <<_ACEOF
2048 This file contains any messages produced by compilers while
2049 running configure, to aid debugging if configure makes a mistake.
2050
2051 It was created by babeltrace $as_me 1.5.11, which was
2052 generated by GNU Autoconf 2.69. Invocation command line was
2053
2054 $ $0 $@
2055
2056 _ACEOF
2057 exec 5>>config.log
2058 {
2059 cat <<_ASUNAME
2060 ## --------- ##
2061 ## Platform. ##
2062 ## --------- ##
2063
2064 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2065 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2066 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2067 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2068 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2069
2070 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2071 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2072
2073 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2074 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2075 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2076 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2077 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2078 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2079 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2080
2081 _ASUNAME
2082
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2085 do
2086 IFS=$as_save_IFS
2087 test -z "$as_dir" && as_dir=.
2088 $as_echo "PATH: $as_dir"
2089 done
2090 IFS=$as_save_IFS
2091
2092 } >&5
2093
2094 cat >&5 <<_ACEOF
2095
2096
2097 ## ----------- ##
2098 ## Core tests. ##
2099 ## ----------- ##
2100
2101 _ACEOF
2102
2103
2104 # Keep a trace of the command line.
2105 # Strip out --no-create and --no-recursion so they do not pile up.
2106 # Strip out --silent because we don't want to record it for future runs.
2107 # Also quote any args containing shell meta-characters.
2108 # Make two passes to allow for proper duplicate-argument suppression.
2109 ac_configure_args=
2110 ac_configure_args0=
2111 ac_configure_args1=
2112 ac_must_keep_next=false
2113 for ac_pass in 1 2
2114 do
2115 for ac_arg
2116 do
2117 case $ac_arg in
2118 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2120 | -silent | --silent | --silen | --sile | --sil)
2121 continue ;;
2122 *\'*)
2123 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2124 esac
2125 case $ac_pass in
2126 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2127 2)
2128 as_fn_append ac_configure_args1 " '$ac_arg'"
2129 if test $ac_must_keep_next = true; then
2130 ac_must_keep_next=false # Got value, back to normal.
2131 else
2132 case $ac_arg in
2133 *=* | --config-cache | -C | -disable-* | --disable-* \
2134 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2135 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2136 | -with-* | --with-* | -without-* | --without-* | --x)
2137 case "$ac_configure_args0 " in
2138 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2139 esac
2140 ;;
2141 -* ) ac_must_keep_next=true ;;
2142 esac
2143 fi
2144 as_fn_append ac_configure_args " '$ac_arg'"
2145 ;;
2146 esac
2147 done
2148 done
2149 { ac_configure_args0=; unset ac_configure_args0;}
2150 { ac_configure_args1=; unset ac_configure_args1;}
2151
2152 # When interrupted or exit'd, cleanup temporary files, and complete
2153 # config.log. We remove comments because anyway the quotes in there
2154 # would cause problems or look ugly.
2155 # WARNING: Use '\'' to represent an apostrophe within the trap.
2156 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2157 trap 'exit_status=$?
2158 # Save into config.log some information that might help in debugging.
2159 {
2160 echo
2161
2162 $as_echo "## ---------------- ##
2163 ## Cache variables. ##
2164 ## ---------------- ##"
2165 echo
2166 # The following way of writing the cache mishandles newlines in values,
2167 (
2168 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2169 eval ac_val=\$$ac_var
2170 case $ac_val in #(
2171 *${as_nl}*)
2172 case $ac_var in #(
2173 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2174 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2175 esac
2176 case $ac_var in #(
2177 _ | IFS | as_nl) ;; #(
2178 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2179 *) { eval $ac_var=; unset $ac_var;} ;;
2180 esac ;;
2181 esac
2182 done
2183 (set) 2>&1 |
2184 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2185 *${as_nl}ac_space=\ *)
2186 sed -n \
2187 "s/'\''/'\''\\\\'\'''\''/g;
2188 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2189 ;; #(
2190 *)
2191 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2192 ;;
2193 esac |
2194 sort
2195 )
2196 echo
2197
2198 $as_echo "## ----------------- ##
2199 ## Output variables. ##
2200 ## ----------------- ##"
2201 echo
2202 for ac_var in $ac_subst_vars
2203 do
2204 eval ac_val=\$$ac_var
2205 case $ac_val in
2206 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2207 esac
2208 $as_echo "$ac_var='\''$ac_val'\''"
2209 done | sort
2210 echo
2211
2212 if test -n "$ac_subst_files"; then
2213 $as_echo "## ------------------- ##
2214 ## File substitutions. ##
2215 ## ------------------- ##"
2216 echo
2217 for ac_var in $ac_subst_files
2218 do
2219 eval ac_val=\$$ac_var
2220 case $ac_val in
2221 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2222 esac
2223 $as_echo "$ac_var='\''$ac_val'\''"
2224 done | sort
2225 echo
2226 fi
2227
2228 if test -s confdefs.h; then
2229 $as_echo "## ----------- ##
2230 ## confdefs.h. ##
2231 ## ----------- ##"
2232 echo
2233 cat confdefs.h
2234 echo
2235 fi
2236 test "$ac_signal" != 0 &&
2237 $as_echo "$as_me: caught signal $ac_signal"
2238 $as_echo "$as_me: exit $exit_status"
2239 } >&5
2240 rm -f core *.core core.conftest.* &&
2241 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2242 exit $exit_status
2243 ' 0
2244 for ac_signal in 1 2 13 15; do
2245 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2246 done
2247 ac_signal=0
2248
2249 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2250 rm -f -r conftest* confdefs.h
2251
2252 $as_echo "/* confdefs.h */" > confdefs.h
2253
2254 # Predefined preprocessor variables.
2255
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_NAME "$PACKAGE_NAME"
2258 _ACEOF
2259
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2262 _ACEOF
2263
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2266 _ACEOF
2267
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_STRING "$PACKAGE_STRING"
2270 _ACEOF
2271
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2274 _ACEOF
2275
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_URL "$PACKAGE_URL"
2278 _ACEOF
2279
2280
2281 # Let the site file select an alternate cache file if it wants to.
2282 # Prefer an explicitly selected file to automatically selected ones.
2283 ac_site_file1=NONE
2284 ac_site_file2=NONE
2285 if test -n "$CONFIG_SITE"; then
2286 # We do not want a PATH search for config.site.
2287 case $CONFIG_SITE in #((
2288 -*) ac_site_file1=./$CONFIG_SITE;;
2289 */*) ac_site_file1=$CONFIG_SITE;;
2290 *) ac_site_file1=./$CONFIG_SITE;;
2291 esac
2292 elif test "x$prefix" != xNONE; then
2293 ac_site_file1=$prefix/share/config.site
2294 ac_site_file2=$prefix/etc/config.site
2295 else
2296 ac_site_file1=$ac_default_prefix/share/config.site
2297 ac_site_file2=$ac_default_prefix/etc/config.site
2298 fi
2299 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2300 do
2301 test "x$ac_site_file" = xNONE && continue
2302 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2304 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2305 sed 's/^/| /' "$ac_site_file" >&5
2306 . "$ac_site_file" \
2307 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309 as_fn_error $? "failed to load site script $ac_site_file
2310 See \`config.log' for more details" "$LINENO" 5; }
2311 fi
2312 done
2313
2314 if test -r "$cache_file"; then
2315 # Some versions of bash will fail to source /dev/null (special files
2316 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2317 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2319 $as_echo "$as_me: loading cache $cache_file" >&6;}
2320 case $cache_file in
2321 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2322 *) . "./$cache_file";;
2323 esac
2324 fi
2325 else
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2327 $as_echo "$as_me: creating cache $cache_file" >&6;}
2328 >$cache_file
2329 fi
2330
2331 as_fn_append ac_header_list " sys/time.h"
2332 as_fn_append ac_header_list " unistd.h"
2333 as_fn_append ac_func_list " alarm"
2334 as_fn_append ac_header_list " stdlib.h"
2335 as_fn_append ac_header_list " sys/param.h"
2336 # Check that the precious variables saved in the cache have kept the same
2337 # value.
2338 ac_cache_corrupted=false
2339 for ac_var in $ac_precious_vars; do
2340 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2341 eval ac_new_set=\$ac_env_${ac_var}_set
2342 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2343 eval ac_new_val=\$ac_env_${ac_var}_value
2344 case $ac_old_set,$ac_new_set in
2345 set,)
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2347 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2348 ac_cache_corrupted=: ;;
2349 ,set)
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2351 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2352 ac_cache_corrupted=: ;;
2353 ,);;
2354 *)
2355 if test "x$ac_old_val" != "x$ac_new_val"; then
2356 # differences in whitespace do not lead to failure.
2357 ac_old_val_w=`echo x $ac_old_val`
2358 ac_new_val_w=`echo x $ac_new_val`
2359 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2361 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2362 ac_cache_corrupted=:
2363 else
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2365 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2366 eval $ac_var=\$ac_old_val
2367 fi
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2369 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2371 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2372 fi;;
2373 esac
2374 # Pass precious variables to config.status.
2375 if test "$ac_new_set" = set; then
2376 case $ac_new_val in
2377 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2378 *) ac_arg=$ac_var=$ac_new_val ;;
2379 esac
2380 case " $ac_configure_args " in
2381 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2382 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2383 esac
2384 fi
2385 done
2386 if $ac_cache_corrupted; then
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2390 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2391 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2392 fi
2393 ## -------------------- ##
2394 ## Main body of script. ##
2395 ## -------------------- ##
2396
2397 ac_ext=c
2398 ac_cpp='$CPP $CPPFLAGS'
2399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402
2403
2404 BABELTRACE_LIBRARY_VERSION=1:0:0
2405
2406
2407 ac_config_headers="$ac_config_headers config.h"
2408
2409 ac_aux_dir=
2410 for ac_dir in config "$srcdir"/config; do
2411 if test -f "$ac_dir/install-sh"; then
2412 ac_aux_dir=$ac_dir
2413 ac_install_sh="$ac_aux_dir/install-sh -c"
2414 break
2415 elif test -f "$ac_dir/install.sh"; then
2416 ac_aux_dir=$ac_dir
2417 ac_install_sh="$ac_aux_dir/install.sh -c"
2418 break
2419 elif test -f "$ac_dir/shtool"; then
2420 ac_aux_dir=$ac_dir
2421 ac_install_sh="$ac_aux_dir/shtool install -c"
2422 break
2423 fi
2424 done
2425 if test -z "$ac_aux_dir"; then
2426 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2427 fi
2428
2429 # These three variables are undocumented and unsupported,
2430 # and are intended to be withdrawn in a future Autoconf release.
2431 # They can cause serious problems if a builder's source tree is in a directory
2432 # whose full name contains unusual characters.
2433 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2434 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2435 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2436
2437
2438
2439
2440 # Make sure we can run config.sub.
2441 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2442 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2443
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2445 $as_echo_n "checking build system type... " >&6; }
2446 if ${ac_cv_build+:} false; then :
2447 $as_echo_n "(cached) " >&6
2448 else
2449 ac_build_alias=$build_alias
2450 test "x$ac_build_alias" = x &&
2451 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2452 test "x$ac_build_alias" = x &&
2453 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2454 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2455 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2456
2457 fi
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2459 $as_echo "$ac_cv_build" >&6; }
2460 case $ac_cv_build in
2461 *-*-*) ;;
2462 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2463 esac
2464 build=$ac_cv_build
2465 ac_save_IFS=$IFS; IFS='-'
2466 set x $ac_cv_build
2467 shift
2468 build_cpu=$1
2469 build_vendor=$2
2470 shift; shift
2471 # Remember, the first character of IFS is used to create $*,
2472 # except with old shells:
2473 build_os=$*
2474 IFS=$ac_save_IFS
2475 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2476
2477
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2479 $as_echo_n "checking host system type... " >&6; }
2480 if ${ac_cv_host+:} false; then :
2481 $as_echo_n "(cached) " >&6
2482 else
2483 if test "x$host_alias" = x; then
2484 ac_cv_host=$ac_cv_build
2485 else
2486 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2487 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2488 fi
2489
2490 fi
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2492 $as_echo "$ac_cv_host" >&6; }
2493 case $ac_cv_host in
2494 *-*-*) ;;
2495 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2496 esac
2497 host=$ac_cv_host
2498 ac_save_IFS=$IFS; IFS='-'
2499 set x $ac_cv_host
2500 shift
2501 host_cpu=$1
2502 host_vendor=$2
2503 shift; shift
2504 # Remember, the first character of IFS is used to create $*,
2505 # except with old shells:
2506 host_os=$*
2507 IFS=$ac_save_IFS
2508 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2509
2510
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2512 $as_echo_n "checking target system type... " >&6; }
2513 if ${ac_cv_target+:} false; then :
2514 $as_echo_n "(cached) " >&6
2515 else
2516 if test "x$target_alias" = x; then
2517 ac_cv_target=$ac_cv_host
2518 else
2519 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2520 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2521 fi
2522
2523 fi
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2525 $as_echo "$ac_cv_target" >&6; }
2526 case $ac_cv_target in
2527 *-*-*) ;;
2528 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2529 esac
2530 target=$ac_cv_target
2531 ac_save_IFS=$IFS; IFS='-'
2532 set x $ac_cv_target
2533 shift
2534 target_cpu=$1
2535 target_vendor=$2
2536 shift; shift
2537 # Remember, the first character of IFS is used to create $*,
2538 # except with old shells:
2539 target_os=$*
2540 IFS=$ac_save_IFS
2541 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2542
2543
2544 # The aliases save the names the user supplied, while $host etc.
2545 # will get canonicalized.
2546 test -n "$target_alias" &&
2547 test "$program_prefix$program_suffix$program_transform_name" = \
2548 NONENONEs,x,x, &&
2549 program_prefix=${target_alias}-
2550
2551
2552 am__api_version='1.15'
2553
2554 # Find a good install program. We prefer a C program (faster),
2555 # so one script is as good as another. But avoid the broken or
2556 # incompatible versions:
2557 # SysV /etc/install, /usr/sbin/install
2558 # SunOS /usr/etc/install
2559 # IRIX /sbin/install
2560 # AIX /bin/install
2561 # AmigaOS /C/install, which installs bootblocks on floppy discs
2562 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2563 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2564 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2565 # OS/2's system install, which has a completely different semantic
2566 # ./install, which can be erroneously created by make from ./install.sh.
2567 # Reject install programs that cannot install multiple files.
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2569 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2570 if test -z "$INSTALL"; then
2571 if ${ac_cv_path_install+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH
2576 do
2577 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
2579 # Account for people who put trailing slashes in PATH elements.
2580 case $as_dir/ in #((
2581 ./ | .// | /[cC]/* | \
2582 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2583 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2584 /usr/ucb/* ) ;;
2585 *)
2586 # OSF1 and SCO ODT 3.0 have their own names for install.
2587 # Don't use installbsd from OSF since it installs stuff as root
2588 # by default.
2589 for ac_prog in ginstall scoinst install; do
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2592 if test $ac_prog = install &&
2593 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2594 # AIX install. It has an incompatible calling convention.
2595 :
2596 elif test $ac_prog = install &&
2597 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2598 # program-specific install script used by HP pwplus--don't use.
2599 :
2600 else
2601 rm -rf conftest.one conftest.two conftest.dir
2602 echo one > conftest.one
2603 echo two > conftest.two
2604 mkdir conftest.dir
2605 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2606 test -s conftest.one && test -s conftest.two &&
2607 test -s conftest.dir/conftest.one &&
2608 test -s conftest.dir/conftest.two
2609 then
2610 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2611 break 3
2612 fi
2613 fi
2614 fi
2615 done
2616 done
2617 ;;
2618 esac
2619
2620 done
2621 IFS=$as_save_IFS
2622
2623 rm -rf conftest.one conftest.two conftest.dir
2624
2625 fi
2626 if test "${ac_cv_path_install+set}" = set; then
2627 INSTALL=$ac_cv_path_install
2628 else
2629 # As a last resort, use the slow shell script. Don't cache a
2630 # value for INSTALL within a source directory, because that will
2631 # break other packages using the cache if that directory is
2632 # removed, or if the value is a relative name.
2633 INSTALL=$ac_install_sh
2634 fi
2635 fi
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2637 $as_echo "$INSTALL" >&6; }
2638
2639 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2640 # It thinks the first close brace ends the variable substitution.
2641 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2642
2643 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2644
2645 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2646
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2648 $as_echo_n "checking whether build environment is sane... " >&6; }
2649 # Reject unsafe characters in $srcdir or the absolute working directory
2650 # name. Accept space and tab only in the latter.
2651 am_lf='
2652 '
2653 case `pwd` in
2654 *[\\\"\#\$\&\'\`$am_lf]*)
2655 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2656 esac
2657 case $srcdir in
2658 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2659 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2660 esac
2661
2662 # Do 'set' in a subshell so we don't clobber the current shell's
2663 # arguments. Must try -L first in case configure is actually a
2664 # symlink; some systems play weird games with the mod time of symlinks
2665 # (eg FreeBSD returns the mod time of the symlink's containing
2666 # directory).
2667 if (
2668 am_has_slept=no
2669 for am_try in 1 2; do
2670 echo "timestamp, slept: $am_has_slept" > conftest.file
2671 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2672 if test "$*" = "X"; then
2673 # -L didn't work.
2674 set X `ls -t "$srcdir/configure" conftest.file`
2675 fi
2676 if test "$*" != "X $srcdir/configure conftest.file" \
2677 && test "$*" != "X conftest.file $srcdir/configure"; then
2678
2679 # If neither matched, then we have a broken ls. This can happen
2680 # if, for instance, CONFIG_SHELL is bash and it inherits a
2681 # broken ls alias from the environment. This has actually
2682 # happened. Such a system could not be considered "sane".
2683 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2684 alias in your environment" "$LINENO" 5
2685 fi
2686 if test "$2" = conftest.file || test $am_try -eq 2; then
2687 break
2688 fi
2689 # Just in case.
2690 sleep 1
2691 am_has_slept=yes
2692 done
2693 test "$2" = conftest.file
2694 )
2695 then
2696 # Ok.
2697 :
2698 else
2699 as_fn_error $? "newly created file is older than distributed files!
2700 Check your system clock" "$LINENO" 5
2701 fi
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2703 $as_echo "yes" >&6; }
2704 # If we didn't sleep, we still need to ensure time stamps of config.status and
2705 # generated files are strictly newer.
2706 am_sleep_pid=
2707 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2708 ( sleep 1 ) &
2709 am_sleep_pid=$!
2710 fi
2711
2712 rm -f conftest.file
2713
2714 test "$program_prefix" != NONE &&
2715 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2716 # Use a double $ so make ignores it.
2717 test "$program_suffix" != NONE &&
2718 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2719 # Double any \ or $.
2720 # By default was `s,x,x', remove it if useless.
2721 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2722 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2723
2724 # Expand $ac_aux_dir to an absolute path.
2725 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2726
2727 if test x"${MISSING+set}" != xset; then
2728 case $am_aux_dir in
2729 *\ * | *\ *)
2730 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2731 *)
2732 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2733 esac
2734 fi
2735 # Use eval to expand $SHELL
2736 if eval "$MISSING --is-lightweight"; then
2737 am_missing_run="$MISSING "
2738 else
2739 am_missing_run=
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2741 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2742 fi
2743
2744 if test x"${install_sh+set}" != xset; then
2745 case $am_aux_dir in
2746 *\ * | *\ *)
2747 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2748 *)
2749 install_sh="\${SHELL} $am_aux_dir/install-sh"
2750 esac
2751 fi
2752
2753 # Installed binaries are usually stripped using 'strip' when the user
2754 # run "make install-strip". However 'strip' might not be the right
2755 # tool to use in cross-compilation environments, therefore Automake
2756 # will honor the 'STRIP' environment variable to overrule this program.
2757 if test "$cross_compiling" != no; then
2758 if test -n "$ac_tool_prefix"; then
2759 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2760 set dummy ${ac_tool_prefix}strip; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if ${ac_cv_prog_STRIP+:} false; then :
2764 $as_echo_n "(cached) " >&6
2765 else
2766 if test -n "$STRIP"; then
2767 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2771 do
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2779 fi
2780 done
2781 done
2782 IFS=$as_save_IFS
2783
2784 fi
2785 fi
2786 STRIP=$ac_cv_prog_STRIP
2787 if test -n "$STRIP"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2789 $as_echo "$STRIP" >&6; }
2790 else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2793 fi
2794
2795
2796 fi
2797 if test -z "$ac_cv_prog_STRIP"; then
2798 ac_ct_STRIP=$STRIP
2799 # Extract the first word of "strip", so it can be a program name with args.
2800 set dummy strip; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 if test -n "$ac_ct_STRIP"; then
2807 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_ac_ct_STRIP="strip"
2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2819 fi
2820 done
2821 done
2822 IFS=$as_save_IFS
2823
2824 fi
2825 fi
2826 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2827 if test -n "$ac_ct_STRIP"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2829 $as_echo "$ac_ct_STRIP" >&6; }
2830 else
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2833 fi
2834
2835 if test "x$ac_ct_STRIP" = x; then
2836 STRIP=":"
2837 else
2838 case $cross_compiling:$ac_tool_warned in
2839 yes:)
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2842 ac_tool_warned=yes ;;
2843 esac
2844 STRIP=$ac_ct_STRIP
2845 fi
2846 else
2847 STRIP="$ac_cv_prog_STRIP"
2848 fi
2849
2850 fi
2851 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2852
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2854 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2855 if test -z "$MKDIR_P"; then
2856 if ${ac_cv_path_mkdir+:} false; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2861 do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_prog in mkdir gmkdir; do
2865 for ac_exec_ext in '' $ac_executable_extensions; do
2866 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2867 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2868 'mkdir (GNU coreutils) '* | \
2869 'mkdir (coreutils) '* | \
2870 'mkdir (fileutils) '4.1*)
2871 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2872 break 3;;
2873 esac
2874 done
2875 done
2876 done
2877 IFS=$as_save_IFS
2878
2879 fi
2880
2881 test -d ./--version && rmdir ./--version
2882 if test "${ac_cv_path_mkdir+set}" = set; then
2883 MKDIR_P="$ac_cv_path_mkdir -p"
2884 else
2885 # As a last resort, use the slow shell script. Don't cache a
2886 # value for MKDIR_P within a source directory, because that will
2887 # break other packages using the cache if that directory is
2888 # removed, or if the value is a relative name.
2889 MKDIR_P="$ac_install_sh -d"
2890 fi
2891 fi
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2893 $as_echo "$MKDIR_P" >&6; }
2894
2895 for ac_prog in gawk mawk nawk awk
2896 do
2897 # Extract the first word of "$ac_prog", so it can be a program name with args.
2898 set dummy $ac_prog; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if ${ac_cv_prog_AWK+:} false; then :
2902 $as_echo_n "(cached) " >&6
2903 else
2904 if test -n "$AWK"; then
2905 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2906 else
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 for as_dir in $PATH
2909 do
2910 IFS=$as_save_IFS
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2914 ac_cv_prog_AWK="$ac_prog"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 break 2
2917 fi
2918 done
2919 done
2920 IFS=$as_save_IFS
2921
2922 fi
2923 fi
2924 AWK=$ac_cv_prog_AWK
2925 if test -n "$AWK"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2927 $as_echo "$AWK" >&6; }
2928 else
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2931 fi
2932
2933
2934 test -n "$AWK" && break
2935 done
2936
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2938 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2939 set x ${MAKE-make}
2940 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2941 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 cat >conftest.make <<\_ACEOF
2945 SHELL = /bin/sh
2946 all:
2947 @echo '@@@%%%=$(MAKE)=@@@%%%'
2948 _ACEOF
2949 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2950 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2951 *@@@%%%=?*=@@@%%%*)
2952 eval ac_cv_prog_make_${ac_make}_set=yes;;
2953 *)
2954 eval ac_cv_prog_make_${ac_make}_set=no;;
2955 esac
2956 rm -f conftest.make
2957 fi
2958 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2960 $as_echo "yes" >&6; }
2961 SET_MAKE=
2962 else
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2965 SET_MAKE="MAKE=${MAKE-make}"
2966 fi
2967
2968 rm -rf .tst 2>/dev/null
2969 mkdir .tst 2>/dev/null
2970 if test -d .tst; then
2971 am__leading_dot=.
2972 else
2973 am__leading_dot=_
2974 fi
2975 rmdir .tst 2>/dev/null
2976
2977 # Check whether --enable-silent-rules was given.
2978 if test "${enable_silent_rules+set}" = set; then :
2979 enableval=$enable_silent_rules;
2980 fi
2981
2982 case $enable_silent_rules in # (((
2983 yes) AM_DEFAULT_VERBOSITY=0;;
2984 no) AM_DEFAULT_VERBOSITY=1;;
2985 *) AM_DEFAULT_VERBOSITY=1;;
2986 esac
2987 am_make=${MAKE-make}
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2989 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2990 if ${am_cv_make_support_nested_variables+:} false; then :
2991 $as_echo_n "(cached) " >&6
2992 else
2993 if $as_echo 'TRUE=$(BAR$(V))
2994 BAR0=false
2995 BAR1=true
2996 V=1
2997 am__doit:
2998 @$(TRUE)
2999 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3000 am_cv_make_support_nested_variables=yes
3001 else
3002 am_cv_make_support_nested_variables=no
3003 fi
3004 fi
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3006 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3007 if test $am_cv_make_support_nested_variables = yes; then
3008 AM_V='$(V)'
3009 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3010 else
3011 AM_V=$AM_DEFAULT_VERBOSITY
3012 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3013 fi
3014 AM_BACKSLASH='\'
3015
3016 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3017 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3018 # is not polluted with repeated "-I."
3019 am__isrc=' -I$(srcdir)'
3020 # test to see if srcdir already configured
3021 if test -f $srcdir/config.status; then
3022 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3023 fi
3024 fi
3025
3026 # test whether we have cygpath
3027 if test -z "$CYGPATH_W"; then
3028 if (cygpath --version) >/dev/null 2>/dev/null; then
3029 CYGPATH_W='cygpath -w'
3030 else
3031 CYGPATH_W=echo
3032 fi
3033 fi
3034
3035
3036 # Define the identity of the package.
3037 PACKAGE='babeltrace'
3038 VERSION='1.5.11'
3039
3040
3041 cat >>confdefs.h <<_ACEOF
3042 #define PACKAGE "$PACKAGE"
3043 _ACEOF
3044
3045
3046 cat >>confdefs.h <<_ACEOF
3047 #define VERSION "$VERSION"
3048 _ACEOF
3049
3050 # Some tools Automake needs.
3051
3052 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3053
3054
3055 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3056
3057
3058 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3059
3060
3061 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3062
3063
3064 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3065
3066 # For better backward compatibility. To be removed once Automake 1.9.x
3067 # dies out for good. For more background, see:
3068 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3069 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3070 mkdir_p='$(MKDIR_P)'
3071
3072 # We need awk for the "check" target (and possibly the TAP driver). The
3073 # system "awk" is bad on some platforms.
3074 # Always define AMTAR for backward compatibility. Yes, it's still used
3075 # in the wild :-( We should find a proper way to deprecate it ...
3076 AMTAR='$${TAR-tar}'
3077
3078
3079 # We'll loop over all known methods to create a tar archive until one works.
3080 _am_tools='gnutar plaintar pax cpio none'
3081
3082 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3083 # There is notably a 21 bits limit for the UID and the GID. In fact,
3084 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3085 # and bug#13588).
3086 am_max_uid=2097151 # 2^21 - 1
3087 am_max_gid=$am_max_uid
3088 # The $UID and $GID variables are not portable, so we need to resort
3089 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3090 # below are definitely unexpected, so allow the users to see them
3091 # (that is, avoid stderr redirection).
3092 am_uid=`id -u || echo unknown`
3093 am_gid=`id -g || echo unknown`
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3095 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3096 if test $am_uid -le $am_max_uid; then
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3098 $as_echo "yes" >&6; }
3099 else
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101 $as_echo "no" >&6; }
3102 _am_tools=none
3103 fi
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3105 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3106 if test $am_gid -le $am_max_gid; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3108 $as_echo "yes" >&6; }
3109 else
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111 $as_echo "no" >&6; }
3112 _am_tools=none
3113 fi
3114
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3116 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3117
3118 # Go ahead even if we have the value already cached. We do so because we
3119 # need to set the values for the 'am__tar' and 'am__untar' variables.
3120 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3121
3122 for _am_tool in $_am_tools; do
3123 case $_am_tool in
3124 gnutar)
3125 for _am_tar in tar gnutar gtar; do
3126 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3127 ($_am_tar --version) >&5 2>&5
3128 ac_status=$?
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } && break
3131 done
3132 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3133 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3134 am__untar="$_am_tar -xf -"
3135 ;;
3136 plaintar)
3137 # Must skip GNU tar: if it does not support --format= it doesn't create
3138 # ustar tarball either.
3139 (tar --version) >/dev/null 2>&1 && continue
3140 am__tar='tar chf - "$$tardir"'
3141 am__tar_='tar chf - "$tardir"'
3142 am__untar='tar xf -'
3143 ;;
3144 pax)
3145 am__tar='pax -L -x ustar -w "$$tardir"'
3146 am__tar_='pax -L -x ustar -w "$tardir"'
3147 am__untar='pax -r'
3148 ;;
3149 cpio)
3150 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3151 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3152 am__untar='cpio -i -H ustar -d'
3153 ;;
3154 none)
3155 am__tar=false
3156 am__tar_=false
3157 am__untar=false
3158 ;;
3159 esac
3160
3161 # If the value was cached, stop now. We just wanted to have am__tar
3162 # and am__untar set.
3163 test -n "${am_cv_prog_tar_ustar}" && break
3164
3165 # tar/untar a dummy directory, and stop if the command works.
3166 rm -rf conftest.dir
3167 mkdir conftest.dir
3168 echo GrepMe > conftest.dir/file
3169 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3170 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3171 ac_status=$?
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }
3174 rm -rf conftest.dir
3175 if test -s conftest.tar; then
3176 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3177 ($am__untar <conftest.tar) >&5 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }
3181 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3182 (cat conftest.dir/file) >&5 2>&5
3183 ac_status=$?
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }
3186 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3187 fi
3188 done
3189 rm -rf conftest.dir
3190
3191 if ${am_cv_prog_tar_ustar+:} false; then :
3192 $as_echo_n "(cached) " >&6
3193 else
3194 am_cv_prog_tar_ustar=$_am_tool
3195 fi
3196
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3198 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3199
3200
3201
3202
3203
3204
3205 # POSIX will say in a future version that running "rm -f" with no argument
3206 # is OK; and we want to be able to make that assumption in our Makefile
3207 # recipes. So use an aggressive probe to check that the usage we want is
3208 # actually supported "in the wild" to an acceptable degree.
3209 # See automake bug#10828.
3210 # To make any issue more visible, cause the running configure to be aborted
3211 # by default if the 'rm' program in use doesn't match our expectations; the
3212 # user can still override this though.
3213 if rm -f && rm -fr && rm -rf; then : OK; else
3214 cat >&2 <<'END'
3215 Oops!
3216
3217 Your 'rm' program seems unable to run without file operands specified
3218 on the command line, even when the '-f' option is present. This is contrary
3219 to the behaviour of most rm programs out there, and not conforming with
3220 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3221
3222 Please tell [email protected] about your system, including the value
3223 of your $PATH and any error possibly output before this message. This
3224 can help us improve future automake versions.
3225
3226 END
3227 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3228 echo 'Configuration will proceed anyway, since you have set the' >&2
3229 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3230 echo >&2
3231 else
3232 cat >&2 <<'END'
3233 Aborting the configuration process, to ensure you take notice of the issue.
3234
3235 You can download and install GNU coreutils to get an 'rm' implementation
3236 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3237
3238 If you want to complete the configuration process using your problematic
3239 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3240 to "yes", and re-run configure.
3241
3242 END
3243 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3244 fi
3245 fi
3246
3247
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3249 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3250 # Check whether --enable-maintainer-mode was given.
3251 if test "${enable_maintainer_mode+set}" = set; then :
3252 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3253 else
3254 USE_MAINTAINER_MODE=yes
3255 fi
3256
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3258 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3259 if test $USE_MAINTAINER_MODE = yes; then
3260 MAINTAINER_MODE_TRUE=
3261 MAINTAINER_MODE_FALSE='#'
3262 else
3263 MAINTAINER_MODE_TRUE='#'
3264 MAINTAINER_MODE_FALSE=
3265 fi
3266
3267 MAINT=$MAINTAINER_MODE_TRUE
3268
3269
3270
3271 # Enable silent rules if available (Introduced in AM 1.11)
3272 # Check whether --enable-silent-rules was given.
3273 if test "${enable_silent_rules+set}" = set; then :
3274 enableval=$enable_silent_rules;
3275 fi
3276
3277 case $enable_silent_rules in # (((
3278 yes) AM_DEFAULT_VERBOSITY=0;;
3279 no) AM_DEFAULT_VERBOSITY=1;;
3280 *) AM_DEFAULT_VERBOSITY=0;;
3281 esac
3282 am_make=${MAKE-make}
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3284 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3285 if ${am_cv_make_support_nested_variables+:} false; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 if $as_echo 'TRUE=$(BAR$(V))
3289 BAR0=false
3290 BAR1=true
3291 V=1
3292 am__doit:
3293 @$(TRUE)
3294 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3295 am_cv_make_support_nested_variables=yes
3296 else
3297 am_cv_make_support_nested_variables=no
3298 fi
3299 fi
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3301 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3302 if test $am_cv_make_support_nested_variables = yes; then
3303 AM_V='$(V)'
3304 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3305 else
3306 AM_V=$AM_DEFAULT_VERBOSITY
3307 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3308 fi
3309 AM_BACKSLASH='\'
3310
3311
3312
3313
3314 # Checks for C compiler
3315 DEPDIR="${am__leading_dot}deps"
3316
3317 ac_config_commands="$ac_config_commands depfiles"
3318
3319
3320 am_make=${MAKE-make}
3321 cat > confinc << 'END'
3322 am__doit:
3323 @echo this is the am__doit target
3324 .PHONY: am__doit
3325 END
3326 # If we don't find an include directive, just comment out the code.
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3328 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3329 am__include="#"
3330 am__quote=
3331 _am_result=none
3332 # First try GNU make style include.
3333 echo "include confinc" > confmf
3334 # Ignore all kinds of additional output from 'make'.
3335 case `$am_make -s -f confmf 2> /dev/null` in #(
3336 *the\ am__doit\ target*)
3337 am__include=include
3338 am__quote=
3339 _am_result=GNU
3340 ;;
3341 esac
3342 # Now try BSD make style include.
3343 if test "$am__include" = "#"; then
3344 echo '.include "confinc"' > confmf
3345 case `$am_make -s -f confmf 2> /dev/null` in #(
3346 *the\ am__doit\ target*)
3347 am__include=.include
3348 am__quote="\""
3349 _am_result=BSD
3350 ;;
3351 esac
3352 fi
3353
3354
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3356 $as_echo "$_am_result" >&6; }
3357 rm -f confinc confmf
3358
3359 # Check whether --enable-dependency-tracking was given.
3360 if test "${enable_dependency_tracking+set}" = set; then :
3361 enableval=$enable_dependency_tracking;
3362 fi
3363
3364 if test "x$enable_dependency_tracking" != xno; then
3365 am_depcomp="$ac_aux_dir/depcomp"
3366 AMDEPBACKSLASH='\'
3367 am__nodep='_no'
3368 fi
3369 if test "x$enable_dependency_tracking" != xno; then
3370 AMDEP_TRUE=
3371 AMDEP_FALSE='#'
3372 else
3373 AMDEP_TRUE='#'
3374 AMDEP_FALSE=
3375 fi
3376
3377
3378 ac_ext=c
3379 ac_cpp='$CPP $CPPFLAGS'
3380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3383 if test -n "$ac_tool_prefix"; then
3384 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3385 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if ${ac_cv_prog_CC+:} false; then :
3389 $as_echo_n "(cached) " >&6
3390 else
3391 if test -n "$CC"; then
3392 ac_cv_prog_CC="$CC" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3396 do
3397 IFS=$as_save_IFS
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3401 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 break 2
3404 fi
3405 done
3406 done
3407 IFS=$as_save_IFS
3408
3409 fi
3410 fi
3411 CC=$ac_cv_prog_CC
3412 if test -n "$CC"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3414 $as_echo "$CC" >&6; }
3415 else
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3418 fi
3419
3420
3421 fi
3422 if test -z "$ac_cv_prog_CC"; then
3423 ac_ct_CC=$CC
3424 # Extract the first word of "gcc", so it can be a program name with args.
3425 set dummy gcc; ac_word=$2
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3427 $as_echo_n "checking for $ac_word... " >&6; }
3428 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3429 $as_echo_n "(cached) " >&6
3430 else
3431 if test -n "$ac_ct_CC"; then
3432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3433 else
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 for as_dir in $PATH
3436 do
3437 IFS=$as_save_IFS
3438 test -z "$as_dir" && as_dir=.
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3441 ac_cv_prog_ac_ct_CC="gcc"
3442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3443 break 2
3444 fi
3445 done
3446 done
3447 IFS=$as_save_IFS
3448
3449 fi
3450 fi
3451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3452 if test -n "$ac_ct_CC"; then
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3454 $as_echo "$ac_ct_CC" >&6; }
3455 else
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457 $as_echo "no" >&6; }
3458 fi
3459
3460 if test "x$ac_ct_CC" = x; then
3461 CC=""
3462 else
3463 case $cross_compiling:$ac_tool_warned in
3464 yes:)
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3467 ac_tool_warned=yes ;;
3468 esac
3469 CC=$ac_ct_CC
3470 fi
3471 else
3472 CC="$ac_cv_prog_CC"
3473 fi
3474
3475 if test -z "$CC"; then
3476 if test -n "$ac_tool_prefix"; then
3477 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3478 set dummy ${ac_tool_prefix}cc; ac_word=$2
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if ${ac_cv_prog_CC+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 if test -n "$CC"; then
3485 ac_cv_prog_CC="$CC" # Let the user override the test.
3486 else
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in $PATH
3489 do
3490 IFS=$as_save_IFS
3491 test -z "$as_dir" && as_dir=.
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3494 ac_cv_prog_CC="${ac_tool_prefix}cc"
3495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 break 2
3497 fi
3498 done
3499 done
3500 IFS=$as_save_IFS
3501
3502 fi
3503 fi
3504 CC=$ac_cv_prog_CC
3505 if test -n "$CC"; then
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 $as_echo "$CC" >&6; }
3508 else
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3511 fi
3512
3513
3514 fi
3515 fi
3516 if test -z "$CC"; then
3517 # Extract the first word of "cc", so it can be a program name with args.
3518 set dummy cc; ac_word=$2
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520 $as_echo_n "checking for $ac_word... " >&6; }
3521 if ${ac_cv_prog_CC+:} false; then :
3522 $as_echo_n "(cached) " >&6
3523 else
3524 if test -n "$CC"; then
3525 ac_cv_prog_CC="$CC" # Let the user override the test.
3526 else
3527 ac_prog_rejected=no
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH
3530 do
3531 IFS=$as_save_IFS
3532 test -z "$as_dir" && as_dir=.
3533 for ac_exec_ext in '' $ac_executable_extensions; do
3534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3535 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3536 ac_prog_rejected=yes
3537 continue
3538 fi
3539 ac_cv_prog_CC="cc"
3540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 break 2
3542 fi
3543 done
3544 done
3545 IFS=$as_save_IFS
3546
3547 if test $ac_prog_rejected = yes; then
3548 # We found a bogon in the path, so make sure we never use it.
3549 set dummy $ac_cv_prog_CC
3550 shift
3551 if test $# != 0; then
3552 # We chose a different compiler from the bogus one.
3553 # However, it has the same basename, so the bogon will be chosen
3554 # first if we set CC to just the basename; use the full file name.
3555 shift
3556 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3557 fi
3558 fi
3559 fi
3560 fi
3561 CC=$ac_cv_prog_CC
3562 if test -n "$CC"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3564 $as_echo "$CC" >&6; }
3565 else
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3568 fi
3569
3570
3571 fi
3572 if test -z "$CC"; then
3573 if test -n "$ac_tool_prefix"; then
3574 for ac_prog in cl.exe
3575 do
3576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if ${ac_cv_prog_CC+:} false; then :
3581 $as_echo_n "(cached) " >&6
3582 else
3583 if test -n "$CC"; then
3584 ac_cv_prog_CC="$CC" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589 IFS=$as_save_IFS
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 break 2
3596 fi
3597 done
3598 done
3599 IFS=$as_save_IFS
3600
3601 fi
3602 fi
3603 CC=$ac_cv_prog_CC
3604 if test -n "$CC"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3606 $as_echo "$CC" >&6; }
3607 else
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3610 fi
3611
3612
3613 test -n "$CC" && break
3614 done
3615 fi
3616 if test -z "$CC"; then
3617 ac_ct_CC=$CC
3618 for ac_prog in cl.exe
3619 do
3620 # Extract the first word of "$ac_prog", so it can be a program name with args.
3621 set dummy $ac_prog; ac_word=$2
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623 $as_echo_n "checking for $ac_word... " >&6; }
3624 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3625 $as_echo_n "(cached) " >&6
3626 else
3627 if test -n "$ac_ct_CC"; then
3628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3629 else
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633 IFS=$as_save_IFS
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637 ac_cv_prog_ac_ct_CC="$ac_prog"
3638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 break 2
3640 fi
3641 done
3642 done
3643 IFS=$as_save_IFS
3644
3645 fi
3646 fi
3647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3648 if test -n "$ac_ct_CC"; then
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3650 $as_echo "$ac_ct_CC" >&6; }
3651 else
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653 $as_echo "no" >&6; }
3654 fi
3655
3656
3657 test -n "$ac_ct_CC" && break
3658 done
3659
3660 if test "x$ac_ct_CC" = x; then
3661 CC=""
3662 else
3663 case $cross_compiling:$ac_tool_warned in
3664 yes:)
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3667 ac_tool_warned=yes ;;
3668 esac
3669 CC=$ac_ct_CC
3670 fi
3671 fi
3672
3673 fi
3674
3675
3676 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error $? "no acceptable C compiler found in \$PATH
3679 See \`config.log' for more details" "$LINENO" 5; }
3680
3681 # Provide some information about the compiler.
3682 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3683 set X $ac_compile
3684 ac_compiler=$2
3685 for ac_option in --version -v -V -qversion; do
3686 { { ac_try="$ac_compiler $ac_option >&5"
3687 case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3690 esac
3691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3692 $as_echo "$ac_try_echo"; } >&5
3693 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3694 ac_status=$?
3695 if test -s conftest.err; then
3696 sed '10a\
3697 ... rest of stderr output deleted ...
3698 10q' conftest.err >conftest.er1
3699 cat conftest.er1 >&5
3700 fi
3701 rm -f conftest.er1 conftest.err
3702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703 test $ac_status = 0; }
3704 done
3705
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3708
3709 int
3710 main ()
3711 {
3712
3713 ;
3714 return 0;
3715 }
3716 _ACEOF
3717 ac_clean_files_save=$ac_clean_files
3718 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3719 # Try to create an executable without -o first, disregard a.out.
3720 # It will help us diagnose broken compilers, and finding out an intuition
3721 # of exeext.
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3723 $as_echo_n "checking whether the C compiler works... " >&6; }
3724 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3725
3726 # The possible output files:
3727 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3728
3729 ac_rmfiles=
3730 for ac_file in $ac_files
3731 do
3732 case $ac_file in
3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3734 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3735 esac
3736 done
3737 rm -f $ac_rmfiles
3738
3739 if { { ac_try="$ac_link_default"
3740 case "(($ac_try" in
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3743 esac
3744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3745 $as_echo "$ac_try_echo"; } >&5
3746 (eval "$ac_link_default") 2>&5
3747 ac_status=$?
3748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3749 test $ac_status = 0; }; then :
3750 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3751 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3752 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3753 # so that the user can short-circuit this test for compilers unknown to
3754 # Autoconf.
3755 for ac_file in $ac_files ''
3756 do
3757 test -f "$ac_file" || continue
3758 case $ac_file in
3759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3760 ;;
3761 [ab].out )
3762 # We found the default executable, but exeext='' is most
3763 # certainly right.
3764 break;;
3765 *.* )
3766 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3767 then :; else
3768 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3769 fi
3770 # We set ac_cv_exeext here because the later test for it is not
3771 # safe: cross compilers may not add the suffix if given an `-o'
3772 # argument, so we may need to know it at that point already.
3773 # Even if this section looks crufty: it has the advantage of
3774 # actually working.
3775 break;;
3776 * )
3777 break;;
3778 esac
3779 done
3780 test "$ac_cv_exeext" = no && ac_cv_exeext=
3781
3782 else
3783 ac_file=''
3784 fi
3785 if test -z "$ac_file"; then :
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3788 $as_echo "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3790
3791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3793 as_fn_error 77 "C compiler cannot create executables
3794 See \`config.log' for more details" "$LINENO" 5; }
3795 else
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3797 $as_echo "yes" >&6; }
3798 fi
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3800 $as_echo_n "checking for C compiler default output file name... " >&6; }
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3802 $as_echo "$ac_file" >&6; }
3803 ac_exeext=$ac_cv_exeext
3804
3805 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3806 ac_clean_files=$ac_clean_files_save
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3808 $as_echo_n "checking for suffix of executables... " >&6; }
3809 if { { ac_try="$ac_link"
3810 case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_link") 2>&5
3817 ac_status=$?
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }; then :
3820 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3821 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3822 # work properly (i.e., refer to `conftest.exe'), while it won't with
3823 # `rm'.
3824 for ac_file in conftest.exe conftest conftest.*; do
3825 test -f "$ac_file" || continue
3826 case $ac_file in
3827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3828 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3829 break;;
3830 * ) break;;
3831 esac
3832 done
3833 else
3834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3836 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3837 See \`config.log' for more details" "$LINENO" 5; }
3838 fi
3839 rm -f conftest conftest$ac_cv_exeext
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3841 $as_echo "$ac_cv_exeext" >&6; }
3842
3843 rm -f conftest.$ac_ext
3844 EXEEXT=$ac_cv_exeext
3845 ac_exeext=$EXEEXT
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3848 #include <stdio.h>
3849 int
3850 main ()
3851 {
3852 FILE *f = fopen ("conftest.out", "w");
3853 return ferror (f) || fclose (f) != 0;
3854
3855 ;
3856 return 0;
3857 }
3858 _ACEOF
3859 ac_clean_files="$ac_clean_files conftest.out"
3860 # Check that the compiler produces executables we can run. If not, either
3861 # the compiler is broken, or we cross compile.
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3863 $as_echo_n "checking whether we are cross compiling... " >&6; }
3864 if test "$cross_compiling" != yes; then
3865 { { ac_try="$ac_link"
3866 case "(($ac_try" in
3867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868 *) ac_try_echo=$ac_try;;
3869 esac
3870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3871 $as_echo "$ac_try_echo"; } >&5
3872 (eval "$ac_link") 2>&5
3873 ac_status=$?
3874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875 test $ac_status = 0; }
3876 if { ac_try='./conftest$ac_cv_exeext'
3877 { { case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880 esac
3881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3882 $as_echo "$ac_try_echo"; } >&5
3883 (eval "$ac_try") 2>&5
3884 ac_status=$?
3885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3886 test $ac_status = 0; }; }; then
3887 cross_compiling=no
3888 else
3889 if test "$cross_compiling" = maybe; then
3890 cross_compiling=yes
3891 else
3892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3894 as_fn_error $? "cannot run C compiled programs.
3895 If you meant to cross compile, use \`--host'.
3896 See \`config.log' for more details" "$LINENO" 5; }
3897 fi
3898 fi
3899 fi
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3901 $as_echo "$cross_compiling" >&6; }
3902
3903 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3904 ac_clean_files=$ac_clean_files_save
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3906 $as_echo_n "checking for suffix of object files... " >&6; }
3907 if ${ac_cv_objext+:} false; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3912
3913 int
3914 main ()
3915 {
3916
3917 ;
3918 return 0;
3919 }
3920 _ACEOF
3921 rm -f conftest.o conftest.obj
3922 if { { ac_try="$ac_compile"
3923 case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 $as_echo "$ac_try_echo"; } >&5
3929 (eval "$ac_compile") 2>&5
3930 ac_status=$?
3931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932 test $ac_status = 0; }; then :
3933 for ac_file in conftest.o conftest.obj conftest.*; do
3934 test -f "$ac_file" || continue;
3935 case $ac_file in
3936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3937 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3938 break;;
3939 esac
3940 done
3941 else
3942 $as_echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3944
3945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3947 as_fn_error $? "cannot compute suffix of object files: cannot compile
3948 See \`config.log' for more details" "$LINENO" 5; }
3949 fi
3950 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3951 fi
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3953 $as_echo "$ac_cv_objext" >&6; }
3954 OBJEXT=$ac_cv_objext
3955 ac_objext=$OBJEXT
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3957 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3958 if ${ac_cv_c_compiler_gnu+:} false; then :
3959 $as_echo_n "(cached) " >&6
3960 else
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3963
3964 int
3965 main ()
3966 {
3967 #ifndef __GNUC__
3968 choke me
3969 #endif
3970
3971 ;
3972 return 0;
3973 }
3974 _ACEOF
3975 if ac_fn_c_try_compile "$LINENO"; then :
3976 ac_compiler_gnu=yes
3977 else
3978 ac_compiler_gnu=no
3979 fi
3980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3982
3983 fi
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3985 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3986 if test $ac_compiler_gnu = yes; then
3987 GCC=yes
3988 else
3989 GCC=
3990 fi
3991 ac_test_CFLAGS=${CFLAGS+set}
3992 ac_save_CFLAGS=$CFLAGS
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3994 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3995 if ${ac_cv_prog_cc_g+:} false; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 ac_save_c_werror_flag=$ac_c_werror_flag
3999 ac_c_werror_flag=yes
4000 ac_cv_prog_cc_g=no
4001 CFLAGS="-g"
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4004
4005 int
4006 main ()
4007 {
4008
4009 ;
4010 return 0;
4011 }
4012 _ACEOF
4013 if ac_fn_c_try_compile "$LINENO"; then :
4014 ac_cv_prog_cc_g=yes
4015 else
4016 CFLAGS=""
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4019
4020 int
4021 main ()
4022 {
4023
4024 ;
4025 return 0;
4026 }
4027 _ACEOF
4028 if ac_fn_c_try_compile "$LINENO"; then :
4029
4030 else
4031 ac_c_werror_flag=$ac_save_c_werror_flag
4032 CFLAGS="-g"
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4035
4036 int
4037 main ()
4038 {
4039
4040 ;
4041 return 0;
4042 }
4043 _ACEOF
4044 if ac_fn_c_try_compile "$LINENO"; then :
4045 ac_cv_prog_cc_g=yes
4046 fi
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048 fi
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050 fi
4051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 ac_c_werror_flag=$ac_save_c_werror_flag
4053 fi
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4055 $as_echo "$ac_cv_prog_cc_g" >&6; }
4056 if test "$ac_test_CFLAGS" = set; then
4057 CFLAGS=$ac_save_CFLAGS
4058 elif test $ac_cv_prog_cc_g = yes; then
4059 if test "$GCC" = yes; then
4060 CFLAGS="-g -O2"
4061 else
4062 CFLAGS="-g"
4063 fi
4064 else
4065 if test "$GCC" = yes; then
4066 CFLAGS="-O2"
4067 else
4068 CFLAGS=
4069 fi
4070 fi
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4072 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4073 if ${ac_cv_prog_cc_c89+:} false; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 ac_cv_prog_cc_c89=no
4077 ac_save_CC=$CC
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4080 #include <stdarg.h>
4081 #include <stdio.h>
4082 struct stat;
4083 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4084 struct buf { int x; };
4085 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4086 static char *e (p, i)
4087 char **p;
4088 int i;
4089 {
4090 return p[i];
4091 }
4092 static char *f (char * (*g) (char **, int), char **p, ...)
4093 {
4094 char *s;
4095 va_list v;
4096 va_start (v,p);
4097 s = g (p, va_arg (v,int));
4098 va_end (v);
4099 return s;
4100 }
4101
4102 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4103 function prototypes and stuff, but not '\xHH' hex character constants.
4104 These don't provoke an error unfortunately, instead are silently treated
4105 as 'x'. The following induces an error, until -std is added to get
4106 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4107 array size at least. It's necessary to write '\x00'==0 to get something
4108 that's true only with -std. */
4109 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4110
4111 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4112 inside strings and character constants. */
4113 #define FOO(x) 'x'
4114 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4115
4116 int test (int i, double x);
4117 struct s1 {int (*f) (int a);};
4118 struct s2 {int (*f) (double a);};
4119 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4120 int argc;
4121 char **argv;
4122 int
4123 main ()
4124 {
4125 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4126 ;
4127 return 0;
4128 }
4129 _ACEOF
4130 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4131 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4132 do
4133 CC="$ac_save_CC $ac_arg"
4134 if ac_fn_c_try_compile "$LINENO"; then :
4135 ac_cv_prog_cc_c89=$ac_arg
4136 fi
4137 rm -f core conftest.err conftest.$ac_objext
4138 test "x$ac_cv_prog_cc_c89" != "xno" && break
4139 done
4140 rm -f conftest.$ac_ext
4141 CC=$ac_save_CC
4142
4143 fi
4144 # AC_CACHE_VAL
4145 case "x$ac_cv_prog_cc_c89" in
4146 x)
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4148 $as_echo "none needed" >&6; } ;;
4149 xno)
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4151 $as_echo "unsupported" >&6; } ;;
4152 *)
4153 CC="$CC $ac_cv_prog_cc_c89"
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4155 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4156 esac
4157 if test "x$ac_cv_prog_cc_c89" != xno; then :
4158
4159 fi
4160
4161 ac_ext=c
4162 ac_cpp='$CPP $CPPFLAGS'
4163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4166
4167 ac_ext=c
4168 ac_cpp='$CPP $CPPFLAGS'
4169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4173 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4174 if ${am_cv_prog_cc_c_o+:} false; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4179
4180 int
4181 main ()
4182 {
4183
4184 ;
4185 return 0;
4186 }
4187 _ACEOF
4188 # Make sure it works both with $CC and with simple cc.
4189 # Following AC_PROG_CC_C_O, we do the test twice because some
4190 # compilers refuse to overwrite an existing .o file with -o,
4191 # though they will create one.
4192 am_cv_prog_cc_c_o=yes
4193 for am_i in 1 2; do
4194 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4195 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4196 ac_status=$?
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } \
4199 && test -f conftest2.$ac_objext; then
4200 : OK
4201 else
4202 am_cv_prog_cc_c_o=no
4203 break
4204 fi
4205 done
4206 rm -f core conftest*
4207 unset am_i
4208 fi
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4210 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4211 if test "$am_cv_prog_cc_c_o" != yes; then
4212 # Losing compiler, so override with the script.
4213 # FIXME: It is wrong to rewrite CC.
4214 # But if we don't then we get into trouble of one sort or another.
4215 # A longer-term fix would be to have automake use am__CC in this case,
4216 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4217 CC="$am_aux_dir/compile $CC"
4218 fi
4219 ac_ext=c
4220 ac_cpp='$CPP $CPPFLAGS'
4221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4224
4225
4226 depcc="$CC" am_compiler_list=
4227
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4229 $as_echo_n "checking dependency style of $depcc... " >&6; }
4230 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4231 $as_echo_n "(cached) " >&6
4232 else
4233 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4234 # We make a subdir and do the tests there. Otherwise we can end up
4235 # making bogus files that we don't know about and never remove. For
4236 # instance it was reported that on HP-UX the gcc test will end up
4237 # making a dummy file named 'D' -- because '-MD' means "put the output
4238 # in D".
4239 rm -rf conftest.dir
4240 mkdir conftest.dir
4241 # Copy depcomp to subdir because otherwise we won't find it if we're
4242 # using a relative directory.
4243 cp "$am_depcomp" conftest.dir
4244 cd conftest.dir
4245 # We will build objects and dependencies in a subdirectory because
4246 # it helps to detect inapplicable dependency modes. For instance
4247 # both Tru64's cc and ICC support -MD to output dependencies as a
4248 # side effect of compilation, but ICC will put the dependencies in
4249 # the current directory while Tru64 will put them in the object
4250 # directory.
4251 mkdir sub
4252
4253 am_cv_CC_dependencies_compiler_type=none
4254 if test "$am_compiler_list" = ""; then
4255 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4256 fi
4257 am__universal=false
4258 case " $depcc " in #(
4259 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4260 esac
4261
4262 for depmode in $am_compiler_list; do
4263 # Setup a source with many dependencies, because some compilers
4264 # like to wrap large dependency lists on column 80 (with \), and
4265 # we should not choose a depcomp mode which is confused by this.
4266 #
4267 # We need to recreate these files for each test, as the compiler may
4268 # overwrite some of them when testing with obscure command lines.
4269 # This happens at least with the AIX C compiler.
4270 : > sub/conftest.c
4271 for i in 1 2 3 4 5 6; do
4272 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4273 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4274 # Solaris 10 /bin/sh.
4275 echo '/* dummy */' > sub/conftst$i.h
4276 done
4277 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4278
4279 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4280 # mode. It turns out that the SunPro C++ compiler does not properly
4281 # handle '-M -o', and we need to detect this. Also, some Intel
4282 # versions had trouble with output in subdirs.
4283 am__obj=sub/conftest.${OBJEXT-o}
4284 am__minus_obj="-o $am__obj"
4285 case $depmode in
4286 gcc)
4287 # This depmode causes a compiler race in universal mode.
4288 test "$am__universal" = false || continue
4289 ;;
4290 nosideeffect)
4291 # After this tag, mechanisms are not by side-effect, so they'll
4292 # only be used when explicitly requested.
4293 if test "x$enable_dependency_tracking" = xyes; then
4294 continue
4295 else
4296 break
4297 fi
4298 ;;
4299 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4300 # This compiler won't grok '-c -o', but also, the minuso test has
4301 # not run yet. These depmodes are late enough in the game, and
4302 # so weak that their functioning should not be impacted.
4303 am__obj=conftest.${OBJEXT-o}
4304 am__minus_obj=
4305 ;;
4306 none) break ;;
4307 esac
4308 if depmode=$depmode \
4309 source=sub/conftest.c object=$am__obj \
4310 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4311 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4312 >/dev/null 2>conftest.err &&
4313 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4314 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4315 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4316 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4317 # icc doesn't choke on unknown options, it will just issue warnings
4318 # or remarks (even with -Werror). So we grep stderr for any message
4319 # that says an option was ignored or not supported.
4320 # When given -MP, icc 7.0 and 7.1 complain thusly:
4321 # icc: Command line warning: ignoring option '-M'; no argument required
4322 # The diagnosis changed in icc 8.0:
4323 # icc: Command line remark: option '-MP' not supported
4324 if (grep 'ignoring option' conftest.err ||
4325 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4326 am_cv_CC_dependencies_compiler_type=$depmode
4327 break
4328 fi
4329 fi
4330 done
4331
4332 cd ..
4333 rm -rf conftest.dir
4334 else
4335 am_cv_CC_dependencies_compiler_type=none
4336 fi
4337
4338 fi
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4340 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4341 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4342
4343 if
4344 test "x$enable_dependency_tracking" != xno \
4345 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4346 am__fastdepCC_TRUE=
4347 am__fastdepCC_FALSE='#'
4348 else
4349 am__fastdepCC_TRUE='#'
4350 am__fastdepCC_FALSE=
4351 fi
4352
4353
4354
4355 ac_ext=c
4356 ac_cpp='$CPP $CPPFLAGS'
4357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4361 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4362 # On Suns, sometimes $CPP names a directory.
4363 if test -n "$CPP" && test -d "$CPP"; then
4364 CPP=
4365 fi
4366 if test -z "$CPP"; then
4367 if ${ac_cv_prog_CPP+:} false; then :
4368 $as_echo_n "(cached) " >&6
4369 else
4370 # Double quotes because CPP needs to be expanded
4371 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4372 do
4373 ac_preproc_ok=false
4374 for ac_c_preproc_warn_flag in '' yes
4375 do
4376 # Use a header file that comes with gcc, so configuring glibc
4377 # with a fresh cross-compiler works.
4378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4379 # <limits.h> exists even on freestanding compilers.
4380 # On the NeXT, cc -E runs the code through the compiler's parser,
4381 # not just through cpp. "Syntax error" is here to catch this case.
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4384 #ifdef __STDC__
4385 # include <limits.h>
4386 #else
4387 # include <assert.h>
4388 #endif
4389 Syntax error
4390 _ACEOF
4391 if ac_fn_c_try_cpp "$LINENO"; then :
4392
4393 else
4394 # Broken: fails on valid input.
4395 continue
4396 fi
4397 rm -f conftest.err conftest.i conftest.$ac_ext
4398
4399 # OK, works on sane cases. Now check whether nonexistent headers
4400 # can be detected and how.
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4403 #include <ac_nonexistent.h>
4404 _ACEOF
4405 if ac_fn_c_try_cpp "$LINENO"; then :
4406 # Broken: success on invalid input.
4407 continue
4408 else
4409 # Passes both tests.
4410 ac_preproc_ok=:
4411 break
4412 fi
4413 rm -f conftest.err conftest.i conftest.$ac_ext
4414
4415 done
4416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4417 rm -f conftest.i conftest.err conftest.$ac_ext
4418 if $ac_preproc_ok; then :
4419 break
4420 fi
4421
4422 done
4423 ac_cv_prog_CPP=$CPP
4424
4425 fi
4426 CPP=$ac_cv_prog_CPP
4427 else
4428 ac_cv_prog_CPP=$CPP
4429 fi
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4431 $as_echo "$CPP" >&6; }
4432 ac_preproc_ok=false
4433 for ac_c_preproc_warn_flag in '' yes
4434 do
4435 # Use a header file that comes with gcc, so configuring glibc
4436 # with a fresh cross-compiler works.
4437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4438 # <limits.h> exists even on freestanding compilers.
4439 # On the NeXT, cc -E runs the code through the compiler's parser,
4440 # not just through cpp. "Syntax error" is here to catch this case.
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4443 #ifdef __STDC__
4444 # include <limits.h>
4445 #else
4446 # include <assert.h>
4447 #endif
4448 Syntax error
4449 _ACEOF
4450 if ac_fn_c_try_cpp "$LINENO"; then :
4451
4452 else
4453 # Broken: fails on valid input.
4454 continue
4455 fi
4456 rm -f conftest.err conftest.i conftest.$ac_ext
4457
4458 # OK, works on sane cases. Now check whether nonexistent headers
4459 # can be detected and how.
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461 /* end confdefs.h. */
4462 #include <ac_nonexistent.h>
4463 _ACEOF
4464 if ac_fn_c_try_cpp "$LINENO"; then :
4465 # Broken: success on invalid input.
4466 continue
4467 else
4468 # Passes both tests.
4469 ac_preproc_ok=:
4470 break
4471 fi
4472 rm -f conftest.err conftest.i conftest.$ac_ext
4473
4474 done
4475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4476 rm -f conftest.i conftest.err conftest.$ac_ext
4477 if $ac_preproc_ok; then :
4478
4479 else
4480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4482 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4483 See \`config.log' for more details" "$LINENO" 5; }
4484 fi
4485
4486 ac_ext=c
4487 ac_cpp='$CPP $CPPFLAGS'
4488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4491
4492
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4494 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4495 if ${ac_cv_path_GREP+:} false; then :
4496 $as_echo_n "(cached) " >&6
4497 else
4498 if test -z "$GREP"; then
4499 ac_path_GREP_found=false
4500 # Loop through the user's path and test for each of PROGNAME-LIST
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4503 do
4504 IFS=$as_save_IFS
4505 test -z "$as_dir" && as_dir=.
4506 for ac_prog in grep ggrep; do
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4509 as_fn_executable_p "$ac_path_GREP" || continue
4510 # Check for GNU ac_path_GREP and select it if it is found.
4511 # Check for GNU $ac_path_GREP
4512 case `"$ac_path_GREP" --version 2>&1` in
4513 *GNU*)
4514 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4515 *)
4516 ac_count=0
4517 $as_echo_n 0123456789 >"conftest.in"
4518 while :
4519 do
4520 cat "conftest.in" "conftest.in" >"conftest.tmp"
4521 mv "conftest.tmp" "conftest.in"
4522 cp "conftest.in" "conftest.nl"
4523 $as_echo 'GREP' >> "conftest.nl"
4524 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4526 as_fn_arith $ac_count + 1 && ac_count=$as_val
4527 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4528 # Best one so far, save it but keep looking for a better one
4529 ac_cv_path_GREP="$ac_path_GREP"
4530 ac_path_GREP_max=$ac_count
4531 fi
4532 # 10*(2^10) chars as input seems more than enough
4533 test $ac_count -gt 10 && break
4534 done
4535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4536 esac
4537
4538 $ac_path_GREP_found && break 3
4539 done
4540 done
4541 done
4542 IFS=$as_save_IFS
4543 if test -z "$ac_cv_path_GREP"; then
4544 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4545 fi
4546 else
4547 ac_cv_path_GREP=$GREP
4548 fi
4549
4550 fi
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4552 $as_echo "$ac_cv_path_GREP" >&6; }
4553 GREP="$ac_cv_path_GREP"
4554
4555
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4557 $as_echo_n "checking for egrep... " >&6; }
4558 if ${ac_cv_path_EGREP+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4562 then ac_cv_path_EGREP="$GREP -E"
4563 else
4564 if test -z "$EGREP"; then
4565 ac_path_EGREP_found=false
4566 # Loop through the user's path and test for each of PROGNAME-LIST
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4569 do
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_prog in egrep; do
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4575 as_fn_executable_p "$ac_path_EGREP" || continue
4576 # Check for GNU ac_path_EGREP and select it if it is found.
4577 # Check for GNU $ac_path_EGREP
4578 case `"$ac_path_EGREP" --version 2>&1` in
4579 *GNU*)
4580 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4581 *)
4582 ac_count=0
4583 $as_echo_n 0123456789 >"conftest.in"
4584 while :
4585 do
4586 cat "conftest.in" "conftest.in" >"conftest.tmp"
4587 mv "conftest.tmp" "conftest.in"
4588 cp "conftest.in" "conftest.nl"
4589 $as_echo 'EGREP' >> "conftest.nl"
4590 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4592 as_fn_arith $ac_count + 1 && ac_count=$as_val
4593 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4594 # Best one so far, save it but keep looking for a better one
4595 ac_cv_path_EGREP="$ac_path_EGREP"
4596 ac_path_EGREP_max=$ac_count
4597 fi
4598 # 10*(2^10) chars as input seems more than enough
4599 test $ac_count -gt 10 && break
4600 done
4601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4602 esac
4603
4604 $ac_path_EGREP_found && break 3
4605 done
4606 done
4607 done
4608 IFS=$as_save_IFS
4609 if test -z "$ac_cv_path_EGREP"; then
4610 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4611 fi
4612 else
4613 ac_cv_path_EGREP=$EGREP
4614 fi
4615
4616 fi
4617 fi
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4619 $as_echo "$ac_cv_path_EGREP" >&6; }
4620 EGREP="$ac_cv_path_EGREP"
4621
4622
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4624 $as_echo_n "checking for ANSI C header files... " >&6; }
4625 if ${ac_cv_header_stdc+:} false; then :
4626 $as_echo_n "(cached) " >&6
4627 else
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629 /* end confdefs.h. */
4630 #include <stdlib.h>
4631 #include <stdarg.h>
4632 #include <string.h>
4633 #include <float.h>
4634
4635 int
4636 main ()
4637 {
4638
4639 ;
4640 return 0;
4641 }
4642 _ACEOF
4643 if ac_fn_c_try_compile "$LINENO"; then :
4644 ac_cv_header_stdc=yes
4645 else
4646 ac_cv_header_stdc=no
4647 fi
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649
4650 if test $ac_cv_header_stdc = yes; then
4651 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4654 #include <string.h>
4655
4656 _ACEOF
4657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4658 $EGREP "memchr" >/dev/null 2>&1; then :
4659
4660 else
4661 ac_cv_header_stdc=no
4662 fi
4663 rm -f conftest*
4664
4665 fi
4666
4667 if test $ac_cv_header_stdc = yes; then
4668 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4671 #include <stdlib.h>
4672
4673 _ACEOF
4674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4675 $EGREP "free" >/dev/null 2>&1; then :
4676
4677 else
4678 ac_cv_header_stdc=no
4679 fi
4680 rm -f conftest*
4681
4682 fi
4683
4684 if test $ac_cv_header_stdc = yes; then
4685 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4686 if test "$cross_compiling" = yes; then :
4687 :
4688 else
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4691 #include <ctype.h>
4692 #include <stdlib.h>
4693 #if ((' ' & 0x0FF) == 0x020)
4694 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4695 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4696 #else
4697 # define ISLOWER(c) \
4698 (('a' <= (c) && (c) <= 'i') \
4699 || ('j' <= (c) && (c) <= 'r') \
4700 || ('s' <= (c) && (c) <= 'z'))
4701 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4702 #endif
4703
4704 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4705 int
4706 main ()
4707 {
4708 int i;
4709 for (i = 0; i < 256; i++)
4710 if (XOR (islower (i), ISLOWER (i))
4711 || toupper (i) != TOUPPER (i))
4712 return 2;
4713 return 0;
4714 }
4715 _ACEOF
4716 if ac_fn_c_try_run "$LINENO"; then :
4717
4718 else
4719 ac_cv_header_stdc=no
4720 fi
4721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4722 conftest.$ac_objext conftest.beam conftest.$ac_ext
4723 fi
4724
4725 fi
4726 fi
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4728 $as_echo "$ac_cv_header_stdc" >&6; }
4729 if test $ac_cv_header_stdc = yes; then
4730
4731 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4732
4733 fi
4734
4735 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4736 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4737 inttypes.h stdint.h unistd.h
4738 do :
4739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4740 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4741 "
4742 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4743 cat >>confdefs.h <<_ACEOF
4744 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4745 _ACEOF
4746
4747 fi
4748
4749 done
4750
4751
4752
4753 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4754 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4755 MINIX=yes
4756 else
4757 MINIX=
4758 fi
4759
4760
4761 if test "$MINIX" = yes; then
4762
4763 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4764
4765
4766 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4767
4768
4769 $as_echo "#define _MINIX 1" >>confdefs.h
4770
4771 fi
4772
4773
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4775 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4776 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4781
4782 # define __EXTENSIONS__ 1
4783 $ac_includes_default
4784 int
4785 main ()
4786 {
4787
4788 ;
4789 return 0;
4790 }
4791 _ACEOF
4792 if ac_fn_c_try_compile "$LINENO"; then :
4793 ac_cv_safe_to_define___extensions__=yes
4794 else
4795 ac_cv_safe_to_define___extensions__=no
4796 fi
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 fi
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4800 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4801 test $ac_cv_safe_to_define___extensions__ = yes &&
4802 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4803
4804 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4805
4806 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4807
4808 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4809
4810 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4811
4812
4813 # Check whether --enable-largefile was given.
4814 if test "${enable_largefile+set}" = set; then :
4815 enableval=$enable_largefile;
4816 fi
4817
4818 if test "$enable_largefile" != no; then
4819
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4821 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4822 if ${ac_cv_sys_largefile_CC+:} false; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 ac_cv_sys_largefile_CC=no
4826 if test "$GCC" != yes; then
4827 ac_save_CC=$CC
4828 while :; do
4829 # IRIX 6.2 and later do not support large files by default,
4830 # so use the C compiler's -n32 option if that helps.
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833 #include <sys/types.h>
4834 /* Check that off_t can represent 2**63 - 1 correctly.
4835 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4836 since some C++ compilers masquerading as C compilers
4837 incorrectly reject 9223372036854775807. */
4838 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4839 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4840 && LARGE_OFF_T % 2147483647 == 1)
4841 ? 1 : -1];
4842 int
4843 main ()
4844 {
4845
4846 ;
4847 return 0;
4848 }
4849 _ACEOF
4850 if ac_fn_c_try_compile "$LINENO"; then :
4851 break
4852 fi
4853 rm -f core conftest.err conftest.$ac_objext
4854 CC="$CC -n32"
4855 if ac_fn_c_try_compile "$LINENO"; then :
4856 ac_cv_sys_largefile_CC=' -n32'; break
4857 fi
4858 rm -f core conftest.err conftest.$ac_objext
4859 break
4860 done
4861 CC=$ac_save_CC
4862 rm -f conftest.$ac_ext
4863 fi
4864 fi
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4866 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4867 if test "$ac_cv_sys_largefile_CC" != no; then
4868 CC=$CC$ac_cv_sys_largefile_CC
4869 fi
4870
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4872 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4873 if ${ac_cv_sys_file_offset_bits+:} false; then :
4874 $as_echo_n "(cached) " >&6
4875 else
4876 while :; do
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4879 #include <sys/types.h>
4880 /* Check that off_t can represent 2**63 - 1 correctly.
4881 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4882 since some C++ compilers masquerading as C compilers
4883 incorrectly reject 9223372036854775807. */
4884 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4885 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4886 && LARGE_OFF_T % 2147483647 == 1)
4887 ? 1 : -1];
4888 int
4889 main ()
4890 {
4891
4892 ;
4893 return 0;
4894 }
4895 _ACEOF
4896 if ac_fn_c_try_compile "$LINENO"; then :
4897 ac_cv_sys_file_offset_bits=no; break
4898 fi
4899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4902 #define _FILE_OFFSET_BITS 64
4903 #include <sys/types.h>
4904 /* Check that off_t can represent 2**63 - 1 correctly.
4905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4906 since some C++ compilers masquerading as C compilers
4907 incorrectly reject 9223372036854775807. */
4908 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4910 && LARGE_OFF_T % 2147483647 == 1)
4911 ? 1 : -1];
4912 int
4913 main ()
4914 {
4915
4916 ;
4917 return 0;
4918 }
4919 _ACEOF
4920 if ac_fn_c_try_compile "$LINENO"; then :
4921 ac_cv_sys_file_offset_bits=64; break
4922 fi
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 ac_cv_sys_file_offset_bits=unknown
4925 break
4926 done
4927 fi
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4929 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4930 case $ac_cv_sys_file_offset_bits in #(
4931 no | unknown) ;;
4932 *)
4933 cat >>confdefs.h <<_ACEOF
4934 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4935 _ACEOF
4936 ;;
4937 esac
4938 rm -rf conftest*
4939 if test $ac_cv_sys_file_offset_bits = unknown; then
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4941 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4942 if ${ac_cv_sys_large_files+:} false; then :
4943 $as_echo_n "(cached) " >&6
4944 else
4945 while :; do
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 #include <sys/types.h>
4949 /* Check that off_t can represent 2**63 - 1 correctly.
4950 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4951 since some C++ compilers masquerading as C compilers
4952 incorrectly reject 9223372036854775807. */
4953 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4954 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4955 && LARGE_OFF_T % 2147483647 == 1)
4956 ? 1 : -1];
4957 int
4958 main ()
4959 {
4960
4961 ;
4962 return 0;
4963 }
4964 _ACEOF
4965 if ac_fn_c_try_compile "$LINENO"; then :
4966 ac_cv_sys_large_files=no; break
4967 fi
4968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970 /* end confdefs.h. */
4971 #define _LARGE_FILES 1
4972 #include <sys/types.h>
4973 /* Check that off_t can represent 2**63 - 1 correctly.
4974 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4975 since some C++ compilers masquerading as C compilers
4976 incorrectly reject 9223372036854775807. */
4977 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
4978 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4979 && LARGE_OFF_T % 2147483647 == 1)
4980 ? 1 : -1];
4981 int
4982 main ()
4983 {
4984
4985 ;
4986 return 0;
4987 }
4988 _ACEOF
4989 if ac_fn_c_try_compile "$LINENO"; then :
4990 ac_cv_sys_large_files=1; break
4991 fi
4992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 ac_cv_sys_large_files=unknown
4994 break
4995 done
4996 fi
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4998 $as_echo "$ac_cv_sys_large_files" >&6; }
4999 case $ac_cv_sys_large_files in #(
5000 no | unknown) ;;
5001 *)
5002 cat >>confdefs.h <<_ACEOF
5003 #define _LARGE_FILES $ac_cv_sys_large_files
5004 _ACEOF
5005 ;;
5006 esac
5007 rm -rf conftest*
5008 fi
5009
5010
5011 fi
5012
5013 ac_ext=c
5014 ac_cpp='$CPP $CPPFLAGS'
5015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5018 if test -n "$ac_tool_prefix"; then
5019 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5020 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if ${ac_cv_prog_CC+:} false; then :
5024 $as_echo_n "(cached) " >&6
5025 else
5026 if test -n "$CC"; then
5027 ac_cv_prog_CC="$CC" # Let the user override the test.
5028 else
5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 for as_dir in $PATH
5031 do
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5036 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 break 2
5039 fi
5040 done
5041 done
5042 IFS=$as_save_IFS
5043
5044 fi
5045 fi
5046 CC=$ac_cv_prog_CC
5047 if test -n "$CC"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5049 $as_echo "$CC" >&6; }
5050 else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5052 $as_echo "no" >&6; }
5053 fi
5054
5055
5056 fi
5057 if test -z "$ac_cv_prog_CC"; then
5058 ac_ct_CC=$CC
5059 # Extract the first word of "gcc", so it can be a program name with args.
5060 set dummy gcc; ac_word=$2
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5064 $as_echo_n "(cached) " >&6
5065 else
5066 if test -n "$ac_ct_CC"; then
5067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5068 else
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5071 do
5072 IFS=$as_save_IFS
5073 test -z "$as_dir" && as_dir=.
5074 for ac_exec_ext in '' $ac_executable_extensions; do
5075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5076 ac_cv_prog_ac_ct_CC="gcc"
5077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078 break 2
5079 fi
5080 done
5081 done
5082 IFS=$as_save_IFS
5083
5084 fi
5085 fi
5086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5087 if test -n "$ac_ct_CC"; then
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5089 $as_echo "$ac_ct_CC" >&6; }
5090 else
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5093 fi
5094
5095 if test "x$ac_ct_CC" = x; then
5096 CC=""
5097 else
5098 case $cross_compiling:$ac_tool_warned in
5099 yes:)
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5102 ac_tool_warned=yes ;;
5103 esac
5104 CC=$ac_ct_CC
5105 fi
5106 else
5107 CC="$ac_cv_prog_CC"
5108 fi
5109
5110 if test -z "$CC"; then
5111 if test -n "$ac_tool_prefix"; then
5112 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5113 set dummy ${ac_tool_prefix}cc; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if ${ac_cv_prog_CC+:} false; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 if test -n "$CC"; then
5120 ac_cv_prog_CC="$CC" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129 ac_cv_prog_CC="${ac_tool_prefix}cc"
5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 break 2
5132 fi
5133 done
5134 done
5135 IFS=$as_save_IFS
5136
5137 fi
5138 fi
5139 CC=$ac_cv_prog_CC
5140 if test -n "$CC"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5142 $as_echo "$CC" >&6; }
5143 else
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5146 fi
5147
5148
5149 fi
5150 fi
5151 if test -z "$CC"; then
5152 # Extract the first word of "cc", so it can be a program name with args.
5153 set dummy cc; ac_word=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if ${ac_cv_prog_CC+:} false; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 if test -n "$CC"; then
5160 ac_cv_prog_CC="$CC" # Let the user override the test.
5161 else
5162 ac_prog_rejected=no
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5170 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5171 ac_prog_rejected=yes
5172 continue
5173 fi
5174 ac_cv_prog_CC="cc"
5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5177 fi
5178 done
5179 done
5180 IFS=$as_save_IFS
5181
5182 if test $ac_prog_rejected = yes; then
5183 # We found a bogon in the path, so make sure we never use it.
5184 set dummy $ac_cv_prog_CC
5185 shift
5186 if test $# != 0; then
5187 # We chose a different compiler from the bogus one.
5188 # However, it has the same basename, so the bogon will be chosen
5189 # first if we set CC to just the basename; use the full file name.
5190 shift
5191 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5192 fi
5193 fi
5194 fi
5195 fi
5196 CC=$ac_cv_prog_CC
5197 if test -n "$CC"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5199 $as_echo "$CC" >&6; }
5200 else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5203 fi
5204
5205
5206 fi
5207 if test -z "$CC"; then
5208 if test -n "$ac_tool_prefix"; then
5209 for ac_prog in cl.exe
5210 do
5211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if ${ac_cv_prog_CC+:} false; then :
5216 $as_echo_n "(cached) " >&6
5217 else
5218 if test -n "$CC"; then
5219 ac_cv_prog_CC="$CC" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5231 fi
5232 done
5233 done
5234 IFS=$as_save_IFS
5235
5236 fi
5237 fi
5238 CC=$ac_cv_prog_CC
5239 if test -n "$CC"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5241 $as_echo "$CC" >&6; }
5242 else
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5245 fi
5246
5247
5248 test -n "$CC" && break
5249 done
5250 fi
5251 if test -z "$CC"; then
5252 ac_ct_CC=$CC
5253 for ac_prog in cl.exe
5254 do
5255 # Extract the first word of "$ac_prog", so it can be a program name with args.
5256 set dummy $ac_prog; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 if test -n "$ac_ct_CC"; then
5263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5267 do
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272 ac_cv_prog_ac_ct_CC="$ac_prog"
5273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5275 fi
5276 done
5277 done
5278 IFS=$as_save_IFS
5279
5280 fi
5281 fi
5282 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5283 if test -n "$ac_ct_CC"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5285 $as_echo "$ac_ct_CC" >&6; }
5286 else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5289 fi
5290
5291
5292 test -n "$ac_ct_CC" && break
5293 done
5294
5295 if test "x$ac_ct_CC" = x; then
5296 CC=""
5297 else
5298 case $cross_compiling:$ac_tool_warned in
5299 yes:)
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5302 ac_tool_warned=yes ;;
5303 esac
5304 CC=$ac_ct_CC
5305 fi
5306 fi
5307
5308 fi
5309
5310
5311 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5313 as_fn_error $? "no acceptable C compiler found in \$PATH
5314 See \`config.log' for more details" "$LINENO" 5; }
5315
5316 # Provide some information about the compiler.
5317 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5318 set X $ac_compile
5319 ac_compiler=$2
5320 for ac_option in --version -v -V -qversion; do
5321 { { ac_try="$ac_compiler $ac_option >&5"
5322 case "(($ac_try" in
5323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5324 *) ac_try_echo=$ac_try;;
5325 esac
5326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5327 $as_echo "$ac_try_echo"; } >&5
5328 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5329 ac_status=$?
5330 if test -s conftest.err; then
5331 sed '10a\
5332 ... rest of stderr output deleted ...
5333 10q' conftest.err >conftest.er1
5334 cat conftest.er1 >&5
5335 fi
5336 rm -f conftest.er1 conftest.err
5337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5338 test $ac_status = 0; }
5339 done
5340
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5342 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5343 if ${ac_cv_c_compiler_gnu+:} false; then :
5344 $as_echo_n "(cached) " >&6
5345 else
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5348
5349 int
5350 main ()
5351 {
5352 #ifndef __GNUC__
5353 choke me
5354 #endif
5355
5356 ;
5357 return 0;
5358 }
5359 _ACEOF
5360 if ac_fn_c_try_compile "$LINENO"; then :
5361 ac_compiler_gnu=yes
5362 else
5363 ac_compiler_gnu=no
5364 fi
5365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5366 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5367
5368 fi
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5370 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5371 if test $ac_compiler_gnu = yes; then
5372 GCC=yes
5373 else
5374 GCC=
5375 fi
5376 ac_test_CFLAGS=${CFLAGS+set}
5377 ac_save_CFLAGS=$CFLAGS
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5379 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5380 if ${ac_cv_prog_cc_g+:} false; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 ac_save_c_werror_flag=$ac_c_werror_flag
5384 ac_c_werror_flag=yes
5385 ac_cv_prog_cc_g=no
5386 CFLAGS="-g"
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389
5390 int
5391 main ()
5392 {
5393
5394 ;
5395 return 0;
5396 }
5397 _ACEOF
5398 if ac_fn_c_try_compile "$LINENO"; then :
5399 ac_cv_prog_cc_g=yes
5400 else
5401 CFLAGS=""
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404
5405 int
5406 main ()
5407 {
5408
5409 ;
5410 return 0;
5411 }
5412 _ACEOF
5413 if ac_fn_c_try_compile "$LINENO"; then :
5414
5415 else
5416 ac_c_werror_flag=$ac_save_c_werror_flag
5417 CFLAGS="-g"
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419 /* end confdefs.h. */
5420
5421 int
5422 main ()
5423 {
5424
5425 ;
5426 return 0;
5427 }
5428 _ACEOF
5429 if ac_fn_c_try_compile "$LINENO"; then :
5430 ac_cv_prog_cc_g=yes
5431 fi
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433 fi
5434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5435 fi
5436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5437 ac_c_werror_flag=$ac_save_c_werror_flag
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5440 $as_echo "$ac_cv_prog_cc_g" >&6; }
5441 if test "$ac_test_CFLAGS" = set; then
5442 CFLAGS=$ac_save_CFLAGS
5443 elif test $ac_cv_prog_cc_g = yes; then
5444 if test "$GCC" = yes; then
5445 CFLAGS="-g -O2"
5446 else
5447 CFLAGS="-g"
5448 fi
5449 else
5450 if test "$GCC" = yes; then
5451 CFLAGS="-O2"
5452 else
5453 CFLAGS=
5454 fi
5455 fi
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5457 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5458 if ${ac_cv_prog_cc_c89+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 ac_cv_prog_cc_c89=no
5462 ac_save_CC=$CC
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h. */
5465 #include <stdarg.h>
5466 #include <stdio.h>
5467 struct stat;
5468 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5469 struct buf { int x; };
5470 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5471 static char *e (p, i)
5472 char **p;
5473 int i;
5474 {
5475 return p[i];
5476 }
5477 static char *f (char * (*g) (char **, int), char **p, ...)
5478 {
5479 char *s;
5480 va_list v;
5481 va_start (v,p);
5482 s = g (p, va_arg (v,int));
5483 va_end (v);
5484 return s;
5485 }
5486
5487 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5488 function prototypes and stuff, but not '\xHH' hex character constants.
5489 These don't provoke an error unfortunately, instead are silently treated
5490 as 'x'. The following induces an error, until -std is added to get
5491 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5492 array size at least. It's necessary to write '\x00'==0 to get something
5493 that's true only with -std. */
5494 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5495
5496 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5497 inside strings and character constants. */
5498 #define FOO(x) 'x'
5499 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5500
5501 int test (int i, double x);
5502 struct s1 {int (*f) (int a);};
5503 struct s2 {int (*f) (double a);};
5504 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5505 int argc;
5506 char **argv;
5507 int
5508 main ()
5509 {
5510 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5511 ;
5512 return 0;
5513 }
5514 _ACEOF
5515 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5516 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5517 do
5518 CC="$ac_save_CC $ac_arg"
5519 if ac_fn_c_try_compile "$LINENO"; then :
5520 ac_cv_prog_cc_c89=$ac_arg
5521 fi
5522 rm -f core conftest.err conftest.$ac_objext
5523 test "x$ac_cv_prog_cc_c89" != "xno" && break
5524 done
5525 rm -f conftest.$ac_ext
5526 CC=$ac_save_CC
5527
5528 fi
5529 # AC_CACHE_VAL
5530 case "x$ac_cv_prog_cc_c89" in
5531 x)
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5533 $as_echo "none needed" >&6; } ;;
5534 xno)
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5536 $as_echo "unsupported" >&6; } ;;
5537 *)
5538 CC="$CC $ac_cv_prog_cc_c89"
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5540 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5541 esac
5542 if test "x$ac_cv_prog_cc_c89" != xno; then :
5543
5544 fi
5545
5546 ac_ext=c
5547 ac_cpp='$CPP $CPPFLAGS'
5548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5551
5552 ac_ext=c
5553 ac_cpp='$CPP $CPPFLAGS'
5554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5558 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5559 if ${am_cv_prog_cc_c_o+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5564
5565 int
5566 main ()
5567 {
5568
5569 ;
5570 return 0;
5571 }
5572 _ACEOF
5573 # Make sure it works both with $CC and with simple cc.
5574 # Following AC_PROG_CC_C_O, we do the test twice because some
5575 # compilers refuse to overwrite an existing .o file with -o,
5576 # though they will create one.
5577 am_cv_prog_cc_c_o=yes
5578 for am_i in 1 2; do
5579 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5580 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5581 ac_status=$?
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } \
5584 && test -f conftest2.$ac_objext; then
5585 : OK
5586 else
5587 am_cv_prog_cc_c_o=no
5588 break
5589 fi
5590 done
5591 rm -f core conftest*
5592 unset am_i
5593 fi
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5595 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5596 if test "$am_cv_prog_cc_c_o" != yes; then
5597 # Losing compiler, so override with the script.
5598 # FIXME: It is wrong to rewrite CC.
5599 # But if we don't then we get into trouble of one sort or another.
5600 # A longer-term fix would be to have automake use am__CC in this case,
5601 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5602 CC="$am_aux_dir/compile $CC"
5603 fi
5604 ac_ext=c
5605 ac_cpp='$CPP $CPPFLAGS'
5606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5609
5610
5611 depcc="$CC" am_compiler_list=
5612
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5614 $as_echo_n "checking dependency style of $depcc... " >&6; }
5615 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5619 # We make a subdir and do the tests there. Otherwise we can end up
5620 # making bogus files that we don't know about and never remove. For
5621 # instance it was reported that on HP-UX the gcc test will end up
5622 # making a dummy file named 'D' -- because '-MD' means "put the output
5623 # in D".
5624 rm -rf conftest.dir
5625 mkdir conftest.dir
5626 # Copy depcomp to subdir because otherwise we won't find it if we're
5627 # using a relative directory.
5628 cp "$am_depcomp" conftest.dir
5629 cd conftest.dir
5630 # We will build objects and dependencies in a subdirectory because
5631 # it helps to detect inapplicable dependency modes. For instance
5632 # both Tru64's cc and ICC support -MD to output dependencies as a
5633 # side effect of compilation, but ICC will put the dependencies in
5634 # the current directory while Tru64 will put them in the object
5635 # directory.
5636 mkdir sub
5637
5638 am_cv_CC_dependencies_compiler_type=none
5639 if test "$am_compiler_list" = ""; then
5640 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5641 fi
5642 am__universal=false
5643 case " $depcc " in #(
5644 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5645 esac
5646
5647 for depmode in $am_compiler_list; do
5648 # Setup a source with many dependencies, because some compilers
5649 # like to wrap large dependency lists on column 80 (with \), and
5650 # we should not choose a depcomp mode which is confused by this.
5651 #
5652 # We need to recreate these files for each test, as the compiler may
5653 # overwrite some of them when testing with obscure command lines.
5654 # This happens at least with the AIX C compiler.
5655 : > sub/conftest.c
5656 for i in 1 2 3 4 5 6; do
5657 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5658 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5659 # Solaris 10 /bin/sh.
5660 echo '/* dummy */' > sub/conftst$i.h
5661 done
5662 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5663
5664 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5665 # mode. It turns out that the SunPro C++ compiler does not properly
5666 # handle '-M -o', and we need to detect this. Also, some Intel
5667 # versions had trouble with output in subdirs.
5668 am__obj=sub/conftest.${OBJEXT-o}
5669 am__minus_obj="-o $am__obj"
5670 case $depmode in
5671 gcc)
5672 # This depmode causes a compiler race in universal mode.
5673 test "$am__universal" = false || continue
5674 ;;
5675 nosideeffect)
5676 # After this tag, mechanisms are not by side-effect, so they'll
5677 # only be used when explicitly requested.
5678 if test "x$enable_dependency_tracking" = xyes; then
5679 continue
5680 else
5681 break
5682 fi
5683 ;;
5684 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5685 # This compiler won't grok '-c -o', but also, the minuso test has
5686 # not run yet. These depmodes are late enough in the game, and
5687 # so weak that their functioning should not be impacted.
5688 am__obj=conftest.${OBJEXT-o}
5689 am__minus_obj=
5690 ;;
5691 none) break ;;
5692 esac
5693 if depmode=$depmode \
5694 source=sub/conftest.c object=$am__obj \
5695 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5696 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5697 >/dev/null 2>conftest.err &&
5698 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5699 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5700 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5701 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5702 # icc doesn't choke on unknown options, it will just issue warnings
5703 # or remarks (even with -Werror). So we grep stderr for any message
5704 # that says an option was ignored or not supported.
5705 # When given -MP, icc 7.0 and 7.1 complain thusly:
5706 # icc: Command line warning: ignoring option '-M'; no argument required
5707 # The diagnosis changed in icc 8.0:
5708 # icc: Command line remark: option '-MP' not supported
5709 if (grep 'ignoring option' conftest.err ||
5710 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5711 am_cv_CC_dependencies_compiler_type=$depmode
5712 break
5713 fi
5714 fi
5715 done
5716
5717 cd ..
5718 rm -rf conftest.dir
5719 else
5720 am_cv_CC_dependencies_compiler_type=none
5721 fi
5722
5723 fi
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5725 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5726 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5727
5728 if
5729 test "x$enable_dependency_tracking" != xno \
5730 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5731 am__fastdepCC_TRUE=
5732 am__fastdepCC_FALSE='#'
5733 else
5734 am__fastdepCC_TRUE='#'
5735 am__fastdepCC_FALSE=
5736 fi
5737
5738
5739 # AC_PROG_CC_STDC was merged in AC_PROG_CC in autoconf 2.70
5740 case $ac_cv_prog_cc_stdc in #(
5741 no) :
5742 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5743 *) :
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5745 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5746 if ${ac_cv_prog_cc_c99+:} false; then :
5747 $as_echo_n "(cached) " >&6
5748 else
5749 ac_cv_prog_cc_c99=no
5750 ac_save_CC=$CC
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5753 #include <stdarg.h>
5754 #include <stdbool.h>
5755 #include <stdlib.h>
5756 #include <wchar.h>
5757 #include <stdio.h>
5758
5759 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5760 #define debug(...) fprintf (stderr, __VA_ARGS__)
5761 #define showlist(...) puts (#__VA_ARGS__)
5762 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5763 static void
5764 test_varargs_macros (void)
5765 {
5766 int x = 1234;
5767 int y = 5678;
5768 debug ("Flag");
5769 debug ("X = %d\n", x);
5770 showlist (The first, second, and third items.);
5771 report (x>y, "x is %d but y is %d", x, y);
5772 }
5773
5774 // Check long long types.
5775 #define BIG64 18446744073709551615ull
5776 #define BIG32 4294967295ul
5777 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5778 #if !BIG_OK
5779 your preprocessor is broken;
5780 #endif
5781 #if BIG_OK
5782 #else
5783 your preprocessor is broken;
5784 #endif
5785 static long long int bignum = -9223372036854775807LL;
5786 static unsigned long long int ubignum = BIG64;
5787
5788 struct incomplete_array
5789 {
5790 int datasize;
5791 double data[];
5792 };
5793
5794 struct named_init {
5795 int number;
5796 const wchar_t *name;
5797 double average;
5798 };
5799
5800 typedef const char *ccp;
5801
5802 static inline int
5803 test_restrict (ccp restrict text)
5804 {
5805 // See if C++-style comments work.
5806 // Iterate through items via the restricted pointer.
5807 // Also check for declarations in for loops.
5808 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5809 continue;
5810 return 0;
5811 }
5812
5813 // Check varargs and va_copy.
5814 static void
5815 test_varargs (const char *format, ...)
5816 {
5817 va_list args;
5818 va_start (args, format);
5819 va_list args_copy;
5820 va_copy (args_copy, args);
5821
5822 const char *str;
5823 int number;
5824 float fnumber;
5825
5826 while (*format)
5827 {
5828 switch (*format++)
5829 {
5830 case 's': // string
5831 str = va_arg (args_copy, const char *);
5832 break;
5833 case 'd': // int
5834 number = va_arg (args_copy, int);
5835 break;
5836 case 'f': // float
5837 fnumber = va_arg (args_copy, double);
5838 break;
5839 default:
5840 break;
5841 }
5842 }
5843 va_end (args_copy);
5844 va_end (args);
5845 }
5846
5847 int
5848 main ()
5849 {
5850
5851 // Check bool.
5852 _Bool success = false;
5853
5854 // Check restrict.
5855 if (test_restrict ("String literal") == 0)
5856 success = true;
5857 char *restrict newvar = "Another string";
5858
5859 // Check varargs.
5860 test_varargs ("s, d' f .", "string", 65, 34.234);
5861 test_varargs_macros ();
5862
5863 // Check flexible array members.
5864 struct incomplete_array *ia =
5865 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5866 ia->datasize = 10;
5867 for (int i = 0; i < ia->datasize; ++i)
5868 ia->data[i] = i * 1.234;
5869
5870 // Check named initializers.
5871 struct named_init ni = {
5872 .number = 34,
5873 .name = L"Test wide string",
5874 .average = 543.34343,
5875 };
5876
5877 ni.number = 58;
5878
5879 int dynamic_array[ni.number];
5880 dynamic_array[ni.number - 1] = 543;
5881
5882 // work around unused variable warnings
5883 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5884 || dynamic_array[ni.number - 1] != 543);
5885
5886 ;
5887 return 0;
5888 }
5889 _ACEOF
5890 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5891 do
5892 CC="$ac_save_CC $ac_arg"
5893 if ac_fn_c_try_compile "$LINENO"; then :
5894 ac_cv_prog_cc_c99=$ac_arg
5895 fi
5896 rm -f core conftest.err conftest.$ac_objext
5897 test "x$ac_cv_prog_cc_c99" != "xno" && break
5898 done
5899 rm -f conftest.$ac_ext
5900 CC=$ac_save_CC
5901
5902 fi
5903 # AC_CACHE_VAL
5904 case "x$ac_cv_prog_cc_c99" in
5905 x)
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5907 $as_echo "none needed" >&6; } ;;
5908 xno)
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5910 $as_echo "unsupported" >&6; } ;;
5911 *)
5912 CC="$CC $ac_cv_prog_cc_c99"
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5914 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5915 esac
5916 if test "x$ac_cv_prog_cc_c99" != xno; then :
5917 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5918 else
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5920 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5921 if ${ac_cv_prog_cc_c89+:} false; then :
5922 $as_echo_n "(cached) " >&6
5923 else
5924 ac_cv_prog_cc_c89=no
5925 ac_save_CC=$CC
5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5928 #include <stdarg.h>
5929 #include <stdio.h>
5930 struct stat;
5931 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5932 struct buf { int x; };
5933 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5934 static char *e (p, i)
5935 char **p;
5936 int i;
5937 {
5938 return p[i];
5939 }
5940 static char *f (char * (*g) (char **, int), char **p, ...)
5941 {
5942 char *s;
5943 va_list v;
5944 va_start (v,p);
5945 s = g (p, va_arg (v,int));
5946 va_end (v);
5947 return s;
5948 }
5949
5950 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5951 function prototypes and stuff, but not '\xHH' hex character constants.
5952 These don't provoke an error unfortunately, instead are silently treated
5953 as 'x'. The following induces an error, until -std is added to get
5954 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5955 array size at least. It's necessary to write '\x00'==0 to get something
5956 that's true only with -std. */
5957 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5958
5959 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5960 inside strings and character constants. */
5961 #define FOO(x) 'x'
5962 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5963
5964 int test (int i, double x);
5965 struct s1 {int (*f) (int a);};
5966 struct s2 {int (*f) (double a);};
5967 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5968 int argc;
5969 char **argv;
5970 int
5971 main ()
5972 {
5973 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5974 ;
5975 return 0;
5976 }
5977 _ACEOF
5978 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5979 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5980 do
5981 CC="$ac_save_CC $ac_arg"
5982 if ac_fn_c_try_compile "$LINENO"; then :
5983 ac_cv_prog_cc_c89=$ac_arg
5984 fi
5985 rm -f core conftest.err conftest.$ac_objext
5986 test "x$ac_cv_prog_cc_c89" != "xno" && break
5987 done
5988 rm -f conftest.$ac_ext
5989 CC=$ac_save_CC
5990
5991 fi
5992 # AC_CACHE_VAL
5993 case "x$ac_cv_prog_cc_c89" in
5994 x)
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5996 $as_echo "none needed" >&6; } ;;
5997 xno)
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5999 $as_echo "unsupported" >&6; } ;;
6000 *)
6001 CC="$CC $ac_cv_prog_cc_c89"
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6003 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6004 esac
6005 if test "x$ac_cv_prog_cc_c89" != xno; then :
6006 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6007 else
6008 ac_cv_prog_cc_stdc=no
6009 fi
6010
6011 fi
6012 ;;
6013 esac
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6015 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6016 if ${ac_cv_prog_cc_stdc+:} false; then :
6017 $as_echo_n "(cached) " >&6
6018 fi
6019
6020 case $ac_cv_prog_cc_stdc in #(
6021 no) :
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6023 $as_echo "unsupported" >&6; } ;; #(
6024 '') :
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6026 $as_echo "none needed" >&6; } ;; #(
6027 *) :
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6029 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6030 esac
6031
6032
6033 # Checks for programs.
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6035 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6036 set x ${MAKE-make}
6037 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6038 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6039 $as_echo_n "(cached) " >&6
6040 else
6041 cat >conftest.make <<\_ACEOF
6042 SHELL = /bin/sh
6043 all:
6044 @echo '@@@%%%=$(MAKE)=@@@%%%'
6045 _ACEOF
6046 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6047 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6048 *@@@%%%=?*=@@@%%%*)
6049 eval ac_cv_prog_make_${ac_make}_set=yes;;
6050 *)
6051 eval ac_cv_prog_make_${ac_make}_set=no;;
6052 esac
6053 rm -f conftest.make
6054 fi
6055 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6057 $as_echo "yes" >&6; }
6058 SET_MAKE=
6059 else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6062 SET_MAKE="MAKE=${MAKE-make}"
6063 fi
6064
6065 case `pwd` in
6066 *\ * | *\ *)
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6068 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6069 esac
6070
6071
6072
6073 macro_version='2.4.6'
6074 macro_revision='2.4.6'
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088 ltmain=$ac_aux_dir/ltmain.sh
6089
6090 # Backslashify metacharacters that are still active within
6091 # double-quoted strings.
6092 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6093
6094 # Same as above, but do not quote variable references.
6095 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6096
6097 # Sed substitution to delay expansion of an escaped shell variable in a
6098 # double_quote_subst'ed string.
6099 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6100
6101 # Sed substitution to delay expansion of an escaped single quote.
6102 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6103
6104 # Sed substitution to avoid accidental globbing in evaled expressions
6105 no_glob_subst='s/\*/\\\*/g'
6106
6107 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6108 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6109 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6110
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6112 $as_echo_n "checking how to print strings... " >&6; }
6113 # Test print first, because it will be a builtin if present.
6114 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6115 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6116 ECHO='print -r --'
6117 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6118 ECHO='printf %s\n'
6119 else
6120 # Use this function as a fallback that always works.
6121 func_fallback_echo ()
6122 {
6123 eval 'cat <<_LTECHO_EOF
6124 $1
6125 _LTECHO_EOF'
6126 }
6127 ECHO='func_fallback_echo'
6128 fi
6129
6130 # func_echo_all arg...
6131 # Invoke $ECHO with all args, space-separated.
6132 func_echo_all ()
6133 {
6134 $ECHO ""
6135 }
6136
6137 case $ECHO in
6138 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6139 $as_echo "printf" >&6; } ;;
6140 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6141 $as_echo "print -r" >&6; } ;;
6142 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6143 $as_echo "cat" >&6; } ;;
6144 esac
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6160 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6161 if ${ac_cv_path_SED+:} false; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6165 for ac_i in 1 2 3 4 5 6 7; do
6166 ac_script="$ac_script$as_nl$ac_script"
6167 done
6168 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6169 { ac_script=; unset ac_script;}
6170 if test -z "$SED"; then
6171 ac_path_SED_found=false
6172 # Loop through the user's path and test for each of PROGNAME-LIST
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6175 do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_prog in sed gsed; do
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6181 as_fn_executable_p "$ac_path_SED" || continue
6182 # Check for GNU ac_path_SED and select it if it is found.
6183 # Check for GNU $ac_path_SED
6184 case `"$ac_path_SED" --version 2>&1` in
6185 *GNU*)
6186 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6187 *)
6188 ac_count=0
6189 $as_echo_n 0123456789 >"conftest.in"
6190 while :
6191 do
6192 cat "conftest.in" "conftest.in" >"conftest.tmp"
6193 mv "conftest.tmp" "conftest.in"
6194 cp "conftest.in" "conftest.nl"
6195 $as_echo '' >> "conftest.nl"
6196 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6198 as_fn_arith $ac_count + 1 && ac_count=$as_val
6199 if test $ac_count -gt ${ac_path_SED_max-0}; then
6200 # Best one so far, save it but keep looking for a better one
6201 ac_cv_path_SED="$ac_path_SED"
6202 ac_path_SED_max=$ac_count
6203 fi
6204 # 10*(2^10) chars as input seems more than enough
6205 test $ac_count -gt 10 && break
6206 done
6207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6208 esac
6209
6210 $ac_path_SED_found && break 3
6211 done
6212 done
6213 done
6214 IFS=$as_save_IFS
6215 if test -z "$ac_cv_path_SED"; then
6216 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6217 fi
6218 else
6219 ac_cv_path_SED=$SED
6220 fi
6221
6222 fi
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6224 $as_echo "$ac_cv_path_SED" >&6; }
6225 SED="$ac_cv_path_SED"
6226 rm -f conftest.sed
6227
6228 test -z "$SED" && SED=sed
6229 Xsed="$SED -e 1s/^X//"
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6242 $as_echo_n "checking for fgrep... " >&6; }
6243 if ${ac_cv_path_FGREP+:} false; then :
6244 $as_echo_n "(cached) " >&6
6245 else
6246 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6247 then ac_cv_path_FGREP="$GREP -F"
6248 else
6249 if test -z "$FGREP"; then
6250 ac_path_FGREP_found=false
6251 # Loop through the user's path and test for each of PROGNAME-LIST
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6254 do
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_prog in fgrep; do
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6260 as_fn_executable_p "$ac_path_FGREP" || continue
6261 # Check for GNU ac_path_FGREP and select it if it is found.
6262 # Check for GNU $ac_path_FGREP
6263 case `"$ac_path_FGREP" --version 2>&1` in
6264 *GNU*)
6265 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6266 *)
6267 ac_count=0
6268 $as_echo_n 0123456789 >"conftest.in"
6269 while :
6270 do
6271 cat "conftest.in" "conftest.in" >"conftest.tmp"
6272 mv "conftest.tmp" "conftest.in"
6273 cp "conftest.in" "conftest.nl"
6274 $as_echo 'FGREP' >> "conftest.nl"
6275 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6277 as_fn_arith $ac_count + 1 && ac_count=$as_val
6278 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6279 # Best one so far, save it but keep looking for a better one
6280 ac_cv_path_FGREP="$ac_path_FGREP"
6281 ac_path_FGREP_max=$ac_count
6282 fi
6283 # 10*(2^10) chars as input seems more than enough
6284 test $ac_count -gt 10 && break
6285 done
6286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6287 esac
6288
6289 $ac_path_FGREP_found && break 3
6290 done
6291 done
6292 done
6293 IFS=$as_save_IFS
6294 if test -z "$ac_cv_path_FGREP"; then
6295 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6296 fi
6297 else
6298 ac_cv_path_FGREP=$FGREP
6299 fi
6300
6301 fi
6302 fi
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6304 $as_echo "$ac_cv_path_FGREP" >&6; }
6305 FGREP="$ac_cv_path_FGREP"
6306
6307
6308 test -z "$GREP" && GREP=grep
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328 # Check whether --with-gnu-ld was given.
6329 if test "${with_gnu_ld+set}" = set; then :
6330 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6331 else
6332 with_gnu_ld=no
6333 fi
6334
6335 ac_prog=ld
6336 if test yes = "$GCC"; then
6337 # Check if gcc -print-prog-name=ld gives a path.
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6339 $as_echo_n "checking for ld used by $CC... " >&6; }
6340 case $host in
6341 *-*-mingw*)
6342 # gcc leaves a trailing carriage return, which upsets mingw
6343 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6344 *)
6345 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6346 esac
6347 case $ac_prog in
6348 # Accept absolute paths.
6349 [\\/]* | ?:[\\/]*)
6350 re_direlt='/[^/][^/]*/\.\./'
6351 # Canonicalize the pathname of ld
6352 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6353 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6354 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6355 done
6356 test -z "$LD" && LD=$ac_prog
6357 ;;
6358 "")
6359 # If it fails, then pretend we aren't using GCC.
6360 ac_prog=ld
6361 ;;
6362 *)
6363 # If it is relative, then search for the first ld in PATH.
6364 with_gnu_ld=unknown
6365 ;;
6366 esac
6367 elif test yes = "$with_gnu_ld"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6369 $as_echo_n "checking for GNU ld... " >&6; }
6370 else
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6372 $as_echo_n "checking for non-GNU ld... " >&6; }
6373 fi
6374 if ${lt_cv_path_LD+:} false; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 if test -z "$LD"; then
6378 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6379 for ac_dir in $PATH; do
6380 IFS=$lt_save_ifs
6381 test -z "$ac_dir" && ac_dir=.
6382 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6383 lt_cv_path_LD=$ac_dir/$ac_prog
6384 # Check to see if the program is GNU ld. I'd rather use --version,
6385 # but apparently some variants of GNU ld only accept -v.
6386 # Break only if it was the GNU/non-GNU ld that we prefer.
6387 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6388 *GNU* | *'with BFD'*)
6389 test no != "$with_gnu_ld" && break
6390 ;;
6391 *)
6392 test yes != "$with_gnu_ld" && break
6393 ;;
6394 esac
6395 fi
6396 done
6397 IFS=$lt_save_ifs
6398 else
6399 lt_cv_path_LD=$LD # Let the user override the test with a path.
6400 fi
6401 fi
6402
6403 LD=$lt_cv_path_LD
6404 if test -n "$LD"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6406 $as_echo "$LD" >&6; }
6407 else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6410 fi
6411 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6413 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6414 if ${lt_cv_prog_gnu_ld+:} false; then :
6415 $as_echo_n "(cached) " >&6
6416 else
6417 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6418 case `$LD -v 2>&1 </dev/null` in
6419 *GNU* | *'with BFD'*)
6420 lt_cv_prog_gnu_ld=yes
6421 ;;
6422 *)
6423 lt_cv_prog_gnu_ld=no
6424 ;;
6425 esac
6426 fi
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6428 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6429 with_gnu_ld=$lt_cv_prog_gnu_ld
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6440 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6441 if ${lt_cv_path_NM+:} false; then :
6442 $as_echo_n "(cached) " >&6
6443 else
6444 if test -n "$NM"; then
6445 # Let the user override the test.
6446 lt_cv_path_NM=$NM
6447 else
6448 lt_nm_to_check=${ac_tool_prefix}nm
6449 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6450 lt_nm_to_check="$lt_nm_to_check nm"
6451 fi
6452 for lt_tmp_nm in $lt_nm_to_check; do
6453 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6454 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6455 IFS=$lt_save_ifs
6456 test -z "$ac_dir" && ac_dir=.
6457 tmp_nm=$ac_dir/$lt_tmp_nm
6458 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6459 # Check to see if the nm accepts a BSD-compat flag.
6460 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6461 # nm: unknown option "B" ignored
6462 # Tru64's nm complains that /dev/null is an invalid object file
6463 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6464 case $build_os in
6465 mingw*) lt_bad_file=conftest.nm/nofile ;;
6466 *) lt_bad_file=/dev/null ;;
6467 esac
6468 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6469 *$lt_bad_file* | *'Invalid file or object type'*)
6470 lt_cv_path_NM="$tmp_nm -B"
6471 break 2
6472 ;;
6473 *)
6474 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6475 */dev/null*)
6476 lt_cv_path_NM="$tmp_nm -p"
6477 break 2
6478 ;;
6479 *)
6480 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6481 continue # so that we can try to find one that supports BSD flags
6482 ;;
6483 esac
6484 ;;
6485 esac
6486 fi
6487 done
6488 IFS=$lt_save_ifs
6489 done
6490 : ${lt_cv_path_NM=no}
6491 fi
6492 fi
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6494 $as_echo "$lt_cv_path_NM" >&6; }
6495 if test no != "$lt_cv_path_NM"; then
6496 NM=$lt_cv_path_NM
6497 else
6498 # Didn't find any BSD compatible name lister, look for dumpbin.
6499 if test -n "$DUMPBIN"; then :
6500 # Let the user override the test.
6501 else
6502 if test -n "$ac_tool_prefix"; then
6503 for ac_prog in dumpbin "link -dump"
6504 do
6505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if ${ac_cv_prog_DUMPBIN+:} false; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 if test -n "$DUMPBIN"; then
6513 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6514 else
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6517 do
6518 IFS=$as_save_IFS
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6522 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 break 2
6525 fi
6526 done
6527 done
6528 IFS=$as_save_IFS
6529
6530 fi
6531 fi
6532 DUMPBIN=$ac_cv_prog_DUMPBIN
6533 if test -n "$DUMPBIN"; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6535 $as_echo "$DUMPBIN" >&6; }
6536 else
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6539 fi
6540
6541
6542 test -n "$DUMPBIN" && break
6543 done
6544 fi
6545 if test -z "$DUMPBIN"; then
6546 ac_ct_DUMPBIN=$DUMPBIN
6547 for ac_prog in dumpbin "link -dump"
6548 do
6549 # Extract the first word of "$ac_prog", so it can be a program name with args.
6550 set dummy $ac_prog; ac_word=$2
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552 $as_echo_n "checking for $ac_word... " >&6; }
6553 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6554 $as_echo_n "(cached) " >&6
6555 else
6556 if test -n "$ac_ct_DUMPBIN"; then
6557 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6558 else
6559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 for as_dir in $PATH
6561 do
6562 IFS=$as_save_IFS
6563 test -z "$as_dir" && as_dir=.
6564 for ac_exec_ext in '' $ac_executable_extensions; do
6565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6566 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 break 2
6569 fi
6570 done
6571 done
6572 IFS=$as_save_IFS
6573
6574 fi
6575 fi
6576 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6577 if test -n "$ac_ct_DUMPBIN"; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6579 $as_echo "$ac_ct_DUMPBIN" >&6; }
6580 else
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6582 $as_echo "no" >&6; }
6583 fi
6584
6585
6586 test -n "$ac_ct_DUMPBIN" && break
6587 done
6588
6589 if test "x$ac_ct_DUMPBIN" = x; then
6590 DUMPBIN=":"
6591 else
6592 case $cross_compiling:$ac_tool_warned in
6593 yes:)
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6596 ac_tool_warned=yes ;;
6597 esac
6598 DUMPBIN=$ac_ct_DUMPBIN
6599 fi
6600 fi
6601
6602 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6603 *COFF*)
6604 DUMPBIN="$DUMPBIN -symbols -headers"
6605 ;;
6606 *)
6607 DUMPBIN=:
6608 ;;
6609 esac
6610 fi
6611
6612 if test : != "$DUMPBIN"; then
6613 NM=$DUMPBIN
6614 fi
6615 fi
6616 test -z "$NM" && NM=nm
6617
6618
6619
6620
6621
6622
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6624 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6625 if ${lt_cv_nm_interface+:} false; then :
6626 $as_echo_n "(cached) " >&6
6627 else
6628 lt_cv_nm_interface="BSD nm"
6629 echo "int some_variable = 0;" > conftest.$ac_ext
6630 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6631 (eval "$ac_compile" 2>conftest.err)
6632 cat conftest.err >&5
6633 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6634 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6635 cat conftest.err >&5
6636 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6637 cat conftest.out >&5
6638 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6639 lt_cv_nm_interface="MS dumpbin"
6640 fi
6641 rm -f conftest*
6642 fi
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6644 $as_echo "$lt_cv_nm_interface" >&6; }
6645
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6647 $as_echo_n "checking whether ln -s works... " >&6; }
6648 LN_S=$as_ln_s
6649 if test "$LN_S" = "ln -s"; then
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6651 $as_echo "yes" >&6; }
6652 else
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6654 $as_echo "no, using $LN_S" >&6; }
6655 fi
6656
6657 # find the maximum length of command line arguments
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6659 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6660 if ${lt_cv_sys_max_cmd_len+:} false; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 i=0
6664 teststring=ABCD
6665
6666 case $build_os in
6667 msdosdjgpp*)
6668 # On DJGPP, this test can blow up pretty badly due to problems in libc
6669 # (any single argument exceeding 2000 bytes causes a buffer overrun
6670 # during glob expansion). Even if it were fixed, the result of this
6671 # check would be larger than it should be.
6672 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6673 ;;
6674
6675 gnu*)
6676 # Under GNU Hurd, this test is not required because there is
6677 # no limit to the length of command line arguments.
6678 # Libtool will interpret -1 as no limit whatsoever
6679 lt_cv_sys_max_cmd_len=-1;
6680 ;;
6681
6682 cygwin* | mingw* | cegcc*)
6683 # On Win9x/ME, this test blows up -- it succeeds, but takes
6684 # about 5 minutes as the teststring grows exponentially.
6685 # Worse, since 9x/ME are not pre-emptively multitasking,
6686 # you end up with a "frozen" computer, even though with patience
6687 # the test eventually succeeds (with a max line length of 256k).
6688 # Instead, let's just punt: use the minimum linelength reported by
6689 # all of the supported platforms: 8192 (on NT/2K/XP).
6690 lt_cv_sys_max_cmd_len=8192;
6691 ;;
6692
6693 mint*)
6694 # On MiNT this can take a long time and run out of memory.
6695 lt_cv_sys_max_cmd_len=8192;
6696 ;;
6697
6698 amigaos*)
6699 # On AmigaOS with pdksh, this test takes hours, literally.
6700 # So we just punt and use a minimum line length of 8192.
6701 lt_cv_sys_max_cmd_len=8192;
6702 ;;
6703
6704 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6705 # This has been around since 386BSD, at least. Likely further.
6706 if test -x /sbin/sysctl; then
6707 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6708 elif test -x /usr/sbin/sysctl; then
6709 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6710 else
6711 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6712 fi
6713 # And add a safety zone
6714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6716 ;;
6717
6718 interix*)
6719 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6720 lt_cv_sys_max_cmd_len=196608
6721 ;;
6722
6723 os2*)
6724 # The test takes a long time on OS/2.
6725 lt_cv_sys_max_cmd_len=8192
6726 ;;
6727
6728 osf*)
6729 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6730 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6731 # nice to cause kernel panics so lets avoid the loop below.
6732 # First set a reasonable default.
6733 lt_cv_sys_max_cmd_len=16384
6734 #
6735 if test -x /sbin/sysconfig; then
6736 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6737 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6738 esac
6739 fi
6740 ;;
6741 sco3.2v5*)
6742 lt_cv_sys_max_cmd_len=102400
6743 ;;
6744 sysv5* | sco5v6* | sysv4.2uw2*)
6745 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6746 if test -n "$kargmax"; then
6747 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6748 else
6749 lt_cv_sys_max_cmd_len=32768
6750 fi
6751 ;;
6752 *)
6753 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6754 if test -n "$lt_cv_sys_max_cmd_len" && \
6755 test undefined != "$lt_cv_sys_max_cmd_len"; then
6756 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6757 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6758 else
6759 # Make teststring a little bigger before we do anything with it.
6760 # a 1K string should be a reasonable start.
6761 for i in 1 2 3 4 5 6 7 8; do
6762 teststring=$teststring$teststring
6763 done
6764 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6765 # If test is not a shell built-in, we'll probably end up computing a
6766 # maximum length that is only half of the actual maximum length, but
6767 # we can't tell.
6768 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6769 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6770 test 17 != "$i" # 1/2 MB should be enough
6771 do
6772 i=`expr $i + 1`
6773 teststring=$teststring$teststring
6774 done
6775 # Only check the string length outside the loop.
6776 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6777 teststring=
6778 # Add a significant safety factor because C++ compilers can tack on
6779 # massive amounts of additional arguments before passing them to the
6780 # linker. It appears as though 1/2 is a usable value.
6781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6782 fi
6783 ;;
6784 esac
6785
6786 fi
6787
6788 if test -n "$lt_cv_sys_max_cmd_len"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6790 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6791 else
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6793 $as_echo "none" >&6; }
6794 fi
6795 max_cmd_len=$lt_cv_sys_max_cmd_len
6796
6797
6798
6799
6800
6801
6802 : ${CP="cp -f"}
6803 : ${MV="mv -f"}
6804 : ${RM="rm -f"}
6805
6806 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6807 lt_unset=unset
6808 else
6809 lt_unset=false
6810 fi
6811
6812
6813
6814
6815
6816 # test EBCDIC or ASCII
6817 case `echo X|tr X '\101'` in
6818 A) # ASCII based system
6819 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6820 lt_SP2NL='tr \040 \012'
6821 lt_NL2SP='tr \015\012 \040\040'
6822 ;;
6823 *) # EBCDIC based system
6824 lt_SP2NL='tr \100 \n'
6825 lt_NL2SP='tr \r\n \100\100'
6826 ;;
6827 esac
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6838 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6839 if ${lt_cv_to_host_file_cmd+:} false; then :
6840 $as_echo_n "(cached) " >&6
6841 else
6842 case $host in
6843 *-*-mingw* )
6844 case $build in
6845 *-*-mingw* ) # actually msys
6846 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6847 ;;
6848 *-*-cygwin* )
6849 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6850 ;;
6851 * ) # otherwise, assume *nix
6852 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6853 ;;
6854 esac
6855 ;;
6856 *-*-cygwin* )
6857 case $build in
6858 *-*-mingw* ) # actually msys
6859 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6860 ;;
6861 *-*-cygwin* )
6862 lt_cv_to_host_file_cmd=func_convert_file_noop
6863 ;;
6864 * ) # otherwise, assume *nix
6865 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6866 ;;
6867 esac
6868 ;;
6869 * ) # unhandled hosts (and "normal" native builds)
6870 lt_cv_to_host_file_cmd=func_convert_file_noop
6871 ;;
6872 esac
6873
6874 fi
6875
6876 to_host_file_cmd=$lt_cv_to_host_file_cmd
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6878 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6879
6880
6881
6882
6883
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6885 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6886 if ${lt_cv_to_tool_file_cmd+:} false; then :
6887 $as_echo_n "(cached) " >&6
6888 else
6889 #assume ordinary cross tools, or native build.
6890 lt_cv_to_tool_file_cmd=func_convert_file_noop
6891 case $host in
6892 *-*-mingw* )
6893 case $build in
6894 *-*-mingw* ) # actually msys
6895 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6896 ;;
6897 esac
6898 ;;
6899 esac
6900
6901 fi
6902
6903 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6905 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6906
6907
6908
6909
6910
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6912 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6913 if ${lt_cv_ld_reload_flag+:} false; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 lt_cv_ld_reload_flag='-r'
6917 fi
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6919 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6920 reload_flag=$lt_cv_ld_reload_flag
6921 case $reload_flag in
6922 "" | " "*) ;;
6923 *) reload_flag=" $reload_flag" ;;
6924 esac
6925 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6926 case $host_os in
6927 cygwin* | mingw* | pw32* | cegcc*)
6928 if test yes != "$GCC"; then
6929 reload_cmds=false
6930 fi
6931 ;;
6932 darwin*)
6933 if test yes = "$GCC"; then
6934 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6935 else
6936 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6937 fi
6938 ;;
6939 esac
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949 if test -n "$ac_tool_prefix"; then
6950 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6951 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953 $as_echo_n "checking for $ac_word... " >&6; }
6954 if ${ac_cv_prog_OBJDUMP+:} false; then :
6955 $as_echo_n "(cached) " >&6
6956 else
6957 if test -n "$OBJDUMP"; then
6958 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6959 else
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6962 do
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6970 fi
6971 done
6972 done
6973 IFS=$as_save_IFS
6974
6975 fi
6976 fi
6977 OBJDUMP=$ac_cv_prog_OBJDUMP
6978 if test -n "$OBJDUMP"; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6980 $as_echo "$OBJDUMP" >&6; }
6981 else
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 $as_echo "no" >&6; }
6984 fi
6985
6986
6987 fi
6988 if test -z "$ac_cv_prog_OBJDUMP"; then
6989 ac_ct_OBJDUMP=$OBJDUMP
6990 # Extract the first word of "objdump", so it can be a program name with args.
6991 set dummy objdump; ac_word=$2
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993 $as_echo_n "checking for $ac_word... " >&6; }
6994 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997 if test -n "$ac_ct_OBJDUMP"; then
6998 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6999 else
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7001 for as_dir in $PATH
7002 do
7003 IFS=$as_save_IFS
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7009 break 2
7010 fi
7011 done
7012 done
7013 IFS=$as_save_IFS
7014
7015 fi
7016 fi
7017 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7018 if test -n "$ac_ct_OBJDUMP"; then
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7020 $as_echo "$ac_ct_OBJDUMP" >&6; }
7021 else
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7024 fi
7025
7026 if test "x$ac_ct_OBJDUMP" = x; then
7027 OBJDUMP="false"
7028 else
7029 case $cross_compiling:$ac_tool_warned in
7030 yes:)
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7033 ac_tool_warned=yes ;;
7034 esac
7035 OBJDUMP=$ac_ct_OBJDUMP
7036 fi
7037 else
7038 OBJDUMP="$ac_cv_prog_OBJDUMP"
7039 fi
7040
7041 test -z "$OBJDUMP" && OBJDUMP=objdump
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7052 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7053 if ${lt_cv_deplibs_check_method+:} false; then :
7054 $as_echo_n "(cached) " >&6
7055 else
7056 lt_cv_file_magic_cmd='$MAGIC_CMD'
7057 lt_cv_file_magic_test_file=
7058 lt_cv_deplibs_check_method='unknown'
7059 # Need to set the preceding variable on all platforms that support
7060 # interlibrary dependencies.
7061 # 'none' -- dependencies not supported.
7062 # 'unknown' -- same as none, but documents that we really don't know.
7063 # 'pass_all' -- all dependencies passed with no checks.
7064 # 'test_compile' -- check by making test program.
7065 # 'file_magic [[regex]]' -- check by looking for files in library path
7066 # that responds to the $file_magic_cmd with a given extended regex.
7067 # If you have 'file' or equivalent on your system and you're not sure
7068 # whether 'pass_all' will *always* work, you probably want this one.
7069
7070 case $host_os in
7071 aix[4-9]*)
7072 lt_cv_deplibs_check_method=pass_all
7073 ;;
7074
7075 beos*)
7076 lt_cv_deplibs_check_method=pass_all
7077 ;;
7078
7079 bsdi[45]*)
7080 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7081 lt_cv_file_magic_cmd='/usr/bin/file -L'
7082 lt_cv_file_magic_test_file=/shlib/libc.so
7083 ;;
7084
7085 cygwin*)
7086 # func_win32_libid is a shell function defined in ltmain.sh
7087 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7088 lt_cv_file_magic_cmd='func_win32_libid'
7089 ;;
7090
7091 mingw* | pw32*)
7092 # Base MSYS/MinGW do not provide the 'file' command needed by
7093 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7094 # unless we find 'file', for example because we are cross-compiling.
7095 if ( file / ) >/dev/null 2>&1; then
7096 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7097 lt_cv_file_magic_cmd='func_win32_libid'
7098 else
7099 # Keep this pattern in sync with the one in func_win32_libid.
7100 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7101 lt_cv_file_magic_cmd='$OBJDUMP -f'
7102 fi
7103 ;;
7104
7105 cegcc*)
7106 # use the weaker test based on 'objdump'. See mingw*.
7107 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7108 lt_cv_file_magic_cmd='$OBJDUMP -f'
7109 ;;
7110
7111 darwin* | rhapsody*)
7112 lt_cv_deplibs_check_method=pass_all
7113 ;;
7114
7115 freebsd* | dragonfly*)
7116 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7117 case $host_cpu in
7118 i*86 )
7119 # Not sure whether the presence of OpenBSD here was a mistake.
7120 # Let's accept both of them until this is cleared up.
7121 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7122 lt_cv_file_magic_cmd=/usr/bin/file
7123 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7124 ;;
7125 esac
7126 else
7127 lt_cv_deplibs_check_method=pass_all
7128 fi
7129 ;;
7130
7131 haiku*)
7132 lt_cv_deplibs_check_method=pass_all
7133 ;;
7134
7135 hpux10.20* | hpux11*)
7136 lt_cv_file_magic_cmd=/usr/bin/file
7137 case $host_cpu in
7138 ia64*)
7139 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7140 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7141 ;;
7142 hppa*64*)
7143 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]'
7144 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7145 ;;
7146 *)
7147 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7148 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7149 ;;
7150 esac
7151 ;;
7152
7153 interix[3-9]*)
7154 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7155 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7156 ;;
7157
7158 irix5* | irix6* | nonstopux*)
7159 case $LD in
7160 *-32|*"-32 ") libmagic=32-bit;;
7161 *-n32|*"-n32 ") libmagic=N32;;
7162 *-64|*"-64 ") libmagic=64-bit;;
7163 *) libmagic=never-match;;
7164 esac
7165 lt_cv_deplibs_check_method=pass_all
7166 ;;
7167
7168 # This must be glibc/ELF.
7169 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7170 lt_cv_deplibs_check_method=pass_all
7171 ;;
7172
7173 netbsd* | netbsdelf*-gnu)
7174 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7175 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7176 else
7177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7178 fi
7179 ;;
7180
7181 newos6*)
7182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7183 lt_cv_file_magic_cmd=/usr/bin/file
7184 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7185 ;;
7186
7187 *nto* | *qnx*)
7188 lt_cv_deplibs_check_method=pass_all
7189 ;;
7190
7191 openbsd* | bitrig*)
7192 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7194 else
7195 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7196 fi
7197 ;;
7198
7199 osf3* | osf4* | osf5*)
7200 lt_cv_deplibs_check_method=pass_all
7201 ;;
7202
7203 rdos*)
7204 lt_cv_deplibs_check_method=pass_all
7205 ;;
7206
7207 solaris*)
7208 lt_cv_deplibs_check_method=pass_all
7209 ;;
7210
7211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7212 lt_cv_deplibs_check_method=pass_all
7213 ;;
7214
7215 sysv4 | sysv4.3*)
7216 case $host_vendor in
7217 motorola)
7218 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]'
7219 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7220 ;;
7221 ncr)
7222 lt_cv_deplibs_check_method=pass_all
7223 ;;
7224 sequent)
7225 lt_cv_file_magic_cmd='/bin/file'
7226 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7227 ;;
7228 sni)
7229 lt_cv_file_magic_cmd='/bin/file'
7230 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7231 lt_cv_file_magic_test_file=/lib/libc.so
7232 ;;
7233 siemens)
7234 lt_cv_deplibs_check_method=pass_all
7235 ;;
7236 pc)
7237 lt_cv_deplibs_check_method=pass_all
7238 ;;
7239 esac
7240 ;;
7241
7242 tpf*)
7243 lt_cv_deplibs_check_method=pass_all
7244 ;;
7245 os2*)
7246 lt_cv_deplibs_check_method=pass_all
7247 ;;
7248 esac
7249
7250 fi
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7252 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7253
7254 file_magic_glob=
7255 want_nocaseglob=no
7256 if test "$build" = "$host"; then
7257 case $host_os in
7258 mingw* | pw32*)
7259 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7260 want_nocaseglob=yes
7261 else
7262 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7263 fi
7264 ;;
7265 esac
7266 fi
7267
7268 file_magic_cmd=$lt_cv_file_magic_cmd
7269 deplibs_check_method=$lt_cv_deplibs_check_method
7270 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293 if test -n "$ac_tool_prefix"; then
7294 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_DLLTOOL+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300 else
7301 if test -n "$DLLTOOL"; then
7302 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 break 2
7314 fi
7315 done
7316 done
7317 IFS=$as_save_IFS
7318
7319 fi
7320 fi
7321 DLLTOOL=$ac_cv_prog_DLLTOOL
7322 if test -n "$DLLTOOL"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7324 $as_echo "$DLLTOOL" >&6; }
7325 else
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329
7330
7331 fi
7332 if test -z "$ac_cv_prog_DLLTOOL"; then
7333 ac_ct_DLLTOOL=$DLLTOOL
7334 # Extract the first word of "dlltool", so it can be a program name with args.
7335 set dummy dlltool; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 if test -n "$ac_ct_DLLTOOL"; then
7342 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7354 fi
7355 done
7356 done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7362 if test -n "$ac_ct_DLLTOOL"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7364 $as_echo "$ac_ct_DLLTOOL" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370 if test "x$ac_ct_DLLTOOL" = x; then
7371 DLLTOOL="false"
7372 else
7373 case $cross_compiling:$ac_tool_warned in
7374 yes:)
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377 ac_tool_warned=yes ;;
7378 esac
7379 DLLTOOL=$ac_ct_DLLTOOL
7380 fi
7381 else
7382 DLLTOOL="$ac_cv_prog_DLLTOOL"
7383 fi
7384
7385 test -z "$DLLTOOL" && DLLTOOL=dlltool
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7397 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7398 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7399 $as_echo_n "(cached) " >&6
7400 else
7401 lt_cv_sharedlib_from_linklib_cmd='unknown'
7402
7403 case $host_os in
7404 cygwin* | mingw* | pw32* | cegcc*)
7405 # two different shell functions defined in ltmain.sh;
7406 # decide which one to use based on capabilities of $DLLTOOL
7407 case `$DLLTOOL --help 2>&1` in
7408 *--identify-strict*)
7409 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7410 ;;
7411 *)
7412 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7413 ;;
7414 esac
7415 ;;
7416 *)
7417 # fallback: assume linklib IS sharedlib
7418 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7419 ;;
7420 esac
7421
7422 fi
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7424 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7425 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7426 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7427
7428
7429
7430
7431
7432
7433
7434 if test -n "$ac_tool_prefix"; then
7435 for ac_prog in ar
7436 do
7437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7438 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440 $as_echo_n "checking for $ac_word... " >&6; }
7441 if ${ac_cv_prog_AR+:} false; then :
7442 $as_echo_n "(cached) " >&6
7443 else
7444 if test -n "$AR"; then
7445 ac_cv_prog_AR="$AR" # Let the user override the test.
7446 else
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7449 do
7450 IFS=$as_save_IFS
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 break 2
7457 fi
7458 done
7459 done
7460 IFS=$as_save_IFS
7461
7462 fi
7463 fi
7464 AR=$ac_cv_prog_AR
7465 if test -n "$AR"; then
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7467 $as_echo "$AR" >&6; }
7468 else
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 $as_echo "no" >&6; }
7471 fi
7472
7473
7474 test -n "$AR" && break
7475 done
7476 fi
7477 if test -z "$AR"; then
7478 ac_ct_AR=$AR
7479 for ac_prog in ar
7480 do
7481 # Extract the first word of "$ac_prog", so it can be a program name with args.
7482 set dummy $ac_prog; ac_word=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7486 $as_echo_n "(cached) " >&6
7487 else
7488 if test -n "$ac_ct_AR"; then
7489 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7493 do
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498 ac_cv_prog_ac_ct_AR="$ac_prog"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7501 fi
7502 done
7503 done
7504 IFS=$as_save_IFS
7505
7506 fi
7507 fi
7508 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7509 if test -n "$ac_ct_AR"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7511 $as_echo "$ac_ct_AR" >&6; }
7512 else
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7515 fi
7516
7517
7518 test -n "$ac_ct_AR" && break
7519 done
7520
7521 if test "x$ac_ct_AR" = x; then
7522 AR="false"
7523 else
7524 case $cross_compiling:$ac_tool_warned in
7525 yes:)
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7528 ac_tool_warned=yes ;;
7529 esac
7530 AR=$ac_ct_AR
7531 fi
7532 fi
7533
7534 : ${AR=ar}
7535 : ${AR_FLAGS=cru}
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7548 $as_echo_n "checking for archiver @FILE support... " >&6; }
7549 if ${lt_cv_ar_at_file+:} false; then :
7550 $as_echo_n "(cached) " >&6
7551 else
7552 lt_cv_ar_at_file=no
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7555
7556 int
7557 main ()
7558 {
7559
7560 ;
7561 return 0;
7562 }
7563 _ACEOF
7564 if ac_fn_c_try_compile "$LINENO"; then :
7565 echo conftest.$ac_objext > conftest.lst
7566 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7568 (eval $lt_ar_try) 2>&5
7569 ac_status=$?
7570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7571 test $ac_status = 0; }
7572 if test 0 -eq "$ac_status"; then
7573 # Ensure the archiver fails upon bogus file names.
7574 rm -f conftest.$ac_objext libconftest.a
7575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7576 (eval $lt_ar_try) 2>&5
7577 ac_status=$?
7578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7579 test $ac_status = 0; }
7580 if test 0 -ne "$ac_status"; then
7581 lt_cv_ar_at_file=@
7582 fi
7583 fi
7584 rm -f conftest.* libconftest.a
7585
7586 fi
7587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588
7589 fi
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7591 $as_echo "$lt_cv_ar_at_file" >&6; }
7592
7593 if test no = "$lt_cv_ar_at_file"; then
7594 archiver_list_spec=
7595 else
7596 archiver_list_spec=$lt_cv_ar_at_file
7597 fi
7598
7599
7600
7601
7602
7603
7604
7605 if test -n "$ac_tool_prefix"; then
7606 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7607 set dummy ${ac_tool_prefix}strip; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if ${ac_cv_prog_STRIP+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 if test -n "$STRIP"; then
7614 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7615 else
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH
7618 do
7619 IFS=$as_save_IFS
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7623 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625 break 2
7626 fi
7627 done
7628 done
7629 IFS=$as_save_IFS
7630
7631 fi
7632 fi
7633 STRIP=$ac_cv_prog_STRIP
7634 if test -n "$STRIP"; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7636 $as_echo "$STRIP" >&6; }
7637 else
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7640 fi
7641
7642
7643 fi
7644 if test -z "$ac_cv_prog_STRIP"; then
7645 ac_ct_STRIP=$STRIP
7646 # Extract the first word of "strip", so it can be a program name with args.
7647 set dummy strip; ac_word=$2
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649 $as_echo_n "checking for $ac_word... " >&6; }
7650 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7653 if test -n "$ac_ct_STRIP"; then
7654 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7655 else
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7658 do
7659 IFS=$as_save_IFS
7660 test -z "$as_dir" && as_dir=.
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7663 ac_cv_prog_ac_ct_STRIP="strip"
7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665 break 2
7666 fi
7667 done
7668 done
7669 IFS=$as_save_IFS
7670
7671 fi
7672 fi
7673 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7674 if test -n "$ac_ct_STRIP"; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7676 $as_echo "$ac_ct_STRIP" >&6; }
7677 else
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7680 fi
7681
7682 if test "x$ac_ct_STRIP" = x; then
7683 STRIP=":"
7684 else
7685 case $cross_compiling:$ac_tool_warned in
7686 yes:)
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7689 ac_tool_warned=yes ;;
7690 esac
7691 STRIP=$ac_ct_STRIP
7692 fi
7693 else
7694 STRIP="$ac_cv_prog_STRIP"
7695 fi
7696
7697 test -z "$STRIP" && STRIP=:
7698
7699
7700
7701
7702
7703
7704 if test -n "$ac_tool_prefix"; then
7705 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7706 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_prog_RANLIB+:} false; then :
7710 $as_echo_n "(cached) " >&6
7711 else
7712 if test -n "$RANLIB"; then
7713 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7725 fi
7726 done
7727 done
7728 IFS=$as_save_IFS
7729
7730 fi
7731 fi
7732 RANLIB=$ac_cv_prog_RANLIB
7733 if test -n "$RANLIB"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7735 $as_echo "$RANLIB" >&6; }
7736 else
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7739 fi
7740
7741
7742 fi
7743 if test -z "$ac_cv_prog_RANLIB"; then
7744 ac_ct_RANLIB=$RANLIB
7745 # Extract the first word of "ranlib", so it can be a program name with args.
7746 set dummy ranlib; ac_word=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 if test -n "$ac_ct_RANLIB"; then
7753 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7754 else
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756 for as_dir in $PATH
7757 do
7758 IFS=$as_save_IFS
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7762 ac_cv_prog_ac_ct_RANLIB="ranlib"
7763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7764 break 2
7765 fi
7766 done
7767 done
7768 IFS=$as_save_IFS
7769
7770 fi
7771 fi
7772 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7773 if test -n "$ac_ct_RANLIB"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7775 $as_echo "$ac_ct_RANLIB" >&6; }
7776 else
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7779 fi
7780
7781 if test "x$ac_ct_RANLIB" = x; then
7782 RANLIB=":"
7783 else
7784 case $cross_compiling:$ac_tool_warned in
7785 yes:)
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788 ac_tool_warned=yes ;;
7789 esac
7790 RANLIB=$ac_ct_RANLIB
7791 fi
7792 else
7793 RANLIB="$ac_cv_prog_RANLIB"
7794 fi
7795
7796 test -z "$RANLIB" && RANLIB=:
7797
7798
7799
7800
7801
7802
7803 # Determine commands to create old-style static archives.
7804 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7805 old_postinstall_cmds='chmod 644 $oldlib'
7806 old_postuninstall_cmds=
7807
7808 if test -n "$RANLIB"; then
7809 case $host_os in
7810 bitrig* | openbsd*)
7811 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7812 ;;
7813 *)
7814 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7815 ;;
7816 esac
7817 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7818 fi
7819
7820 case $host_os in
7821 darwin*)
7822 lock_old_archive_extraction=yes ;;
7823 *)
7824 lock_old_archive_extraction=no ;;
7825 esac
7826
7827
7828
7829
7830
7831
7832
7833
7834
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 # If no C compiler was specified, use CC.
7866 LTCC=${LTCC-"$CC"}
7867
7868 # If no C compiler flags were specified, use CFLAGS.
7869 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7870
7871 # Allow CC to be a program name with arguments.
7872 compiler=$CC
7873
7874
7875 # Check for command to grab the raw symbol name followed by C symbol from nm.
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7877 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7878 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881
7882 # These are sane defaults that work on at least a few old systems.
7883 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7884
7885 # Character class describing NM global symbol codes.
7886 symcode='[BCDEGRST]'
7887
7888 # Regexp to match symbols that can be accessed directly from C.
7889 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7890
7891 # Define system-specific variables.
7892 case $host_os in
7893 aix*)
7894 symcode='[BCDT]'
7895 ;;
7896 cygwin* | mingw* | pw32* | cegcc*)
7897 symcode='[ABCDGISTW]'
7898 ;;
7899 hpux*)
7900 if test ia64 = "$host_cpu"; then
7901 symcode='[ABCDEGRST]'
7902 fi
7903 ;;
7904 irix* | nonstopux*)
7905 symcode='[BCDEGRST]'
7906 ;;
7907 osf*)
7908 symcode='[BCDEGQRST]'
7909 ;;
7910 solaris*)
7911 symcode='[BDRT]'
7912 ;;
7913 sco3.2v5*)
7914 symcode='[DT]'
7915 ;;
7916 sysv4.2uw2*)
7917 symcode='[DT]'
7918 ;;
7919 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7920 symcode='[ABDT]'
7921 ;;
7922 sysv4)
7923 symcode='[DFNSTU]'
7924 ;;
7925 esac
7926
7927 # If we're using GNU nm, then use its standard symbol codes.
7928 case `$NM -V 2>&1` in
7929 *GNU* | *'with BFD'*)
7930 symcode='[ABCDGIRSTW]' ;;
7931 esac
7932
7933 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7934 # Gets list of data symbols to import.
7935 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7936 # Adjust the below global symbol transforms to fixup imported variables.
7937 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7938 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7939 lt_c_name_lib_hook="\
7940 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7941 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7942 else
7943 # Disable hooks by default.
7944 lt_cv_sys_global_symbol_to_import=
7945 lt_cdecl_hook=
7946 lt_c_name_hook=
7947 lt_c_name_lib_hook=
7948 fi
7949
7950 # Transform an extracted symbol line into a proper C declaration.
7951 # Some systems (esp. on ia64) link data and code symbols differently,
7952 # so use this general approach.
7953 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7954 $lt_cdecl_hook\
7955 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7956 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7957
7958 # Transform an extracted symbol line into symbol name and symbol address
7959 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7960 $lt_c_name_hook\
7961 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7962 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7963
7964 # Transform an extracted symbol line into symbol name with lib prefix and
7965 # symbol address.
7966 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7967 $lt_c_name_lib_hook\
7968 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7969 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7970 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7971
7972 # Handle CRLF in mingw tool chain
7973 opt_cr=
7974 case $build_os in
7975 mingw*)
7976 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7977 ;;
7978 esac
7979
7980 # Try without a prefix underscore, then with it.
7981 for ac_symprfx in "" "_"; do
7982
7983 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7984 symxfrm="\\1 $ac_symprfx\\2 \\2"
7985
7986 # Write the raw and C identifiers.
7987 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7988 # Fake it for dumpbin and say T for any non-static function,
7989 # D for any global variable and I for any imported variable.
7990 # Also find C++ and __fastcall symbols from MSVC++,
7991 # which start with @ or ?.
7992 lt_cv_sys_global_symbol_pipe="$AWK '"\
7993 " {last_section=section; section=\$ 3};"\
7994 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7995 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7996 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7997 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7998 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7999 " \$ 0!~/External *\|/{next};"\
8000 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8001 " {if(hide[section]) next};"\
8002 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8003 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8004 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8005 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8006 " ' prfx=^$ac_symprfx"
8007 else
8008 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8009 fi
8010 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8011
8012 # Check to see that the pipe works correctly.
8013 pipe_works=no
8014
8015 rm -f conftest*
8016 cat > conftest.$ac_ext <<_LT_EOF
8017 #ifdef __cplusplus
8018 extern "C" {
8019 #endif
8020 char nm_test_var;
8021 void nm_test_func(void);
8022 void nm_test_func(void){}
8023 #ifdef __cplusplus
8024 }
8025 #endif
8026 int main(){nm_test_var='a';nm_test_func();return(0);}
8027 _LT_EOF
8028
8029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8030 (eval $ac_compile) 2>&5
8031 ac_status=$?
8032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8033 test $ac_status = 0; }; then
8034 # Now try to grab the symbols.
8035 nlist=conftest.nm
8036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8037 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8038 ac_status=$?
8039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8040 test $ac_status = 0; } && test -s "$nlist"; then
8041 # Try sorting and uniquifying the output.
8042 if sort "$nlist" | uniq > "$nlist"T; then
8043 mv -f "$nlist"T "$nlist"
8044 else
8045 rm -f "$nlist"T
8046 fi
8047
8048 # Make sure that we snagged all the symbols we need.
8049 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8050 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8051 cat <<_LT_EOF > conftest.$ac_ext
8052 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8053 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8054 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8055 relocations are performed -- see ld's documentation on pseudo-relocs. */
8056 # define LT_DLSYM_CONST
8057 #elif defined __osf__
8058 /* This system does not cope well with relocations in const data. */
8059 # define LT_DLSYM_CONST
8060 #else
8061 # define LT_DLSYM_CONST const
8062 #endif
8063
8064 #ifdef __cplusplus
8065 extern "C" {
8066 #endif
8067
8068 _LT_EOF
8069 # Now generate the symbol file.
8070 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8071
8072 cat <<_LT_EOF >> conftest.$ac_ext
8073
8074 /* The mapping between symbol names and symbols. */
8075 LT_DLSYM_CONST struct {
8076 const char *name;
8077 void *address;
8078 }
8079 lt__PROGRAM__LTX_preloaded_symbols[] =
8080 {
8081 { "@PROGRAM@", (void *) 0 },
8082 _LT_EOF
8083 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8084 cat <<\_LT_EOF >> conftest.$ac_ext
8085 {0, (void *) 0}
8086 };
8087
8088 /* This works around a problem in FreeBSD linker */
8089 #ifdef FREEBSD_WORKAROUND
8090 static const void *lt_preloaded_setup() {
8091 return lt__PROGRAM__LTX_preloaded_symbols;
8092 }
8093 #endif
8094
8095 #ifdef __cplusplus
8096 }
8097 #endif
8098 _LT_EOF
8099 # Now try linking the two files.
8100 mv conftest.$ac_objext conftstm.$ac_objext
8101 lt_globsym_save_LIBS=$LIBS
8102 lt_globsym_save_CFLAGS=$CFLAGS
8103 LIBS=conftstm.$ac_objext
8104 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8106 (eval $ac_link) 2>&5
8107 ac_status=$?
8108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8109 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8110 pipe_works=yes
8111 fi
8112 LIBS=$lt_globsym_save_LIBS
8113 CFLAGS=$lt_globsym_save_CFLAGS
8114 else
8115 echo "cannot find nm_test_func in $nlist" >&5
8116 fi
8117 else
8118 echo "cannot find nm_test_var in $nlist" >&5
8119 fi
8120 else
8121 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8122 fi
8123 else
8124 echo "$progname: failed program was:" >&5
8125 cat conftest.$ac_ext >&5
8126 fi
8127 rm -rf conftest* conftst*
8128
8129 # Do not use the global_symbol_pipe unless it works.
8130 if test yes = "$pipe_works"; then
8131 break
8132 else
8133 lt_cv_sys_global_symbol_pipe=
8134 fi
8135 done
8136
8137 fi
8138
8139 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8140 lt_cv_sys_global_symbol_to_cdecl=
8141 fi
8142 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8144 $as_echo "failed" >&6; }
8145 else
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8147 $as_echo "ok" >&6; }
8148 fi
8149
8150 # Response file support.
8151 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8152 nm_file_list_spec='@'
8153 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8154 nm_file_list_spec='@'
8155 fi
8156
8157
8158
8159
8160
8161
8162
8163
8164
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8194 $as_echo_n "checking for sysroot... " >&6; }
8195
8196 # Check whether --with-sysroot was given.
8197 if test "${with_sysroot+set}" = set; then :
8198 withval=$with_sysroot;
8199 else
8200 with_sysroot=no
8201 fi
8202
8203
8204 lt_sysroot=
8205 case $with_sysroot in #(
8206 yes)
8207 if test yes = "$GCC"; then
8208 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8209 fi
8210 ;; #(
8211 /*)
8212 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8213 ;; #(
8214 no|'')
8215 ;; #(
8216 *)
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8218 $as_echo "$with_sysroot" >&6; }
8219 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8220 ;;
8221 esac
8222
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8224 $as_echo "${lt_sysroot:-no}" >&6; }
8225
8226
8227
8228
8229
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8231 $as_echo_n "checking for a working dd... " >&6; }
8232 if ${ac_cv_path_lt_DD+:} false; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 printf 0123456789abcdef0123456789abcdef >conftest.i
8236 cat conftest.i conftest.i >conftest2.i
8237 : ${lt_DD:=$DD}
8238 if test -z "$lt_DD"; then
8239 ac_path_lt_DD_found=false
8240 # Loop through the user's path and test for each of PROGNAME-LIST
8241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242 for as_dir in $PATH
8243 do
8244 IFS=$as_save_IFS
8245 test -z "$as_dir" && as_dir=.
8246 for ac_prog in dd; do
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8249 as_fn_executable_p "$ac_path_lt_DD" || continue
8250 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8251 cmp -s conftest.i conftest.out \
8252 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8253 fi
8254 $ac_path_lt_DD_found && break 3
8255 done
8256 done
8257 done
8258 IFS=$as_save_IFS
8259 if test -z "$ac_cv_path_lt_DD"; then
8260 :
8261 fi
8262 else
8263 ac_cv_path_lt_DD=$lt_DD
8264 fi
8265
8266 rm -f conftest.i conftest2.i conftest.out
8267 fi
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8269 $as_echo "$ac_cv_path_lt_DD" >&6; }
8270
8271
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8273 $as_echo_n "checking how to truncate binary pipes... " >&6; }
8274 if ${lt_cv_truncate_bin+:} false; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 printf 0123456789abcdef0123456789abcdef >conftest.i
8278 cat conftest.i conftest.i >conftest2.i
8279 lt_cv_truncate_bin=
8280 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8281 cmp -s conftest.i conftest.out \
8282 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8283 fi
8284 rm -f conftest.i conftest2.i conftest.out
8285 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8286 fi
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8288 $as_echo "$lt_cv_truncate_bin" >&6; }
8289
8290
8291
8292
8293
8294
8295
8296 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8297 func_cc_basename ()
8298 {
8299 for cc_temp in $*""; do
8300 case $cc_temp in
8301 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8302 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8303 \-*) ;;
8304 *) break;;
8305 esac
8306 done
8307 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8308 }
8309
8310 # Check whether --enable-libtool-lock was given.
8311 if test "${enable_libtool_lock+set}" = set; then :
8312 enableval=$enable_libtool_lock;
8313 fi
8314
8315 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8316
8317 # Some flags need to be propagated to the compiler or linker for good
8318 # libtool support.
8319 case $host in
8320 ia64-*-hpux*)
8321 # Find out what ABI is being produced by ac_compile, and set mode
8322 # options accordingly.
8323 echo 'int i;' > conftest.$ac_ext
8324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8325 (eval $ac_compile) 2>&5
8326 ac_status=$?
8327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8328 test $ac_status = 0; }; then
8329 case `/usr/bin/file conftest.$ac_objext` in
8330 *ELF-32*)
8331 HPUX_IA64_MODE=32
8332 ;;
8333 *ELF-64*)
8334 HPUX_IA64_MODE=64
8335 ;;
8336 esac
8337 fi
8338 rm -rf conftest*
8339 ;;
8340 *-*-irix6*)
8341 # Find out what ABI is being produced by ac_compile, and set linker
8342 # options accordingly.
8343 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8344 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8345 (eval $ac_compile) 2>&5
8346 ac_status=$?
8347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8348 test $ac_status = 0; }; then
8349 if test yes = "$lt_cv_prog_gnu_ld"; then
8350 case `/usr/bin/file conftest.$ac_objext` in
8351 *32-bit*)
8352 LD="${LD-ld} -melf32bsmip"
8353 ;;
8354 *N32*)
8355 LD="${LD-ld} -melf32bmipn32"
8356 ;;
8357 *64-bit*)
8358 LD="${LD-ld} -melf64bmip"
8359 ;;
8360 esac
8361 else
8362 case `/usr/bin/file conftest.$ac_objext` in
8363 *32-bit*)
8364 LD="${LD-ld} -32"
8365 ;;
8366 *N32*)
8367 LD="${LD-ld} -n32"
8368 ;;
8369 *64-bit*)
8370 LD="${LD-ld} -64"
8371 ;;
8372 esac
8373 fi
8374 fi
8375 rm -rf conftest*
8376 ;;
8377
8378 mips64*-*linux*)
8379 # Find out what ABI is being produced by ac_compile, and set linker
8380 # options accordingly.
8381 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8382 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8383 (eval $ac_compile) 2>&5
8384 ac_status=$?
8385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8386 test $ac_status = 0; }; then
8387 emul=elf
8388 case `/usr/bin/file conftest.$ac_objext` in
8389 *32-bit*)
8390 emul="${emul}32"
8391 ;;
8392 *64-bit*)
8393 emul="${emul}64"
8394 ;;
8395 esac
8396 case `/usr/bin/file conftest.$ac_objext` in
8397 *MSB*)
8398 emul="${emul}btsmip"
8399 ;;
8400 *LSB*)
8401 emul="${emul}ltsmip"
8402 ;;
8403 esac
8404 case `/usr/bin/file conftest.$ac_objext` in
8405 *N32*)
8406 emul="${emul}n32"
8407 ;;
8408 esac
8409 LD="${LD-ld} -m $emul"
8410 fi
8411 rm -rf conftest*
8412 ;;
8413
8414 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8415 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8416 # Find out what ABI is being produced by ac_compile, and set linker
8417 # options accordingly. Note that the listed cases only cover the
8418 # situations where additional linker options are needed (such as when
8419 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8420 # vice versa); the common cases where no linker options are needed do
8421 # not appear in the list.
8422 echo 'int i;' > conftest.$ac_ext
8423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8424 (eval $ac_compile) 2>&5
8425 ac_status=$?
8426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8427 test $ac_status = 0; }; then
8428 case `/usr/bin/file conftest.o` in
8429 *32-bit*)
8430 case $host in
8431 x86_64-*kfreebsd*-gnu)
8432 LD="${LD-ld} -m elf_i386_fbsd"
8433 ;;
8434 x86_64-*linux*)
8435 case `/usr/bin/file conftest.o` in
8436 *x86-64*)
8437 LD="${LD-ld} -m elf32_x86_64"
8438 ;;
8439 *)
8440 LD="${LD-ld} -m elf_i386"
8441 ;;
8442 esac
8443 ;;
8444 powerpc64le-*linux*)
8445 LD="${LD-ld} -m elf32lppclinux"
8446 ;;
8447 powerpc64-*linux*)
8448 LD="${LD-ld} -m elf32ppclinux"
8449 ;;
8450 s390x-*linux*)
8451 LD="${LD-ld} -m elf_s390"
8452 ;;
8453 sparc64-*linux*)
8454 LD="${LD-ld} -m elf32_sparc"
8455 ;;
8456 esac
8457 ;;
8458 *64-bit*)
8459 case $host in
8460 x86_64-*kfreebsd*-gnu)
8461 LD="${LD-ld} -m elf_x86_64_fbsd"
8462 ;;
8463 x86_64-*linux*)
8464 LD="${LD-ld} -m elf_x86_64"
8465 ;;
8466 powerpcle-*linux*)
8467 LD="${LD-ld} -m elf64lppc"
8468 ;;
8469 powerpc-*linux*)
8470 LD="${LD-ld} -m elf64ppc"
8471 ;;
8472 s390*-*linux*|s390*-*tpf*)
8473 LD="${LD-ld} -m elf64_s390"
8474 ;;
8475 sparc*-*linux*)
8476 LD="${LD-ld} -m elf64_sparc"
8477 ;;
8478 esac
8479 ;;
8480 esac
8481 fi
8482 rm -rf conftest*
8483 ;;
8484
8485 *-*-sco3.2v5*)
8486 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8487 SAVE_CFLAGS=$CFLAGS
8488 CFLAGS="$CFLAGS -belf"
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8490 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8491 if ${lt_cv_cc_needs_belf+:} false; then :
8492 $as_echo_n "(cached) " >&6
8493 else
8494 ac_ext=c
8495 ac_cpp='$CPP $CPPFLAGS'
8496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8499
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8502
8503 int
8504 main ()
8505 {
8506
8507 ;
8508 return 0;
8509 }
8510 _ACEOF
8511 if ac_fn_c_try_link "$LINENO"; then :
8512 lt_cv_cc_needs_belf=yes
8513 else
8514 lt_cv_cc_needs_belf=no
8515 fi
8516 rm -f core conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
8518 ac_ext=c
8519 ac_cpp='$CPP $CPPFLAGS'
8520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8523
8524 fi
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8526 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8527 if test yes != "$lt_cv_cc_needs_belf"; then
8528 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8529 CFLAGS=$SAVE_CFLAGS
8530 fi
8531 ;;
8532 *-*solaris*)
8533 # Find out what ABI is being produced by ac_compile, and set linker
8534 # options accordingly.
8535 echo 'int i;' > conftest.$ac_ext
8536 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8537 (eval $ac_compile) 2>&5
8538 ac_status=$?
8539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8540 test $ac_status = 0; }; then
8541 case `/usr/bin/file conftest.o` in
8542 *64-bit*)
8543 case $lt_cv_prog_gnu_ld in
8544 yes*)
8545 case $host in
8546 i?86-*-solaris*|x86_64-*-solaris*)
8547 LD="${LD-ld} -m elf_x86_64"
8548 ;;
8549 sparc*-*-solaris*)
8550 LD="${LD-ld} -m elf64_sparc"
8551 ;;
8552 esac
8553 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8554 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8555 LD=${LD-ld}_sol2
8556 fi
8557 ;;
8558 *)
8559 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8560 LD="${LD-ld} -64"
8561 fi
8562 ;;
8563 esac
8564 ;;
8565 esac
8566 fi
8567 rm -rf conftest*
8568 ;;
8569 esac
8570
8571 need_locks=$enable_libtool_lock
8572
8573 if test -n "$ac_tool_prefix"; then
8574 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8575 set dummy ${ac_tool_prefix}mt; ac_word=$2
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8577 $as_echo_n "checking for $ac_word... " >&6; }
8578 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8579 $as_echo_n "(cached) " >&6
8580 else
8581 if test -n "$MANIFEST_TOOL"; then
8582 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8583 else
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 for as_dir in $PATH
8586 do
8587 IFS=$as_save_IFS
8588 test -z "$as_dir" && as_dir=.
8589 for ac_exec_ext in '' $ac_executable_extensions; do
8590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8591 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8593 break 2
8594 fi
8595 done
8596 done
8597 IFS=$as_save_IFS
8598
8599 fi
8600 fi
8601 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8602 if test -n "$MANIFEST_TOOL"; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8604 $as_echo "$MANIFEST_TOOL" >&6; }
8605 else
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 $as_echo "no" >&6; }
8608 fi
8609
8610
8611 fi
8612 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8613 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8614 # Extract the first word of "mt", so it can be a program name with args.
8615 set dummy mt; ac_word=$2
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8617 $as_echo_n "checking for $ac_word... " >&6; }
8618 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8619 $as_echo_n "(cached) " >&6
8620 else
8621 if test -n "$ac_ct_MANIFEST_TOOL"; then
8622 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8623 else
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625 for as_dir in $PATH
8626 do
8627 IFS=$as_save_IFS
8628 test -z "$as_dir" && as_dir=.
8629 for ac_exec_ext in '' $ac_executable_extensions; do
8630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8631 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8633 break 2
8634 fi
8635 done
8636 done
8637 IFS=$as_save_IFS
8638
8639 fi
8640 fi
8641 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8642 if test -n "$ac_ct_MANIFEST_TOOL"; then
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8644 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8645 else
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647 $as_echo "no" >&6; }
8648 fi
8649
8650 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8651 MANIFEST_TOOL=":"
8652 else
8653 case $cross_compiling:$ac_tool_warned in
8654 yes:)
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8657 ac_tool_warned=yes ;;
8658 esac
8659 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8660 fi
8661 else
8662 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8663 fi
8664
8665 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8667 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8668 if ${lt_cv_path_mainfest_tool+:} false; then :
8669 $as_echo_n "(cached) " >&6
8670 else
8671 lt_cv_path_mainfest_tool=no
8672 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8673 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8674 cat conftest.err >&5
8675 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8676 lt_cv_path_mainfest_tool=yes
8677 fi
8678 rm -f conftest*
8679 fi
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8681 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8682 if test yes != "$lt_cv_path_mainfest_tool"; then
8683 MANIFEST_TOOL=:
8684 fi
8685
8686
8687
8688
8689
8690
8691 case $host_os in
8692 rhapsody* | darwin*)
8693 if test -n "$ac_tool_prefix"; then
8694 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8695 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697 $as_echo_n "checking for $ac_word... " >&6; }
8698 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 if test -n "$DSYMUTIL"; then
8702 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8703 else
8704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705 for as_dir in $PATH
8706 do
8707 IFS=$as_save_IFS
8708 test -z "$as_dir" && as_dir=.
8709 for ac_exec_ext in '' $ac_executable_extensions; do
8710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8711 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713 break 2
8714 fi
8715 done
8716 done
8717 IFS=$as_save_IFS
8718
8719 fi
8720 fi
8721 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8722 if test -n "$DSYMUTIL"; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8724 $as_echo "$DSYMUTIL" >&6; }
8725 else
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 $as_echo "no" >&6; }
8728 fi
8729
8730
8731 fi
8732 if test -z "$ac_cv_prog_DSYMUTIL"; then
8733 ac_ct_DSYMUTIL=$DSYMUTIL
8734 # Extract the first word of "dsymutil", so it can be a program name with args.
8735 set dummy dsymutil; ac_word=$2
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737 $as_echo_n "checking for $ac_word... " >&6; }
8738 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8739 $as_echo_n "(cached) " >&6
8740 else
8741 if test -n "$ac_ct_DSYMUTIL"; then
8742 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8743 else
8744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745 for as_dir in $PATH
8746 do
8747 IFS=$as_save_IFS
8748 test -z "$as_dir" && as_dir=.
8749 for ac_exec_ext in '' $ac_executable_extensions; do
8750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8751 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753 break 2
8754 fi
8755 done
8756 done
8757 IFS=$as_save_IFS
8758
8759 fi
8760 fi
8761 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8762 if test -n "$ac_ct_DSYMUTIL"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8764 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8765 else
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 $as_echo "no" >&6; }
8768 fi
8769
8770 if test "x$ac_ct_DSYMUTIL" = x; then
8771 DSYMUTIL=":"
8772 else
8773 case $cross_compiling:$ac_tool_warned in
8774 yes:)
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8777 ac_tool_warned=yes ;;
8778 esac
8779 DSYMUTIL=$ac_ct_DSYMUTIL
8780 fi
8781 else
8782 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8783 fi
8784
8785 if test -n "$ac_tool_prefix"; then
8786 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8787 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8789 $as_echo_n "checking for $ac_word... " >&6; }
8790 if ${ac_cv_prog_NMEDIT+:} false; then :
8791 $as_echo_n "(cached) " >&6
8792 else
8793 if test -n "$NMEDIT"; then
8794 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8795 else
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 for as_dir in $PATH
8798 do
8799 IFS=$as_save_IFS
8800 test -z "$as_dir" && as_dir=.
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8803 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8805 break 2
8806 fi
8807 done
8808 done
8809 IFS=$as_save_IFS
8810
8811 fi
8812 fi
8813 NMEDIT=$ac_cv_prog_NMEDIT
8814 if test -n "$NMEDIT"; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8816 $as_echo "$NMEDIT" >&6; }
8817 else
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819 $as_echo "no" >&6; }
8820 fi
8821
8822
8823 fi
8824 if test -z "$ac_cv_prog_NMEDIT"; then
8825 ac_ct_NMEDIT=$NMEDIT
8826 # Extract the first word of "nmedit", so it can be a program name with args.
8827 set dummy nmedit; ac_word=$2
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829 $as_echo_n "checking for $ac_word... " >&6; }
8830 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 if test -n "$ac_ct_NMEDIT"; then
8834 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8835 else
8836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8837 for as_dir in $PATH
8838 do
8839 IFS=$as_save_IFS
8840 test -z "$as_dir" && as_dir=.
8841 for ac_exec_ext in '' $ac_executable_extensions; do
8842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8843 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8845 break 2
8846 fi
8847 done
8848 done
8849 IFS=$as_save_IFS
8850
8851 fi
8852 fi
8853 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8854 if test -n "$ac_ct_NMEDIT"; then
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8856 $as_echo "$ac_ct_NMEDIT" >&6; }
8857 else
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 $as_echo "no" >&6; }
8860 fi
8861
8862 if test "x$ac_ct_NMEDIT" = x; then
8863 NMEDIT=":"
8864 else
8865 case $cross_compiling:$ac_tool_warned in
8866 yes:)
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8869 ac_tool_warned=yes ;;
8870 esac
8871 NMEDIT=$ac_ct_NMEDIT
8872 fi
8873 else
8874 NMEDIT="$ac_cv_prog_NMEDIT"
8875 fi
8876
8877 if test -n "$ac_tool_prefix"; then
8878 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8879 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881 $as_echo_n "checking for $ac_word... " >&6; }
8882 if ${ac_cv_prog_LIPO+:} false; then :
8883 $as_echo_n "(cached) " >&6
8884 else
8885 if test -n "$LIPO"; then
8886 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8887 else
8888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889 for as_dir in $PATH
8890 do
8891 IFS=$as_save_IFS
8892 test -z "$as_dir" && as_dir=.
8893 for ac_exec_ext in '' $ac_executable_extensions; do
8894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8895 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8897 break 2
8898 fi
8899 done
8900 done
8901 IFS=$as_save_IFS
8902
8903 fi
8904 fi
8905 LIPO=$ac_cv_prog_LIPO
8906 if test -n "$LIPO"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8908 $as_echo "$LIPO" >&6; }
8909 else
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911 $as_echo "no" >&6; }
8912 fi
8913
8914
8915 fi
8916 if test -z "$ac_cv_prog_LIPO"; then
8917 ac_ct_LIPO=$LIPO
8918 # Extract the first word of "lipo", so it can be a program name with args.
8919 set dummy lipo; ac_word=$2
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921 $as_echo_n "checking for $ac_word... " >&6; }
8922 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8923 $as_echo_n "(cached) " >&6
8924 else
8925 if test -n "$ac_ct_LIPO"; then
8926 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8927 else
8928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929 for as_dir in $PATH
8930 do
8931 IFS=$as_save_IFS
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
8934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8935 ac_cv_prog_ac_ct_LIPO="lipo"
8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 break 2
8938 fi
8939 done
8940 done
8941 IFS=$as_save_IFS
8942
8943 fi
8944 fi
8945 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8946 if test -n "$ac_ct_LIPO"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8948 $as_echo "$ac_ct_LIPO" >&6; }
8949 else
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951 $as_echo "no" >&6; }
8952 fi
8953
8954 if test "x$ac_ct_LIPO" = x; then
8955 LIPO=":"
8956 else
8957 case $cross_compiling:$ac_tool_warned in
8958 yes:)
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8961 ac_tool_warned=yes ;;
8962 esac
8963 LIPO=$ac_ct_LIPO
8964 fi
8965 else
8966 LIPO="$ac_cv_prog_LIPO"
8967 fi
8968
8969 if test -n "$ac_tool_prefix"; then
8970 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8971 set dummy ${ac_tool_prefix}otool; ac_word=$2
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8973 $as_echo_n "checking for $ac_word... " >&6; }
8974 if ${ac_cv_prog_OTOOL+:} false; then :
8975 $as_echo_n "(cached) " >&6
8976 else
8977 if test -n "$OTOOL"; then
8978 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8979 else
8980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981 for as_dir in $PATH
8982 do
8983 IFS=$as_save_IFS
8984 test -z "$as_dir" && as_dir=.
8985 for ac_exec_ext in '' $ac_executable_extensions; do
8986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8987 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8989 break 2
8990 fi
8991 done
8992 done
8993 IFS=$as_save_IFS
8994
8995 fi
8996 fi
8997 OTOOL=$ac_cv_prog_OTOOL
8998 if test -n "$OTOOL"; then
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9000 $as_echo "$OTOOL" >&6; }
9001 else
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003 $as_echo "no" >&6; }
9004 fi
9005
9006
9007 fi
9008 if test -z "$ac_cv_prog_OTOOL"; then
9009 ac_ct_OTOOL=$OTOOL
9010 # Extract the first word of "otool", so it can be a program name with args.
9011 set dummy otool; ac_word=$2
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9013 $as_echo_n "checking for $ac_word... " >&6; }
9014 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9015 $as_echo_n "(cached) " >&6
9016 else
9017 if test -n "$ac_ct_OTOOL"; then
9018 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9019 else
9020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9021 for as_dir in $PATH
9022 do
9023 IFS=$as_save_IFS
9024 test -z "$as_dir" && as_dir=.
9025 for ac_exec_ext in '' $ac_executable_extensions; do
9026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9027 ac_cv_prog_ac_ct_OTOOL="otool"
9028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9029 break 2
9030 fi
9031 done
9032 done
9033 IFS=$as_save_IFS
9034
9035 fi
9036 fi
9037 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9038 if test -n "$ac_ct_OTOOL"; then
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9040 $as_echo "$ac_ct_OTOOL" >&6; }
9041 else
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9043 $as_echo "no" >&6; }
9044 fi
9045
9046 if test "x$ac_ct_OTOOL" = x; then
9047 OTOOL=":"
9048 else
9049 case $cross_compiling:$ac_tool_warned in
9050 yes:)
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9053 ac_tool_warned=yes ;;
9054 esac
9055 OTOOL=$ac_ct_OTOOL
9056 fi
9057 else
9058 OTOOL="$ac_cv_prog_OTOOL"
9059 fi
9060
9061 if test -n "$ac_tool_prefix"; then
9062 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9063 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9065 $as_echo_n "checking for $ac_word... " >&6; }
9066 if ${ac_cv_prog_OTOOL64+:} false; then :
9067 $as_echo_n "(cached) " >&6
9068 else
9069 if test -n "$OTOOL64"; then
9070 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9071 else
9072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9073 for as_dir in $PATH
9074 do
9075 IFS=$as_save_IFS
9076 test -z "$as_dir" && as_dir=.
9077 for ac_exec_ext in '' $ac_executable_extensions; do
9078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9079 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9081 break 2
9082 fi
9083 done
9084 done
9085 IFS=$as_save_IFS
9086
9087 fi
9088 fi
9089 OTOOL64=$ac_cv_prog_OTOOL64
9090 if test -n "$OTOOL64"; then
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9092 $as_echo "$OTOOL64" >&6; }
9093 else
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095 $as_echo "no" >&6; }
9096 fi
9097
9098
9099 fi
9100 if test -z "$ac_cv_prog_OTOOL64"; then
9101 ac_ct_OTOOL64=$OTOOL64
9102 # Extract the first word of "otool64", so it can be a program name with args.
9103 set dummy otool64; ac_word=$2
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9105 $as_echo_n "checking for $ac_word... " >&6; }
9106 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9107 $as_echo_n "(cached) " >&6
9108 else
9109 if test -n "$ac_ct_OTOOL64"; then
9110 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9111 else
9112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9113 for as_dir in $PATH
9114 do
9115 IFS=$as_save_IFS
9116 test -z "$as_dir" && as_dir=.
9117 for ac_exec_ext in '' $ac_executable_extensions; do
9118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9119 ac_cv_prog_ac_ct_OTOOL64="otool64"
9120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9121 break 2
9122 fi
9123 done
9124 done
9125 IFS=$as_save_IFS
9126
9127 fi
9128 fi
9129 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9130 if test -n "$ac_ct_OTOOL64"; then
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9132 $as_echo "$ac_ct_OTOOL64" >&6; }
9133 else
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9135 $as_echo "no" >&6; }
9136 fi
9137
9138 if test "x$ac_ct_OTOOL64" = x; then
9139 OTOOL64=":"
9140 else
9141 case $cross_compiling:$ac_tool_warned in
9142 yes:)
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9144 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9145 ac_tool_warned=yes ;;
9146 esac
9147 OTOOL64=$ac_ct_OTOOL64
9148 fi
9149 else
9150 OTOOL64="$ac_cv_prog_OTOOL64"
9151 fi
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9180 $as_echo_n "checking for -single_module linker flag... " >&6; }
9181 if ${lt_cv_apple_cc_single_mod+:} false; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 lt_cv_apple_cc_single_mod=no
9185 if test -z "$LT_MULTI_MODULE"; then
9186 # By default we will add the -single_module flag. You can override
9187 # by either setting the environment variable LT_MULTI_MODULE
9188 # non-empty at configure time, or by adding -multi_module to the
9189 # link flags.
9190 rm -rf libconftest.dylib*
9191 echo "int foo(void){return 1;}" > conftest.c
9192 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9193 -dynamiclib -Wl,-single_module conftest.c" >&5
9194 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9195 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9196 _lt_result=$?
9197 # If there is a non-empty error log, and "single_module"
9198 # appears in it, assume the flag caused a linker warning
9199 if test -s conftest.err && $GREP single_module conftest.err; then
9200 cat conftest.err >&5
9201 # Otherwise, if the output was created with a 0 exit code from
9202 # the compiler, it worked.
9203 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9204 lt_cv_apple_cc_single_mod=yes
9205 else
9206 cat conftest.err >&5
9207 fi
9208 rm -rf libconftest.dylib*
9209 rm -f conftest.*
9210 fi
9211 fi
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9213 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9214
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9216 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9217 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9218 $as_echo_n "(cached) " >&6
9219 else
9220 lt_cv_ld_exported_symbols_list=no
9221 save_LDFLAGS=$LDFLAGS
9222 echo "_main" > conftest.sym
9223 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225 /* end confdefs.h. */
9226
9227 int
9228 main ()
9229 {
9230
9231 ;
9232 return 0;
9233 }
9234 _ACEOF
9235 if ac_fn_c_try_link "$LINENO"; then :
9236 lt_cv_ld_exported_symbols_list=yes
9237 else
9238 lt_cv_ld_exported_symbols_list=no
9239 fi
9240 rm -f core conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext conftest.$ac_ext
9242 LDFLAGS=$save_LDFLAGS
9243
9244 fi
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9246 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9247
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9249 $as_echo_n "checking for -force_load linker flag... " >&6; }
9250 if ${lt_cv_ld_force_load+:} false; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 lt_cv_ld_force_load=no
9254 cat > conftest.c << _LT_EOF
9255 int forced_loaded() { return 2;}
9256 _LT_EOF
9257 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9258 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9259 echo "$AR cru libconftest.a conftest.o" >&5
9260 $AR cru libconftest.a conftest.o 2>&5
9261 echo "$RANLIB libconftest.a" >&5
9262 $RANLIB libconftest.a 2>&5
9263 cat > conftest.c << _LT_EOF
9264 int main() { return 0;}
9265 _LT_EOF
9266 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9267 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9268 _lt_result=$?
9269 if test -s conftest.err && $GREP force_load conftest.err; then
9270 cat conftest.err >&5
9271 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9272 lt_cv_ld_force_load=yes
9273 else
9274 cat conftest.err >&5
9275 fi
9276 rm -f conftest.err libconftest.a conftest conftest.c
9277 rm -rf conftest.dSYM
9278
9279 fi
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9281 $as_echo "$lt_cv_ld_force_load" >&6; }
9282 case $host_os in
9283 rhapsody* | darwin1.[012])
9284 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9285 darwin1.*)
9286 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9287 darwin*) # darwin 5.x on
9288 # if running on 10.5 or later, the deployment target defaults
9289 # to the OS version, if on x86, and 10.4, the deployment
9290 # target defaults to 10.4. Don't you love it?
9291 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9292 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9293 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9294 10.[012][,.]*)
9295 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9296 10.*)
9297 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9298 esac
9299 ;;
9300 esac
9301 if test yes = "$lt_cv_apple_cc_single_mod"; then
9302 _lt_dar_single_mod='$single_module'
9303 fi
9304 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9305 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9306 else
9307 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9308 fi
9309 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9310 _lt_dsymutil='~$DSYMUTIL $lib || :'
9311 else
9312 _lt_dsymutil=
9313 fi
9314 ;;
9315 esac
9316
9317 # func_munge_path_list VARIABLE PATH
9318 # -----------------------------------
9319 # VARIABLE is name of variable containing _space_ separated list of
9320 # directories to be munged by the contents of PATH, which is string
9321 # having a format:
9322 # "DIR[:DIR]:"
9323 # string "DIR[ DIR]" will be prepended to VARIABLE
9324 # ":DIR[:DIR]"
9325 # string "DIR[ DIR]" will be appended to VARIABLE
9326 # "DIRP[:DIRP]::[DIRA:]DIRA"
9327 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9328 # "DIRA[ DIRA]" will be appended to VARIABLE
9329 # "DIR[:DIR]"
9330 # VARIABLE will be replaced by "DIR[ DIR]"
9331 func_munge_path_list ()
9332 {
9333 case x$2 in
9334 x)
9335 ;;
9336 *:)
9337 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9338 ;;
9339 x:*)
9340 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9341 ;;
9342 *::*)
9343 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9344 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9345 ;;
9346 *)
9347 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9348 ;;
9349 esac
9350 }
9351
9352 for ac_header in dlfcn.h
9353 do :
9354 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9355 "
9356 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9357 cat >>confdefs.h <<_ACEOF
9358 #define HAVE_DLFCN_H 1
9359 _ACEOF
9360
9361 fi
9362
9363 done
9364
9365
9366
9367
9368
9369 # Set options
9370
9371
9372
9373 enable_dlopen=no
9374
9375
9376 enable_win32_dll=no
9377
9378
9379 # Check whether --enable-shared was given.
9380 if test "${enable_shared+set}" = set; then :
9381 enableval=$enable_shared; p=${PACKAGE-default}
9382 case $enableval in
9383 yes) enable_shared=yes ;;
9384 no) enable_shared=no ;;
9385 *)
9386 enable_shared=no
9387 # Look at the argument we got. We use all the common list separators.
9388 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9389 for pkg in $enableval; do
9390 IFS=$lt_save_ifs
9391 if test "X$pkg" = "X$p"; then
9392 enable_shared=yes
9393 fi
9394 done
9395 IFS=$lt_save_ifs
9396 ;;
9397 esac
9398 else
9399 enable_shared=yes
9400 fi
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410 # Check whether --enable-static was given.
9411 if test "${enable_static+set}" = set; then :
9412 enableval=$enable_static; p=${PACKAGE-default}
9413 case $enableval in
9414 yes) enable_static=yes ;;
9415 no) enable_static=no ;;
9416 *)
9417 enable_static=no
9418 # Look at the argument we got. We use all the common list separators.
9419 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9420 for pkg in $enableval; do
9421 IFS=$lt_save_ifs
9422 if test "X$pkg" = "X$p"; then
9423 enable_static=yes
9424 fi
9425 done
9426 IFS=$lt_save_ifs
9427 ;;
9428 esac
9429 else
9430 enable_static=yes
9431 fi
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442 # Check whether --with-pic was given.
9443 if test "${with_pic+set}" = set; then :
9444 withval=$with_pic; lt_p=${PACKAGE-default}
9445 case $withval in
9446 yes|no) pic_mode=$withval ;;
9447 *)
9448 pic_mode=default
9449 # Look at the argument we got. We use all the common list separators.
9450 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9451 for lt_pkg in $withval; do
9452 IFS=$lt_save_ifs
9453 if test "X$lt_pkg" = "X$lt_p"; then
9454 pic_mode=yes
9455 fi
9456 done
9457 IFS=$lt_save_ifs
9458 ;;
9459 esac
9460 else
9461 pic_mode=default
9462 fi
9463
9464
9465
9466
9467
9468
9469
9470
9471 # Check whether --enable-fast-install was given.
9472 if test "${enable_fast_install+set}" = set; then :
9473 enableval=$enable_fast_install; p=${PACKAGE-default}
9474 case $enableval in
9475 yes) enable_fast_install=yes ;;
9476 no) enable_fast_install=no ;;
9477 *)
9478 enable_fast_install=no
9479 # Look at the argument we got. We use all the common list separators.
9480 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9481 for pkg in $enableval; do
9482 IFS=$lt_save_ifs
9483 if test "X$pkg" = "X$p"; then
9484 enable_fast_install=yes
9485 fi
9486 done
9487 IFS=$lt_save_ifs
9488 ;;
9489 esac
9490 else
9491 enable_fast_install=yes
9492 fi
9493
9494
9495
9496
9497
9498
9499
9500
9501 shared_archive_member_spec=
9502 case $host,$enable_shared in
9503 power*-*-aix[5-9]*,yes)
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9505 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9506
9507 # Check whether --with-aix-soname was given.
9508 if test "${with_aix_soname+set}" = set; then :
9509 withval=$with_aix_soname; case $withval in
9510 aix|svr4|both)
9511 ;;
9512 *)
9513 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9514 ;;
9515 esac
9516 lt_cv_with_aix_soname=$with_aix_soname
9517 else
9518 if ${lt_cv_with_aix_soname+:} false; then :
9519 $as_echo_n "(cached) " >&6
9520 else
9521 lt_cv_with_aix_soname=aix
9522 fi
9523
9524 with_aix_soname=$lt_cv_with_aix_soname
9525 fi
9526
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9528 $as_echo "$with_aix_soname" >&6; }
9529 if test aix != "$with_aix_soname"; then
9530 # For the AIX way of multilib, we name the shared archive member
9531 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9532 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9533 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9534 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9535 if test 64 = "${OBJECT_MODE-32}"; then
9536 shared_archive_member_spec=shr_64
9537 else
9538 shared_archive_member_spec=shr
9539 fi
9540 fi
9541 ;;
9542 *)
9543 with_aix_soname=aix
9544 ;;
9545 esac
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556 # This can be used to rebuild libtool when needed
9557 LIBTOOL_DEPS=$ltmain
9558
9559 # Always use our own libtool.
9560 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591 test -z "$LN_S" && LN_S="ln -s"
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606 if test -n "${ZSH_VERSION+set}"; then
9607 setopt NO_GLOB_SUBST
9608 fi
9609
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9611 $as_echo_n "checking for objdir... " >&6; }
9612 if ${lt_cv_objdir+:} false; then :
9613 $as_echo_n "(cached) " >&6
9614 else
9615 rm -f .libs 2>/dev/null
9616 mkdir .libs 2>/dev/null
9617 if test -d .libs; then
9618 lt_cv_objdir=.libs
9619 else
9620 # MS-DOS does not allow filenames that begin with a dot.
9621 lt_cv_objdir=_libs
9622 fi
9623 rmdir .libs 2>/dev/null
9624 fi
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9626 $as_echo "$lt_cv_objdir" >&6; }
9627 objdir=$lt_cv_objdir
9628
9629
9630
9631
9632
9633 cat >>confdefs.h <<_ACEOF
9634 #define LT_OBJDIR "$lt_cv_objdir/"
9635 _ACEOF
9636
9637
9638
9639
9640 case $host_os in
9641 aix3*)
9642 # AIX sometimes has problems with the GCC collect2 program. For some
9643 # reason, if we set the COLLECT_NAMES environment variable, the problems
9644 # vanish in a puff of smoke.
9645 if test set != "${COLLECT_NAMES+set}"; then
9646 COLLECT_NAMES=
9647 export COLLECT_NAMES
9648 fi
9649 ;;
9650 esac
9651
9652 # Global variables:
9653 ofile=libtool
9654 can_build_shared=yes
9655
9656 # All known linkers require a '.a' archive for static linking (except MSVC,
9657 # which needs '.lib').
9658 libext=a
9659
9660 with_gnu_ld=$lt_cv_prog_gnu_ld
9661
9662 old_CC=$CC
9663 old_CFLAGS=$CFLAGS
9664
9665 # Set sane defaults for various variables
9666 test -z "$CC" && CC=cc
9667 test -z "$LTCC" && LTCC=$CC
9668 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9669 test -z "$LD" && LD=ld
9670 test -z "$ac_objext" && ac_objext=o
9671
9672 func_cc_basename $compiler
9673 cc_basename=$func_cc_basename_result
9674
9675
9676 # Only perform the check for file, if the check method requires it
9677 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9678 case $deplibs_check_method in
9679 file_magic*)
9680 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9682 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9683 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9684 $as_echo_n "(cached) " >&6
9685 else
9686 case $MAGIC_CMD in
9687 [\\/*] | ?:[\\/]*)
9688 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9689 ;;
9690 *)
9691 lt_save_MAGIC_CMD=$MAGIC_CMD
9692 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9693 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9694 for ac_dir in $ac_dummy; do
9695 IFS=$lt_save_ifs
9696 test -z "$ac_dir" && ac_dir=.
9697 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9698 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9699 if test -n "$file_magic_test_file"; then
9700 case $deplibs_check_method in
9701 "file_magic "*)
9702 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9703 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9704 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9705 $EGREP "$file_magic_regex" > /dev/null; then
9706 :
9707 else
9708 cat <<_LT_EOF 1>&2
9709
9710 *** Warning: the command libtool uses to detect shared libraries,
9711 *** $file_magic_cmd, produces output that libtool cannot recognize.
9712 *** The result is that libtool may fail to recognize shared libraries
9713 *** as such. This will affect the creation of libtool libraries that
9714 *** depend on shared libraries, but programs linked with such libtool
9715 *** libraries will work regardless of this problem. Nevertheless, you
9716 *** may want to report the problem to your system manager and/or to
9717 *** [email protected]
9718
9719 _LT_EOF
9720 fi ;;
9721 esac
9722 fi
9723 break
9724 fi
9725 done
9726 IFS=$lt_save_ifs
9727 MAGIC_CMD=$lt_save_MAGIC_CMD
9728 ;;
9729 esac
9730 fi
9731
9732 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9733 if test -n "$MAGIC_CMD"; then
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9735 $as_echo "$MAGIC_CMD" >&6; }
9736 else
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9738 $as_echo "no" >&6; }
9739 fi
9740
9741
9742
9743
9744
9745 if test -z "$lt_cv_path_MAGIC_CMD"; then
9746 if test -n "$ac_tool_prefix"; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9748 $as_echo_n "checking for file... " >&6; }
9749 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9750 $as_echo_n "(cached) " >&6
9751 else
9752 case $MAGIC_CMD in
9753 [\\/*] | ?:[\\/]*)
9754 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9755 ;;
9756 *)
9757 lt_save_MAGIC_CMD=$MAGIC_CMD
9758 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9759 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9760 for ac_dir in $ac_dummy; do
9761 IFS=$lt_save_ifs
9762 test -z "$ac_dir" && ac_dir=.
9763 if test -f "$ac_dir/file"; then
9764 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9765 if test -n "$file_magic_test_file"; then
9766 case $deplibs_check_method in
9767 "file_magic "*)
9768 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9769 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9770 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9771 $EGREP "$file_magic_regex" > /dev/null; then
9772 :
9773 else
9774 cat <<_LT_EOF 1>&2
9775
9776 *** Warning: the command libtool uses to detect shared libraries,
9777 *** $file_magic_cmd, produces output that libtool cannot recognize.
9778 *** The result is that libtool may fail to recognize shared libraries
9779 *** as such. This will affect the creation of libtool libraries that
9780 *** depend on shared libraries, but programs linked with such libtool
9781 *** libraries will work regardless of this problem. Nevertheless, you
9782 *** may want to report the problem to your system manager and/or to
9783 *** [email protected]
9784
9785 _LT_EOF
9786 fi ;;
9787 esac
9788 fi
9789 break
9790 fi
9791 done
9792 IFS=$lt_save_ifs
9793 MAGIC_CMD=$lt_save_MAGIC_CMD
9794 ;;
9795 esac
9796 fi
9797
9798 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9799 if test -n "$MAGIC_CMD"; then
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9801 $as_echo "$MAGIC_CMD" >&6; }
9802 else
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9804 $as_echo "no" >&6; }
9805 fi
9806
9807
9808 else
9809 MAGIC_CMD=:
9810 fi
9811 fi
9812
9813 fi
9814 ;;
9815 esac
9816
9817 # Use C for the default configuration in the libtool script
9818
9819 lt_save_CC=$CC
9820 ac_ext=c
9821 ac_cpp='$CPP $CPPFLAGS'
9822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9825
9826
9827 # Source file extension for C test sources.
9828 ac_ext=c
9829
9830 # Object file extension for compiled C test sources.
9831 objext=o
9832 objext=$objext
9833
9834 # Code to be used in simple compile tests
9835 lt_simple_compile_test_code="int some_variable = 0;"
9836
9837 # Code to be used in simple link tests
9838 lt_simple_link_test_code='int main(){return(0);}'
9839
9840
9841
9842
9843
9844
9845
9846 # If no C compiler was specified, use CC.
9847 LTCC=${LTCC-"$CC"}
9848
9849 # If no C compiler flags were specified, use CFLAGS.
9850 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9851
9852 # Allow CC to be a program name with arguments.
9853 compiler=$CC
9854
9855 # Save the default compiler, since it gets overwritten when the other
9856 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9857 compiler_DEFAULT=$CC
9858
9859 # save warnings/boilerplate of simple test code
9860 ac_outfile=conftest.$ac_objext
9861 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9862 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9863 _lt_compiler_boilerplate=`cat conftest.err`
9864 $RM conftest*
9865
9866 ac_outfile=conftest.$ac_objext
9867 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9868 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9869 _lt_linker_boilerplate=`cat conftest.err`
9870 $RM -r conftest*
9871
9872
9873 ## CAVEAT EMPTOR:
9874 ## There is no encapsulation within the following macros, do not change
9875 ## the running order or otherwise move them around unless you know exactly
9876 ## what you are doing...
9877 if test -n "$compiler"; then
9878
9879 lt_prog_compiler_no_builtin_flag=
9880
9881 if test yes = "$GCC"; then
9882 case $cc_basename in
9883 nvcc*)
9884 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9885 *)
9886 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9887 esac
9888
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9890 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9891 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9892 $as_echo_n "(cached) " >&6
9893 else
9894 lt_cv_prog_compiler_rtti_exceptions=no
9895 ac_outfile=conftest.$ac_objext
9896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9897 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9898 # Insert the option either (1) after the last *FLAGS variable, or
9899 # (2) before a word containing "conftest.", or (3) at the end.
9900 # Note that $ac_compile itself does not contain backslashes and begins
9901 # with a dollar sign (not a hyphen), so the echo should work correctly.
9902 # The option is referenced via a variable to avoid confusing sed.
9903 lt_compile=`echo "$ac_compile" | $SED \
9904 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9905 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9906 -e 's:$: $lt_compiler_flag:'`
9907 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9908 (eval "$lt_compile" 2>conftest.err)
9909 ac_status=$?
9910 cat conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 if (exit $ac_status) && test -s "$ac_outfile"; then
9913 # The compiler can only warn and ignore the option if not recognized
9914 # So say no if there are warnings other than the usual output.
9915 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9916 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9917 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9918 lt_cv_prog_compiler_rtti_exceptions=yes
9919 fi
9920 fi
9921 $RM conftest*
9922
9923 fi
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9925 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9926
9927 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9928 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9929 else
9930 :
9931 fi
9932
9933 fi
9934
9935
9936
9937
9938
9939
9940 lt_prog_compiler_wl=
9941 lt_prog_compiler_pic=
9942 lt_prog_compiler_static=
9943
9944
9945 if test yes = "$GCC"; then
9946 lt_prog_compiler_wl='-Wl,'
9947 lt_prog_compiler_static='-static'
9948
9949 case $host_os in
9950 aix*)
9951 # All AIX code is PIC.
9952 if test ia64 = "$host_cpu"; then
9953 # AIX 5 now supports IA64 processor
9954 lt_prog_compiler_static='-Bstatic'
9955 fi
9956 lt_prog_compiler_pic='-fPIC'
9957 ;;
9958
9959 amigaos*)
9960 case $host_cpu in
9961 powerpc)
9962 # see comment about AmigaOS4 .so support
9963 lt_prog_compiler_pic='-fPIC'
9964 ;;
9965 m68k)
9966 # FIXME: we need at least 68020 code to build shared libraries, but
9967 # adding the '-m68020' flag to GCC prevents building anything better,
9968 # like '-m68040'.
9969 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9970 ;;
9971 esac
9972 ;;
9973
9974 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9975 # PIC is the default for these OSes.
9976 ;;
9977
9978 mingw* | cygwin* | pw32* | os2* | cegcc*)
9979 # This hack is so that the source file can tell whether it is being
9980 # built for inclusion in a dll (and should export symbols for example).
9981 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9982 # (--disable-auto-import) libraries
9983 lt_prog_compiler_pic='-DDLL_EXPORT'
9984 case $host_os in
9985 os2*)
9986 lt_prog_compiler_static='$wl-static'
9987 ;;
9988 esac
9989 ;;
9990
9991 darwin* | rhapsody*)
9992 # PIC is the default on this platform
9993 # Common symbols not allowed in MH_DYLIB files
9994 lt_prog_compiler_pic='-fno-common'
9995 ;;
9996
9997 haiku*)
9998 # PIC is the default for Haiku.
9999 # The "-static" flag exists, but is broken.
10000 lt_prog_compiler_static=
10001 ;;
10002
10003 hpux*)
10004 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10005 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10006 # sets the default TLS model and affects inlining.
10007 case $host_cpu in
10008 hppa*64*)
10009 # +Z the default
10010 ;;
10011 *)
10012 lt_prog_compiler_pic='-fPIC'
10013 ;;
10014 esac
10015 ;;
10016
10017 interix[3-9]*)
10018 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10019 # Instead, we relocate shared libraries at runtime.
10020 ;;
10021
10022 msdosdjgpp*)
10023 # Just because we use GCC doesn't mean we suddenly get shared libraries
10024 # on systems that don't support them.
10025 lt_prog_compiler_can_build_shared=no
10026 enable_shared=no
10027 ;;
10028
10029 *nto* | *qnx*)
10030 # QNX uses GNU C++, but need to define -shared option too, otherwise
10031 # it will coredump.
10032 lt_prog_compiler_pic='-fPIC -shared'
10033 ;;
10034
10035 sysv4*MP*)
10036 if test -d /usr/nec; then
10037 lt_prog_compiler_pic=-Kconform_pic
10038 fi
10039 ;;
10040
10041 *)
10042 lt_prog_compiler_pic='-fPIC'
10043 ;;
10044 esac
10045
10046 case $cc_basename in
10047 nvcc*) # Cuda Compiler Driver 2.2
10048 lt_prog_compiler_wl='-Xlinker '
10049 if test -n "$lt_prog_compiler_pic"; then
10050 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10051 fi
10052 ;;
10053 esac
10054 else
10055 # PORTME Check for flag to pass linker flags through the system compiler.
10056 case $host_os in
10057 aix*)
10058 lt_prog_compiler_wl='-Wl,'
10059 if test ia64 = "$host_cpu"; then
10060 # AIX 5 now supports IA64 processor
10061 lt_prog_compiler_static='-Bstatic'
10062 else
10063 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10064 fi
10065 ;;
10066
10067 darwin* | rhapsody*)
10068 # PIC is the default on this platform
10069 # Common symbols not allowed in MH_DYLIB files
10070 lt_prog_compiler_pic='-fno-common'
10071 case $cc_basename in
10072 nagfor*)
10073 # NAG Fortran compiler
10074 lt_prog_compiler_wl='-Wl,-Wl,,'
10075 lt_prog_compiler_pic='-PIC'
10076 lt_prog_compiler_static='-Bstatic'
10077 ;;
10078 esac
10079 ;;
10080
10081 mingw* | cygwin* | pw32* | os2* | cegcc*)
10082 # This hack is so that the source file can tell whether it is being
10083 # built for inclusion in a dll (and should export symbols for example).
10084 lt_prog_compiler_pic='-DDLL_EXPORT'
10085 case $host_os in
10086 os2*)
10087 lt_prog_compiler_static='$wl-static'
10088 ;;
10089 esac
10090 ;;
10091
10092 hpux9* | hpux10* | hpux11*)
10093 lt_prog_compiler_wl='-Wl,'
10094 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10095 # not for PA HP-UX.
10096 case $host_cpu in
10097 hppa*64*|ia64*)
10098 # +Z the default
10099 ;;
10100 *)
10101 lt_prog_compiler_pic='+Z'
10102 ;;
10103 esac
10104 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10105 lt_prog_compiler_static='$wl-a ${wl}archive'
10106 ;;
10107
10108 irix5* | irix6* | nonstopux*)
10109 lt_prog_compiler_wl='-Wl,'
10110 # PIC (with -KPIC) is the default.
10111 lt_prog_compiler_static='-non_shared'
10112 ;;
10113
10114 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10115 case $cc_basename in
10116 # old Intel for x86_64, which still supported -KPIC.
10117 ecc*)
10118 lt_prog_compiler_wl='-Wl,'
10119 lt_prog_compiler_pic='-KPIC'
10120 lt_prog_compiler_static='-static'
10121 ;;
10122 # icc used to be incompatible with GCC.
10123 # ICC 10 doesn't accept -KPIC any more.
10124 icc* | ifort*)
10125 lt_prog_compiler_wl='-Wl,'
10126 lt_prog_compiler_pic='-fPIC'
10127 lt_prog_compiler_static='-static'
10128 ;;
10129 # Lahey Fortran 8.1.
10130 lf95*)
10131 lt_prog_compiler_wl='-Wl,'
10132 lt_prog_compiler_pic='--shared'
10133 lt_prog_compiler_static='--static'
10134 ;;
10135 nagfor*)
10136 # NAG Fortran compiler
10137 lt_prog_compiler_wl='-Wl,-Wl,,'
10138 lt_prog_compiler_pic='-PIC'
10139 lt_prog_compiler_static='-Bstatic'
10140 ;;
10141 tcc*)
10142 # Fabrice Bellard et al's Tiny C Compiler
10143 lt_prog_compiler_wl='-Wl,'
10144 lt_prog_compiler_pic='-fPIC'
10145 lt_prog_compiler_static='-static'
10146 ;;
10147 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10148 # Portland Group compilers (*not* the Pentium gcc compiler,
10149 # which looks to be a dead project)
10150 lt_prog_compiler_wl='-Wl,'
10151 lt_prog_compiler_pic='-fpic'
10152 lt_prog_compiler_static='-Bstatic'
10153 ;;
10154 ccc*)
10155 lt_prog_compiler_wl='-Wl,'
10156 # All Alpha code is PIC.
10157 lt_prog_compiler_static='-non_shared'
10158 ;;
10159 xl* | bgxl* | bgf* | mpixl*)
10160 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10161 lt_prog_compiler_wl='-Wl,'
10162 lt_prog_compiler_pic='-qpic'
10163 lt_prog_compiler_static='-qstaticlink'
10164 ;;
10165 *)
10166 case `$CC -V 2>&1 | sed 5q` in
10167 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10168 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10169 lt_prog_compiler_pic='-KPIC'
10170 lt_prog_compiler_static='-Bstatic'
10171 lt_prog_compiler_wl=''
10172 ;;
10173 *Sun\ F* | *Sun*Fortran*)
10174 lt_prog_compiler_pic='-KPIC'
10175 lt_prog_compiler_static='-Bstatic'
10176 lt_prog_compiler_wl='-Qoption ld '
10177 ;;
10178 *Sun\ C*)
10179 # Sun C 5.9
10180 lt_prog_compiler_pic='-KPIC'
10181 lt_prog_compiler_static='-Bstatic'
10182 lt_prog_compiler_wl='-Wl,'
10183 ;;
10184 *Intel*\ [CF]*Compiler*)
10185 lt_prog_compiler_wl='-Wl,'
10186 lt_prog_compiler_pic='-fPIC'
10187 lt_prog_compiler_static='-static'
10188 ;;
10189 *Portland\ Group*)
10190 lt_prog_compiler_wl='-Wl,'
10191 lt_prog_compiler_pic='-fpic'
10192 lt_prog_compiler_static='-Bstatic'
10193 ;;
10194 esac
10195 ;;
10196 esac
10197 ;;
10198
10199 newsos6)
10200 lt_prog_compiler_pic='-KPIC'
10201 lt_prog_compiler_static='-Bstatic'
10202 ;;
10203
10204 *nto* | *qnx*)
10205 # QNX uses GNU C++, but need to define -shared option too, otherwise
10206 # it will coredump.
10207 lt_prog_compiler_pic='-fPIC -shared'
10208 ;;
10209
10210 osf3* | osf4* | osf5*)
10211 lt_prog_compiler_wl='-Wl,'
10212 # All OSF/1 code is PIC.
10213 lt_prog_compiler_static='-non_shared'
10214 ;;
10215
10216 rdos*)
10217 lt_prog_compiler_static='-non_shared'
10218 ;;
10219
10220 solaris*)
10221 lt_prog_compiler_pic='-KPIC'
10222 lt_prog_compiler_static='-Bstatic'
10223 case $cc_basename in
10224 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10225 lt_prog_compiler_wl='-Qoption ld ';;
10226 *)
10227 lt_prog_compiler_wl='-Wl,';;
10228 esac
10229 ;;
10230
10231 sunos4*)
10232 lt_prog_compiler_wl='-Qoption ld '
10233 lt_prog_compiler_pic='-PIC'
10234 lt_prog_compiler_static='-Bstatic'
10235 ;;
10236
10237 sysv4 | sysv4.2uw2* | sysv4.3*)
10238 lt_prog_compiler_wl='-Wl,'
10239 lt_prog_compiler_pic='-KPIC'
10240 lt_prog_compiler_static='-Bstatic'
10241 ;;
10242
10243 sysv4*MP*)
10244 if test -d /usr/nec; then
10245 lt_prog_compiler_pic='-Kconform_pic'
10246 lt_prog_compiler_static='-Bstatic'
10247 fi
10248 ;;
10249
10250 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10251 lt_prog_compiler_wl='-Wl,'
10252 lt_prog_compiler_pic='-KPIC'
10253 lt_prog_compiler_static='-Bstatic'
10254 ;;
10255
10256 unicos*)
10257 lt_prog_compiler_wl='-Wl,'
10258 lt_prog_compiler_can_build_shared=no
10259 ;;
10260
10261 uts4*)
10262 lt_prog_compiler_pic='-pic'
10263 lt_prog_compiler_static='-Bstatic'
10264 ;;
10265
10266 *)
10267 lt_prog_compiler_can_build_shared=no
10268 ;;
10269 esac
10270 fi
10271
10272 case $host_os in
10273 # For platforms that do not support PIC, -DPIC is meaningless:
10274 *djgpp*)
10275 lt_prog_compiler_pic=
10276 ;;
10277 *)
10278 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10279 ;;
10280 esac
10281
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10283 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10284 if ${lt_cv_prog_compiler_pic+:} false; then :
10285 $as_echo_n "(cached) " >&6
10286 else
10287 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10288 fi
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10290 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10291 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10292
10293 #
10294 # Check to make sure the PIC flag actually works.
10295 #
10296 if test -n "$lt_prog_compiler_pic"; then
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10298 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10299 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10300 $as_echo_n "(cached) " >&6
10301 else
10302 lt_cv_prog_compiler_pic_works=no
10303 ac_outfile=conftest.$ac_objext
10304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10305 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10306 # Insert the option either (1) after the last *FLAGS variable, or
10307 # (2) before a word containing "conftest.", or (3) at the end.
10308 # Note that $ac_compile itself does not contain backslashes and begins
10309 # with a dollar sign (not a hyphen), so the echo should work correctly.
10310 # The option is referenced via a variable to avoid confusing sed.
10311 lt_compile=`echo "$ac_compile" | $SED \
10312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10314 -e 's:$: $lt_compiler_flag:'`
10315 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10316 (eval "$lt_compile" 2>conftest.err)
10317 ac_status=$?
10318 cat conftest.err >&5
10319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 if (exit $ac_status) && test -s "$ac_outfile"; then
10321 # The compiler can only warn and ignore the option if not recognized
10322 # So say no if there are warnings other than the usual output.
10323 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10325 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10326 lt_cv_prog_compiler_pic_works=yes
10327 fi
10328 fi
10329 $RM conftest*
10330
10331 fi
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10333 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10334
10335 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10336 case $lt_prog_compiler_pic in
10337 "" | " "*) ;;
10338 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10339 esac
10340 else
10341 lt_prog_compiler_pic=
10342 lt_prog_compiler_can_build_shared=no
10343 fi
10344
10345 fi
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357 #
10358 # Check to make sure the static flag actually works.
10359 #
10360 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10362 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10363 if ${lt_cv_prog_compiler_static_works+:} false; then :
10364 $as_echo_n "(cached) " >&6
10365 else
10366 lt_cv_prog_compiler_static_works=no
10367 save_LDFLAGS=$LDFLAGS
10368 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10369 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10370 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10371 # The linker can only warn and ignore the option if not recognized
10372 # So say no if there are warnings
10373 if test -s conftest.err; then
10374 # Append any errors to the config.log.
10375 cat conftest.err 1>&5
10376 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10378 if diff conftest.exp conftest.er2 >/dev/null; then
10379 lt_cv_prog_compiler_static_works=yes
10380 fi
10381 else
10382 lt_cv_prog_compiler_static_works=yes
10383 fi
10384 fi
10385 $RM -r conftest*
10386 LDFLAGS=$save_LDFLAGS
10387
10388 fi
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10390 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10391
10392 if test yes = "$lt_cv_prog_compiler_static_works"; then
10393 :
10394 else
10395 lt_prog_compiler_static=
10396 fi
10397
10398
10399
10400
10401
10402
10403
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10405 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10406 if ${lt_cv_prog_compiler_c_o+:} false; then :
10407 $as_echo_n "(cached) " >&6
10408 else
10409 lt_cv_prog_compiler_c_o=no
10410 $RM -r conftest 2>/dev/null
10411 mkdir conftest
10412 cd conftest
10413 mkdir out
10414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10415
10416 lt_compiler_flag="-o out/conftest2.$ac_objext"
10417 # Insert the option either (1) after the last *FLAGS variable, or
10418 # (2) before a word containing "conftest.", or (3) at the end.
10419 # Note that $ac_compile itself does not contain backslashes and begins
10420 # with a dollar sign (not a hyphen), so the echo should work correctly.
10421 lt_compile=`echo "$ac_compile" | $SED \
10422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10424 -e 's:$: $lt_compiler_flag:'`
10425 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10426 (eval "$lt_compile" 2>out/conftest.err)
10427 ac_status=$?
10428 cat out/conftest.err >&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10431 then
10432 # The compiler can only warn and ignore the option if not recognized
10433 # So say no if there are warnings
10434 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10435 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10436 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10437 lt_cv_prog_compiler_c_o=yes
10438 fi
10439 fi
10440 chmod u+w . 2>&5
10441 $RM conftest*
10442 # SGI C++ compiler will create directory out/ii_files/ for
10443 # template instantiation
10444 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10445 $RM out/* && rmdir out
10446 cd ..
10447 $RM -r conftest
10448 $RM conftest*
10449
10450 fi
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10452 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10453
10454
10455
10456
10457
10458
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10460 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10461 if ${lt_cv_prog_compiler_c_o+:} false; then :
10462 $as_echo_n "(cached) " >&6
10463 else
10464 lt_cv_prog_compiler_c_o=no
10465 $RM -r conftest 2>/dev/null
10466 mkdir conftest
10467 cd conftest
10468 mkdir out
10469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10470
10471 lt_compiler_flag="-o out/conftest2.$ac_objext"
10472 # Insert the option either (1) after the last *FLAGS variable, or
10473 # (2) before a word containing "conftest.", or (3) at the end.
10474 # Note that $ac_compile itself does not contain backslashes and begins
10475 # with a dollar sign (not a hyphen), so the echo should work correctly.
10476 lt_compile=`echo "$ac_compile" | $SED \
10477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10479 -e 's:$: $lt_compiler_flag:'`
10480 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10481 (eval "$lt_compile" 2>out/conftest.err)
10482 ac_status=$?
10483 cat out/conftest.err >&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10486 then
10487 # The compiler can only warn and ignore the option if not recognized
10488 # So say no if there are warnings
10489 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10490 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10491 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10492 lt_cv_prog_compiler_c_o=yes
10493 fi
10494 fi
10495 chmod u+w . 2>&5
10496 $RM conftest*
10497 # SGI C++ compiler will create directory out/ii_files/ for
10498 # template instantiation
10499 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10500 $RM out/* && rmdir out
10501 cd ..
10502 $RM -r conftest
10503 $RM conftest*
10504
10505 fi
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10507 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10508
10509
10510
10511
10512 hard_links=nottested
10513 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10514 # do not overwrite the value of need_locks provided by the user
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10516 $as_echo_n "checking if we can lock with hard links... " >&6; }
10517 hard_links=yes
10518 $RM conftest*
10519 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10520 touch conftest.a
10521 ln conftest.a conftest.b 2>&5 || hard_links=no
10522 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10524 $as_echo "$hard_links" >&6; }
10525 if test no = "$hard_links"; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10527 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10528 need_locks=warn
10529 fi
10530 else
10531 need_locks=no
10532 fi
10533
10534
10535
10536
10537
10538
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10540 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10541
10542 runpath_var=
10543 allow_undefined_flag=
10544 always_export_symbols=no
10545 archive_cmds=
10546 archive_expsym_cmds=
10547 compiler_needs_object=no
10548 enable_shared_with_static_runtimes=no
10549 export_dynamic_flag_spec=
10550 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10551 hardcode_automatic=no
10552 hardcode_direct=no
10553 hardcode_direct_absolute=no
10554 hardcode_libdir_flag_spec=
10555 hardcode_libdir_separator=
10556 hardcode_minus_L=no
10557 hardcode_shlibpath_var=unsupported
10558 inherit_rpath=no
10559 link_all_deplibs=unknown
10560 module_cmds=
10561 module_expsym_cmds=
10562 old_archive_from_new_cmds=
10563 old_archive_from_expsyms_cmds=
10564 thread_safe_flag_spec=
10565 whole_archive_flag_spec=
10566 # include_expsyms should be a list of space-separated symbols to be *always*
10567 # included in the symbol list
10568 include_expsyms=
10569 # exclude_expsyms can be an extended regexp of symbols to exclude
10570 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10571 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10572 # as well as any symbol that contains 'd'.
10573 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10574 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10575 # platforms (ab)use it in PIC code, but their linkers get confused if
10576 # the symbol is explicitly referenced. Since portable code cannot
10577 # rely on this symbol name, it's probably fine to never include it in
10578 # preloaded symbol tables.
10579 # Exclude shared library initialization/finalization symbols.
10580 extract_expsyms_cmds=
10581
10582 case $host_os in
10583 cygwin* | mingw* | pw32* | cegcc*)
10584 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10585 # When not using gcc, we currently assume that we are using
10586 # Microsoft Visual C++.
10587 if test yes != "$GCC"; then
10588 with_gnu_ld=no
10589 fi
10590 ;;
10591 interix*)
10592 # we just hope/assume this is gcc and not c89 (= MSVC++)
10593 with_gnu_ld=yes
10594 ;;
10595 openbsd* | bitrig*)
10596 with_gnu_ld=no
10597 ;;
10598 linux* | k*bsd*-gnu | gnu*)
10599 link_all_deplibs=no
10600 ;;
10601 esac
10602
10603 ld_shlibs=yes
10604
10605 # On some targets, GNU ld is compatible enough with the native linker
10606 # that we're better off using the native interface for both.
10607 lt_use_gnu_ld_interface=no
10608 if test yes = "$with_gnu_ld"; then
10609 case $host_os in
10610 aix*)
10611 # The AIX port of GNU ld has always aspired to compatibility
10612 # with the native linker. However, as the warning in the GNU ld
10613 # block says, versions before 2.19.5* couldn't really create working
10614 # shared libraries, regardless of the interface used.
10615 case `$LD -v 2>&1` in
10616 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10617 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10618 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10619 *)
10620 lt_use_gnu_ld_interface=yes
10621 ;;
10622 esac
10623 ;;
10624 *)
10625 lt_use_gnu_ld_interface=yes
10626 ;;
10627 esac
10628 fi
10629
10630 if test yes = "$lt_use_gnu_ld_interface"; then
10631 # If archive_cmds runs LD, not CC, wlarc should be empty
10632 wlarc='$wl'
10633
10634 # Set some defaults for GNU ld with shared library support. These
10635 # are reset later if shared libraries are not supported. Putting them
10636 # here allows them to be overridden if necessary.
10637 runpath_var=LD_RUN_PATH
10638 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10639 export_dynamic_flag_spec='$wl--export-dynamic'
10640 # ancient GNU ld didn't support --whole-archive et. al.
10641 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10642 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10643 else
10644 whole_archive_flag_spec=
10645 fi
10646 supports_anon_versioning=no
10647 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10648 *GNU\ gold*) supports_anon_versioning=yes ;;
10649 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10650 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10651 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10652 *\ 2.11.*) ;; # other 2.11 versions
10653 *) supports_anon_versioning=yes ;;
10654 esac
10655
10656 # See if GNU ld supports shared libraries.
10657 case $host_os in
10658 aix[3-9]*)
10659 # On AIX/PPC, the GNU linker is very broken
10660 if test ia64 != "$host_cpu"; then
10661 ld_shlibs=no
10662 cat <<_LT_EOF 1>&2
10663
10664 *** Warning: the GNU linker, at least up to release 2.19, is reported
10665 *** to be unable to reliably create shared libraries on AIX.
10666 *** Therefore, libtool is disabling shared libraries support. If you
10667 *** really care for shared libraries, you may want to install binutils
10668 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10669 *** You will then need to restart the configuration process.
10670
10671 _LT_EOF
10672 fi
10673 ;;
10674
10675 amigaos*)
10676 case $host_cpu in
10677 powerpc)
10678 # see comment about AmigaOS4 .so support
10679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10680 archive_expsym_cmds=''
10681 ;;
10682 m68k)
10683 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)'
10684 hardcode_libdir_flag_spec='-L$libdir'
10685 hardcode_minus_L=yes
10686 ;;
10687 esac
10688 ;;
10689
10690 beos*)
10691 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10692 allow_undefined_flag=unsupported
10693 # Joseph Beckenbach <[email protected]> says some releases of gcc
10694 # support --undefined. This deserves some investigation. FIXME
10695 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10696 else
10697 ld_shlibs=no
10698 fi
10699 ;;
10700
10701 cygwin* | mingw* | pw32* | cegcc*)
10702 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10703 # as there is no search path for DLLs.
10704 hardcode_libdir_flag_spec='-L$libdir'
10705 export_dynamic_flag_spec='$wl--export-all-symbols'
10706 allow_undefined_flag=unsupported
10707 always_export_symbols=no
10708 enable_shared_with_static_runtimes=yes
10709 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'
10710 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10711
10712 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10713 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10714 # If the export-symbols file already is a .def file, use it as
10715 # is; otherwise, prepend EXPORTS...
10716 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10717 cp $export_symbols $output_objdir/$soname.def;
10718 else
10719 echo EXPORTS > $output_objdir/$soname.def;
10720 cat $export_symbols >> $output_objdir/$soname.def;
10721 fi~
10722 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10723 else
10724 ld_shlibs=no
10725 fi
10726 ;;
10727
10728 haiku*)
10729 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10730 link_all_deplibs=yes
10731 ;;
10732
10733 os2*)
10734 hardcode_libdir_flag_spec='-L$libdir'
10735 hardcode_minus_L=yes
10736 allow_undefined_flag=unsupported
10737 shrext_cmds=.dll
10738 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10739 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10740 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10741 $ECHO EXPORTS >> $output_objdir/$libname.def~
10742 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10743 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10744 emximp -o $lib $output_objdir/$libname.def'
10745 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10746 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10747 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10748 $ECHO EXPORTS >> $output_objdir/$libname.def~
10749 prefix_cmds="$SED"~
10750 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10751 prefix_cmds="$prefix_cmds -e 1d";
10752 fi~
10753 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10754 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10755 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10756 emximp -o $lib $output_objdir/$libname.def'
10757 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10758 enable_shared_with_static_runtimes=yes
10759 ;;
10760
10761 interix[3-9]*)
10762 hardcode_direct=no
10763 hardcode_shlibpath_var=no
10764 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10765 export_dynamic_flag_spec='$wl-E'
10766 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10767 # Instead, shared libraries are loaded at an image base (0x10000000 by
10768 # default) and relocated if they conflict, which is a slow very memory
10769 # consuming and fragmenting process. To avoid this, we pick a random,
10770 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10771 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10772 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10773 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'
10774 ;;
10775
10776 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10777 tmp_diet=no
10778 if test linux-dietlibc = "$host_os"; then
10779 case $cc_basename in
10780 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10781 esac
10782 fi
10783 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10784 && test no = "$tmp_diet"
10785 then
10786 tmp_addflag=' $pic_flag'
10787 tmp_sharedflag='-shared'
10788 case $cc_basename,$host_cpu in
10789 pgcc*) # Portland Group C compiler
10790 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'
10791 tmp_addflag=' $pic_flag'
10792 ;;
10793 pgf77* | pgf90* | pgf95* | pgfortran*)
10794 # Portland Group f77 and f90 compilers
10795 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'
10796 tmp_addflag=' $pic_flag -Mnomain' ;;
10797 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10798 tmp_addflag=' -i_dynamic' ;;
10799 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10800 tmp_addflag=' -i_dynamic -nofor_main' ;;
10801 ifc* | ifort*) # Intel Fortran compiler
10802 tmp_addflag=' -nofor_main' ;;
10803 lf95*) # Lahey Fortran 8.1
10804 whole_archive_flag_spec=
10805 tmp_sharedflag='--shared' ;;
10806 nagfor*) # NAGFOR 5.3
10807 tmp_sharedflag='-Wl,-shared' ;;
10808 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10809 tmp_sharedflag='-qmkshrobj'
10810 tmp_addflag= ;;
10811 nvcc*) # Cuda Compiler Driver 2.2
10812 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'
10813 compiler_needs_object=yes
10814 ;;
10815 esac
10816 case `$CC -V 2>&1 | sed 5q` in
10817 *Sun\ C*) # Sun C 5.9
10818 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'
10819 compiler_needs_object=yes
10820 tmp_sharedflag='-G' ;;
10821 *Sun\ F*) # Sun Fortran 8.3
10822 tmp_sharedflag='-G' ;;
10823 esac
10824 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10825
10826 if test yes = "$supports_anon_versioning"; then
10827 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10828 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10829 echo "local: *; };" >> $output_objdir/$libname.ver~
10830 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10831 fi
10832
10833 case $cc_basename in
10834 tcc*)
10835 export_dynamic_flag_spec='-rdynamic'
10836 ;;
10837 xlf* | bgf* | bgxlf* | mpixlf*)
10838 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10839 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10840 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10841 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10842 if test yes = "$supports_anon_versioning"; then
10843 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10844 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10845 echo "local: *; };" >> $output_objdir/$libname.ver~
10846 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10847 fi
10848 ;;
10849 esac
10850 else
10851 ld_shlibs=no
10852 fi
10853 ;;
10854
10855 netbsd* | netbsdelf*-gnu)
10856 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10857 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10858 wlarc=
10859 else
10860 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10861 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10862 fi
10863 ;;
10864
10865 solaris*)
10866 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10867 ld_shlibs=no
10868 cat <<_LT_EOF 1>&2
10869
10870 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10871 *** create shared libraries on Solaris systems. Therefore, libtool
10872 *** is disabling shared libraries support. We urge you to upgrade GNU
10873 *** binutils to release 2.9.1 or newer. Another option is to modify
10874 *** your PATH or compiler configuration so that the native linker is
10875 *** used, and then restart.
10876
10877 _LT_EOF
10878 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10879 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10880 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10881 else
10882 ld_shlibs=no
10883 fi
10884 ;;
10885
10886 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10887 case `$LD -v 2>&1` in
10888 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10889 ld_shlibs=no
10890 cat <<_LT_EOF 1>&2
10891
10892 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10893 *** reliably create shared libraries on SCO systems. Therefore, libtool
10894 *** is disabling shared libraries support. We urge you to upgrade GNU
10895 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10896 *** your PATH or compiler configuration so that the native linker is
10897 *** used, and then restart.
10898
10899 _LT_EOF
10900 ;;
10901 *)
10902 # For security reasons, it is highly recommended that you always
10903 # use absolute paths for naming shared libraries, and exclude the
10904 # DT_RUNPATH tag from executables and libraries. But doing so
10905 # requires that you compile everything twice, which is a pain.
10906 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10907 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10909 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10910 else
10911 ld_shlibs=no
10912 fi
10913 ;;
10914 esac
10915 ;;
10916
10917 sunos4*)
10918 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10919 wlarc=
10920 hardcode_direct=yes
10921 hardcode_shlibpath_var=no
10922 ;;
10923
10924 *)
10925 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10926 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10927 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10928 else
10929 ld_shlibs=no
10930 fi
10931 ;;
10932 esac
10933
10934 if test no = "$ld_shlibs"; then
10935 runpath_var=
10936 hardcode_libdir_flag_spec=
10937 export_dynamic_flag_spec=
10938 whole_archive_flag_spec=
10939 fi
10940 else
10941 # PORTME fill in a description of your system's linker (not GNU ld)
10942 case $host_os in
10943 aix3*)
10944 allow_undefined_flag=unsupported
10945 always_export_symbols=yes
10946 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'
10947 # Note: this linker hardcodes the directories in LIBPATH if there
10948 # are no directories specified by -L.
10949 hardcode_minus_L=yes
10950 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10951 # Neither direct hardcoding nor static linking is supported with a
10952 # broken collect2.
10953 hardcode_direct=unsupported
10954 fi
10955 ;;
10956
10957 aix[4-9]*)
10958 if test ia64 = "$host_cpu"; then
10959 # On IA64, the linker does run time linking by default, so we don't
10960 # have to do anything special.
10961 aix_use_runtimelinking=no
10962 exp_sym_flag='-Bexport'
10963 no_entry_flag=
10964 else
10965 # If we're using GNU nm, then we don't want the "-C" option.
10966 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10967 # Without the "-l" option, or with the "-B" option, AIX nm treats
10968 # weak defined symbols like other global defined symbols, whereas
10969 # GNU nm marks them as "W".
10970 # While the 'weak' keyword is ignored in the Export File, we need
10971 # it in the Import File for the 'aix-soname' feature, so we have
10972 # to replace the "-B" option with "-P" for AIX nm.
10973 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10974 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'
10975 else
10976 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'
10977 fi
10978 aix_use_runtimelinking=no
10979
10980 # Test if we are trying to use run time linking or normal
10981 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10982 # have runtime linking enabled, and use it for executables.
10983 # For shared libraries, we enable/disable runtime linking
10984 # depending on the kind of the shared library created -
10985 # when "with_aix_soname,aix_use_runtimelinking" is:
10986 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10987 # "aix,yes" lib.so shared, rtl:yes, for executables
10988 # lib.a static archive
10989 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10990 # lib.a(lib.so.V) shared, rtl:no, for executables
10991 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10992 # lib.a(lib.so.V) shared, rtl:no
10993 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10994 # lib.a static archive
10995 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10996 for ld_flag in $LDFLAGS; do
10997 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10998 aix_use_runtimelinking=yes
10999 break
11000 fi
11001 done
11002 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11003 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11004 # so we don't have lib.a shared libs to link our executables.
11005 # We have to force runtime linking in this case.
11006 aix_use_runtimelinking=yes
11007 LDFLAGS="$LDFLAGS -Wl,-brtl"
11008 fi
11009 ;;
11010 esac
11011
11012 exp_sym_flag='-bexport'
11013 no_entry_flag='-bnoentry'
11014 fi
11015
11016 # When large executables or shared objects are built, AIX ld can
11017 # have problems creating the table of contents. If linking a library
11018 # or program results in "error TOC overflow" add -mminimal-toc to
11019 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11020 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11021
11022 archive_cmds=''
11023 hardcode_direct=yes
11024 hardcode_direct_absolute=yes
11025 hardcode_libdir_separator=':'
11026 link_all_deplibs=yes
11027 file_list_spec='$wl-f,'
11028 case $with_aix_soname,$aix_use_runtimelinking in
11029 aix,*) ;; # traditional, no import file
11030 svr4,* | *,yes) # use import file
11031 # The Import File defines what to hardcode.
11032 hardcode_direct=no
11033 hardcode_direct_absolute=no
11034 ;;
11035 esac
11036
11037 if test yes = "$GCC"; then
11038 case $host_os in aix4.[012]|aix4.[012].*)
11039 # We only want to do this on AIX 4.2 and lower, the check
11040 # below for broken collect2 doesn't work under 4.3+
11041 collect2name=`$CC -print-prog-name=collect2`
11042 if test -f "$collect2name" &&
11043 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11044 then
11045 # We have reworked collect2
11046 :
11047 else
11048 # We have old collect2
11049 hardcode_direct=unsupported
11050 # It fails to find uninstalled libraries when the uninstalled
11051 # path is not listed in the libpath. Setting hardcode_minus_L
11052 # to unsupported forces relinking
11053 hardcode_minus_L=yes
11054 hardcode_libdir_flag_spec='-L$libdir'
11055 hardcode_libdir_separator=
11056 fi
11057 ;;
11058 esac
11059 shared_flag='-shared'
11060 if test yes = "$aix_use_runtimelinking"; then
11061 shared_flag="$shared_flag "'$wl-G'
11062 fi
11063 # Need to ensure runtime linking is disabled for the traditional
11064 # shared library, or the linker may eventually find shared libraries
11065 # /with/ Import File - we do not want to mix them.
11066 shared_flag_aix='-shared'
11067 shared_flag_svr4='-shared $wl-G'
11068 else
11069 # not using gcc
11070 if test ia64 = "$host_cpu"; then
11071 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11072 # chokes on -Wl,-G. The following line is correct:
11073 shared_flag='-G'
11074 else
11075 if test yes = "$aix_use_runtimelinking"; then
11076 shared_flag='$wl-G'
11077 else
11078 shared_flag='$wl-bM:SRE'
11079 fi
11080 shared_flag_aix='$wl-bM:SRE'
11081 shared_flag_svr4='$wl-G'
11082 fi
11083 fi
11084
11085 export_dynamic_flag_spec='$wl-bexpall'
11086 # It seems that -bexpall does not export symbols beginning with
11087 # underscore (_), so it is better to generate a list of symbols to export.
11088 always_export_symbols=yes
11089 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11090 # Warning - without using the other runtime loading flags (-brtl),
11091 # -berok will link without error, but may produce a broken library.
11092 allow_undefined_flag='-berok'
11093 # Determine the default libpath from the value encoded in an
11094 # empty executable.
11095 if test set = "${lt_cv_aix_libpath+set}"; then
11096 aix_libpath=$lt_cv_aix_libpath
11097 else
11098 if ${lt_cv_aix_libpath_+:} false; then :
11099 $as_echo_n "(cached) " >&6
11100 else
11101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11102 /* end confdefs.h. */
11103
11104 int
11105 main ()
11106 {
11107
11108 ;
11109 return 0;
11110 }
11111 _ACEOF
11112 if ac_fn_c_try_link "$LINENO"; then :
11113
11114 lt_aix_libpath_sed='
11115 /Import File Strings/,/^$/ {
11116 /^0/ {
11117 s/^0 *\([^ ]*\) *$/\1/
11118 p
11119 }
11120 }'
11121 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11122 # Check for a 64-bit object if we didn't find anything.
11123 if test -z "$lt_cv_aix_libpath_"; then
11124 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11125 fi
11126 fi
11127 rm -f core conftest.err conftest.$ac_objext \
11128 conftest$ac_exeext conftest.$ac_ext
11129 if test -z "$lt_cv_aix_libpath_"; then
11130 lt_cv_aix_libpath_=/usr/lib:/lib
11131 fi
11132
11133 fi
11134
11135 aix_libpath=$lt_cv_aix_libpath_
11136 fi
11137
11138 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11139 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
11140 else
11141 if test ia64 = "$host_cpu"; then
11142 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11143 allow_undefined_flag="-z nodefs"
11144 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"
11145 else
11146 # Determine the default libpath from the value encoded in an
11147 # empty executable.
11148 if test set = "${lt_cv_aix_libpath+set}"; then
11149 aix_libpath=$lt_cv_aix_libpath
11150 else
11151 if ${lt_cv_aix_libpath_+:} false; then :
11152 $as_echo_n "(cached) " >&6
11153 else
11154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155 /* end confdefs.h. */
11156
11157 int
11158 main ()
11159 {
11160
11161 ;
11162 return 0;
11163 }
11164 _ACEOF
11165 if ac_fn_c_try_link "$LINENO"; then :
11166
11167 lt_aix_libpath_sed='
11168 /Import File Strings/,/^$/ {
11169 /^0/ {
11170 s/^0 *\([^ ]*\) *$/\1/
11171 p
11172 }
11173 }'
11174 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11175 # Check for a 64-bit object if we didn't find anything.
11176 if test -z "$lt_cv_aix_libpath_"; then
11177 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11178 fi
11179 fi
11180 rm -f core conftest.err conftest.$ac_objext \
11181 conftest$ac_exeext conftest.$ac_ext
11182 if test -z "$lt_cv_aix_libpath_"; then
11183 lt_cv_aix_libpath_=/usr/lib:/lib
11184 fi
11185
11186 fi
11187
11188 aix_libpath=$lt_cv_aix_libpath_
11189 fi
11190
11191 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11192 # Warning - without using the other run time loading flags,
11193 # -berok will link without error, but may produce a broken library.
11194 no_undefined_flag=' $wl-bernotok'
11195 allow_undefined_flag=' $wl-berok'
11196 if test yes = "$with_gnu_ld"; then
11197 # We only use this code for GNU lds that support --whole-archive.
11198 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11199 else
11200 # Exported symbols can be pulled into shared objects from archives
11201 whole_archive_flag_spec='$convenience'
11202 fi
11203 archive_cmds_need_lc=yes
11204 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11205 # -brtl affects multiple linker settings, -berok does not and is overridden later
11206 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11207 if test svr4 != "$with_aix_soname"; then
11208 # This is similar to how AIX traditionally builds its shared libraries.
11209 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'
11210 fi
11211 if test aix != "$with_aix_soname"; then
11212 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'
11213 else
11214 # used by -dlpreopen to get the symbols
11215 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11216 fi
11217 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11218 fi
11219 fi
11220 ;;
11221
11222 amigaos*)
11223 case $host_cpu in
11224 powerpc)
11225 # see comment about AmigaOS4 .so support
11226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11227 archive_expsym_cmds=''
11228 ;;
11229 m68k)
11230 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)'
11231 hardcode_libdir_flag_spec='-L$libdir'
11232 hardcode_minus_L=yes
11233 ;;
11234 esac
11235 ;;
11236
11237 bsdi[45]*)
11238 export_dynamic_flag_spec=-rdynamic
11239 ;;
11240
11241 cygwin* | mingw* | pw32* | cegcc*)
11242 # When not using gcc, we currently assume that we are using
11243 # Microsoft Visual C++.
11244 # hardcode_libdir_flag_spec is actually meaningless, as there is
11245 # no search path for DLLs.
11246 case $cc_basename in
11247 cl*)
11248 # Native MSVC
11249 hardcode_libdir_flag_spec=' '
11250 allow_undefined_flag=unsupported
11251 always_export_symbols=yes
11252 file_list_spec='@'
11253 # Tell ltmain to make .lib files, not .a files.
11254 libext=lib
11255 # Tell ltmain to make .dll files, not .so files.
11256 shrext_cmds=.dll
11257 # FIXME: Setting linknames here is a bad hack.
11258 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11259 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11260 cp "$export_symbols" "$output_objdir/$soname.def";
11261 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11262 else
11263 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11264 fi~
11265 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11266 linknames='
11267 # The linker will not automatically build a static lib if we build a DLL.
11268 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11269 enable_shared_with_static_runtimes=yes
11270 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11271 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11272 # Don't use ranlib
11273 old_postinstall_cmds='chmod 644 $oldlib'
11274 postlink_cmds='lt_outputfile="@OUTPUT@"~
11275 lt_tool_outputfile="@TOOL_OUTPUT@"~
11276 case $lt_outputfile in
11277 *.exe|*.EXE) ;;
11278 *)
11279 lt_outputfile=$lt_outputfile.exe
11280 lt_tool_outputfile=$lt_tool_outputfile.exe
11281 ;;
11282 esac~
11283 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11284 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11285 $RM "$lt_outputfile.manifest";
11286 fi'
11287 ;;
11288 *)
11289 # Assume MSVC wrapper
11290 hardcode_libdir_flag_spec=' '
11291 allow_undefined_flag=unsupported
11292 # Tell ltmain to make .lib files, not .a files.
11293 libext=lib
11294 # Tell ltmain to make .dll files, not .so files.
11295 shrext_cmds=.dll
11296 # FIXME: Setting linknames here is a bad hack.
11297 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11298 # The linker will automatically build a .lib file if we build a DLL.
11299 old_archive_from_new_cmds='true'
11300 # FIXME: Should let the user specify the lib program.
11301 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11302 enable_shared_with_static_runtimes=yes
11303 ;;
11304 esac
11305 ;;
11306
11307 darwin* | rhapsody*)
11308
11309
11310 archive_cmds_need_lc=no
11311 hardcode_direct=no
11312 hardcode_automatic=yes
11313 hardcode_shlibpath_var=unsupported
11314 if test yes = "$lt_cv_ld_force_load"; then
11315 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\"`'
11316
11317 else
11318 whole_archive_flag_spec=''
11319 fi
11320 link_all_deplibs=yes
11321 allow_undefined_flag=$_lt_dar_allow_undefined
11322 case $cc_basename in
11323 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11324 *) _lt_dar_can_shared=$GCC ;;
11325 esac
11326 if test yes = "$_lt_dar_can_shared"; then
11327 output_verbose_link_cmd=func_echo_all
11328 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11329 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11330 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"
11331 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"
11332
11333 else
11334 ld_shlibs=no
11335 fi
11336
11337 ;;
11338
11339 dgux*)
11340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11341 hardcode_libdir_flag_spec='-L$libdir'
11342 hardcode_shlibpath_var=no
11343 ;;
11344
11345 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11346 # support. Future versions do this automatically, but an explicit c++rt0.o
11347 # does not break anything, and helps significantly (at the cost of a little
11348 # extra space).
11349 freebsd2.2*)
11350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11351 hardcode_libdir_flag_spec='-R$libdir'
11352 hardcode_direct=yes
11353 hardcode_shlibpath_var=no
11354 ;;
11355
11356 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11357 freebsd2.*)
11358 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11359 hardcode_direct=yes
11360 hardcode_minus_L=yes
11361 hardcode_shlibpath_var=no
11362 ;;
11363
11364 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11365 freebsd* | dragonfly*)
11366 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11367 hardcode_libdir_flag_spec='-R$libdir'
11368 hardcode_direct=yes
11369 hardcode_shlibpath_var=no
11370 ;;
11371
11372 hpux9*)
11373 if test yes = "$GCC"; then
11374 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'
11375 else
11376 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'
11377 fi
11378 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11379 hardcode_libdir_separator=:
11380 hardcode_direct=yes
11381
11382 # hardcode_minus_L: Not really in the search PATH,
11383 # but as the default location of the library.
11384 hardcode_minus_L=yes
11385 export_dynamic_flag_spec='$wl-E'
11386 ;;
11387
11388 hpux10*)
11389 if test yes,no = "$GCC,$with_gnu_ld"; then
11390 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11391 else
11392 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11393 fi
11394 if test no = "$with_gnu_ld"; then
11395 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11396 hardcode_libdir_separator=:
11397 hardcode_direct=yes
11398 hardcode_direct_absolute=yes
11399 export_dynamic_flag_spec='$wl-E'
11400 # hardcode_minus_L: Not really in the search PATH,
11401 # but as the default location of the library.
11402 hardcode_minus_L=yes
11403 fi
11404 ;;
11405
11406 hpux11*)
11407 if test yes,no = "$GCC,$with_gnu_ld"; then
11408 case $host_cpu in
11409 hppa*64*)
11410 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11411 ;;
11412 ia64*)
11413 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11414 ;;
11415 *)
11416 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11417 ;;
11418 esac
11419 else
11420 case $host_cpu in
11421 hppa*64*)
11422 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11423 ;;
11424 ia64*)
11425 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11426 ;;
11427 *)
11428
11429 # Older versions of the 11.00 compiler do not understand -b yet
11430 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11432 $as_echo_n "checking if $CC understands -b... " >&6; }
11433 if ${lt_cv_prog_compiler__b+:} false; then :
11434 $as_echo_n "(cached) " >&6
11435 else
11436 lt_cv_prog_compiler__b=no
11437 save_LDFLAGS=$LDFLAGS
11438 LDFLAGS="$LDFLAGS -b"
11439 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11440 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11441 # The linker can only warn and ignore the option if not recognized
11442 # So say no if there are warnings
11443 if test -s conftest.err; then
11444 # Append any errors to the config.log.
11445 cat conftest.err 1>&5
11446 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11448 if diff conftest.exp conftest.er2 >/dev/null; then
11449 lt_cv_prog_compiler__b=yes
11450 fi
11451 else
11452 lt_cv_prog_compiler__b=yes
11453 fi
11454 fi
11455 $RM -r conftest*
11456 LDFLAGS=$save_LDFLAGS
11457
11458 fi
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11460 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11461
11462 if test yes = "$lt_cv_prog_compiler__b"; then
11463 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11464 else
11465 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11466 fi
11467
11468 ;;
11469 esac
11470 fi
11471 if test no = "$with_gnu_ld"; then
11472 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11473 hardcode_libdir_separator=:
11474
11475 case $host_cpu in
11476 hppa*64*|ia64*)
11477 hardcode_direct=no
11478 hardcode_shlibpath_var=no
11479 ;;
11480 *)
11481 hardcode_direct=yes
11482 hardcode_direct_absolute=yes
11483 export_dynamic_flag_spec='$wl-E'
11484
11485 # hardcode_minus_L: Not really in the search PATH,
11486 # but as the default location of the library.
11487 hardcode_minus_L=yes
11488 ;;
11489 esac
11490 fi
11491 ;;
11492
11493 irix5* | irix6* | nonstopux*)
11494 if test yes = "$GCC"; then
11495 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'
11496 # Try to use the -exported_symbol ld option, if it does not
11497 # work, assume that -exports_file does not work either and
11498 # implicitly export all symbols.
11499 # This should be the same for all languages, so no per-tag cache variable.
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11501 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11502 if ${lt_cv_irix_exported_symbol+:} false; then :
11503 $as_echo_n "(cached) " >&6
11504 else
11505 save_LDFLAGS=$LDFLAGS
11506 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h. */
11509 int foo (void) { return 0; }
11510 _ACEOF
11511 if ac_fn_c_try_link "$LINENO"; then :
11512 lt_cv_irix_exported_symbol=yes
11513 else
11514 lt_cv_irix_exported_symbol=no
11515 fi
11516 rm -f core conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext conftest.$ac_ext
11518 LDFLAGS=$save_LDFLAGS
11519 fi
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11521 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11522 if test yes = "$lt_cv_irix_exported_symbol"; then
11523 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'
11524 fi
11525 link_all_deplibs=no
11526 else
11527 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'
11528 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'
11529 fi
11530 archive_cmds_need_lc='no'
11531 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11532 hardcode_libdir_separator=:
11533 inherit_rpath=yes
11534 link_all_deplibs=yes
11535 ;;
11536
11537 linux*)
11538 case $cc_basename in
11539 tcc*)
11540 # Fabrice Bellard et al's Tiny C Compiler
11541 ld_shlibs=yes
11542 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11543 ;;
11544 esac
11545 ;;
11546
11547 netbsd* | netbsdelf*-gnu)
11548 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11549 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11550 else
11551 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11552 fi
11553 hardcode_libdir_flag_spec='-R$libdir'
11554 hardcode_direct=yes
11555 hardcode_shlibpath_var=no
11556 ;;
11557
11558 newsos6)
11559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11560 hardcode_direct=yes
11561 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11562 hardcode_libdir_separator=:
11563 hardcode_shlibpath_var=no
11564 ;;
11565
11566 *nto* | *qnx*)
11567 ;;
11568
11569 openbsd* | bitrig*)
11570 if test -f /usr/libexec/ld.so; then
11571 hardcode_direct=yes
11572 hardcode_shlibpath_var=no
11573 hardcode_direct_absolute=yes
11574 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11575 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11576 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11577 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11578 export_dynamic_flag_spec='$wl-E'
11579 else
11580 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11581 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11582 fi
11583 else
11584 ld_shlibs=no
11585 fi
11586 ;;
11587
11588 os2*)
11589 hardcode_libdir_flag_spec='-L$libdir'
11590 hardcode_minus_L=yes
11591 allow_undefined_flag=unsupported
11592 shrext_cmds=.dll
11593 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11594 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11595 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11596 $ECHO EXPORTS >> $output_objdir/$libname.def~
11597 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11598 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11599 emximp -o $lib $output_objdir/$libname.def'
11600 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11601 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11602 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11603 $ECHO EXPORTS >> $output_objdir/$libname.def~
11604 prefix_cmds="$SED"~
11605 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11606 prefix_cmds="$prefix_cmds -e 1d";
11607 fi~
11608 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11609 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11610 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11611 emximp -o $lib $output_objdir/$libname.def'
11612 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11613 enable_shared_with_static_runtimes=yes
11614 ;;
11615
11616 osf3*)
11617 if test yes = "$GCC"; then
11618 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11619 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'
11620 else
11621 allow_undefined_flag=' -expect_unresolved \*'
11622 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'
11623 fi
11624 archive_cmds_need_lc='no'
11625 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11626 hardcode_libdir_separator=:
11627 ;;
11628
11629 osf4* | osf5*) # as osf3* with the addition of -msym flag
11630 if test yes = "$GCC"; then
11631 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11632 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'
11633 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11634 else
11635 allow_undefined_flag=' -expect_unresolved \*'
11636 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'
11637 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~
11638 $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'
11639
11640 # Both c and cxx compiler support -rpath directly
11641 hardcode_libdir_flag_spec='-rpath $libdir'
11642 fi
11643 archive_cmds_need_lc='no'
11644 hardcode_libdir_separator=:
11645 ;;
11646
11647 solaris*)
11648 no_undefined_flag=' -z defs'
11649 if test yes = "$GCC"; then
11650 wlarc='$wl'
11651 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11652 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11653 $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'
11654 else
11655 case `$CC -V 2>&1` in
11656 *"Compilers 5.0"*)
11657 wlarc=''
11658 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11659 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11660 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11661 ;;
11662 *)
11663 wlarc='$wl'
11664 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11665 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11666 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11667 ;;
11668 esac
11669 fi
11670 hardcode_libdir_flag_spec='-R$libdir'
11671 hardcode_shlibpath_var=no
11672 case $host_os in
11673 solaris2.[0-5] | solaris2.[0-5].*) ;;
11674 *)
11675 # The compiler driver will combine and reorder linker options,
11676 # but understands '-z linker_flag'. GCC discards it without '$wl',
11677 # but is careful enough not to reorder.
11678 # Supported since Solaris 2.6 (maybe 2.5.1?)
11679 if test yes = "$GCC"; then
11680 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11681 else
11682 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11683 fi
11684 ;;
11685 esac
11686 link_all_deplibs=yes
11687 ;;
11688
11689 sunos4*)
11690 if test sequent = "$host_vendor"; then
11691 # Use $CC to link under sequent, because it throws in some extra .o
11692 # files that make .init and .fini sections work.
11693 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11694 else
11695 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11696 fi
11697 hardcode_libdir_flag_spec='-L$libdir'
11698 hardcode_direct=yes
11699 hardcode_minus_L=yes
11700 hardcode_shlibpath_var=no
11701 ;;
11702
11703 sysv4)
11704 case $host_vendor in
11705 sni)
11706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11707 hardcode_direct=yes # is this really true???
11708 ;;
11709 siemens)
11710 ## LD is ld it makes a PLAMLIB
11711 ## CC just makes a GrossModule.
11712 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11713 reload_cmds='$CC -r -o $output$reload_objs'
11714 hardcode_direct=no
11715 ;;
11716 motorola)
11717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11718 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11719 ;;
11720 esac
11721 runpath_var='LD_RUN_PATH'
11722 hardcode_shlibpath_var=no
11723 ;;
11724
11725 sysv4.3*)
11726 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11727 hardcode_shlibpath_var=no
11728 export_dynamic_flag_spec='-Bexport'
11729 ;;
11730
11731 sysv4*MP*)
11732 if test -d /usr/nec; then
11733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11734 hardcode_shlibpath_var=no
11735 runpath_var=LD_RUN_PATH
11736 hardcode_runpath_var=yes
11737 ld_shlibs=yes
11738 fi
11739 ;;
11740
11741 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11742 no_undefined_flag='$wl-z,text'
11743 archive_cmds_need_lc=no
11744 hardcode_shlibpath_var=no
11745 runpath_var='LD_RUN_PATH'
11746
11747 if test yes = "$GCC"; then
11748 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11749 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11750 else
11751 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11752 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11753 fi
11754 ;;
11755
11756 sysv5* | sco3.2v5* | sco5v6*)
11757 # Note: We CANNOT use -z defs as we might desire, because we do not
11758 # link with -lc, and that would cause any symbols used from libc to
11759 # always be unresolved, which means just about no library would
11760 # ever link correctly. If we're not using GNU ld we use -z text
11761 # though, which does catch some bad symbols but isn't as heavy-handed
11762 # as -z defs.
11763 no_undefined_flag='$wl-z,text'
11764 allow_undefined_flag='$wl-z,nodefs'
11765 archive_cmds_need_lc=no
11766 hardcode_shlibpath_var=no
11767 hardcode_libdir_flag_spec='$wl-R,$libdir'
11768 hardcode_libdir_separator=':'
11769 link_all_deplibs=yes
11770 export_dynamic_flag_spec='$wl-Bexport'
11771 runpath_var='LD_RUN_PATH'
11772
11773 if test yes = "$GCC"; then
11774 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11775 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11776 else
11777 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11778 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11779 fi
11780 ;;
11781
11782 uts4*)
11783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11784 hardcode_libdir_flag_spec='-L$libdir'
11785 hardcode_shlibpath_var=no
11786 ;;
11787
11788 *)
11789 ld_shlibs=no
11790 ;;
11791 esac
11792
11793 if test sni = "$host_vendor"; then
11794 case $host in
11795 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11796 export_dynamic_flag_spec='$wl-Blargedynsym'
11797 ;;
11798 esac
11799 fi
11800 fi
11801
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11803 $as_echo "$ld_shlibs" >&6; }
11804 test no = "$ld_shlibs" && can_build_shared=no
11805
11806 with_gnu_ld=$with_gnu_ld
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822 #
11823 # Do we need to explicitly link libc?
11824 #
11825 case "x$archive_cmds_need_lc" in
11826 x|xyes)
11827 # Assume -lc should be added
11828 archive_cmds_need_lc=yes
11829
11830 if test yes,yes = "$GCC,$enable_shared"; then
11831 case $archive_cmds in
11832 *'~'*)
11833 # FIXME: we may have to deal with multi-command sequences.
11834 ;;
11835 '$CC '*)
11836 # Test whether the compiler implicitly links with -lc since on some
11837 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11838 # to ld, don't add -lc before -lgcc.
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11840 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11841 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11842 $as_echo_n "(cached) " >&6
11843 else
11844 $RM conftest*
11845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11846
11847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11848 (eval $ac_compile) 2>&5
11849 ac_status=$?
11850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11851 test $ac_status = 0; } 2>conftest.err; then
11852 soname=conftest
11853 lib=conftest
11854 libobjs=conftest.$ac_objext
11855 deplibs=
11856 wl=$lt_prog_compiler_wl
11857 pic_flag=$lt_prog_compiler_pic
11858 compiler_flags=-v
11859 linker_flags=-v
11860 verstring=
11861 output_objdir=.
11862 libname=conftest
11863 lt_save_allow_undefined_flag=$allow_undefined_flag
11864 allow_undefined_flag=
11865 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11866 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11867 ac_status=$?
11868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11869 test $ac_status = 0; }
11870 then
11871 lt_cv_archive_cmds_need_lc=no
11872 else
11873 lt_cv_archive_cmds_need_lc=yes
11874 fi
11875 allow_undefined_flag=$lt_save_allow_undefined_flag
11876 else
11877 cat conftest.err 1>&5
11878 fi
11879 $RM conftest*
11880
11881 fi
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11883 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11884 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11885 ;;
11886 esac
11887 fi
11888 ;;
11889 esac
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12043 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12044
12045 if test yes = "$GCC"; then
12046 case $host_os in
12047 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12048 *) lt_awk_arg='/^libraries:/' ;;
12049 esac
12050 case $host_os in
12051 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12052 *) lt_sed_strip_eq='s|=/|/|g' ;;
12053 esac
12054 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12055 case $lt_search_path_spec in
12056 *\;*)
12057 # if the path contains ";" then we assume it to be the separator
12058 # otherwise default to the standard path separator (i.e. ":") - it is
12059 # assumed that no part of a normal pathname contains ";" but that should
12060 # okay in the real world where ";" in dirpaths is itself problematic.
12061 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12062 ;;
12063 *)
12064 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12065 ;;
12066 esac
12067 # Ok, now we have the path, separated by spaces, we can step through it
12068 # and add multilib dir if necessary...
12069 lt_tmp_lt_search_path_spec=
12070 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12071 # ...but if some path component already ends with the multilib dir we assume
12072 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12073 case "$lt_multi_os_dir; $lt_search_path_spec " in
12074 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12075 lt_multi_os_dir=
12076 ;;
12077 esac
12078 for lt_sys_path in $lt_search_path_spec; do
12079 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12080 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12081 elif test -n "$lt_multi_os_dir"; then
12082 test -d "$lt_sys_path" && \
12083 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12084 fi
12085 done
12086 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12087 BEGIN {RS = " "; FS = "/|\n";} {
12088 lt_foo = "";
12089 lt_count = 0;
12090 for (lt_i = NF; lt_i > 0; lt_i--) {
12091 if ($lt_i != "" && $lt_i != ".") {
12092 if ($lt_i == "..") {
12093 lt_count++;
12094 } else {
12095 if (lt_count == 0) {
12096 lt_foo = "/" $lt_i lt_foo;
12097 } else {
12098 lt_count--;
12099 }
12100 }
12101 }
12102 }
12103 if (lt_foo != "") { lt_freq[lt_foo]++; }
12104 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12105 }'`
12106 # AWK program above erroneously prepends '/' to C:/dos/paths
12107 # for these hosts.
12108 case $host_os in
12109 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12110 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12111 esac
12112 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12113 else
12114 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12115 fi
12116 library_names_spec=
12117 libname_spec='lib$name'
12118 soname_spec=
12119 shrext_cmds=.so
12120 postinstall_cmds=
12121 postuninstall_cmds=
12122 finish_cmds=
12123 finish_eval=
12124 shlibpath_var=
12125 shlibpath_overrides_runpath=unknown
12126 version_type=none
12127 dynamic_linker="$host_os ld.so"
12128 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12129 need_lib_prefix=unknown
12130 hardcode_into_libs=no
12131
12132 # when you set need_version to no, make sure it does not cause -set_version
12133 # flags to be left without arguments
12134 need_version=unknown
12135
12136
12137
12138 case $host_os in
12139 aix3*)
12140 version_type=linux # correct to gnu/linux during the next big refactor
12141 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12142 shlibpath_var=LIBPATH
12143
12144 # AIX 3 has no versioning support, so we append a major version to the name.
12145 soname_spec='$libname$release$shared_ext$major'
12146 ;;
12147
12148 aix[4-9]*)
12149 version_type=linux # correct to gnu/linux during the next big refactor
12150 need_lib_prefix=no
12151 need_version=no
12152 hardcode_into_libs=yes
12153 if test ia64 = "$host_cpu"; then
12154 # AIX 5 supports IA64
12155 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12156 shlibpath_var=LD_LIBRARY_PATH
12157 else
12158 # With GCC up to 2.95.x, collect2 would create an import file
12159 # for dependence libraries. The import file would start with
12160 # the line '#! .'. This would cause the generated library to
12161 # depend on '.', always an invalid library. This was fixed in
12162 # development snapshots of GCC prior to 3.0.
12163 case $host_os in
12164 aix4 | aix4.[01] | aix4.[01].*)
12165 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12166 echo ' yes '
12167 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12168 :
12169 else
12170 can_build_shared=no
12171 fi
12172 ;;
12173 esac
12174 # Using Import Files as archive members, it is possible to support
12175 # filename-based versioning of shared library archives on AIX. While
12176 # this would work for both with and without runtime linking, it will
12177 # prevent static linking of such archives. So we do filename-based
12178 # shared library versioning with .so extension only, which is used
12179 # when both runtime linking and shared linking is enabled.
12180 # Unfortunately, runtime linking may impact performance, so we do
12181 # not want this to be the default eventually. Also, we use the
12182 # versioned .so libs for executables only if there is the -brtl
12183 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12184 # To allow for filename-based versioning support, we need to create
12185 # libNAME.so.V as an archive file, containing:
12186 # *) an Import File, referring to the versioned filename of the
12187 # archive as well as the shared archive member, telling the
12188 # bitwidth (32 or 64) of that shared object, and providing the
12189 # list of exported symbols of that shared object, eventually
12190 # decorated with the 'weak' keyword
12191 # *) the shared object with the F_LOADONLY flag set, to really avoid
12192 # it being seen by the linker.
12193 # At run time we better use the real file rather than another symlink,
12194 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12195
12196 case $with_aix_soname,$aix_use_runtimelinking in
12197 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12198 # soname into executable. Probably we can add versioning support to
12199 # collect2, so additional links can be useful in future.
12200 aix,yes) # traditional libtool
12201 dynamic_linker='AIX unversionable lib.so'
12202 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12203 # instead of lib<name>.a to let people know that these are not
12204 # typical AIX shared libraries.
12205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12206 ;;
12207 aix,no) # traditional AIX only
12208 dynamic_linker='AIX lib.a(lib.so.V)'
12209 # We preserve .a as extension for shared libraries through AIX4.2
12210 # and later when we are not doing run time linking.
12211 library_names_spec='$libname$release.a $libname.a'
12212 soname_spec='$libname$release$shared_ext$major'
12213 ;;
12214 svr4,*) # full svr4 only
12215 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12216 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12217 # We do not specify a path in Import Files, so LIBPATH fires.
12218 shlibpath_overrides_runpath=yes
12219 ;;
12220 *,yes) # both, prefer svr4
12221 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12222 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12223 # unpreferred sharedlib libNAME.a needs extra handling
12224 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"'
12225 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"'
12226 # We do not specify a path in Import Files, so LIBPATH fires.
12227 shlibpath_overrides_runpath=yes
12228 ;;
12229 *,no) # both, prefer aix
12230 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12231 library_names_spec='$libname$release.a $libname.a'
12232 soname_spec='$libname$release$shared_ext$major'
12233 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12234 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)'
12235 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"'
12236 ;;
12237 esac
12238 shlibpath_var=LIBPATH
12239 fi
12240 ;;
12241
12242 amigaos*)
12243 case $host_cpu in
12244 powerpc)
12245 # Since July 2007 AmigaOS4 officially supports .so libraries.
12246 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12248 ;;
12249 m68k)
12250 library_names_spec='$libname.ixlibrary $libname.a'
12251 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12252 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'
12253 ;;
12254 esac
12255 ;;
12256
12257 beos*)
12258 library_names_spec='$libname$shared_ext'
12259 dynamic_linker="$host_os ld.so"
12260 shlibpath_var=LIBRARY_PATH
12261 ;;
12262
12263 bsdi[45]*)
12264 version_type=linux # correct to gnu/linux during the next big refactor
12265 need_version=no
12266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12267 soname_spec='$libname$release$shared_ext$major'
12268 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12269 shlibpath_var=LD_LIBRARY_PATH
12270 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12271 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12272 # the default ld.so.conf also contains /usr/contrib/lib and
12273 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12274 # libtool to hard-code these into programs
12275 ;;
12276
12277 cygwin* | mingw* | pw32* | cegcc*)
12278 version_type=windows
12279 shrext_cmds=.dll
12280 need_version=no
12281 need_lib_prefix=no
12282
12283 case $GCC,$cc_basename in
12284 yes,*)
12285 # gcc
12286 library_names_spec='$libname.dll.a'
12287 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12288 postinstall_cmds='base_file=`basename \$file`~
12289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12290 dldir=$destdir/`dirname \$dlpath`~
12291 test -d \$dldir || mkdir -p \$dldir~
12292 $install_prog $dir/$dlname \$dldir/$dlname~
12293 chmod a+x \$dldir/$dlname~
12294 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12295 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12296 fi'
12297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12298 dlpath=$dir/\$dldll~
12299 $RM \$dlpath'
12300 shlibpath_overrides_runpath=yes
12301
12302 case $host_os in
12303 cygwin*)
12304 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12305 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12306
12307 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12308 ;;
12309 mingw* | cegcc*)
12310 # MinGW DLLs use traditional 'lib' prefix
12311 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12312 ;;
12313 pw32*)
12314 # pw32 DLLs use 'pw' prefix rather than 'lib'
12315 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12316 ;;
12317 esac
12318 dynamic_linker='Win32 ld.exe'
12319 ;;
12320
12321 *,cl*)
12322 # Native MSVC
12323 libname_spec='$name'
12324 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12325 library_names_spec='$libname.dll.lib'
12326
12327 case $build_os in
12328 mingw*)
12329 sys_lib_search_path_spec=
12330 lt_save_ifs=$IFS
12331 IFS=';'
12332 for lt_path in $LIB
12333 do
12334 IFS=$lt_save_ifs
12335 # Let DOS variable expansion print the short 8.3 style file name.
12336 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12337 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12338 done
12339 IFS=$lt_save_ifs
12340 # Convert to MSYS style.
12341 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12342 ;;
12343 cygwin*)
12344 # Convert to unix form, then to dos form, then back to unix form
12345 # but this time dos style (no spaces!) so that the unix form looks
12346 # like /cygdrive/c/PROGRA~1:/cygdr...
12347 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12348 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12349 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12350 ;;
12351 *)
12352 sys_lib_search_path_spec=$LIB
12353 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12354 # It is most probably a Windows format PATH.
12355 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12356 else
12357 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12358 fi
12359 # FIXME: find the short name or the path components, as spaces are
12360 # common. (e.g. "Program Files" -> "PROGRA~1")
12361 ;;
12362 esac
12363
12364 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12365 postinstall_cmds='base_file=`basename \$file`~
12366 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12367 dldir=$destdir/`dirname \$dlpath`~
12368 test -d \$dldir || mkdir -p \$dldir~
12369 $install_prog $dir/$dlname \$dldir/$dlname'
12370 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12371 dlpath=$dir/\$dldll~
12372 $RM \$dlpath'
12373 shlibpath_overrides_runpath=yes
12374 dynamic_linker='Win32 link.exe'
12375 ;;
12376
12377 *)
12378 # Assume MSVC wrapper
12379 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12380 dynamic_linker='Win32 ld.exe'
12381 ;;
12382 esac
12383 # FIXME: first we should search . and the directory the executable is in
12384 shlibpath_var=PATH
12385 ;;
12386
12387 darwin* | rhapsody*)
12388 dynamic_linker="$host_os dyld"
12389 version_type=darwin
12390 need_lib_prefix=no
12391 need_version=no
12392 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12393 soname_spec='$libname$release$major$shared_ext'
12394 shlibpath_overrides_runpath=yes
12395 shlibpath_var=DYLD_LIBRARY_PATH
12396 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12397
12398 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12399 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12400 ;;
12401
12402 dgux*)
12403 version_type=linux # correct to gnu/linux during the next big refactor
12404 need_lib_prefix=no
12405 need_version=no
12406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12407 soname_spec='$libname$release$shared_ext$major'
12408 shlibpath_var=LD_LIBRARY_PATH
12409 ;;
12410
12411 freebsd* | dragonfly*)
12412 # DragonFly does not have aout. When/if they implement a new
12413 # versioning mechanism, adjust this.
12414 if test -x /usr/bin/objformat; then
12415 objformat=`/usr/bin/objformat`
12416 else
12417 case $host_os in
12418 freebsd[23].*) objformat=aout ;;
12419 *) objformat=elf ;;
12420 esac
12421 fi
12422 version_type=freebsd-$objformat
12423 case $version_type in
12424 freebsd-elf*)
12425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12426 soname_spec='$libname$release$shared_ext$major'
12427 need_version=no
12428 need_lib_prefix=no
12429 ;;
12430 freebsd-*)
12431 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12432 need_version=yes
12433 ;;
12434 esac
12435 shlibpath_var=LD_LIBRARY_PATH
12436 case $host_os in
12437 freebsd2.*)
12438 shlibpath_overrides_runpath=yes
12439 ;;
12440 freebsd3.[01]* | freebsdelf3.[01]*)
12441 shlibpath_overrides_runpath=yes
12442 hardcode_into_libs=yes
12443 ;;
12444 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12445 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12446 shlibpath_overrides_runpath=no
12447 hardcode_into_libs=yes
12448 ;;
12449 *) # from 4.6 on, and DragonFly
12450 shlibpath_overrides_runpath=yes
12451 hardcode_into_libs=yes
12452 ;;
12453 esac
12454 ;;
12455
12456 haiku*)
12457 version_type=linux # correct to gnu/linux during the next big refactor
12458 need_lib_prefix=no
12459 need_version=no
12460 dynamic_linker="$host_os runtime_loader"
12461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12462 soname_spec='$libname$release$shared_ext$major'
12463 shlibpath_var=LIBRARY_PATH
12464 shlibpath_overrides_runpath=no
12465 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12466 hardcode_into_libs=yes
12467 ;;
12468
12469 hpux9* | hpux10* | hpux11*)
12470 # Give a soname corresponding to the major version so that dld.sl refuses to
12471 # link against other versions.
12472 version_type=sunos
12473 need_lib_prefix=no
12474 need_version=no
12475 case $host_cpu in
12476 ia64*)
12477 shrext_cmds='.so'
12478 hardcode_into_libs=yes
12479 dynamic_linker="$host_os dld.so"
12480 shlibpath_var=LD_LIBRARY_PATH
12481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12483 soname_spec='$libname$release$shared_ext$major'
12484 if test 32 = "$HPUX_IA64_MODE"; then
12485 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12486 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12487 else
12488 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12489 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12490 fi
12491 ;;
12492 hppa*64*)
12493 shrext_cmds='.sl'
12494 hardcode_into_libs=yes
12495 dynamic_linker="$host_os dld.sl"
12496 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12497 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12499 soname_spec='$libname$release$shared_ext$major'
12500 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12501 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12502 ;;
12503 *)
12504 shrext_cmds='.sl'
12505 dynamic_linker="$host_os dld.sl"
12506 shlibpath_var=SHLIB_PATH
12507 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12509 soname_spec='$libname$release$shared_ext$major'
12510 ;;
12511 esac
12512 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12513 postinstall_cmds='chmod 555 $lib'
12514 # or fails outright, so override atomically:
12515 install_override_mode=555
12516 ;;
12517
12518 interix[3-9]*)
12519 version_type=linux # correct to gnu/linux during the next big refactor
12520 need_lib_prefix=no
12521 need_version=no
12522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12523 soname_spec='$libname$release$shared_ext$major'
12524 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12525 shlibpath_var=LD_LIBRARY_PATH
12526 shlibpath_overrides_runpath=no
12527 hardcode_into_libs=yes
12528 ;;
12529
12530 irix5* | irix6* | nonstopux*)
12531 case $host_os in
12532 nonstopux*) version_type=nonstopux ;;
12533 *)
12534 if test yes = "$lt_cv_prog_gnu_ld"; then
12535 version_type=linux # correct to gnu/linux during the next big refactor
12536 else
12537 version_type=irix
12538 fi ;;
12539 esac
12540 need_lib_prefix=no
12541 need_version=no
12542 soname_spec='$libname$release$shared_ext$major'
12543 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12544 case $host_os in
12545 irix5* | nonstopux*)
12546 libsuff= shlibsuff=
12547 ;;
12548 *)
12549 case $LD in # libtool.m4 will add one of these switches to LD
12550 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12551 libsuff= shlibsuff= libmagic=32-bit;;
12552 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12553 libsuff=32 shlibsuff=N32 libmagic=N32;;
12554 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12555 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12556 *) libsuff= shlibsuff= libmagic=never-match;;
12557 esac
12558 ;;
12559 esac
12560 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12561 shlibpath_overrides_runpath=no
12562 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12563 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12564 hardcode_into_libs=yes
12565 ;;
12566
12567 # No shared lib support for Linux oldld, aout, or coff.
12568 linux*oldld* | linux*aout* | linux*coff*)
12569 dynamic_linker=no
12570 ;;
12571
12572 linux*android*)
12573 version_type=none # Android doesn't support versioned libraries.
12574 need_lib_prefix=no
12575 need_version=no
12576 library_names_spec='$libname$release$shared_ext'
12577 soname_spec='$libname$release$shared_ext'
12578 finish_cmds=
12579 shlibpath_var=LD_LIBRARY_PATH
12580 shlibpath_overrides_runpath=yes
12581
12582 # This implies no fast_install, which is unacceptable.
12583 # Some rework will be needed to allow for fast_install
12584 # before this can be enabled.
12585 hardcode_into_libs=yes
12586
12587 dynamic_linker='Android linker'
12588 # Don't embed -rpath directories since the linker doesn't support them.
12589 hardcode_libdir_flag_spec='-L$libdir'
12590 ;;
12591
12592 # This must be glibc/ELF.
12593 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12594 version_type=linux # correct to gnu/linux during the next big refactor
12595 need_lib_prefix=no
12596 need_version=no
12597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12598 soname_spec='$libname$release$shared_ext$major'
12599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12600 shlibpath_var=LD_LIBRARY_PATH
12601 shlibpath_overrides_runpath=no
12602
12603 # Some binutils ld are patched to set DT_RUNPATH
12604 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12605 $as_echo_n "(cached) " >&6
12606 else
12607 lt_cv_shlibpath_overrides_runpath=no
12608 save_LDFLAGS=$LDFLAGS
12609 save_libdir=$libdir
12610 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12611 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12613 /* end confdefs.h. */
12614
12615 int
12616 main ()
12617 {
12618
12619 ;
12620 return 0;
12621 }
12622 _ACEOF
12623 if ac_fn_c_try_link "$LINENO"; then :
12624 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12625 lt_cv_shlibpath_overrides_runpath=yes
12626 fi
12627 fi
12628 rm -f core conftest.err conftest.$ac_objext \
12629 conftest$ac_exeext conftest.$ac_ext
12630 LDFLAGS=$save_LDFLAGS
12631 libdir=$save_libdir
12632
12633 fi
12634
12635 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12636
12637 # This implies no fast_install, which is unacceptable.
12638 # Some rework will be needed to allow for fast_install
12639 # before this can be enabled.
12640 hardcode_into_libs=yes
12641
12642 # Ideally, we could use ldconfig to report *all* directores which are
12643 # searched for libraries, however this is still not possible. Aside from not
12644 # being certain /sbin/ldconfig is available, command
12645 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12646 # even though it is searched at run-time. Try to do the best guess by
12647 # appending ld.so.conf contents (and includes) to the search path.
12648 if test -f /etc/ld.so.conf; then
12649 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' ' '`
12650 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12651 fi
12652
12653 # We used to test for /lib/ld.so.1 and disable shared libraries on
12654 # powerpc, because MkLinux only supported shared libraries with the
12655 # GNU dynamic linker. Since this was broken with cross compilers,
12656 # most powerpc-linux boxes support dynamic linking these days and
12657 # people can always --disable-shared, the test was removed, and we
12658 # assume the GNU/Linux dynamic linker is in use.
12659 dynamic_linker='GNU/Linux ld.so'
12660 ;;
12661
12662 netbsdelf*-gnu)
12663 version_type=linux
12664 need_lib_prefix=no
12665 need_version=no
12666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12667 soname_spec='${libname}${release}${shared_ext}$major'
12668 shlibpath_var=LD_LIBRARY_PATH
12669 shlibpath_overrides_runpath=no
12670 hardcode_into_libs=yes
12671 dynamic_linker='NetBSD ld.elf_so'
12672 ;;
12673
12674 netbsd*)
12675 version_type=sunos
12676 need_lib_prefix=no
12677 need_version=no
12678 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12679 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12680 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12681 dynamic_linker='NetBSD (a.out) ld.so'
12682 else
12683 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12684 soname_spec='$libname$release$shared_ext$major'
12685 dynamic_linker='NetBSD ld.elf_so'
12686 fi
12687 shlibpath_var=LD_LIBRARY_PATH
12688 shlibpath_overrides_runpath=yes
12689 hardcode_into_libs=yes
12690 ;;
12691
12692 newsos6)
12693 version_type=linux # correct to gnu/linux during the next big refactor
12694 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12695 shlibpath_var=LD_LIBRARY_PATH
12696 shlibpath_overrides_runpath=yes
12697 ;;
12698
12699 *nto* | *qnx*)
12700 version_type=qnx
12701 need_lib_prefix=no
12702 need_version=no
12703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12704 soname_spec='$libname$release$shared_ext$major'
12705 shlibpath_var=LD_LIBRARY_PATH
12706 shlibpath_overrides_runpath=no
12707 hardcode_into_libs=yes
12708 dynamic_linker='ldqnx.so'
12709 ;;
12710
12711 openbsd* | bitrig*)
12712 version_type=sunos
12713 sys_lib_dlsearch_path_spec=/usr/lib
12714 need_lib_prefix=no
12715 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12716 need_version=no
12717 else
12718 need_version=yes
12719 fi
12720 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12721 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12722 shlibpath_var=LD_LIBRARY_PATH
12723 shlibpath_overrides_runpath=yes
12724 ;;
12725
12726 os2*)
12727 libname_spec='$name'
12728 version_type=windows
12729 shrext_cmds=.dll
12730 need_version=no
12731 need_lib_prefix=no
12732 # OS/2 can only load a DLL with a base name of 8 characters or less.
12733 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12734 v=$($ECHO $release$versuffix | tr -d .-);
12735 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12736 $ECHO $n$v`$shared_ext'
12737 library_names_spec='${libname}_dll.$libext'
12738 dynamic_linker='OS/2 ld.exe'
12739 shlibpath_var=BEGINLIBPATH
12740 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12742 postinstall_cmds='base_file=`basename \$file`~
12743 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12744 dldir=$destdir/`dirname \$dlpath`~
12745 test -d \$dldir || mkdir -p \$dldir~
12746 $install_prog $dir/$dlname \$dldir/$dlname~
12747 chmod a+x \$dldir/$dlname~
12748 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12749 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12750 fi'
12751 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12752 dlpath=$dir/\$dldll~
12753 $RM \$dlpath'
12754 ;;
12755
12756 osf3* | osf4* | osf5*)
12757 version_type=osf
12758 need_lib_prefix=no
12759 need_version=no
12760 soname_spec='$libname$release$shared_ext$major'
12761 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12762 shlibpath_var=LD_LIBRARY_PATH
12763 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12765 ;;
12766
12767 rdos*)
12768 dynamic_linker=no
12769 ;;
12770
12771 solaris*)
12772 version_type=linux # correct to gnu/linux during the next big refactor
12773 need_lib_prefix=no
12774 need_version=no
12775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12776 soname_spec='$libname$release$shared_ext$major'
12777 shlibpath_var=LD_LIBRARY_PATH
12778 shlibpath_overrides_runpath=yes
12779 hardcode_into_libs=yes
12780 # ldd complains unless libraries are executable
12781 postinstall_cmds='chmod +x $lib'
12782 ;;
12783
12784 sunos4*)
12785 version_type=sunos
12786 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12787 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12788 shlibpath_var=LD_LIBRARY_PATH
12789 shlibpath_overrides_runpath=yes
12790 if test yes = "$with_gnu_ld"; then
12791 need_lib_prefix=no
12792 fi
12793 need_version=yes
12794 ;;
12795
12796 sysv4 | sysv4.3*)
12797 version_type=linux # correct to gnu/linux during the next big refactor
12798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12799 soname_spec='$libname$release$shared_ext$major'
12800 shlibpath_var=LD_LIBRARY_PATH
12801 case $host_vendor in
12802 sni)
12803 shlibpath_overrides_runpath=no
12804 need_lib_prefix=no
12805 runpath_var=LD_RUN_PATH
12806 ;;
12807 siemens)
12808 need_lib_prefix=no
12809 ;;
12810 motorola)
12811 need_lib_prefix=no
12812 need_version=no
12813 shlibpath_overrides_runpath=no
12814 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12815 ;;
12816 esac
12817 ;;
12818
12819 sysv4*MP*)
12820 if test -d /usr/nec; then
12821 version_type=linux # correct to gnu/linux during the next big refactor
12822 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12823 soname_spec='$libname$shared_ext.$major'
12824 shlibpath_var=LD_LIBRARY_PATH
12825 fi
12826 ;;
12827
12828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12829 version_type=sco
12830 need_lib_prefix=no
12831 need_version=no
12832 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12833 soname_spec='$libname$release$shared_ext$major'
12834 shlibpath_var=LD_LIBRARY_PATH
12835 shlibpath_overrides_runpath=yes
12836 hardcode_into_libs=yes
12837 if test yes = "$with_gnu_ld"; then
12838 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12839 else
12840 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12841 case $host_os in
12842 sco3.2v5*)
12843 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12844 ;;
12845 esac
12846 fi
12847 sys_lib_dlsearch_path_spec='/usr/lib'
12848 ;;
12849
12850 tpf*)
12851 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12852 version_type=linux # correct to gnu/linux during the next big refactor
12853 need_lib_prefix=no
12854 need_version=no
12855 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12856 shlibpath_var=LD_LIBRARY_PATH
12857 shlibpath_overrides_runpath=no
12858 hardcode_into_libs=yes
12859 ;;
12860
12861 uts4*)
12862 version_type=linux # correct to gnu/linux during the next big refactor
12863 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12864 soname_spec='$libname$release$shared_ext$major'
12865 shlibpath_var=LD_LIBRARY_PATH
12866 ;;
12867
12868 *)
12869 dynamic_linker=no
12870 ;;
12871 esac
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12873 $as_echo "$dynamic_linker" >&6; }
12874 test no = "$dynamic_linker" && can_build_shared=no
12875
12876 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12877 if test yes = "$GCC"; then
12878 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12879 fi
12880
12881 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12882 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12883 fi
12884
12885 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12886 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12887 fi
12888
12889 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12890 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12891
12892 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12893 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12894
12895 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12896 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
12988
12989
12990
12991
12992
12993
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12995 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12996 hardcode_action=
12997 if test -n "$hardcode_libdir_flag_spec" ||
12998 test -n "$runpath_var" ||
12999 test yes = "$hardcode_automatic"; then
13000
13001 # We can hardcode non-existent directories.
13002 if test no != "$hardcode_direct" &&
13003 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13004 # have to relink, otherwise we might link with an installed library
13005 # when we should be linking with a yet-to-be-installed one
13006 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13007 test no != "$hardcode_minus_L"; then
13008 # Linking always hardcodes the temporary library directory.
13009 hardcode_action=relink
13010 else
13011 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13012 hardcode_action=immediate
13013 fi
13014 else
13015 # We cannot hardcode anything, or else we can only hardcode existing
13016 # directories.
13017 hardcode_action=unsupported
13018 fi
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13020 $as_echo "$hardcode_action" >&6; }
13021
13022 if test relink = "$hardcode_action" ||
13023 test yes = "$inherit_rpath"; then
13024 # Fast installation is not supported
13025 enable_fast_install=no
13026 elif test yes = "$shlibpath_overrides_runpath" ||
13027 test no = "$enable_shared"; then
13028 # Fast installation is not necessary
13029 enable_fast_install=needless
13030 fi
13031
13032
13033
13034
13035
13036
13037 if test yes != "$enable_dlopen"; then
13038 enable_dlopen=unknown
13039 enable_dlopen_self=unknown
13040 enable_dlopen_self_static=unknown
13041 else
13042 lt_cv_dlopen=no
13043 lt_cv_dlopen_libs=
13044
13045 case $host_os in
13046 beos*)
13047 lt_cv_dlopen=load_add_on
13048 lt_cv_dlopen_libs=
13049 lt_cv_dlopen_self=yes
13050 ;;
13051
13052 mingw* | pw32* | cegcc*)
13053 lt_cv_dlopen=LoadLibrary
13054 lt_cv_dlopen_libs=
13055 ;;
13056
13057 cygwin*)
13058 lt_cv_dlopen=dlopen
13059 lt_cv_dlopen_libs=
13060 ;;
13061
13062 darwin*)
13063 # if libdl is installed we need to link against it
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13065 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13066 if ${ac_cv_lib_dl_dlopen+:} false; then :
13067 $as_echo_n "(cached) " >&6
13068 else
13069 ac_check_lib_save_LIBS=$LIBS
13070 LIBS="-ldl $LIBS"
13071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13072 /* end confdefs.h. */
13073
13074 /* Override any GCC internal prototype to avoid an error.
13075 Use char because int might match the return type of a GCC
13076 builtin and then its argument prototype would still apply. */
13077 #ifdef __cplusplus
13078 extern "C"
13079 #endif
13080 char dlopen ();
13081 int
13082 main ()
13083 {
13084 return dlopen ();
13085 ;
13086 return 0;
13087 }
13088 _ACEOF
13089 if ac_fn_c_try_link "$LINENO"; then :
13090 ac_cv_lib_dl_dlopen=yes
13091 else
13092 ac_cv_lib_dl_dlopen=no
13093 fi
13094 rm -f core conftest.err conftest.$ac_objext \
13095 conftest$ac_exeext conftest.$ac_ext
13096 LIBS=$ac_check_lib_save_LIBS
13097 fi
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13099 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13100 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13101 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13102 else
13103
13104 lt_cv_dlopen=dyld
13105 lt_cv_dlopen_libs=
13106 lt_cv_dlopen_self=yes
13107
13108 fi
13109
13110 ;;
13111
13112 tpf*)
13113 # Don't try to run any link tests for TPF. We know it's impossible
13114 # because TPF is a cross-compiler, and we know how we open DSOs.
13115 lt_cv_dlopen=dlopen
13116 lt_cv_dlopen_libs=
13117 lt_cv_dlopen_self=no
13118 ;;
13119
13120 *)
13121 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13122 if test "x$ac_cv_func_shl_load" = xyes; then :
13123 lt_cv_dlopen=shl_load
13124 else
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13126 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13127 if ${ac_cv_lib_dld_shl_load+:} false; then :
13128 $as_echo_n "(cached) " >&6
13129 else
13130 ac_check_lib_save_LIBS=$LIBS
13131 LIBS="-ldld $LIBS"
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13134
13135 /* Override any GCC internal prototype to avoid an error.
13136 Use char because int might match the return type of a GCC
13137 builtin and then its argument prototype would still apply. */
13138 #ifdef __cplusplus
13139 extern "C"
13140 #endif
13141 char shl_load ();
13142 int
13143 main ()
13144 {
13145 return shl_load ();
13146 ;
13147 return 0;
13148 }
13149 _ACEOF
13150 if ac_fn_c_try_link "$LINENO"; then :
13151 ac_cv_lib_dld_shl_load=yes
13152 else
13153 ac_cv_lib_dld_shl_load=no
13154 fi
13155 rm -f core conftest.err conftest.$ac_objext \
13156 conftest$ac_exeext conftest.$ac_ext
13157 LIBS=$ac_check_lib_save_LIBS
13158 fi
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13160 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13161 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13162 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13163 else
13164 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13165 if test "x$ac_cv_func_dlopen" = xyes; then :
13166 lt_cv_dlopen=dlopen
13167 else
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13169 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13170 if ${ac_cv_lib_dl_dlopen+:} false; then :
13171 $as_echo_n "(cached) " >&6
13172 else
13173 ac_check_lib_save_LIBS=$LIBS
13174 LIBS="-ldl $LIBS"
13175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13176 /* end confdefs.h. */
13177
13178 /* Override any GCC internal prototype to avoid an error.
13179 Use char because int might match the return type of a GCC
13180 builtin and then its argument prototype would still apply. */
13181 #ifdef __cplusplus
13182 extern "C"
13183 #endif
13184 char dlopen ();
13185 int
13186 main ()
13187 {
13188 return dlopen ();
13189 ;
13190 return 0;
13191 }
13192 _ACEOF
13193 if ac_fn_c_try_link "$LINENO"; then :
13194 ac_cv_lib_dl_dlopen=yes
13195 else
13196 ac_cv_lib_dl_dlopen=no
13197 fi
13198 rm -f core conftest.err conftest.$ac_objext \
13199 conftest$ac_exeext conftest.$ac_ext
13200 LIBS=$ac_check_lib_save_LIBS
13201 fi
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13203 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13204 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13205 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13206 else
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13208 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13209 if ${ac_cv_lib_svld_dlopen+:} false; then :
13210 $as_echo_n "(cached) " >&6
13211 else
13212 ac_check_lib_save_LIBS=$LIBS
13213 LIBS="-lsvld $LIBS"
13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215 /* end confdefs.h. */
13216
13217 /* Override any GCC internal prototype to avoid an error.
13218 Use char because int might match the return type of a GCC
13219 builtin and then its argument prototype would still apply. */
13220 #ifdef __cplusplus
13221 extern "C"
13222 #endif
13223 char dlopen ();
13224 int
13225 main ()
13226 {
13227 return dlopen ();
13228 ;
13229 return 0;
13230 }
13231 _ACEOF
13232 if ac_fn_c_try_link "$LINENO"; then :
13233 ac_cv_lib_svld_dlopen=yes
13234 else
13235 ac_cv_lib_svld_dlopen=no
13236 fi
13237 rm -f core conftest.err conftest.$ac_objext \
13238 conftest$ac_exeext conftest.$ac_ext
13239 LIBS=$ac_check_lib_save_LIBS
13240 fi
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13242 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13243 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13244 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13245 else
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13247 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13248 if ${ac_cv_lib_dld_dld_link+:} false; then :
13249 $as_echo_n "(cached) " >&6
13250 else
13251 ac_check_lib_save_LIBS=$LIBS
13252 LIBS="-ldld $LIBS"
13253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254 /* end confdefs.h. */
13255
13256 /* Override any GCC internal prototype to avoid an error.
13257 Use char because int might match the return type of a GCC
13258 builtin and then its argument prototype would still apply. */
13259 #ifdef __cplusplus
13260 extern "C"
13261 #endif
13262 char dld_link ();
13263 int
13264 main ()
13265 {
13266 return dld_link ();
13267 ;
13268 return 0;
13269 }
13270 _ACEOF
13271 if ac_fn_c_try_link "$LINENO"; then :
13272 ac_cv_lib_dld_dld_link=yes
13273 else
13274 ac_cv_lib_dld_dld_link=no
13275 fi
13276 rm -f core conftest.err conftest.$ac_objext \
13277 conftest$ac_exeext conftest.$ac_ext
13278 LIBS=$ac_check_lib_save_LIBS
13279 fi
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13281 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13282 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13283 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13284 fi
13285
13286
13287 fi
13288
13289
13290 fi
13291
13292
13293 fi
13294
13295
13296 fi
13297
13298
13299 fi
13300
13301 ;;
13302 esac
13303
13304 if test no = "$lt_cv_dlopen"; then
13305 enable_dlopen=no
13306 else
13307 enable_dlopen=yes
13308 fi
13309
13310 case $lt_cv_dlopen in
13311 dlopen)
13312 save_CPPFLAGS=$CPPFLAGS
13313 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13314
13315 save_LDFLAGS=$LDFLAGS
13316 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13317
13318 save_LIBS=$LIBS
13319 LIBS="$lt_cv_dlopen_libs $LIBS"
13320
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13322 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13323 if ${lt_cv_dlopen_self+:} false; then :
13324 $as_echo_n "(cached) " >&6
13325 else
13326 if test yes = "$cross_compiling"; then :
13327 lt_cv_dlopen_self=cross
13328 else
13329 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13330 lt_status=$lt_dlunknown
13331 cat > conftest.$ac_ext <<_LT_EOF
13332 #line $LINENO "configure"
13333 #include "confdefs.h"
13334
13335 #if HAVE_DLFCN_H
13336 #include <dlfcn.h>
13337 #endif
13338
13339 #include <stdio.h>
13340
13341 #ifdef RTLD_GLOBAL
13342 # define LT_DLGLOBAL RTLD_GLOBAL
13343 #else
13344 # ifdef DL_GLOBAL
13345 # define LT_DLGLOBAL DL_GLOBAL
13346 # else
13347 # define LT_DLGLOBAL 0
13348 # endif
13349 #endif
13350
13351 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13352 find out it does not work in some platform. */
13353 #ifndef LT_DLLAZY_OR_NOW
13354 # ifdef RTLD_LAZY
13355 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13356 # else
13357 # ifdef DL_LAZY
13358 # define LT_DLLAZY_OR_NOW DL_LAZY
13359 # else
13360 # ifdef RTLD_NOW
13361 # define LT_DLLAZY_OR_NOW RTLD_NOW
13362 # else
13363 # ifdef DL_NOW
13364 # define LT_DLLAZY_OR_NOW DL_NOW
13365 # else
13366 # define LT_DLLAZY_OR_NOW 0
13367 # endif
13368 # endif
13369 # endif
13370 # endif
13371 #endif
13372
13373 /* When -fvisibility=hidden is used, assume the code has been annotated
13374 correspondingly for the symbols needed. */
13375 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13376 int fnord () __attribute__((visibility("default")));
13377 #endif
13378
13379 int fnord () { return 42; }
13380 int main ()
13381 {
13382 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13383 int status = $lt_dlunknown;
13384
13385 if (self)
13386 {
13387 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13388 else
13389 {
13390 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13391 else puts (dlerror ());
13392 }
13393 /* dlclose (self); */
13394 }
13395 else
13396 puts (dlerror ());
13397
13398 return status;
13399 }
13400 _LT_EOF
13401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13402 (eval $ac_link) 2>&5
13403 ac_status=$?
13404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13405 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13406 (./conftest; exit; ) >&5 2>/dev/null
13407 lt_status=$?
13408 case x$lt_status in
13409 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13410 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13411 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13412 esac
13413 else :
13414 # compilation failed
13415 lt_cv_dlopen_self=no
13416 fi
13417 fi
13418 rm -fr conftest*
13419
13420
13421 fi
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13423 $as_echo "$lt_cv_dlopen_self" >&6; }
13424
13425 if test yes = "$lt_cv_dlopen_self"; then
13426 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13428 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13429 if ${lt_cv_dlopen_self_static+:} false; then :
13430 $as_echo_n "(cached) " >&6
13431 else
13432 if test yes = "$cross_compiling"; then :
13433 lt_cv_dlopen_self_static=cross
13434 else
13435 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13436 lt_status=$lt_dlunknown
13437 cat > conftest.$ac_ext <<_LT_EOF
13438 #line $LINENO "configure"
13439 #include "confdefs.h"
13440
13441 #if HAVE_DLFCN_H
13442 #include <dlfcn.h>
13443 #endif
13444
13445 #include <stdio.h>
13446
13447 #ifdef RTLD_GLOBAL
13448 # define LT_DLGLOBAL RTLD_GLOBAL
13449 #else
13450 # ifdef DL_GLOBAL
13451 # define LT_DLGLOBAL DL_GLOBAL
13452 # else
13453 # define LT_DLGLOBAL 0
13454 # endif
13455 #endif
13456
13457 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13458 find out it does not work in some platform. */
13459 #ifndef LT_DLLAZY_OR_NOW
13460 # ifdef RTLD_LAZY
13461 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13462 # else
13463 # ifdef DL_LAZY
13464 # define LT_DLLAZY_OR_NOW DL_LAZY
13465 # else
13466 # ifdef RTLD_NOW
13467 # define LT_DLLAZY_OR_NOW RTLD_NOW
13468 # else
13469 # ifdef DL_NOW
13470 # define LT_DLLAZY_OR_NOW DL_NOW
13471 # else
13472 # define LT_DLLAZY_OR_NOW 0
13473 # endif
13474 # endif
13475 # endif
13476 # endif
13477 #endif
13478
13479 /* When -fvisibility=hidden is used, assume the code has been annotated
13480 correspondingly for the symbols needed. */
13481 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13482 int fnord () __attribute__((visibility("default")));
13483 #endif
13484
13485 int fnord () { return 42; }
13486 int main ()
13487 {
13488 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13489 int status = $lt_dlunknown;
13490
13491 if (self)
13492 {
13493 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13494 else
13495 {
13496 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13497 else puts (dlerror ());
13498 }
13499 /* dlclose (self); */
13500 }
13501 else
13502 puts (dlerror ());
13503
13504 return status;
13505 }
13506 _LT_EOF
13507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13508 (eval $ac_link) 2>&5
13509 ac_status=$?
13510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13511 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13512 (./conftest; exit; ) >&5 2>/dev/null
13513 lt_status=$?
13514 case x$lt_status in
13515 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13516 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13517 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13518 esac
13519 else :
13520 # compilation failed
13521 lt_cv_dlopen_self_static=no
13522 fi
13523 fi
13524 rm -fr conftest*
13525
13526
13527 fi
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13529 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13530 fi
13531
13532 CPPFLAGS=$save_CPPFLAGS
13533 LDFLAGS=$save_LDFLAGS
13534 LIBS=$save_LIBS
13535 ;;
13536 esac
13537
13538 case $lt_cv_dlopen_self in
13539 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13540 *) enable_dlopen_self=unknown ;;
13541 esac
13542
13543 case $lt_cv_dlopen_self_static in
13544 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13545 *) enable_dlopen_self_static=unknown ;;
13546 esac
13547 fi
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565 striplib=
13566 old_striplib=
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13568 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13569 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13570 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13571 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13573 $as_echo "yes" >&6; }
13574 else
13575 # FIXME - insert some real tests, host_os isn't really good enough
13576 case $host_os in
13577 darwin*)
13578 if test -n "$STRIP"; then
13579 striplib="$STRIP -x"
13580 old_striplib="$STRIP -S"
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13582 $as_echo "yes" >&6; }
13583 else
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13585 $as_echo "no" >&6; }
13586 fi
13587 ;;
13588 *)
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13590 $as_echo "no" >&6; }
13591 ;;
13592 esac
13593 fi
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606 # Report what library types will actually be built
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13608 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13610 $as_echo "$can_build_shared" >&6; }
13611
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13613 $as_echo_n "checking whether to build shared libraries... " >&6; }
13614 test no = "$can_build_shared" && enable_shared=no
13615
13616 # On AIX, shared libraries and static libraries use the same namespace, and
13617 # are all built from PIC.
13618 case $host_os in
13619 aix3*)
13620 test yes = "$enable_shared" && enable_static=no
13621 if test -n "$RANLIB"; then
13622 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13623 postinstall_cmds='$RANLIB $lib'
13624 fi
13625 ;;
13626
13627 aix[4-9]*)
13628 if test ia64 != "$host_cpu"; then
13629 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13630 yes,aix,yes) ;; # shared object as lib.so file only
13631 yes,svr4,*) ;; # shared object as lib.so archive member only
13632 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13633 esac
13634 fi
13635 ;;
13636 esac
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13638 $as_echo "$enable_shared" >&6; }
13639
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13641 $as_echo_n "checking whether to build static libraries... " >&6; }
13642 # Make sure either enable_shared or enable_static is yes.
13643 test yes = "$enable_shared" || enable_static=yes
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13645 $as_echo "$enable_static" >&6; }
13646
13647
13648
13649
13650 fi
13651 ac_ext=c
13652 ac_cpp='$CPP $CPPFLAGS'
13653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13656
13657 CC=$lt_save_CC
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673 ac_config_commands="$ac_config_commands libtool"
13674
13675
13676
13677
13678 # Only expand once:
13679
13680
13681 for ac_prog in 'bison -y' byacc
13682 do
13683 # Extract the first word of "$ac_prog", so it can be a program name with args.
13684 set dummy $ac_prog; ac_word=$2
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13686 $as_echo_n "checking for $ac_word... " >&6; }
13687 if ${ac_cv_prog_YACC+:} false; then :
13688 $as_echo_n "(cached) " >&6
13689 else
13690 if test -n "$YACC"; then
13691 ac_cv_prog_YACC="$YACC" # Let the user override the test.
13692 else
13693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13694 for as_dir in $PATH
13695 do
13696 IFS=$as_save_IFS
13697 test -z "$as_dir" && as_dir=.
13698 for ac_exec_ext in '' $ac_executable_extensions; do
13699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13700 ac_cv_prog_YACC="$ac_prog"
13701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13702 break 2
13703 fi
13704 done
13705 done
13706 IFS=$as_save_IFS
13707
13708 fi
13709 fi
13710 YACC=$ac_cv_prog_YACC
13711 if test -n "$YACC"; then
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13713 $as_echo "$YACC" >&6; }
13714 else
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13716 $as_echo "no" >&6; }
13717 fi
13718
13719
13720 test -n "$YACC" && break
13721 done
13722 test -n "$YACC" || YACC="yacc"
13723
13724 # Prior to autoconf 2.70, AC_PROG_FLEX did not take an argument. This is not a
13725 # problem since the argument is silently ignored by older versions.
13726 for ac_prog in flex lex
13727 do
13728 # Extract the first word of "$ac_prog", so it can be a program name with args.
13729 set dummy $ac_prog; ac_word=$2
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13731 $as_echo_n "checking for $ac_word... " >&6; }
13732 if ${ac_cv_prog_LEX+:} false; then :
13733 $as_echo_n "(cached) " >&6
13734 else
13735 if test -n "$LEX"; then
13736 ac_cv_prog_LEX="$LEX" # Let the user override the test.
13737 else
13738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13739 for as_dir in $PATH
13740 do
13741 IFS=$as_save_IFS
13742 test -z "$as_dir" && as_dir=.
13743 for ac_exec_ext in '' $ac_executable_extensions; do
13744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13745 ac_cv_prog_LEX="$ac_prog"
13746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13747 break 2
13748 fi
13749 done
13750 done
13751 IFS=$as_save_IFS
13752
13753 fi
13754 fi
13755 LEX=$ac_cv_prog_LEX
13756 if test -n "$LEX"; then
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13758 $as_echo "$LEX" >&6; }
13759 else
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13761 $as_echo "no" >&6; }
13762 fi
13763
13764
13765 test -n "$LEX" && break
13766 done
13767 test -n "$LEX" || LEX=":"
13768
13769 if test "x$LEX" != "x:"; then
13770 cat >conftest.l <<_ACEOF
13771 %%
13772 a { ECHO; }
13773 b { REJECT; }
13774 c { yymore (); }
13775 d { yyless (1); }
13776 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
13777 yyless ((input () != 0)); }
13778 f { unput (yytext[0]); }
13779 . { BEGIN INITIAL; }
13780 %%
13781 #ifdef YYTEXT_POINTER
13782 extern char *yytext;
13783 #endif
13784 int
13785 main (void)
13786 {
13787 return ! yylex () + ! yywrap ();
13788 }
13789 _ACEOF
13790 { { ac_try="$LEX conftest.l"
13791 case "(($ac_try" in
13792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793 *) ac_try_echo=$ac_try;;
13794 esac
13795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13796 $as_echo "$ac_try_echo"; } >&5
13797 (eval "$LEX conftest.l") 2>&5
13798 ac_status=$?
13799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13800 test $ac_status = 0; }
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13802 $as_echo_n "checking lex output file root... " >&6; }
13803 if ${ac_cv_prog_lex_root+:} false; then :
13804 $as_echo_n "(cached) " >&6
13805 else
13806
13807 if test -f lex.yy.c; then
13808 ac_cv_prog_lex_root=lex.yy
13809 elif test -f lexyy.c; then
13810 ac_cv_prog_lex_root=lexyy
13811 else
13812 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
13813 fi
13814 fi
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13816 $as_echo "$ac_cv_prog_lex_root" >&6; }
13817 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
13818
13819 if test -z "${LEXLIB+set}"; then
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13821 $as_echo_n "checking lex library... " >&6; }
13822 if ${ac_cv_lib_lex+:} false; then :
13823 $as_echo_n "(cached) " >&6
13824 else
13825
13826 ac_save_LIBS=$LIBS
13827 ac_cv_lib_lex='none needed'
13828 for ac_lib in '' -lfl -ll; do
13829 LIBS="$ac_lib $ac_save_LIBS"
13830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831 /* end confdefs.h. */
13832 `cat $LEX_OUTPUT_ROOT.c`
13833 _ACEOF
13834 if ac_fn_c_try_link "$LINENO"; then :
13835 ac_cv_lib_lex=$ac_lib
13836 fi
13837 rm -f core conftest.err conftest.$ac_objext \
13838 conftest$ac_exeext conftest.$ac_ext
13839 test "$ac_cv_lib_lex" != 'none needed' && break
13840 done
13841 LIBS=$ac_save_LIBS
13842
13843 fi
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13845 $as_echo "$ac_cv_lib_lex" >&6; }
13846 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13847 fi
13848
13849
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13851 $as_echo_n "checking whether yytext is a pointer... " >&6; }
13852 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
13853 $as_echo_n "(cached) " >&6
13854 else
13855 # POSIX says lex can declare yytext either as a pointer or an array; the
13856 # default is implementation-dependent. Figure out which it is, since
13857 # not all implementations provide the %pointer and %array declarations.
13858 ac_cv_prog_lex_yytext_pointer=no
13859 ac_save_LIBS=$LIBS
13860 LIBS="$LEXLIB $ac_save_LIBS"
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13863
13864 #define YYTEXT_POINTER 1
13865 `cat $LEX_OUTPUT_ROOT.c`
13866 _ACEOF
13867 if ac_fn_c_try_link "$LINENO"; then :
13868 ac_cv_prog_lex_yytext_pointer=yes
13869 fi
13870 rm -f core conftest.err conftest.$ac_objext \
13871 conftest$ac_exeext conftest.$ac_ext
13872 LIBS=$ac_save_LIBS
13873
13874 fi
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13876 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13877 if test $ac_cv_prog_lex_yytext_pointer = yes; then
13878
13879 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13880
13881 fi
13882 rm -f conftest.l $LEX_OUTPUT_ROOT.c
13883
13884 fi
13885
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13887 $as_echo_n "checking whether ln -s works... " >&6; }
13888 LN_S=$as_ln_s
13889 if test "$LN_S" = "ln -s"; then
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13891 $as_echo "yes" >&6; }
13892 else
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13894 $as_echo "no, using $LN_S" >&6; }
13895 fi
13896
13897
13898
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
13900 $as_echo_n "checking for __attribute__... " >&6; }
13901 if ${ax_cv___attribute__+:} false; then :
13902 $as_echo_n "(cached) " >&6
13903 else
13904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h. */
13906 #include <stdlib.h>
13907 static void foo(void) __attribute__ ((unused));
13908 static void
13909 foo(void) {
13910 exit(1);
13911 }
13912
13913 int
13914 main ()
13915 {
13916
13917 ;
13918 return 0;
13919 }
13920 _ACEOF
13921 if ac_fn_c_try_compile "$LINENO"; then :
13922 ax_cv___attribute__=yes
13923 else
13924 ax_cv___attribute__=no
13925
13926 fi
13927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13928
13929 fi
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
13931 $as_echo "$ax_cv___attribute__" >&6; }
13932 if test "$ax_cv___attribute__" = "yes"; then
13933
13934 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
13935
13936 fi
13937
13938 if test "x$ax_cv___attribute__" = "xyes"; then :
13939 :
13940 else
13941 as_fn_error $? "The compiler does not support __attribute__ extensions" "$LINENO" 5
13942 fi
13943
13944
13945
13946 ac_ext=c
13947 ac_cpp='$CPP $CPPFLAGS'
13948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13951
13952 ax_pthread_ok=no
13953
13954 # We used to check for pthread.h first, but this fails if pthread.h
13955 # requires special compiler flags (e.g. on True64 or Sequent).
13956 # It gets checked for in the link test anyway.
13957
13958 # First of all, check if the user has set any of the PTHREAD_LIBS,
13959 # etcetera environment variables, and if threads linking works using
13960 # them:
13961 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
13962 save_CFLAGS="$CFLAGS"
13963 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
13964 save_LIBS="$LIBS"
13965 LIBS="$PTHREAD_LIBS $LIBS"
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
13967 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13970
13971 /* Override any GCC internal prototype to avoid an error.
13972 Use char because int might match the return type of a GCC
13973 builtin and then its argument prototype would still apply. */
13974 #ifdef __cplusplus
13975 extern "C"
13976 #endif
13977 char pthread_join ();
13978 int
13979 main ()
13980 {
13981 return pthread_join ();
13982 ;
13983 return 0;
13984 }
13985 _ACEOF
13986 if ac_fn_c_try_link "$LINENO"; then :
13987 ax_pthread_ok=yes
13988 fi
13989 rm -f core conftest.err conftest.$ac_objext \
13990 conftest$ac_exeext conftest.$ac_ext
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13992 $as_echo "$ax_pthread_ok" >&6; }
13993 if test x"$ax_pthread_ok" = xno; then
13994 PTHREAD_LIBS=""
13995 PTHREAD_CFLAGS=""
13996 fi
13997 LIBS="$save_LIBS"
13998 CFLAGS="$save_CFLAGS"
13999 fi
14000
14001 # We must check for the threads library under a number of different
14002 # names; the ordering is very important because some systems
14003 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
14004 # libraries is broken (non-POSIX).
14005
14006 # Create a list of thread flags to try. Items starting with a "-" are
14007 # C compiler flags, and other items are library names, except for "none"
14008 # which indicates that we try without any flags at all, and "pthread-config"
14009 # which is a program returning the flags for the Pth emulation library.
14010
14011 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
14012
14013 # The ordering *is* (sometimes) important. Some notes on the
14014 # individual items follow:
14015
14016 # pthreads: AIX (must check this before -lpthread)
14017 # none: in case threads are in libc; should be tried before -Kthread and
14018 # other compiler flags to prevent continual compiler warnings
14019 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
14020 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
14021 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
14022 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
14023 # -pthreads: Solaris/gcc
14024 # -mthreads: Mingw32/gcc, Lynx/gcc
14025 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
14026 # doesn't hurt to check since this sometimes defines pthreads too;
14027 # also defines -D_REENTRANT)
14028 # ... -mt is also the pthreads flag for HP/aCC
14029 # pthread: Linux, etcetera
14030 # --thread-safe: KAI C++
14031 # pthread-config: use pthread-config program (for GNU Pth library)
14032
14033 case ${host_os} in
14034 solaris*)
14035
14036 # On Solaris (at least, for some versions), libc contains stubbed
14037 # (non-functional) versions of the pthreads routines, so link-based
14038 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
14039 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
14040 # a function called by this macro, so we could check for that, but
14041 # who knows whether they'll stub that too in a future libc.) So,
14042 # we'll just look for -pthreads and -lpthread first:
14043
14044 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
14045 ;;
14046
14047 darwin*)
14048 ax_pthread_flags="-pthread $ax_pthread_flags"
14049 ;;
14050 esac
14051
14052 # Clang doesn't consider unrecognized options an error unless we specify
14053 # -Werror. We throw in some extra Clang-specific options to ensure that
14054 # this doesn't happen for GCC, which also accepts -Werror.
14055
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
14057 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
14058 save_CFLAGS="$CFLAGS"
14059 ax_pthread_extra_flags="-Werror"
14060 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
14061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14062 /* end confdefs.h. */
14063 int foo(void);
14064 int
14065 main ()
14066 {
14067 foo()
14068 ;
14069 return 0;
14070 }
14071 _ACEOF
14072 if ac_fn_c_try_compile "$LINENO"; then :
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14074 $as_echo "yes" >&6; }
14075 else
14076 ax_pthread_extra_flags=
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14078 $as_echo "no" >&6; }
14079 fi
14080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14081 CFLAGS="$save_CFLAGS"
14082
14083 if test x"$ax_pthread_ok" = xno; then
14084 for flag in $ax_pthread_flags; do
14085
14086 case $flag in
14087 none)
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
14089 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
14090 ;;
14091
14092 -*)
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
14094 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
14095 PTHREAD_CFLAGS="$flag"
14096 ;;
14097
14098 pthread-config)
14099 # Extract the first word of "pthread-config", so it can be a program name with args.
14100 set dummy pthread-config; ac_word=$2
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14102 $as_echo_n "checking for $ac_word... " >&6; }
14103 if ${ac_cv_prog_ax_pthread_config+:} false; then :
14104 $as_echo_n "(cached) " >&6
14105 else
14106 if test -n "$ax_pthread_config"; then
14107 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
14108 else
14109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14110 for as_dir in $PATH
14111 do
14112 IFS=$as_save_IFS
14113 test -z "$as_dir" && as_dir=.
14114 for ac_exec_ext in '' $ac_executable_extensions; do
14115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14116 ac_cv_prog_ax_pthread_config="yes"
14117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14118 break 2
14119 fi
14120 done
14121 done
14122 IFS=$as_save_IFS
14123
14124 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
14125 fi
14126 fi
14127 ax_pthread_config=$ac_cv_prog_ax_pthread_config
14128 if test -n "$ax_pthread_config"; then
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14130 $as_echo "$ax_pthread_config" >&6; }
14131 else
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14133 $as_echo "no" >&6; }
14134 fi
14135
14136
14137 if test x"$ax_pthread_config" = xno; then continue; fi
14138 PTHREAD_CFLAGS="`pthread-config --cflags`"
14139 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
14140 ;;
14141
14142 *)
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
14144 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
14145 PTHREAD_LIBS="-l$flag"
14146 ;;
14147 esac
14148
14149 save_LIBS="$LIBS"
14150 save_CFLAGS="$CFLAGS"
14151 LIBS="$PTHREAD_LIBS $LIBS"
14152 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
14153
14154 # Check for various functions. We must include pthread.h,
14155 # since some functions may be macros. (On the Sequent, we
14156 # need a special flag -Kthread to make this header compile.)
14157 # We check for pthread_join because it is in -lpthread on IRIX
14158 # while pthread_create is in libc. We check for pthread_attr_init
14159 # due to DEC craziness with -lpthreads. We check for
14160 # pthread_cleanup_push because it is one of the few pthread
14161 # functions on Solaris that doesn't have a non-functional libc stub.
14162 # We try pthread_create on general principles.
14163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h. */
14165 #include <pthread.h>
14166 static void routine(void *a) { a = 0; }
14167 static void *start_routine(void *a) { return a; }
14168 int
14169 main ()
14170 {
14171 pthread_t th; pthread_attr_t attr;
14172 pthread_create(&th, 0, start_routine, 0);
14173 pthread_join(th, 0);
14174 pthread_attr_init(&attr);
14175 pthread_cleanup_push(routine, 0);
14176 pthread_cleanup_pop(0) /* ; */
14177 ;
14178 return 0;
14179 }
14180 _ACEOF
14181 if ac_fn_c_try_link "$LINENO"; then :
14182 ax_pthread_ok=yes
14183 fi
14184 rm -f core conftest.err conftest.$ac_objext \
14185 conftest$ac_exeext conftest.$ac_ext
14186
14187 LIBS="$save_LIBS"
14188 CFLAGS="$save_CFLAGS"
14189
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14191 $as_echo "$ax_pthread_ok" >&6; }
14192 if test "x$ax_pthread_ok" = xyes; then
14193 break;
14194 fi
14195
14196 PTHREAD_LIBS=""
14197 PTHREAD_CFLAGS=""
14198 done
14199 fi
14200
14201 # Various other checks:
14202 if test "x$ax_pthread_ok" = xyes; then
14203 save_LIBS="$LIBS"
14204 LIBS="$PTHREAD_LIBS $LIBS"
14205 save_CFLAGS="$CFLAGS"
14206 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14207
14208 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14210 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14211 attr_name=unknown
14212 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14215 #include <pthread.h>
14216 int
14217 main ()
14218 {
14219 int attr = $attr; return attr /* ; */
14220 ;
14221 return 0;
14222 }
14223 _ACEOF
14224 if ac_fn_c_try_link "$LINENO"; then :
14225 attr_name=$attr; break
14226 fi
14227 rm -f core conftest.err conftest.$ac_objext \
14228 conftest$ac_exeext conftest.$ac_ext
14229 done
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
14231 $as_echo "$attr_name" >&6; }
14232 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
14233
14234 cat >>confdefs.h <<_ACEOF
14235 #define PTHREAD_CREATE_JOINABLE $attr_name
14236 _ACEOF
14237
14238 fi
14239
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
14241 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
14242 flag=no
14243 case ${host_os} in
14244 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
14245 osf* | hpux*) flag="-D_REENTRANT";;
14246 solaris*)
14247 if test "$GCC" = "yes"; then
14248 flag="-D_REENTRANT"
14249 else
14250 # TODO: What about Clang on Solaris?
14251 flag="-mt -D_REENTRANT"
14252 fi
14253 ;;
14254 esac
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
14256 $as_echo "$flag" >&6; }
14257 if test "x$flag" != xno; then
14258 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
14259 fi
14260
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14262 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14263 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
14264 $as_echo_n "(cached) " >&6
14265 else
14266
14267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h. */
14269 #include <pthread.h>
14270 int
14271 main ()
14272 {
14273 int i = PTHREAD_PRIO_INHERIT;
14274 ;
14275 return 0;
14276 }
14277 _ACEOF
14278 if ac_fn_c_try_link "$LINENO"; then :
14279 ax_cv_PTHREAD_PRIO_INHERIT=yes
14280 else
14281 ax_cv_PTHREAD_PRIO_INHERIT=no
14282 fi
14283 rm -f core conftest.err conftest.$ac_objext \
14284 conftest$ac_exeext conftest.$ac_ext
14285
14286 fi
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14288 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14289 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
14290
14291 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14292
14293 fi
14294
14295 LIBS="$save_LIBS"
14296 CFLAGS="$save_CFLAGS"
14297
14298 # More AIX lossage: compile with *_r variant
14299 if test "x$GCC" != xyes; then
14300 case $host_os in
14301 aix*)
14302 case "x/$CC" in #(
14303 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
14304 #handle absolute path differently from PATH based program lookup
14305 case "x$CC" in #(
14306 x/*) :
14307 if as_fn_executable_p ${CC}_r; then :
14308 PTHREAD_CC="${CC}_r"
14309 fi ;; #(
14310 *) :
14311 for ac_prog in ${CC}_r
14312 do
14313 # Extract the first word of "$ac_prog", so it can be a program name with args.
14314 set dummy $ac_prog; ac_word=$2
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14316 $as_echo_n "checking for $ac_word... " >&6; }
14317 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
14318 $as_echo_n "(cached) " >&6
14319 else
14320 if test -n "$PTHREAD_CC"; then
14321 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
14322 else
14323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324 for as_dir in $PATH
14325 do
14326 IFS=$as_save_IFS
14327 test -z "$as_dir" && as_dir=.
14328 for ac_exec_ext in '' $ac_executable_extensions; do
14329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14330 ac_cv_prog_PTHREAD_CC="$ac_prog"
14331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14332 break 2
14333 fi
14334 done
14335 done
14336 IFS=$as_save_IFS
14337
14338 fi
14339 fi
14340 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
14341 if test -n "$PTHREAD_CC"; then
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14343 $as_echo "$PTHREAD_CC" >&6; }
14344 else
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14346 $as_echo "no" >&6; }
14347 fi
14348
14349
14350 test -n "$PTHREAD_CC" && break
14351 done
14352 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
14353 ;;
14354 esac ;; #(
14355 *) :
14356 ;;
14357 esac
14358 ;;
14359 esac
14360 fi
14361 fi
14362
14363 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
14364
14365
14366
14367
14368
14369 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14370 if test x"$ax_pthread_ok" = xyes; then
14371
14372 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
14373
14374 :
14375 else
14376 ax_pthread_ok=no
14377 as_fn_error $? "Could not configure pthreads support" "$LINENO" 5
14378 fi
14379 ac_ext=c
14380 ac_cpp='$CPP $CPPFLAGS'
14381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14384
14385
14386 LIBS="$PTHREAD_LIBS $LIBS"
14387 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14388 CC="$PTHREAD_CC"
14389
14390 # Check linker option
14391
14392
14393
14394
14395 for flag in -Wl,--no-as-needed; do
14396 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags__$flag" | $as_tr_sh`
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
14398 $as_echo_n "checking whether the linker accepts $flag... " >&6; }
14399 if eval \${$as_CACHEVAR+:} false; then :
14400 $as_echo_n "(cached) " >&6
14401 else
14402
14403 ax_check_save_flags=$LDFLAGS
14404 LDFLAGS="$LDFLAGS $flag"
14405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14406 /* end confdefs.h. */
14407
14408 int
14409 main ()
14410 {
14411
14412 ;
14413 return 0;
14414 }
14415 _ACEOF
14416 if ac_fn_c_try_link "$LINENO"; then :
14417 eval "$as_CACHEVAR=yes"
14418 else
14419 eval "$as_CACHEVAR=no"
14420 fi
14421 rm -f core conftest.err conftest.$ac_objext \
14422 conftest$ac_exeext conftest.$ac_ext
14423 LDFLAGS=$ax_check_save_flags
14424 fi
14425 eval ac_res=\$$as_CACHEVAR
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14427 $as_echo "$ac_res" >&6; }
14428 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14429
14430 if ${LD_NO_AS_NEEDED+:} false; then :
14431
14432 case " $LD_NO_AS_NEEDED " in #(
14433 *" $flag "*) :
14434 { { $as_echo "$as_me:${as_lineno-$LINENO}: : LD_NO_AS_NEEDED already contains \$flag"; } >&5
14435 (: LD_NO_AS_NEEDED already contains $flag) 2>&5
14436 ac_status=$?
14437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14438 test $ac_status = 0; } ;; #(
14439 *) :
14440
14441 as_fn_append LD_NO_AS_NEEDED " $flag"
14442 { { $as_echo "$as_me:${as_lineno-$LINENO}: : LD_NO_AS_NEEDED=\"\$LD_NO_AS_NEEDED\""; } >&5
14443 (: LD_NO_AS_NEEDED="$LD_NO_AS_NEEDED") 2>&5
14444 ac_status=$?
14445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14446 test $ac_status = 0; }
14447 ;;
14448 esac
14449
14450 else
14451
14452 LD_NO_AS_NEEDED=$flag
14453 { { $as_echo "$as_me:${as_lineno-$LINENO}: : LD_NO_AS_NEEDED=\"\$LD_NO_AS_NEEDED\""; } >&5
14454 (: LD_NO_AS_NEEDED="$LD_NO_AS_NEEDED") 2>&5
14455 ac_status=$?
14456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14457 test $ac_status = 0; }
14458
14459 fi
14460
14461 else
14462 :
14463 fi
14464
14465 done
14466
14467
14468
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14470 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14471 if ${ac_cv_header_stdbool_h+:} false; then :
14472 $as_echo_n "(cached) " >&6
14473 else
14474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14475 /* end confdefs.h. */
14476
14477 #include <stdbool.h>
14478 #ifndef bool
14479 "error: bool is not defined"
14480 #endif
14481 #ifndef false
14482 "error: false is not defined"
14483 #endif
14484 #if false
14485 "error: false is not 0"
14486 #endif
14487 #ifndef true
14488 "error: true is not defined"
14489 #endif
14490 #if true != 1
14491 "error: true is not 1"
14492 #endif
14493 #ifndef __bool_true_false_are_defined
14494 "error: __bool_true_false_are_defined is not defined"
14495 #endif
14496
14497 struct s { _Bool s: 1; _Bool t; } s;
14498
14499 char a[true == 1 ? 1 : -1];
14500 char b[false == 0 ? 1 : -1];
14501 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14502 char d[(bool) 0.5 == true ? 1 : -1];
14503 /* See body of main program for 'e'. */
14504 char f[(_Bool) 0.0 == false ? 1 : -1];
14505 char g[true];
14506 char h[sizeof (_Bool)];
14507 char i[sizeof s.t];
14508 enum { j = false, k = true, l = false * true, m = true * 256 };
14509 /* The following fails for
14510 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14511 _Bool n[m];
14512 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14513 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14514 /* Catch a bug in an HP-UX C compiler. See
14515 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14516 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14517 */
14518 _Bool q = true;
14519 _Bool *pq = &q;
14520
14521 int
14522 main ()
14523 {
14524
14525 bool e = &s;
14526 *pq |= q;
14527 *pq |= ! q;
14528 /* Refer to every declared value, to avoid compiler optimizations. */
14529 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14530 + !m + !n + !o + !p + !q + !pq);
14531
14532 ;
14533 return 0;
14534 }
14535 _ACEOF
14536 if ac_fn_c_try_compile "$LINENO"; then :
14537 ac_cv_header_stdbool_h=yes
14538 else
14539 ac_cv_header_stdbool_h=no
14540 fi
14541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14542 fi
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14544 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14545 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14546 if test "x$ac_cv_type__Bool" = xyes; then :
14547
14548 cat >>confdefs.h <<_ACEOF
14549 #define HAVE__BOOL 1
14550 _ACEOF
14551
14552
14553 fi
14554
14555
14556 if test $ac_cv_header_stdbool_h = yes; then
14557
14558 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
14559
14560 fi
14561
14562 for ac_header in \
14563 fcntl.h \
14564 float.h \
14565 libintl.h \
14566 limits.h \
14567 malloc.h \
14568 netdb.h \
14569 netinet/in.h \
14570 stddef.h \
14571 sys/socket.h \
14572
14573 do :
14574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14575 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14576 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14577 cat >>confdefs.h <<_ACEOF
14578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14579 _ACEOF
14580
14581 fi
14582
14583 done
14584
14585
14586 if test ! -f "$srcdir/formats/ctf/metadata/ctf-parser.h"; then
14587 if test x"$(basename "$YACC")" != "xbison -y"; then
14588 as_fn_error $? "bison not found and is required when building from git.
14589 Please install bison" "$LINENO" 5
14590 fi
14591 # Extract the first word of "bison", so it can be a program name with args.
14592 set dummy bison; ac_word=$2
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14594 $as_echo_n "checking for $ac_word... " >&6; }
14595 if ${ac_cv_path_BISON+:} false; then :
14596 $as_echo_n "(cached) " >&6
14597 else
14598 case $BISON in
14599 [\\/]* | ?:[\\/]*)
14600 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
14601 ;;
14602 *)
14603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14604 for as_dir in $PATH
14605 do
14606 IFS=$as_save_IFS
14607 test -z "$as_dir" && as_dir=.
14608 for ac_exec_ext in '' $ac_executable_extensions; do
14609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14610 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
14611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14612 break 2
14613 fi
14614 done
14615 done
14616 IFS=$as_save_IFS
14617
14618 ;;
14619 esac
14620 fi
14621 BISON=$ac_cv_path_BISON
14622 if test -n "$BISON"; then
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
14624 $as_echo "$BISON" >&6; }
14625 else
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14627 $as_echo "no" >&6; }
14628 fi
14629
14630
14631
14632
14633
14634
14635 if test -n "$BISON"; then :
14636
14637 ax_bison_version="2.4"
14638
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bison version" >&5
14640 $as_echo_n "checking for bison version... " >&6; }
14641
14642 bison_version=`$BISON --version 2>&1 \
14643 | $SED -n -e '/bison (GNU Bison)/b inspect
14644 b
14645 : inspect
14646 s/.* (\{0,1\}\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\}.*/\1/;p'`
14647
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bison_version" >&5
14649 $as_echo "$bison_version" >&6; }
14650
14651 BISON_VERSION=$bison_version
14652
14653
14654
14655
14656
14657 # Used to indicate true or false condition
14658 ax_compare_version=false
14659
14660 # Convert the two version strings to be compared into a format that
14661 # allows a simple string comparison. The end result is that a version
14662 # string of the form 1.12.5-r617 will be converted to the form
14663 # 0001001200050617. In other words, each number is zero padded to four
14664 # digits, and non digits are removed.
14665
14666 ax_compare_version_A=`echo "$bison_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14667 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14668 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14669 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14670 -e 's/[^0-9]//g'`
14671
14672
14673 ax_compare_version_B=`echo "$ax_bison_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14674 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14675 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14676 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14677 -e 's/[^0-9]//g'`
14678
14679
14680 ax_compare_version=`echo "x$ax_compare_version_A
14681 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
14682
14683
14684
14685 if test "$ax_compare_version" = "true" ; then
14686
14687 :
14688
14689
14690 else
14691 :
14692
14693 as_fn_error $? "Bison >= 2.4 is required when building from git" "$LINENO" 5
14694
14695
14696 fi
14697
14698
14699 else
14700
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find bison" >&5
14702 $as_echo "$as_me: WARNING: could not find bison" >&2;}
14703
14704 as_fn_error $? "Bison >= 2.4 is required when building from git" "$LINENO" 5
14705
14706
14707 fi
14708
14709 fi
14710
14711 if test ! -f "$srcdir/formats/ctf/metadata/ctf-lexer.c"; then
14712 if test x"$LEX" != "xflex"; then
14713 as_fn_error $? "flex not found and is required when building from git.
14714 Please install flex" "$LINENO" 5
14715 fi
14716 # Extract the first word of "flex", so it can be a program name with args.
14717 set dummy flex; ac_word=$2
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14719 $as_echo_n "checking for $ac_word... " >&6; }
14720 if ${ac_cv_path_FLEX+:} false; then :
14721 $as_echo_n "(cached) " >&6
14722 else
14723 case $FLEX in
14724 [\\/]* | ?:[\\/]*)
14725 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
14726 ;;
14727 *)
14728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14729 for as_dir in $PATH
14730 do
14731 IFS=$as_save_IFS
14732 test -z "$as_dir" && as_dir=.
14733 for ac_exec_ext in '' $ac_executable_extensions; do
14734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14735 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
14736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14737 break 2
14738 fi
14739 done
14740 done
14741 IFS=$as_save_IFS
14742
14743 ;;
14744 esac
14745 fi
14746 FLEX=$ac_cv_path_FLEX
14747 if test -n "$FLEX"; then
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
14749 $as_echo "$FLEX" >&6; }
14750 else
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752 $as_echo "no" >&6; }
14753 fi
14754
14755
14756
14757
14758
14759
14760 if test -n "$FLEX"; then :
14761
14762 ax_flex_version="2.5.35"
14763
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flex version" >&5
14765 $as_echo_n "checking for flex version... " >&6; }
14766
14767 flex_version=`$FLEX --version 2>&1 \
14768 | $SED -n -e '/flex /b inspect
14769 b
14770 : inspect
14771 s/.* (\{0,1\}\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\}.*/\1/;p'`
14772
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flex_version" >&5
14774 $as_echo "$flex_version" >&6; }
14775
14776 FLEX_VERSION=$flex_version
14777
14778
14779
14780
14781
14782 # Used to indicate true or false condition
14783 ax_compare_version=false
14784
14785 # Convert the two version strings to be compared into a format that
14786 # allows a simple string comparison. The end result is that a version
14787 # string of the form 1.12.5-r617 will be converted to the form
14788 # 0001001200050617. In other words, each number is zero padded to four
14789 # digits, and non digits are removed.
14790
14791 ax_compare_version_A=`echo "$flex_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14792 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14793 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14794 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14795 -e 's/[^0-9]//g'`
14796
14797
14798 ax_compare_version_B=`echo "$ax_flex_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
14799 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
14800 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
14801 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
14802 -e 's/[^0-9]//g'`
14803
14804
14805 ax_compare_version=`echo "x$ax_compare_version_A
14806 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
14807
14808
14809
14810 if test "$ax_compare_version" = "true" ; then
14811
14812 :
14813
14814
14815 else
14816 :
14817
14818 as_fn_error $? "Flex >= 2.5.35 is required when building from git" "$LINENO" 5
14819
14820
14821 fi
14822
14823
14824 else
14825
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find flex" >&5
14827 $as_echo "$as_me: WARNING: could not find flex" >&2;}
14828
14829 as_fn_error $? "Flex >= 2.5.35 is required when building from git" "$LINENO" 5
14830
14831
14832 fi
14833
14834 fi
14835
14836 # Check whether --enable-glibtest was given.
14837 if test "${enable_glibtest+set}" = set; then :
14838 enableval=$enable_glibtest;
14839 else
14840 enable_glibtest=yes
14841 fi
14842
14843
14844 pkg_config_args=glib-2.0
14845 for module in . gmodule
14846 do
14847 case "$module" in
14848 gmodule)
14849 pkg_config_args="$pkg_config_args gmodule-2.0"
14850 ;;
14851 gmodule-no-export)
14852 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
14853 ;;
14854 gobject)
14855 pkg_config_args="$pkg_config_args gobject-2.0"
14856 ;;
14857 gthread)
14858 pkg_config_args="$pkg_config_args gthread-2.0"
14859 ;;
14860 gio*)
14861 pkg_config_args="$pkg_config_args $module-2.0"
14862 ;;
14863 esac
14864 done
14865
14866
14867
14868
14869
14870
14871
14872
14873 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14874 if test -n "$ac_tool_prefix"; then
14875 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14876 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14878 $as_echo_n "checking for $ac_word... " >&6; }
14879 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14880 $as_echo_n "(cached) " >&6
14881 else
14882 case $PKG_CONFIG in
14883 [\\/]* | ?:[\\/]*)
14884 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14885 ;;
14886 *)
14887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14888 for as_dir in $PATH
14889 do
14890 IFS=$as_save_IFS
14891 test -z "$as_dir" && as_dir=.
14892 for ac_exec_ext in '' $ac_executable_extensions; do
14893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14894 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14896 break 2
14897 fi
14898 done
14899 done
14900 IFS=$as_save_IFS
14901
14902 ;;
14903 esac
14904 fi
14905 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14906 if test -n "$PKG_CONFIG"; then
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14908 $as_echo "$PKG_CONFIG" >&6; }
14909 else
14910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14911 $as_echo "no" >&6; }
14912 fi
14913
14914
14915 fi
14916 if test -z "$ac_cv_path_PKG_CONFIG"; then
14917 ac_pt_PKG_CONFIG=$PKG_CONFIG
14918 # Extract the first word of "pkg-config", so it can be a program name with args.
14919 set dummy pkg-config; ac_word=$2
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14921 $as_echo_n "checking for $ac_word... " >&6; }
14922 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14923 $as_echo_n "(cached) " >&6
14924 else
14925 case $ac_pt_PKG_CONFIG in
14926 [\\/]* | ?:[\\/]*)
14927 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14928 ;;
14929 *)
14930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14931 for as_dir in $PATH
14932 do
14933 IFS=$as_save_IFS
14934 test -z "$as_dir" && as_dir=.
14935 for ac_exec_ext in '' $ac_executable_extensions; do
14936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14937 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14939 break 2
14940 fi
14941 done
14942 done
14943 IFS=$as_save_IFS
14944
14945 ;;
14946 esac
14947 fi
14948 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14949 if test -n "$ac_pt_PKG_CONFIG"; then
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14951 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14952 else
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14954 $as_echo "no" >&6; }
14955 fi
14956
14957 if test "x$ac_pt_PKG_CONFIG" = x; then
14958 PKG_CONFIG=""
14959 else
14960 case $cross_compiling:$ac_tool_warned in
14961 yes:)
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14964 ac_tool_warned=yes ;;
14965 esac
14966 PKG_CONFIG=$ac_pt_PKG_CONFIG
14967 fi
14968 else
14969 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14970 fi
14971
14972 fi
14973 if test -n "$PKG_CONFIG"; then
14974 _pkg_min_version=0.16
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14976 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14977 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14979 $as_echo "yes" >&6; }
14980 else
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14982 $as_echo "no" >&6; }
14983 PKG_CONFIG=""
14984 fi
14985 fi
14986
14987 no_glib=""
14988
14989 if test "x$PKG_CONFIG" = x ; then
14990 no_glib=yes
14991 PKG_CONFIG=no
14992 fi
14993
14994 min_glib_version=2.22.0
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
14996 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
14997
14998 if test x$PKG_CONFIG != xno ; then
14999 ## don't try to run the test against uninstalled libtool libs
15000 if $PKG_CONFIG --uninstalled $pkg_config_args; then
15001 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
15002 enable_glibtest=no
15003 fi
15004
15005 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
15006 :
15007 else
15008 no_glib=yes
15009 fi
15010 fi
15011
15012 if test x"$no_glib" = x ; then
15013 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
15014 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
15015 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
15016 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
15017
15018 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
15019 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
15020 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
15021 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
15022 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
15023 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
15024 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
15025 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
15026 if test "x$enable_glibtest" = "xyes" ; then
15027 ac_save_CFLAGS="$CFLAGS"
15028 ac_save_LIBS="$LIBS"
15029 CFLAGS="$CFLAGS $GLIB_CFLAGS"
15030 LIBS="$GLIB_LIBS $LIBS"
15031 rm -f conf.glibtest
15032 if test "$cross_compiling" = yes; then :
15033 echo $ac_n "cross compiling; assumed OK... $ac_c"
15034 else
15035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h. */
15037
15038 #include <glib.h>
15039 #include <stdio.h>
15040 #include <stdlib.h>
15041
15042 int
15043 main (void)
15044 {
15045 unsigned int major, minor, micro;
15046
15047 fclose (fopen ("conf.glibtest", "w"));
15048
15049 if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, &micro) != 3) {
15050 printf("%s, bad version string\n", "$min_glib_version");
15051 exit(1);
15052 }
15053
15054 if ((glib_major_version != $glib_config_major_version) ||
15055 (glib_minor_version != $glib_config_minor_version) ||
15056 (glib_micro_version != $glib_config_micro_version))
15057 {
15058 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
15059 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
15060 glib_major_version, glib_minor_version, glib_micro_version);
15061 printf ("*** was found! If pkg-config was correct, then it is best\n");
15062 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
15063 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
15064 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
15065 printf("*** required on your system.\n");
15066 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
15067 printf("*** to point to the correct configuration files\n");
15068 }
15069 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
15070 (glib_minor_version != GLIB_MINOR_VERSION) ||
15071 (glib_micro_version != GLIB_MICRO_VERSION))
15072 {
15073 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
15074 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
15075 printf("*** library (version %d.%d.%d)\n",
15076 glib_major_version, glib_minor_version, glib_micro_version);
15077 }
15078 else
15079 {
15080 if ((glib_major_version > major) ||
15081 ((glib_major_version == major) && (glib_minor_version > minor)) ||
15082 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
15083 {
15084 return 0;
15085 }
15086 else
15087 {
15088 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
15089 glib_major_version, glib_minor_version, glib_micro_version);
15090 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
15091 major, minor, micro);
15092 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
15093 printf("***\n");
15094 printf("*** If you have already installed a sufficiently new version, this error\n");
15095 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
15096 printf("*** being found. The easiest way to fix this is to remove the old version\n");
15097 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
15098 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
15099 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
15100 printf("*** so that the correct libraries are found at run-time))\n");
15101 }
15102 }
15103 return 1;
15104 }
15105
15106 _ACEOF
15107 if ac_fn_c_try_run "$LINENO"; then :
15108
15109 else
15110 no_glib=yes
15111 fi
15112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15113 conftest.$ac_objext conftest.beam conftest.$ac_ext
15114 fi
15115
15116 CFLAGS="$ac_save_CFLAGS"
15117 LIBS="$ac_save_LIBS"
15118 fi
15119 fi
15120 if test "x$no_glib" = x ; then
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
15122 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
15123 :
15124 else
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15126 $as_echo "no" >&6; }
15127 if test "$PKG_CONFIG" = "no" ; then
15128 echo "*** A new enough version of pkg-config was not found."
15129 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
15130 else
15131 if test -f conf.glibtest ; then
15132 :
15133 else
15134 echo "*** Could not run GLIB test program, checking why..."
15135 ac_save_CFLAGS="$CFLAGS"
15136 ac_save_LIBS="$LIBS"
15137 CFLAGS="$CFLAGS $GLIB_CFLAGS"
15138 LIBS="$LIBS $GLIB_LIBS"
15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h. */
15141
15142 #include <glib.h>
15143 #include <stdio.h>
15144
15145 int
15146 main ()
15147 {
15148 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
15149 ;
15150 return 0;
15151 }
15152 _ACEOF
15153 if ac_fn_c_try_link "$LINENO"; then :
15154 echo "*** The test program compiled, but did not run. This usually means"
15155 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
15156 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
15157 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
15158 echo "*** to the installed location Also, make sure you have run ldconfig if that"
15159 echo "*** is required on your system"
15160 echo "***"
15161 echo "*** If you have an old version installed, it is best to remove it, although"
15162 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
15163 else
15164 echo "*** The test program failed to compile or link. See the file config.log for the"
15165 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
15166 fi
15167 rm -f core conftest.err conftest.$ac_objext \
15168 conftest$ac_exeext conftest.$ac_ext
15169 CFLAGS="$ac_save_CFLAGS"
15170 LIBS="$ac_save_LIBS"
15171 fi
15172 fi
15173 GLIB_CFLAGS=""
15174 GLIB_LIBS=""
15175 GLIB_GENMARSHAL=""
15176 GOBJECT_QUERY=""
15177 GLIB_MKENUMS=""
15178 GLIB_COMPILE_RESOURCES=""
15179 as_fn_error $? "glib is required in order to compile BabelTrace - download it from ftp://ftp.gtk.org/pub/gtk" "$LINENO" 5
15180 fi
15181
15182
15183
15184
15185
15186
15187 rm -f conf.glibtest
15188
15189
15190 # Check what libraries are required on this platform to link sockets programs.
15191
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
15193 $as_echo_n "checking for library containing gethostbyname... " >&6; }
15194 if ${ac_cv_search_gethostbyname+:} false; then :
15195 $as_echo_n "(cached) " >&6
15196 else
15197 ac_func_search_save_LIBS=$LIBS
15198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15199 /* end confdefs.h. */
15200
15201 /* Override any GCC internal prototype to avoid an error.
15202 Use char because int might match the return type of a GCC
15203 builtin and then its argument prototype would still apply. */
15204 #ifdef __cplusplus
15205 extern "C"
15206 #endif
15207 char gethostbyname ();
15208 int
15209 main ()
15210 {
15211 return gethostbyname ();
15212 ;
15213 return 0;
15214 }
15215 _ACEOF
15216 for ac_lib in '' nsl; do
15217 if test -z "$ac_lib"; then
15218 ac_res="none required"
15219 else
15220 ac_res=-l$ac_lib
15221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15222 fi
15223 if ac_fn_c_try_link "$LINENO"; then :
15224 ac_cv_search_gethostbyname=$ac_res
15225 fi
15226 rm -f core conftest.err conftest.$ac_objext \
15227 conftest$ac_exeext
15228 if ${ac_cv_search_gethostbyname+:} false; then :
15229 break
15230 fi
15231 done
15232 if ${ac_cv_search_gethostbyname+:} false; then :
15233
15234 else
15235 ac_cv_search_gethostbyname=no
15236 fi
15237 rm conftest.$ac_ext
15238 LIBS=$ac_func_search_save_LIBS
15239 fi
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
15241 $as_echo "$ac_cv_search_gethostbyname" >&6; }
15242 ac_res=$ac_cv_search_gethostbyname
15243 if test "$ac_res" != no; then :
15244 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15245
15246 fi
15247
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
15249 $as_echo_n "checking for library containing socket... " >&6; }
15250 if ${ac_cv_search_socket+:} false; then :
15251 $as_echo_n "(cached) " >&6
15252 else
15253 ac_func_search_save_LIBS=$LIBS
15254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15255 /* end confdefs.h. */
15256
15257 /* Override any GCC internal prototype to avoid an error.
15258 Use char because int might match the return type of a GCC
15259 builtin and then its argument prototype would still apply. */
15260 #ifdef __cplusplus
15261 extern "C"
15262 #endif
15263 char socket ();
15264 int
15265 main ()
15266 {
15267 return socket ();
15268 ;
15269 return 0;
15270 }
15271 _ACEOF
15272 for ac_lib in '' socket; do
15273 if test -z "$ac_lib"; then
15274 ac_res="none required"
15275 else
15276 ac_res=-l$ac_lib
15277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15278 fi
15279 if ac_fn_c_try_link "$LINENO"; then :
15280 ac_cv_search_socket=$ac_res
15281 fi
15282 rm -f core conftest.err conftest.$ac_objext \
15283 conftest$ac_exeext
15284 if ${ac_cv_search_socket+:} false; then :
15285 break
15286 fi
15287 done
15288 if ${ac_cv_search_socket+:} false; then :
15289
15290 else
15291 ac_cv_search_socket=no
15292 fi
15293 rm conftest.$ac_ext
15294 LIBS=$ac_func_search_save_LIBS
15295 fi
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
15297 $as_echo "$ac_cv_search_socket" >&6; }
15298 ac_res=$ac_cv_search_socket
15299 if test "$ac_res" != no; then :
15300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15301
15302 else
15303
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
15305 $as_echo_n "checking for socket in -lsocket... " >&6; }
15306 if ${ac_cv_lib_socket_socket+:} false; then :
15307 $as_echo_n "(cached) " >&6
15308 else
15309 ac_check_lib_save_LIBS=$LIBS
15310 LIBS="-lsocket -lnsl $LIBS"
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15313
15314 /* Override any GCC internal prototype to avoid an error.
15315 Use char because int might match the return type of a GCC
15316 builtin and then its argument prototype would still apply. */
15317 #ifdef __cplusplus
15318 extern "C"
15319 #endif
15320 char socket ();
15321 int
15322 main ()
15323 {
15324 return socket ();
15325 ;
15326 return 0;
15327 }
15328 _ACEOF
15329 if ac_fn_c_try_link "$LINENO"; then :
15330 ac_cv_lib_socket_socket=yes
15331 else
15332 ac_cv_lib_socket_socket=no
15333 fi
15334 rm -f core conftest.err conftest.$ac_objext \
15335 conftest$ac_exeext conftest.$ac_ext
15336 LIBS=$ac_check_lib_save_LIBS
15337 fi
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
15339 $as_echo "$ac_cv_lib_socket_socket" >&6; }
15340 if test "x$ac_cv_lib_socket_socket" = xyes; then :
15341 LIBS="-lsocket -lnsl $LIBS"
15342 fi
15343
15344 fi
15345
15346
15347
15348 # Checks for typedefs, structures, and compiler characteristics.
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15350 $as_echo_n "checking for inline... " >&6; }
15351 if ${ac_cv_c_inline+:} false; then :
15352 $as_echo_n "(cached) " >&6
15353 else
15354 ac_cv_c_inline=no
15355 for ac_kw in inline __inline__ __inline; do
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15358 #ifndef __cplusplus
15359 typedef int foo_t;
15360 static $ac_kw foo_t static_foo () {return 0; }
15361 $ac_kw foo_t foo () {return 0; }
15362 #endif
15363
15364 _ACEOF
15365 if ac_fn_c_try_compile "$LINENO"; then :
15366 ac_cv_c_inline=$ac_kw
15367 fi
15368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15369 test "$ac_cv_c_inline" != no && break
15370 done
15371
15372 fi
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15374 $as_echo "$ac_cv_c_inline" >&6; }
15375
15376 case $ac_cv_c_inline in
15377 inline | yes) ;;
15378 *)
15379 case $ac_cv_c_inline in
15380 no) ac_val=;;
15381 *) ac_val=$ac_cv_c_inline;;
15382 esac
15383 cat >>confdefs.h <<_ACEOF
15384 #ifndef __cplusplus
15385 #define inline $ac_val
15386 #endif
15387 _ACEOF
15388 ;;
15389 esac
15390
15391 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
15392 if test "x$ac_cv_type_pid_t" = xyes; then :
15393
15394 else
15395
15396 cat >>confdefs.h <<_ACEOF
15397 #define pid_t int
15398 _ACEOF
15399
15400 fi
15401
15402 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15403 if test "x$ac_cv_type_size_t" = xyes; then :
15404
15405 else
15406
15407 cat >>confdefs.h <<_ACEOF
15408 #define size_t unsigned int
15409 _ACEOF
15410
15411 fi
15412
15413
15414 # Checks for library functions.
15415 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15416 # for constant arguments. Useless!
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15418 $as_echo_n "checking for working alloca.h... " >&6; }
15419 if ${ac_cv_working_alloca_h+:} false; then :
15420 $as_echo_n "(cached) " >&6
15421 else
15422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15423 /* end confdefs.h. */
15424 #include <alloca.h>
15425 int
15426 main ()
15427 {
15428 char *p = (char *) alloca (2 * sizeof (int));
15429 if (p) return 0;
15430 ;
15431 return 0;
15432 }
15433 _ACEOF
15434 if ac_fn_c_try_link "$LINENO"; then :
15435 ac_cv_working_alloca_h=yes
15436 else
15437 ac_cv_working_alloca_h=no
15438 fi
15439 rm -f core conftest.err conftest.$ac_objext \
15440 conftest$ac_exeext conftest.$ac_ext
15441 fi
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15443 $as_echo "$ac_cv_working_alloca_h" >&6; }
15444 if test $ac_cv_working_alloca_h = yes; then
15445
15446 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15447
15448 fi
15449
15450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15451 $as_echo_n "checking for alloca... " >&6; }
15452 if ${ac_cv_func_alloca_works+:} false; then :
15453 $as_echo_n "(cached) " >&6
15454 else
15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456 /* end confdefs.h. */
15457 #ifdef __GNUC__
15458 # define alloca __builtin_alloca
15459 #else
15460 # ifdef _MSC_VER
15461 # include <malloc.h>
15462 # define alloca _alloca
15463 # else
15464 # ifdef HAVE_ALLOCA_H
15465 # include <alloca.h>
15466 # else
15467 # ifdef _AIX
15468 #pragma alloca
15469 # else
15470 # ifndef alloca /* predefined by HP cc +Olibcalls */
15471 void *alloca (size_t);
15472 # endif
15473 # endif
15474 # endif
15475 # endif
15476 #endif
15477
15478 int
15479 main ()
15480 {
15481 char *p = (char *) alloca (1);
15482 if (p) return 0;
15483 ;
15484 return 0;
15485 }
15486 _ACEOF
15487 if ac_fn_c_try_link "$LINENO"; then :
15488 ac_cv_func_alloca_works=yes
15489 else
15490 ac_cv_func_alloca_works=no
15491 fi
15492 rm -f core conftest.err conftest.$ac_objext \
15493 conftest$ac_exeext conftest.$ac_ext
15494 fi
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15496 $as_echo "$ac_cv_func_alloca_works" >&6; }
15497
15498 if test $ac_cv_func_alloca_works = yes; then
15499
15500 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15501
15502 else
15503 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15504 # that cause trouble. Some versions do not even contain alloca or
15505 # contain a buggy version. If you still want to use their alloca,
15506 # use ar to extract alloca.o from them instead of compiling alloca.c.
15507
15508 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15509
15510 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15511
15512
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15514 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15515 if ${ac_cv_os_cray+:} false; then :
15516 $as_echo_n "(cached) " >&6
15517 else
15518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15519 /* end confdefs.h. */
15520 #if defined CRAY && ! defined CRAY2
15521 webecray
15522 #else
15523 wenotbecray
15524 #endif
15525
15526 _ACEOF
15527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15528 $EGREP "webecray" >/dev/null 2>&1; then :
15529 ac_cv_os_cray=yes
15530 else
15531 ac_cv_os_cray=no
15532 fi
15533 rm -f conftest*
15534
15535 fi
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15537 $as_echo "$ac_cv_os_cray" >&6; }
15538 if test $ac_cv_os_cray = yes; then
15539 for ac_func in _getb67 GETB67 getb67; do
15540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15541 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15542 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15543
15544 cat >>confdefs.h <<_ACEOF
15545 #define CRAY_STACKSEG_END $ac_func
15546 _ACEOF
15547
15548 break
15549 fi
15550
15551 done
15552 fi
15553
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15555 $as_echo_n "checking stack direction for C alloca... " >&6; }
15556 if ${ac_cv_c_stack_direction+:} false; then :
15557 $as_echo_n "(cached) " >&6
15558 else
15559 if test "$cross_compiling" = yes; then :
15560 ac_cv_c_stack_direction=0
15561 else
15562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15563 /* end confdefs.h. */
15564 $ac_includes_default
15565 int
15566 find_stack_direction (int *addr, int depth)
15567 {
15568 int dir, dummy = 0;
15569 if (! addr)
15570 addr = &dummy;
15571 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15572 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15573 return dir + dummy;
15574 }
15575
15576 int
15577 main (int argc, char **argv)
15578 {
15579 return find_stack_direction (0, argc + !argv + 20) < 0;
15580 }
15581 _ACEOF
15582 if ac_fn_c_try_run "$LINENO"; then :
15583 ac_cv_c_stack_direction=1
15584 else
15585 ac_cv_c_stack_direction=-1
15586 fi
15587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15588 conftest.$ac_objext conftest.beam conftest.$ac_ext
15589 fi
15590
15591 fi
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15593 $as_echo "$ac_cv_c_stack_direction" >&6; }
15594 cat >>confdefs.h <<_ACEOF
15595 #define STACK_DIRECTION $ac_cv_c_stack_direction
15596 _ACEOF
15597
15598
15599 fi
15600
15601 for ac_header in vfork.h
15602 do :
15603 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
15604 if test "x$ac_cv_header_vfork_h" = xyes; then :
15605 cat >>confdefs.h <<_ACEOF
15606 #define HAVE_VFORK_H 1
15607 _ACEOF
15608
15609 fi
15610
15611 done
15612
15613 for ac_func in fork vfork
15614 do :
15615 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15616 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15617 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15618 cat >>confdefs.h <<_ACEOF
15619 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15620 _ACEOF
15621
15622 fi
15623 done
15624
15625 if test "x$ac_cv_func_fork" = xyes; then
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
15627 $as_echo_n "checking for working fork... " >&6; }
15628 if ${ac_cv_func_fork_works+:} false; then :
15629 $as_echo_n "(cached) " >&6
15630 else
15631 if test "$cross_compiling" = yes; then :
15632 ac_cv_func_fork_works=cross
15633 else
15634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15635 /* end confdefs.h. */
15636 $ac_includes_default
15637 int
15638 main ()
15639 {
15640
15641 /* By Ruediger Kuhlmann. */
15642 return fork () < 0;
15643
15644 ;
15645 return 0;
15646 }
15647 _ACEOF
15648 if ac_fn_c_try_run "$LINENO"; then :
15649 ac_cv_func_fork_works=yes
15650 else
15651 ac_cv_func_fork_works=no
15652 fi
15653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15654 conftest.$ac_objext conftest.beam conftest.$ac_ext
15655 fi
15656
15657 fi
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
15659 $as_echo "$ac_cv_func_fork_works" >&6; }
15660
15661 else
15662 ac_cv_func_fork_works=$ac_cv_func_fork
15663 fi
15664 if test "x$ac_cv_func_fork_works" = xcross; then
15665 case $host in
15666 *-*-amigaos* | *-*-msdosdjgpp*)
15667 # Override, as these systems have only a dummy fork() stub
15668 ac_cv_func_fork_works=no
15669 ;;
15670 *)
15671 ac_cv_func_fork_works=yes
15672 ;;
15673 esac
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15675 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15676 fi
15677 ac_cv_func_vfork_works=$ac_cv_func_vfork
15678 if test "x$ac_cv_func_vfork" = xyes; then
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
15680 $as_echo_n "checking for working vfork... " >&6; }
15681 if ${ac_cv_func_vfork_works+:} false; then :
15682 $as_echo_n "(cached) " >&6
15683 else
15684 if test "$cross_compiling" = yes; then :
15685 ac_cv_func_vfork_works=cross
15686 else
15687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15688 /* end confdefs.h. */
15689 /* Thanks to Paul Eggert for this test. */
15690 $ac_includes_default
15691 #include <sys/wait.h>
15692 #ifdef HAVE_VFORK_H
15693 # include <vfork.h>
15694 #endif
15695 /* On some sparc systems, changes by the child to local and incoming
15696 argument registers are propagated back to the parent. The compiler
15697 is told about this with #include <vfork.h>, but some compilers
15698 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15699 static variable whose address is put into a register that is
15700 clobbered by the vfork. */
15701 static void
15702 #ifdef __cplusplus
15703 sparc_address_test (int arg)
15704 # else
15705 sparc_address_test (arg) int arg;
15706 #endif
15707 {
15708 static pid_t child;
15709 if (!child) {
15710 child = vfork ();
15711 if (child < 0) {
15712 perror ("vfork");
15713 _exit(2);
15714 }
15715 if (!child) {
15716 arg = getpid();
15717 write(-1, "", 0);
15718 _exit (arg);
15719 }
15720 }
15721 }
15722
15723 int
15724 main ()
15725 {
15726 pid_t parent = getpid ();
15727 pid_t child;
15728
15729 sparc_address_test (0);
15730
15731 child = vfork ();
15732
15733 if (child == 0) {
15734 /* Here is another test for sparc vfork register problems. This
15735 test uses lots of local variables, at least as many local
15736 variables as main has allocated so far including compiler
15737 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15738 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15739 reuse the register of parent for one of the local variables,
15740 since it will think that parent can't possibly be used any more
15741 in this routine. Assigning to the local variable will thus
15742 munge parent in the parent process. */
15743 pid_t
15744 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15745 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15746 /* Convince the compiler that p..p7 are live; otherwise, it might
15747 use the same hardware register for all 8 local variables. */
15748 if (p != p1 || p != p2 || p != p3 || p != p4
15749 || p != p5 || p != p6 || p != p7)
15750 _exit(1);
15751
15752 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15753 from child file descriptors. If the child closes a descriptor
15754 before it execs or exits, this munges the parent's descriptor
15755 as well. Test for this by closing stdout in the child. */
15756 _exit(close(fileno(stdout)) != 0);
15757 } else {
15758 int status;
15759 struct stat st;
15760
15761 while (wait(&status) != child)
15762 ;
15763 return (
15764 /* Was there some problem with vforking? */
15765 child < 0
15766
15767 /* Did the child fail? (This shouldn't happen.) */
15768 || status
15769
15770 /* Did the vfork/compiler bug occur? */
15771 || parent != getpid()
15772
15773 /* Did the file descriptor bug occur? */
15774 || fstat(fileno(stdout), &st) != 0
15775 );
15776 }
15777 }
15778 _ACEOF
15779 if ac_fn_c_try_run "$LINENO"; then :
15780 ac_cv_func_vfork_works=yes
15781 else
15782 ac_cv_func_vfork_works=no
15783 fi
15784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15785 conftest.$ac_objext conftest.beam conftest.$ac_ext
15786 fi
15787
15788 fi
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
15790 $as_echo "$ac_cv_func_vfork_works" >&6; }
15791
15792 fi;
15793 if test "x$ac_cv_func_fork_works" = xcross; then
15794 ac_cv_func_vfork_works=$ac_cv_func_vfork
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15796 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15797 fi
15798
15799 if test "x$ac_cv_func_vfork_works" = xyes; then
15800
15801 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
15802
15803 else
15804
15805 $as_echo "#define vfork fork" >>confdefs.h
15806
15807 fi
15808 if test "x$ac_cv_func_fork_works" = xyes; then
15809
15810 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
15811
15812 fi
15813
15814 for ac_header in stdlib.h
15815 do :
15816 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15817 if test "x$ac_cv_header_stdlib_h" = xyes; then :
15818 cat >>confdefs.h <<_ACEOF
15819 #define HAVE_STDLIB_H 1
15820 _ACEOF
15821
15822 fi
15823
15824 done
15825
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15827 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15828 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
15829 $as_echo_n "(cached) " >&6
15830 else
15831 if test "$cross_compiling" = yes; then :
15832 ac_cv_func_malloc_0_nonnull=no
15833 else
15834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15835 /* end confdefs.h. */
15836 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15837 # include <stdlib.h>
15838 #else
15839 char *malloc ();
15840 #endif
15841
15842 int
15843 main ()
15844 {
15845 return ! malloc (0);
15846 ;
15847 return 0;
15848 }
15849 _ACEOF
15850 if ac_fn_c_try_run "$LINENO"; then :
15851 ac_cv_func_malloc_0_nonnull=yes
15852 else
15853 ac_cv_func_malloc_0_nonnull=no
15854 fi
15855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15856 conftest.$ac_objext conftest.beam conftest.$ac_ext
15857 fi
15858
15859 fi
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
15861 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15862 if test $ac_cv_func_malloc_0_nonnull = yes; then :
15863
15864 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
15865
15866 else
15867 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
15868
15869 case " $LIBOBJS " in
15870 *" malloc.$ac_objext "* ) ;;
15871 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15872 ;;
15873 esac
15874
15875
15876 $as_echo "#define malloc rpl_malloc" >>confdefs.h
15877
15878 fi
15879
15880
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15882 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15883 if ${ac_cv_header_time+:} false; then :
15884 $as_echo_n "(cached) " >&6
15885 else
15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h. */
15888 #include <sys/types.h>
15889 #include <sys/time.h>
15890 #include <time.h>
15891
15892 int
15893 main ()
15894 {
15895 if ((struct tm *) 0)
15896 return 0;
15897 ;
15898 return 0;
15899 }
15900 _ACEOF
15901 if ac_fn_c_try_compile "$LINENO"; then :
15902 ac_cv_header_time=yes
15903 else
15904 ac_cv_header_time=no
15905 fi
15906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15907 fi
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15909 $as_echo "$ac_cv_header_time" >&6; }
15910 if test $ac_cv_header_time = yes; then
15911
15912 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15913
15914 fi
15915
15916
15917
15918
15919 for ac_header in $ac_header_list
15920 do :
15921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15922 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15923 "
15924 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15925 cat >>confdefs.h <<_ACEOF
15926 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15927 _ACEOF
15928
15929 fi
15930
15931 done
15932
15933
15934
15935
15936
15937
15938
15939
15940 for ac_func in $ac_func_list
15941 do :
15942 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15943 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15944 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15945 cat >>confdefs.h <<_ACEOF
15946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15947 _ACEOF
15948
15949 fi
15950 done
15951
15952
15953
15954
15955
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15957 $as_echo_n "checking for working mktime... " >&6; }
15958 if ${ac_cv_func_working_mktime+:} false; then :
15959 $as_echo_n "(cached) " >&6
15960 else
15961 if test "$cross_compiling" = yes; then :
15962 ac_cv_func_working_mktime=no
15963 else
15964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15965 /* end confdefs.h. */
15966 /* Test program from Paul Eggert and Tony Leneis. */
15967 #ifdef TIME_WITH_SYS_TIME
15968 # include <sys/time.h>
15969 # include <time.h>
15970 #else
15971 # ifdef HAVE_SYS_TIME_H
15972 # include <sys/time.h>
15973 # else
15974 # include <time.h>
15975 # endif
15976 #endif
15977
15978 #include <limits.h>
15979 #include <stdlib.h>
15980
15981 #ifdef HAVE_UNISTD_H
15982 # include <unistd.h>
15983 #endif
15984
15985 #ifndef HAVE_ALARM
15986 # define alarm(X) /* empty */
15987 #endif
15988
15989 /* Work around redefinition to rpl_putenv by other config tests. */
15990 #undef putenv
15991
15992 static time_t time_t_max;
15993 static time_t time_t_min;
15994
15995 /* Values we'll use to set the TZ environment variable. */
15996 static const char *tz_strings[] = {
15997 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
15998 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15999 };
16000 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16001
16002 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16003 Based on a problem report from Andreas Jaeger. */
16004 static int
16005 spring_forward_gap ()
16006 {
16007 /* glibc (up to about 1998-10-07) failed this test. */
16008 struct tm tm;
16009
16010 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16011 instead of "TZ=America/Vancouver" in order to detect the bug even
16012 on systems that don't support the Olson extension, or don't have the
16013 full zoneinfo tables installed. */
16014 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
16015
16016 tm.tm_year = 98;
16017 tm.tm_mon = 3;
16018 tm.tm_mday = 5;
16019 tm.tm_hour = 2;
16020 tm.tm_min = 0;
16021 tm.tm_sec = 0;
16022 tm.tm_isdst = -1;
16023 return mktime (&tm) != (time_t) -1;
16024 }
16025
16026 static int
16027 mktime_test1 (time_t now)
16028 {
16029 struct tm *lt;
16030 return ! (lt = localtime (&now)) || mktime (lt) == now;
16031 }
16032
16033 static int
16034 mktime_test (time_t now)
16035 {
16036 return (mktime_test1 (now)
16037 && mktime_test1 ((time_t) (time_t_max - now))
16038 && mktime_test1 ((time_t) (time_t_min + now)));
16039 }
16040
16041 static int
16042 irix_6_4_bug ()
16043 {
16044 /* Based on code from Ariel Faigon. */
16045 struct tm tm;
16046 tm.tm_year = 96;
16047 tm.tm_mon = 3;
16048 tm.tm_mday = 0;
16049 tm.tm_hour = 0;
16050 tm.tm_min = 0;
16051 tm.tm_sec = 0;
16052 tm.tm_isdst = -1;
16053 mktime (&tm);
16054 return tm.tm_mon == 2 && tm.tm_mday == 31;
16055 }
16056
16057 static int
16058 bigtime_test (int j)
16059 {
16060 struct tm tm;
16061 time_t now;
16062 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16063 now = mktime (&tm);
16064 if (now != (time_t) -1)
16065 {
16066 struct tm *lt = localtime (&now);
16067 if (! (lt
16068 && lt->tm_year == tm.tm_year
16069 && lt->tm_mon == tm.tm_mon
16070 && lt->tm_mday == tm.tm_mday
16071 && lt->tm_hour == tm.tm_hour
16072 && lt->tm_min == tm.tm_min
16073 && lt->tm_sec == tm.tm_sec
16074 && lt->tm_yday == tm.tm_yday
16075 && lt->tm_wday == tm.tm_wday
16076 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16077 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16078 return 0;
16079 }
16080 return 1;
16081 }
16082
16083 static int
16084 year_2050_test ()
16085 {
16086 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16087 ignoring leap seconds. */
16088 unsigned long int answer = 2527315200UL;
16089
16090 struct tm tm;
16091 time_t t;
16092 tm.tm_year = 2050 - 1900;
16093 tm.tm_mon = 2 - 1;
16094 tm.tm_mday = 1;
16095 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16096 tm.tm_isdst = -1;
16097
16098 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16099 instead of "TZ=America/Vancouver" in order to detect the bug even
16100 on systems that don't support the Olson extension, or don't have the
16101 full zoneinfo tables installed. */
16102 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
16103
16104 t = mktime (&tm);
16105
16106 /* Check that the result is either a failure, or close enough
16107 to the correct answer that we can assume the discrepancy is
16108 due to leap seconds. */
16109 return (t == (time_t) -1
16110 || (0 < t && answer - 120 <= t && t <= answer + 120));
16111 }
16112
16113 int
16114 main ()
16115 {
16116 time_t t, delta;
16117 int i, j;
16118
16119 /* This test makes some buggy mktime implementations loop.
16120 Give up after 60 seconds; a mktime slower than that
16121 isn't worth using anyway. */
16122 alarm (60);
16123
16124 for (;;)
16125 {
16126 t = (time_t_max << 1) + 1;
16127 if (t <= time_t_max)
16128 break;
16129 time_t_max = t;
16130 }
16131 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16132
16133 delta = time_t_max / 997; /* a suitable prime number */
16134 for (i = 0; i < N_STRINGS; i++)
16135 {
16136 if (tz_strings[i])
16137 putenv ((char*) tz_strings[i]);
16138
16139 for (t = 0; t <= time_t_max - delta; t += delta)
16140 if (! mktime_test (t))
16141 return 1;
16142 if (! (mktime_test ((time_t) 1)
16143 && mktime_test ((time_t) (60 * 60))
16144 && mktime_test ((time_t) (60 * 60 * 24))))
16145 return 1;
16146
16147 for (j = 1; ; j <<= 1)
16148 if (! bigtime_test (j))
16149 return 1;
16150 else if (INT_MAX / 2 < j)
16151 break;
16152 if (! bigtime_test (INT_MAX))
16153 return 1;
16154 }
16155 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16156 }
16157 _ACEOF
16158 if ac_fn_c_try_run "$LINENO"; then :
16159 ac_cv_func_working_mktime=yes
16160 else
16161 ac_cv_func_working_mktime=no
16162 fi
16163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16164 conftest.$ac_objext conftest.beam conftest.$ac_ext
16165 fi
16166
16167 fi
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
16169 $as_echo "$ac_cv_func_working_mktime" >&6; }
16170 if test $ac_cv_func_working_mktime = no; then
16171 case " $LIBOBJS " in
16172 *" mktime.$ac_objext "* ) ;;
16173 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16174 ;;
16175 esac
16176
16177 fi
16178
16179
16180
16181
16182
16183
16184 for ac_func in getpagesize
16185 do :
16186 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
16187 if test "x$ac_cv_func_getpagesize" = xyes; then :
16188 cat >>confdefs.h <<_ACEOF
16189 #define HAVE_GETPAGESIZE 1
16190 _ACEOF
16191
16192 fi
16193 done
16194
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
16196 $as_echo_n "checking for working mmap... " >&6; }
16197 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
16198 $as_echo_n "(cached) " >&6
16199 else
16200 if test "$cross_compiling" = yes; then :
16201 ac_cv_func_mmap_fixed_mapped=no
16202 else
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16205 $ac_includes_default
16206 /* malloc might have been renamed as rpl_malloc. */
16207 #undef malloc
16208
16209 /* Thanks to Mike Haertel and Jim Avera for this test.
16210 Here is a matrix of mmap possibilities:
16211 mmap private not fixed
16212 mmap private fixed at somewhere currently unmapped
16213 mmap private fixed at somewhere already mapped
16214 mmap shared not fixed
16215 mmap shared fixed at somewhere currently unmapped
16216 mmap shared fixed at somewhere already mapped
16217 For private mappings, we should verify that changes cannot be read()
16218 back from the file, nor mmap's back from the file at a different
16219 address. (There have been systems where private was not correctly
16220 implemented like the infamous i386 svr4.0, and systems where the
16221 VM page cache was not coherent with the file system buffer cache
16222 like early versions of FreeBSD and possibly contemporary NetBSD.)
16223 For shared mappings, we should conversely verify that changes get
16224 propagated back to all the places they're supposed to be.
16225
16226 Grep wants private fixed already mapped.
16227 The main things grep needs to know about mmap are:
16228 * does it exist and is it safe to write into the mmap'd area
16229 * how to use it (BSD variants) */
16230
16231 #include <fcntl.h>
16232 #include <sys/mman.h>
16233
16234 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
16235 char *malloc ();
16236 #endif
16237
16238 /* This mess was copied from the GNU getpagesize.h. */
16239 #ifndef HAVE_GETPAGESIZE
16240 # ifdef _SC_PAGESIZE
16241 # define getpagesize() sysconf(_SC_PAGESIZE)
16242 # else /* no _SC_PAGESIZE */
16243 # ifdef HAVE_SYS_PARAM_H
16244 # include <sys/param.h>
16245 # ifdef EXEC_PAGESIZE
16246 # define getpagesize() EXEC_PAGESIZE
16247 # else /* no EXEC_PAGESIZE */
16248 # ifdef NBPG
16249 # define getpagesize() NBPG * CLSIZE
16250 # ifndef CLSIZE
16251 # define CLSIZE 1
16252 # endif /* no CLSIZE */
16253 # else /* no NBPG */
16254 # ifdef NBPC
16255 # define getpagesize() NBPC
16256 # else /* no NBPC */
16257 # ifdef PAGESIZE
16258 # define getpagesize() PAGESIZE
16259 # endif /* PAGESIZE */
16260 # endif /* no NBPC */
16261 # endif /* no NBPG */
16262 # endif /* no EXEC_PAGESIZE */
16263 # else /* no HAVE_SYS_PARAM_H */
16264 # define getpagesize() 8192 /* punt totally */
16265 # endif /* no HAVE_SYS_PARAM_H */
16266 # endif /* no _SC_PAGESIZE */
16267
16268 #endif /* no HAVE_GETPAGESIZE */
16269
16270 int
16271 main ()
16272 {
16273 char *data, *data2, *data3;
16274 const char *cdata2;
16275 int i, pagesize;
16276 int fd, fd2;
16277
16278 pagesize = getpagesize ();
16279
16280 /* First, make a file with some known garbage in it. */
16281 data = (char *) malloc (pagesize);
16282 if (!data)
16283 return 1;
16284 for (i = 0; i < pagesize; ++i)
16285 *(data + i) = rand ();
16286 umask (0);
16287 fd = creat ("conftest.mmap", 0600);
16288 if (fd < 0)
16289 return 2;
16290 if (write (fd, data, pagesize) != pagesize)
16291 return 3;
16292 close (fd);
16293
16294 /* Next, check that the tail of a page is zero-filled. File must have
16295 non-zero length, otherwise we risk SIGBUS for entire page. */
16296 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
16297 if (fd2 < 0)
16298 return 4;
16299 cdata2 = "";
16300 if (write (fd2, cdata2, 1) != 1)
16301 return 5;
16302 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
16303 if (data2 == MAP_FAILED)
16304 return 6;
16305 for (i = 0; i < pagesize; ++i)
16306 if (*(data2 + i))
16307 return 7;
16308 close (fd2);
16309 if (munmap (data2, pagesize))
16310 return 8;
16311
16312 /* Next, try to mmap the file at a fixed address which already has
16313 something else allocated at it. If we can, also make sure that
16314 we see the same garbage. */
16315 fd = open ("conftest.mmap", O_RDWR);
16316 if (fd < 0)
16317 return 9;
16318 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16319 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16320 return 10;
16321 for (i = 0; i < pagesize; ++i)
16322 if (*(data + i) != *(data2 + i))
16323 return 11;
16324
16325 /* Finally, make sure that changes to the mapped area do not
16326 percolate back to the file as seen by read(). (This is a bug on
16327 some variants of i386 svr4.0.) */
16328 for (i = 0; i < pagesize; ++i)
16329 *(data2 + i) = *(data2 + i) + 1;
16330 data3 = (char *) malloc (pagesize);
16331 if (!data3)
16332 return 12;
16333 if (read (fd, data3, pagesize) != pagesize)
16334 return 13;
16335 for (i = 0; i < pagesize; ++i)
16336 if (*(data + i) != *(data3 + i))
16337 return 14;
16338 close (fd);
16339 free (data);
16340 free (data3);
16341 return 0;
16342 }
16343 _ACEOF
16344 if ac_fn_c_try_run "$LINENO"; then :
16345 ac_cv_func_mmap_fixed_mapped=yes
16346 else
16347 ac_cv_func_mmap_fixed_mapped=no
16348 fi
16349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16350 conftest.$ac_objext conftest.beam conftest.$ac_ext
16351 fi
16352
16353 fi
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16355 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16356 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16357
16358 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16359
16360 fi
16361 rm -f conftest.mmap conftest.txt
16362
16363 for ac_header in stdlib.h
16364 do :
16365 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
16366 if test "x$ac_cv_header_stdlib_h" = xyes; then :
16367 cat >>confdefs.h <<_ACEOF
16368 #define HAVE_STDLIB_H 1
16369 _ACEOF
16370
16371 fi
16372
16373 done
16374
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
16376 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
16377 if ${ac_cv_func_realloc_0_nonnull+:} false; then :
16378 $as_echo_n "(cached) " >&6
16379 else
16380 if test "$cross_compiling" = yes; then :
16381 ac_cv_func_realloc_0_nonnull=no
16382 else
16383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16384 /* end confdefs.h. */
16385 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16386 # include <stdlib.h>
16387 #else
16388 char *realloc ();
16389 #endif
16390
16391 int
16392 main ()
16393 {
16394 return ! realloc (0, 0);
16395 ;
16396 return 0;
16397 }
16398 _ACEOF
16399 if ac_fn_c_try_run "$LINENO"; then :
16400 ac_cv_func_realloc_0_nonnull=yes
16401 else
16402 ac_cv_func_realloc_0_nonnull=no
16403 fi
16404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16405 conftest.$ac_objext conftest.beam conftest.$ac_ext
16406 fi
16407
16408 fi
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
16410 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
16411 if test $ac_cv_func_realloc_0_nonnull = yes; then :
16412
16413 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
16414
16415 else
16416 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
16417
16418 case " $LIBOBJS " in
16419 *" realloc.$ac_objext "* ) ;;
16420 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
16421 ;;
16422 esac
16423
16424
16425 $as_echo "#define realloc rpl_realloc" >>confdefs.h
16426
16427 fi
16428
16429
16430 for ac_func in \
16431 atexit \
16432 dirfd \
16433 dup2 \
16434 ftruncate \
16435 gethostbyname \
16436 gethostname \
16437 gettimeofday \
16438 localtime_r \
16439 memchr \
16440 memset \
16441 mkdir \
16442 mkdtemp \
16443 munmap \
16444 rmdir \
16445 setenv \
16446 socket \
16447 strchr \
16448 strdup \
16449 strerror \
16450 strndup \
16451 strnlen \
16452 strrchr \
16453 strtoul \
16454 strtoull \
16455 tzset \
16456 uname \
16457
16458 do :
16459 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16460 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16461 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16462 cat >>confdefs.h <<_ACEOF
16463 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16464 _ACEOF
16465
16466 fi
16467 done
16468
16469
16470 MINGW32=no
16471 DEFAULT_ENABLE_DEBUG_INFO=yes
16472 LT_NO_UNDEFINED=""
16473 case $host_os in #(
16474 solaris*|darwin*) :
16475
16476 DEFAULT_ENABLE_DEBUG_INFO=no
16477 ;; #(
16478 freebsd*) :
16479
16480 DEFAULT_ENABLE_DEBUG_INFO=no
16481 ;; #(
16482 mingw*) :
16483
16484 MINGW32=yes
16485 LT_NO_UNDEFINED="-no-undefined"
16486 ;; #(
16487 cygwin*) :
16488
16489 LT_NO_UNDEFINED="-no-undefined"
16490 DEFAULT_ENABLE_DEBUG_INFO=no
16491
16492 ;; #(
16493 *) :
16494 ;;
16495 esac
16496
16497 if test "x$MINGW32" = "xyes"; then
16498 BABELTRACE_BUILD_WITH_MINGW_TRUE=
16499 BABELTRACE_BUILD_WITH_MINGW_FALSE='#'
16500 else
16501 BABELTRACE_BUILD_WITH_MINGW_TRUE='#'
16502 BABELTRACE_BUILD_WITH_MINGW_FALSE=
16503 fi
16504
16505
16506
16507 # Check what libraries are required on this platform to link sockets programs.
16508
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
16510 $as_echo_n "checking for library containing gethostbyname... " >&6; }
16511 if ${ac_cv_search_gethostbyname+:} false; then :
16512 $as_echo_n "(cached) " >&6
16513 else
16514 ac_func_search_save_LIBS=$LIBS
16515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16516 /* end confdefs.h. */
16517
16518 /* Override any GCC internal prototype to avoid an error.
16519 Use char because int might match the return type of a GCC
16520 builtin and then its argument prototype would still apply. */
16521 #ifdef __cplusplus
16522 extern "C"
16523 #endif
16524 char gethostbyname ();
16525 int
16526 main ()
16527 {
16528 return gethostbyname ();
16529 ;
16530 return 0;
16531 }
16532 _ACEOF
16533 for ac_lib in '' nsl; do
16534 if test -z "$ac_lib"; then
16535 ac_res="none required"
16536 else
16537 ac_res=-l$ac_lib
16538 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16539 fi
16540 if ac_fn_c_try_link "$LINENO"; then :
16541 ac_cv_search_gethostbyname=$ac_res
16542 fi
16543 rm -f core conftest.err conftest.$ac_objext \
16544 conftest$ac_exeext
16545 if ${ac_cv_search_gethostbyname+:} false; then :
16546 break
16547 fi
16548 done
16549 if ${ac_cv_search_gethostbyname+:} false; then :
16550
16551 else
16552 ac_cv_search_gethostbyname=no
16553 fi
16554 rm conftest.$ac_ext
16555 LIBS=$ac_func_search_save_LIBS
16556 fi
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
16558 $as_echo "$ac_cv_search_gethostbyname" >&6; }
16559 ac_res=$ac_cv_search_gethostbyname
16560 if test "$ac_res" != no; then :
16561 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16562
16563 fi
16564
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
16566 $as_echo_n "checking for library containing socket... " >&6; }
16567 if ${ac_cv_search_socket+:} false; then :
16568 $as_echo_n "(cached) " >&6
16569 else
16570 ac_func_search_save_LIBS=$LIBS
16571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16572 /* end confdefs.h. */
16573
16574 /* Override any GCC internal prototype to avoid an error.
16575 Use char because int might match the return type of a GCC
16576 builtin and then its argument prototype would still apply. */
16577 #ifdef __cplusplus
16578 extern "C"
16579 #endif
16580 char socket ();
16581 int
16582 main ()
16583 {
16584 return socket ();
16585 ;
16586 return 0;
16587 }
16588 _ACEOF
16589 for ac_lib in '' socket; do
16590 if test -z "$ac_lib"; then
16591 ac_res="none required"
16592 else
16593 ac_res=-l$ac_lib
16594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16595 fi
16596 if ac_fn_c_try_link "$LINENO"; then :
16597 ac_cv_search_socket=$ac_res
16598 fi
16599 rm -f core conftest.err conftest.$ac_objext \
16600 conftest$ac_exeext
16601 if ${ac_cv_search_socket+:} false; then :
16602 break
16603 fi
16604 done
16605 if ${ac_cv_search_socket+:} false; then :
16606
16607 else
16608 ac_cv_search_socket=no
16609 fi
16610 rm conftest.$ac_ext
16611 LIBS=$ac_func_search_save_LIBS
16612 fi
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
16614 $as_echo "$ac_cv_search_socket" >&6; }
16615 ac_res=$ac_cv_search_socket
16616 if test "$ac_res" != no; then :
16617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16618
16619 else
16620
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
16622 $as_echo_n "checking for socket in -lsocket... " >&6; }
16623 if ${ac_cv_lib_socket_socket+:} false; then :
16624 $as_echo_n "(cached) " >&6
16625 else
16626 ac_check_lib_save_LIBS=$LIBS
16627 LIBS="-lsocket -lnsl $LIBS"
16628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16629 /* end confdefs.h. */
16630
16631 /* Override any GCC internal prototype to avoid an error.
16632 Use char because int might match the return type of a GCC
16633 builtin and then its argument prototype would still apply. */
16634 #ifdef __cplusplus
16635 extern "C"
16636 #endif
16637 char socket ();
16638 int
16639 main ()
16640 {
16641 return socket ();
16642 ;
16643 return 0;
16644 }
16645 _ACEOF
16646 if ac_fn_c_try_link "$LINENO"; then :
16647 ac_cv_lib_socket_socket=yes
16648 else
16649 ac_cv_lib_socket_socket=no
16650 fi
16651 rm -f core conftest.err conftest.$ac_objext \
16652 conftest$ac_exeext conftest.$ac_ext
16653 LIBS=$ac_check_lib_save_LIBS
16654 fi
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
16656 $as_echo "$ac_cv_lib_socket_socket" >&6; }
16657 if test "x$ac_cv_lib_socket_socket" = xyes; then :
16658 LIBS="-lsocket -lnsl $LIBS"
16659 fi
16660
16661 fi
16662
16663
16664
16665 # Check for uuid in system libs
16666 for ac_func in uuid_generate
16667 do :
16668 ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
16669 if test "x$ac_cv_func_uuid_generate" = xyes; then :
16670 cat >>confdefs.h <<_ACEOF
16671 #define HAVE_UUID_GENERATE 1
16672 _ACEOF
16673
16674
16675 cat >>confdefs.h <<_ACEOF
16676 #define BABELTRACE_HAVE_LIBUUID 1
16677 _ACEOF
16678
16679 link_with_libuuid=no
16680
16681 else
16682
16683 # First, check the pkg-config module is available, otherwise explicitly check
16684 # for libuuid, or uuid support in the C-library.
16685
16686 pkg_failed=no
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UUID" >&5
16688 $as_echo_n "checking for UUID... " >&6; }
16689
16690 if test -n "$UUID_CFLAGS"; then
16691 pkg_cv_UUID_CFLAGS="$UUID_CFLAGS"
16692 elif test -n "$PKG_CONFIG"; then
16693 if test -n "$PKG_CONFIG" && \
16694 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
16695 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
16696 ac_status=$?
16697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16698 test $ac_status = 0; }; then
16699 pkg_cv_UUID_CFLAGS=`$PKG_CONFIG --cflags "uuid" 2>/dev/null`
16700 test "x$?" != "x0" && pkg_failed=yes
16701 else
16702 pkg_failed=yes
16703 fi
16704 else
16705 pkg_failed=untried
16706 fi
16707 if test -n "$UUID_LIBS"; then
16708 pkg_cv_UUID_LIBS="$UUID_LIBS"
16709 elif test -n "$PKG_CONFIG"; then
16710 if test -n "$PKG_CONFIG" && \
16711 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid\""; } >&5
16712 ($PKG_CONFIG --exists --print-errors "uuid") 2>&5
16713 ac_status=$?
16714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16715 test $ac_status = 0; }; then
16716 pkg_cv_UUID_LIBS=`$PKG_CONFIG --libs "uuid" 2>/dev/null`
16717 test "x$?" != "x0" && pkg_failed=yes
16718 else
16719 pkg_failed=yes
16720 fi
16721 else
16722 pkg_failed=untried
16723 fi
16724
16725
16726
16727 if test $pkg_failed = yes; then
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16729 $as_echo "no" >&6; }
16730
16731 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16732 _pkg_short_errors_supported=yes
16733 else
16734 _pkg_short_errors_supported=no
16735 fi
16736 if test $_pkg_short_errors_supported = yes; then
16737 UUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid" 2>&1`
16738 else
16739 UUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid" 2>&1`
16740 fi
16741 # Put the nasty error message in config.log where it belongs
16742 echo "$UUID_PKG_ERRORS" >&5
16743
16744
16745 # Check for libuuid
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
16747 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
16748 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
16749 $as_echo_n "(cached) " >&6
16750 else
16751 ac_check_lib_save_LIBS=$LIBS
16752 LIBS="-luuid $LIBS"
16753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16754 /* end confdefs.h. */
16755
16756 /* Override any GCC internal prototype to avoid an error.
16757 Use char because int might match the return type of a GCC
16758 builtin and then its argument prototype would still apply. */
16759 #ifdef __cplusplus
16760 extern "C"
16761 #endif
16762 char uuid_generate ();
16763 int
16764 main ()
16765 {
16766 return uuid_generate ();
16767 ;
16768 return 0;
16769 }
16770 _ACEOF
16771 if ac_fn_c_try_link "$LINENO"; then :
16772 ac_cv_lib_uuid_uuid_generate=yes
16773 else
16774 ac_cv_lib_uuid_uuid_generate=no
16775 fi
16776 rm -f core conftest.err conftest.$ac_objext \
16777 conftest$ac_exeext conftest.$ac_ext
16778 LIBS=$ac_check_lib_save_LIBS
16779 fi
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
16781 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
16782 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
16783
16784
16785 cat >>confdefs.h <<_ACEOF
16786 #define BABELTRACE_HAVE_LIBUUID 1
16787 _ACEOF
16788
16789 link_with_libuuid=yes
16790
16791 else
16792
16793 # libuuid not found, check for uuid_create in libc.
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create in -lc" >&5
16795 $as_echo_n "checking for uuid_create in -lc... " >&6; }
16796 if ${ac_cv_lib_c_uuid_create+:} false; then :
16797 $as_echo_n "(cached) " >&6
16798 else
16799 ac_check_lib_save_LIBS=$LIBS
16800 LIBS="-lc $LIBS"
16801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16802 /* end confdefs.h. */
16803
16804 /* Override any GCC internal prototype to avoid an error.
16805 Use char because int might match the return type of a GCC
16806 builtin and then its argument prototype would still apply. */
16807 #ifdef __cplusplus
16808 extern "C"
16809 #endif
16810 char uuid_create ();
16811 int
16812 main ()
16813 {
16814 return uuid_create ();
16815 ;
16816 return 0;
16817 }
16818 _ACEOF
16819 if ac_fn_c_try_link "$LINENO"; then :
16820 ac_cv_lib_c_uuid_create=yes
16821 else
16822 ac_cv_lib_c_uuid_create=no
16823 fi
16824 rm -f core conftest.err conftest.$ac_objext \
16825 conftest$ac_exeext conftest.$ac_ext
16826 LIBS=$ac_check_lib_save_LIBS
16827 fi
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_uuid_create" >&5
16829 $as_echo "$ac_cv_lib_c_uuid_create" >&6; }
16830 if test "x$ac_cv_lib_c_uuid_create" = xyes; then :
16831
16832
16833 cat >>confdefs.h <<_ACEOF
16834 #define BABELTRACE_HAVE_LIBC_UUID 1
16835 _ACEOF
16836
16837 link_with_libc_uuid=yes
16838
16839 else
16840
16841 # for MinGW32 we have our own internal implementation of uuid using Windows functions.
16842 if test "x$MINGW32" = xno; then
16843 as_fn_error $? "Cannot find libuuid uuid_generate nor libc uuid_create. Use LDFLAGS=-Ldir to specify their location." "$LINENO" 5
16844 fi
16845
16846 fi
16847
16848
16849 fi
16850
16851
16852 elif test $pkg_failed = untried; then
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16854 $as_echo "no" >&6; }
16855
16856 # Check for libuuid
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
16858 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
16859 if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
16860 $as_echo_n "(cached) " >&6
16861 else
16862 ac_check_lib_save_LIBS=$LIBS
16863 LIBS="-luuid $LIBS"
16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865 /* end confdefs.h. */
16866
16867 /* Override any GCC internal prototype to avoid an error.
16868 Use char because int might match the return type of a GCC
16869 builtin and then its argument prototype would still apply. */
16870 #ifdef __cplusplus
16871 extern "C"
16872 #endif
16873 char uuid_generate ();
16874 int
16875 main ()
16876 {
16877 return uuid_generate ();
16878 ;
16879 return 0;
16880 }
16881 _ACEOF
16882 if ac_fn_c_try_link "$LINENO"; then :
16883 ac_cv_lib_uuid_uuid_generate=yes
16884 else
16885 ac_cv_lib_uuid_uuid_generate=no
16886 fi
16887 rm -f core conftest.err conftest.$ac_objext \
16888 conftest$ac_exeext conftest.$ac_ext
16889 LIBS=$ac_check_lib_save_LIBS
16890 fi
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
16892 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
16893 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
16894
16895
16896 cat >>confdefs.h <<_ACEOF
16897 #define BABELTRACE_HAVE_LIBUUID 1
16898 _ACEOF
16899
16900 link_with_libuuid=yes
16901
16902 else
16903
16904 # libuuid not found, check for uuid_create in libc.
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create in -lc" >&5
16906 $as_echo_n "checking for uuid_create in -lc... " >&6; }
16907 if ${ac_cv_lib_c_uuid_create+:} false; then :
16908 $as_echo_n "(cached) " >&6
16909 else
16910 ac_check_lib_save_LIBS=$LIBS
16911 LIBS="-lc $LIBS"
16912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16913 /* end confdefs.h. */
16914
16915 /* Override any GCC internal prototype to avoid an error.
16916 Use char because int might match the return type of a GCC
16917 builtin and then its argument prototype would still apply. */
16918 #ifdef __cplusplus
16919 extern "C"
16920 #endif
16921 char uuid_create ();
16922 int
16923 main ()
16924 {
16925 return uuid_create ();
16926 ;
16927 return 0;
16928 }
16929 _ACEOF
16930 if ac_fn_c_try_link "$LINENO"; then :
16931 ac_cv_lib_c_uuid_create=yes
16932 else
16933 ac_cv_lib_c_uuid_create=no
16934 fi
16935 rm -f core conftest.err conftest.$ac_objext \
16936 conftest$ac_exeext conftest.$ac_ext
16937 LIBS=$ac_check_lib_save_LIBS
16938 fi
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_uuid_create" >&5
16940 $as_echo "$ac_cv_lib_c_uuid_create" >&6; }
16941 if test "x$ac_cv_lib_c_uuid_create" = xyes; then :
16942
16943
16944 cat >>confdefs.h <<_ACEOF
16945 #define BABELTRACE_HAVE_LIBC_UUID 1
16946 _ACEOF
16947
16948 link_with_libc_uuid=yes
16949
16950 else
16951
16952 # for MinGW32 we have our own internal implementation of uuid using Windows functions.
16953 if test "x$MINGW32" = xno; then
16954 as_fn_error $? "Cannot find libuuid uuid_generate nor libc uuid_create. Use LDFLAGS=-Ldir to specify their location." "$LINENO" 5
16955 fi
16956
16957 fi
16958
16959
16960 fi
16961
16962
16963 else
16964 UUID_CFLAGS=$pkg_cv_UUID_CFLAGS
16965 UUID_LIBS=$pkg_cv_UUID_LIBS
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16967 $as_echo "yes" >&6; }
16968
16969 LIBS="${UUID_LIBS} ${LIBS}"
16970 CFLAGS="${CFLAGS} ${UUID_CFLAGS}"
16971
16972 cat >>confdefs.h <<_ACEOF
16973 #define BABELTRACE_HAVE_LIBUUID 1
16974 _ACEOF
16975
16976 link_with_libuuid=yes
16977
16978 fi
16979
16980 fi
16981 done
16982
16983
16984 if test "x$link_with_libuuid" = "xyes"; then
16985 BABELTRACE_BUILD_WITH_LIBUUID_TRUE=
16986 BABELTRACE_BUILD_WITH_LIBUUID_FALSE='#'
16987 else
16988 BABELTRACE_BUILD_WITH_LIBUUID_TRUE='#'
16989 BABELTRACE_BUILD_WITH_LIBUUID_FALSE=
16990 fi
16991
16992 if test "x$link_with_libc_uuid" = "xyes"; then
16993 BABELTRACE_BUILD_WITH_LIBC_UUID_TRUE=
16994 BABELTRACE_BUILD_WITH_LIBC_UUID_FALSE='#'
16995 else
16996 BABELTRACE_BUILD_WITH_LIBC_UUID_TRUE='#'
16997 BABELTRACE_BUILD_WITH_LIBC_UUID_FALSE=
16998 fi
16999
17000
17001 # Check for fmemopen
17002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmemopen in -lc" >&5
17003 $as_echo_n "checking for fmemopen in -lc... " >&6; }
17004 if ${ac_cv_lib_c_fmemopen+:} false; then :
17005 $as_echo_n "(cached) " >&6
17006 else
17007 ac_check_lib_save_LIBS=$LIBS
17008 LIBS="-lc $LIBS"
17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17010 /* end confdefs.h. */
17011
17012 /* Override any GCC internal prototype to avoid an error.
17013 Use char because int might match the return type of a GCC
17014 builtin and then its argument prototype would still apply. */
17015 #ifdef __cplusplus
17016 extern "C"
17017 #endif
17018 char fmemopen ();
17019 int
17020 main ()
17021 {
17022 return fmemopen ();
17023 ;
17024 return 0;
17025 }
17026 _ACEOF
17027 if ac_fn_c_try_link "$LINENO"; then :
17028 ac_cv_lib_c_fmemopen=yes
17029 else
17030 ac_cv_lib_c_fmemopen=no
17031 fi
17032 rm -f core conftest.err conftest.$ac_objext \
17033 conftest$ac_exeext conftest.$ac_ext
17034 LIBS=$ac_check_lib_save_LIBS
17035 fi
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fmemopen" >&5
17037 $as_echo "$ac_cv_lib_c_fmemopen" >&6; }
17038 if test "x$ac_cv_lib_c_fmemopen" = xyes; then :
17039
17040
17041 cat >>confdefs.h <<_ACEOF
17042 #define BABELTRACE_HAVE_FMEMOPEN 1
17043 _ACEOF
17044
17045
17046
17047 fi
17048
17049
17050 # Check for open_memstream
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for open_memstream in -lc" >&5
17052 $as_echo_n "checking for open_memstream in -lc... " >&6; }
17053 if ${ac_cv_lib_c_open_memstream+:} false; then :
17054 $as_echo_n "(cached) " >&6
17055 else
17056 ac_check_lib_save_LIBS=$LIBS
17057 LIBS="-lc $LIBS"
17058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17059 /* end confdefs.h. */
17060
17061 /* Override any GCC internal prototype to avoid an error.
17062 Use char because int might match the return type of a GCC
17063 builtin and then its argument prototype would still apply. */
17064 #ifdef __cplusplus
17065 extern "C"
17066 #endif
17067 char open_memstream ();
17068 int
17069 main ()
17070 {
17071 return open_memstream ();
17072 ;
17073 return 0;
17074 }
17075 _ACEOF
17076 if ac_fn_c_try_link "$LINENO"; then :
17077 ac_cv_lib_c_open_memstream=yes
17078 else
17079 ac_cv_lib_c_open_memstream=no
17080 fi
17081 rm -f core conftest.err conftest.$ac_objext \
17082 conftest$ac_exeext conftest.$ac_ext
17083 LIBS=$ac_check_lib_save_LIBS
17084 fi
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_open_memstream" >&5
17086 $as_echo "$ac_cv_lib_c_open_memstream" >&6; }
17087 if test "x$ac_cv_lib_c_open_memstream" = xyes; then :
17088
17089
17090 cat >>confdefs.h <<_ACEOF
17091 #define BABELTRACE_HAVE_OPEN_MEMSTREAM 1
17092 _ACEOF
17093
17094
17095
17096 fi
17097
17098
17099 # Check for posix_fallocate
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fallocate in -lc" >&5
17101 $as_echo_n "checking for posix_fallocate in -lc... " >&6; }
17102 if ${ac_cv_lib_c_posix_fallocate+:} false; then :
17103 $as_echo_n "(cached) " >&6
17104 else
17105 ac_check_lib_save_LIBS=$LIBS
17106 LIBS="-lc $LIBS"
17107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108 /* end confdefs.h. */
17109
17110 /* Override any GCC internal prototype to avoid an error.
17111 Use char because int might match the return type of a GCC
17112 builtin and then its argument prototype would still apply. */
17113 #ifdef __cplusplus
17114 extern "C"
17115 #endif
17116 char posix_fallocate ();
17117 int
17118 main ()
17119 {
17120 return posix_fallocate ();
17121 ;
17122 return 0;
17123 }
17124 _ACEOF
17125 if ac_fn_c_try_link "$LINENO"; then :
17126 ac_cv_lib_c_posix_fallocate=yes
17127 else
17128 ac_cv_lib_c_posix_fallocate=no
17129 fi
17130 rm -f core conftest.err conftest.$ac_objext \
17131 conftest$ac_exeext conftest.$ac_ext
17132 LIBS=$ac_check_lib_save_LIBS
17133 fi
17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_posix_fallocate" >&5
17135 $as_echo "$ac_cv_lib_c_posix_fallocate" >&6; }
17136 if test "x$ac_cv_lib_c_posix_fallocate" = xyes; then :
17137
17138
17139 cat >>confdefs.h <<_ACEOF
17140 #define BABELTRACE_HAVE_POSIX_FALLOCATE 1
17141 _ACEOF
17142
17143
17144
17145 fi
17146
17147
17148 # Check for faccessat
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for faccessat in -lc" >&5
17150 $as_echo_n "checking for faccessat in -lc... " >&6; }
17151 if ${ac_cv_lib_c_faccessat+:} false; then :
17152 $as_echo_n "(cached) " >&6
17153 else
17154 ac_check_lib_save_LIBS=$LIBS
17155 LIBS="-lc $LIBS"
17156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17157 /* end confdefs.h. */
17158
17159 /* Override any GCC internal prototype to avoid an error.
17160 Use char because int might match the return type of a GCC
17161 builtin and then its argument prototype would still apply. */
17162 #ifdef __cplusplus
17163 extern "C"
17164 #endif
17165 char faccessat ();
17166 int
17167 main ()
17168 {
17169 return faccessat ();
17170 ;
17171 return 0;
17172 }
17173 _ACEOF
17174 if ac_fn_c_try_link "$LINENO"; then :
17175 ac_cv_lib_c_faccessat=yes
17176 else
17177 ac_cv_lib_c_faccessat=no
17178 fi
17179 rm -f core conftest.err conftest.$ac_objext \
17180 conftest$ac_exeext conftest.$ac_ext
17181 LIBS=$ac_check_lib_save_LIBS
17182 fi
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_faccessat" >&5
17184 $as_echo "$ac_cv_lib_c_faccessat" >&6; }
17185 if test "x$ac_cv_lib_c_faccessat" = xyes; then :
17186
17187
17188 cat >>confdefs.h <<_ACEOF
17189 #define BABELTRACE_HAVE_FACCESSAT 1
17190 _ACEOF
17191
17192
17193
17194 fi
17195
17196
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poptGetContext in -lpopt" >&5
17198 $as_echo_n "checking for poptGetContext in -lpopt... " >&6; }
17199 if ${ac_cv_lib_popt_poptGetContext+:} false; then :
17200 $as_echo_n "(cached) " >&6
17201 else
17202 ac_check_lib_save_LIBS=$LIBS
17203 LIBS="-lpopt $LIBS"
17204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17205 /* end confdefs.h. */
17206
17207 /* Override any GCC internal prototype to avoid an error.
17208 Use char because int might match the return type of a GCC
17209 builtin and then its argument prototype would still apply. */
17210 #ifdef __cplusplus
17211 extern "C"
17212 #endif
17213 char poptGetContext ();
17214 int
17215 main ()
17216 {
17217 return poptGetContext ();
17218 ;
17219 return 0;
17220 }
17221 _ACEOF
17222 if ac_fn_c_try_link "$LINENO"; then :
17223 ac_cv_lib_popt_poptGetContext=yes
17224 else
17225 ac_cv_lib_popt_poptGetContext=no
17226 fi
17227 rm -f core conftest.err conftest.$ac_objext \
17228 conftest$ac_exeext conftest.$ac_ext
17229 LIBS=$ac_check_lib_save_LIBS
17230 fi
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_popt_poptGetContext" >&5
17232 $as_echo "$ac_cv_lib_popt_poptGetContext" >&6; }
17233 if test "x$ac_cv_lib_popt_poptGetContext" = xyes; then :
17234 cat >>confdefs.h <<_ACEOF
17235 #define HAVE_LIBPOPT 1
17236 _ACEOF
17237
17238 LIBS="-lpopt $LIBS"
17239
17240 else
17241 as_fn_error $? "Cannot find popt." "$LINENO" 5
17242
17243 fi
17244
17245
17246 # For Python
17247 # SWIG version needed or newer:
17248 swig_version=2.0.0
17249
17250 # Check whether --enable-python-bindings was given.
17251 if test "${enable_python_bindings+set}" = set; then :
17252 enableval=$enable_python_bindings; enable_python=yes
17253 else
17254 enable_python=no
17255 fi
17256
17257
17258 if test "x${enable_python:-yes}" = xyes; then
17259 USE_PYTHON_TRUE=
17260 USE_PYTHON_FALSE='#'
17261 else
17262 USE_PYTHON_TRUE='#'
17263 USE_PYTHON_FALSE=
17264 fi
17265
17266
17267 if test "x${enable_python:-yes}" = xyes; then
17268
17269 # Ubuntu has swig 2.0 as /usr/bin/swig2.0
17270 for ac_prog in swig swig2.0
17271 do
17272 # Extract the first word of "$ac_prog", so it can be a program name with args.
17273 set dummy $ac_prog; ac_word=$2
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17275 $as_echo_n "checking for $ac_word... " >&6; }
17276 if ${ac_cv_path_SWIG+:} false; then :
17277 $as_echo_n "(cached) " >&6
17278 else
17279 case $SWIG in
17280 [\\/]* | ?:[\\/]*)
17281 ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
17282 ;;
17283 *)
17284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17285 for as_dir in $PATH
17286 do
17287 IFS=$as_save_IFS
17288 test -z "$as_dir" && as_dir=.
17289 for ac_exec_ext in '' $ac_executable_extensions; do
17290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17291 ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
17292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17293 break 2
17294 fi
17295 done
17296 done
17297 IFS=$as_save_IFS
17298
17299 ;;
17300 esac
17301 fi
17302 SWIG=$ac_cv_path_SWIG
17303 if test -n "$SWIG"; then
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
17305 $as_echo "$SWIG" >&6; }
17306 else
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17308 $as_echo "no" >&6; }
17309 fi
17310
17311
17312 test -n "$SWIG" && break
17313 done
17314
17315 if test -z "$SWIG" ; then
17316 as_fn_error $? "SWIG $swig_version or newer is needed" "$LINENO" 5
17317 elif test -n "$swig_version" ; then
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SWIG version" >&5
17319 $as_echo_n "checking SWIG version... " >&6; }
17320 swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $swig_version" >&5
17322 $as_echo "$swig_version" >&6; }
17323 if test -n "$swig_version" ; then
17324 # Calculate the required version number components
17325 required=$swig_version
17326 required_major=`echo $required | sed 's/[^0-9].*//'`
17327 if test -z "$required_major" ; then
17328 required_major=0
17329 fi
17330 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17331 required_minor=`echo $required | sed 's/[^0-9].*//'`
17332 if test -z "$required_minor" ; then
17333 required_minor=0
17334 fi
17335 required=`echo $required | sed 's/[0-9]*[^0-9]//'`
17336 required_patch=`echo $required | sed 's/[^0-9].*//'`
17337 if test -z "$required_patch" ; then
17338 required_patch=0
17339 fi
17340 # Calculate the available version number components
17341 available=$swig_version
17342 available_major=`echo $available | sed 's/[^0-9].*//'`
17343 if test -z "$available_major" ; then
17344 available_major=0
17345 fi
17346 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17347 available_minor=`echo $available | sed 's/[^0-9].*//'`
17348 if test -z "$available_minor" ; then
17349 available_minor=0
17350 fi
17351 available=`echo $available | sed 's/[0-9]*[^0-9]//'`
17352 available_patch=`echo $available | sed 's/[^0-9].*//'`
17353 if test -z "$available_patch" ; then
17354 available_patch=0
17355 fi
17356 # Convert the version tuple into a single number for easier comparison.
17357 # Using base 100 should be safe since SWIG internally uses BCD values
17358 # to encode its version number.
17359 required_swig_vernum=`expr $required_major \* 10000 \
17360 \+ $required_minor \* 100 \+ $required_patch`
17361 available_swig_vernum=`expr $available_major \* 10000 \
17362 \+ $available_minor \* 100 \+ $available_patch`
17363
17364 if test $available_swig_vernum -lt $required_swig_vernum; then
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SWIG version >= $swig_version is required. You have $swig_version." >&5
17366 $as_echo "$as_me: WARNING: SWIG version >= $swig_version is required. You have $swig_version." >&2;}
17367 SWIG=''
17368 as_fn_error $? "SWIG $swig_version or newer is needed" "$LINENO" 5
17369 else
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWIG library" >&5
17371 $as_echo_n "checking for SWIG library... " >&6; }
17372 SWIG_LIB=`$SWIG -swiglib`
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG_LIB" >&5
17374 $as_echo "$SWIG_LIB" >&6; }
17375
17376 fi
17377 else
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine SWIG version" >&5
17379 $as_echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
17380 SWIG=''
17381 as_fn_error $? "SWIG $swig_version or newer is needed" "$LINENO" 5
17382 fi
17383 fi
17384
17385
17386
17387
17388
17389
17390
17391
17392 if test -n "$PYTHON"; then
17393 # If the user set $PYTHON, use it and don't search something else.
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3.0" >&5
17395 $as_echo_n "checking whether $PYTHON version is >= 3.0... " >&6; }
17396 prog="import sys
17397 # split strings by '.' and convert to numeric. Append some zeros
17398 # because we need at least 4 digits for the hex conversion.
17399 # map returns an iterator in Python 3.0 and a list in 2.x
17400 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
17401 minverhex = 0
17402 # xrange is not present in Python 3.0 and range returns an iterator
17403 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17404 sys.exit(sys.hexversion < minverhex)"
17405 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
17406 ($PYTHON -c "$prog") >&5 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; then :
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17411 $as_echo "yes" >&6; }
17412 else
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17414 $as_echo "no" >&6; }
17415 as_fn_error $? "Python interpreter is too old" "$LINENO" 5
17416 fi
17417 am_display_PYTHON=$PYTHON
17418 else
17419 # Otherwise, try each interpreter until we find one that satisfies
17420 # VERSION.
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3.0" >&5
17422 $as_echo_n "checking for a Python interpreter with version >= 3.0... " >&6; }
17423 if ${am_cv_pathless_PYTHON+:} false; then :
17424 $as_echo_n "(cached) " >&6
17425 else
17426
17427 for am_cv_pathless_PYTHON in python python2 python3 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
17428 test "$am_cv_pathless_PYTHON" = none && break
17429 prog="import sys
17430 # split strings by '.' and convert to numeric. Append some zeros
17431 # because we need at least 4 digits for the hex conversion.
17432 # map returns an iterator in Python 3.0 and a list in 2.x
17433 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
17434 minverhex = 0
17435 # xrange is not present in Python 3.0 and range returns an iterator
17436 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
17437 sys.exit(sys.hexversion < minverhex)"
17438 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
17439 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
17440 ac_status=$?
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; then :
17443 break
17444 fi
17445 done
17446 fi
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
17448 $as_echo "$am_cv_pathless_PYTHON" >&6; }
17449 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
17450 if test "$am_cv_pathless_PYTHON" = none; then
17451 PYTHON=:
17452 else
17453 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
17454 set dummy $am_cv_pathless_PYTHON; ac_word=$2
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17456 $as_echo_n "checking for $ac_word... " >&6; }
17457 if ${ac_cv_path_PYTHON+:} false; then :
17458 $as_echo_n "(cached) " >&6
17459 else
17460 case $PYTHON in
17461 [\\/]* | ?:[\\/]*)
17462 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
17463 ;;
17464 *)
17465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17466 for as_dir in $PATH
17467 do
17468 IFS=$as_save_IFS
17469 test -z "$as_dir" && as_dir=.
17470 for ac_exec_ext in '' $ac_executable_extensions; do
17471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17472 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
17473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17474 break 2
17475 fi
17476 done
17477 done
17478 IFS=$as_save_IFS
17479
17480 ;;
17481 esac
17482 fi
17483 PYTHON=$ac_cv_path_PYTHON
17484 if test -n "$PYTHON"; then
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
17486 $as_echo "$PYTHON" >&6; }
17487 else
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17489 $as_echo "no" >&6; }
17490 fi
17491
17492
17493 fi
17494 am_display_PYTHON=$am_cv_pathless_PYTHON
17495 fi
17496
17497
17498 if test "$PYTHON" = :; then
17499 as_fn_error $? "Python 3.0 or newer is needed" "$LINENO" 5
17500 else
17501
17502
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
17504 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
17505 if ${am_cv_python_version+:} false; then :
17506 $as_echo_n "(cached) " >&6
17507 else
17508 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
17509 fi
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
17511 $as_echo "$am_cv_python_version" >&6; }
17512 PYTHON_VERSION=$am_cv_python_version
17513
17514
17515
17516 PYTHON_PREFIX='${prefix}'
17517
17518 PYTHON_EXEC_PREFIX='${exec_prefix}'
17519
17520
17521
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
17523 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
17524 if ${am_cv_python_platform+:} false; then :
17525 $as_echo_n "(cached) " >&6
17526 else
17527 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
17528 fi
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
17530 $as_echo "$am_cv_python_platform" >&6; }
17531 PYTHON_PLATFORM=$am_cv_python_platform
17532
17533
17534 # Just factor out some code duplication.
17535 am_python_setup_sysconfig="\
17536 import sys
17537 # Prefer sysconfig over distutils.sysconfig, for better compatibility
17538 # with python 3.x. See automake bug#10227.
17539 try:
17540 import sysconfig
17541 except ImportError:
17542 can_use_sysconfig = 0
17543 else:
17544 can_use_sysconfig = 1
17545 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
17546 # <https://github.com/pypa/virtualenv/issues/118>
17547 try:
17548 from platform import python_implementation
17549 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
17550 can_use_sysconfig = 0
17551 except ImportError:
17552 pass"
17553
17554
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
17556 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
17557 if ${am_cv_python_pythondir+:} false; then :
17558 $as_echo_n "(cached) " >&6
17559 else
17560 if test "x$prefix" = xNONE
17561 then
17562 am_py_prefix=$ac_default_prefix
17563 else
17564 am_py_prefix=$prefix
17565 fi
17566 am_cv_python_pythondir=`$PYTHON -c "
17567 $am_python_setup_sysconfig
17568 if can_use_sysconfig:
17569 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
17570 else:
17571 from distutils import sysconfig
17572 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
17573 sys.stdout.write(sitedir)"`
17574 case $am_cv_python_pythondir in
17575 $am_py_prefix*)
17576 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
17577 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
17578 ;;
17579 *)
17580 case $am_py_prefix in
17581 /usr|/System*) ;;
17582 *)
17583 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
17584 ;;
17585 esac
17586 ;;
17587 esac
17588
17589 fi
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
17591 $as_echo "$am_cv_python_pythondir" >&6; }
17592 pythondir=$am_cv_python_pythondir
17593
17594
17595
17596 pkgpythondir=\${pythondir}/$PACKAGE
17597
17598
17599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
17600 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
17601 if ${am_cv_python_pyexecdir+:} false; then :
17602 $as_echo_n "(cached) " >&6
17603 else
17604 if test "x$exec_prefix" = xNONE
17605 then
17606 am_py_exec_prefix=$am_py_prefix
17607 else
17608 am_py_exec_prefix=$exec_prefix
17609 fi
17610 am_cv_python_pyexecdir=`$PYTHON -c "
17611 $am_python_setup_sysconfig
17612 if can_use_sysconfig:
17613 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
17614 else:
17615 from distutils import sysconfig
17616 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
17617 sys.stdout.write(sitedir)"`
17618 case $am_cv_python_pyexecdir in
17619 $am_py_exec_prefix*)
17620 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
17621 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
17622 ;;
17623 *)
17624 case $am_py_exec_prefix in
17625 /usr|/System*) ;;
17626 *)
17627 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
17628 ;;
17629 esac
17630 ;;
17631 esac
17632
17633 fi
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
17635 $as_echo "$am_cv_python_pyexecdir" >&6; }
17636 pyexecdir=$am_cv_python_pyexecdir
17637
17638
17639
17640 pkgpyexecdir=\${pyexecdir}/$PACKAGE
17641
17642
17643
17644 fi
17645
17646
17647
17648
17649
17650 if test -z "$PYTHON_INCLUDE"; then :
17651
17652 if test -z "$PYTHON_CONFIG"; then :
17653
17654 for ac_prog in python$PYTHON_VERSION-config python-config
17655 do
17656 # Extract the first word of "$ac_prog", so it can be a program name with args.
17657 set dummy $ac_prog; ac_word=$2
17658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17659 $as_echo_n "checking for $ac_word... " >&6; }
17660 if ${ac_cv_path_PYTHON_CONFIG+:} false; then :
17661 $as_echo_n "(cached) " >&6
17662 else
17663 case $PYTHON_CONFIG in
17664 [\\/]* | ?:[\\/]*)
17665 ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
17666 ;;
17667 *)
17668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17669 for as_dir in `dirname $PYTHON`
17670 do
17671 IFS=$as_save_IFS
17672 test -z "$as_dir" && as_dir=.
17673 for ac_exec_ext in '' $ac_executable_extensions; do
17674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17675 ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17677 break 2
17678 fi
17679 done
17680 done
17681 IFS=$as_save_IFS
17682
17683 ;;
17684 esac
17685 fi
17686 PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
17687 if test -n "$PYTHON_CONFIG"; then
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
17689 $as_echo "$PYTHON_CONFIG" >&6; }
17690 else
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17692 $as_echo "no" >&6; }
17693 fi
17694
17695
17696 test -n "$PYTHON_CONFIG" && break
17697 done
17698 test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
17699
17700 if test "$PYTHON_CONFIG" = no; then :
17701 as_fn_error $? "cannot find python-config for $PYTHON. Do you have python-dev installed?" "$LINENO" 5
17702 fi
17703
17704 fi
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking python include flags" >&5
17706 $as_echo_n "checking python include flags... " >&6; }
17707 PYTHON_INCLUDE=`$PYTHON_CONFIG --includes`
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCLUDE" >&5
17709 $as_echo "$PYTHON_INCLUDE" >&6; }
17710
17711 fi
17712
17713 else
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: You may configure with --enable-python-bindings if you want Python bindings." >&5
17715 $as_echo "$as_me: You may configure with --enable-python-bindings if you want Python bindings." >&6;}
17716
17717 fi
17718
17719 # Set default enable state for debug info.
17720 # The _enable_debug_info variable is prepended with an underscore to
17721 # avoid clashing with the one generated by AC_ARG_ENABLE.
17722 if test "x$DEFAULT_ENABLE_DEBUG_INFO" = xyes; then :
17723 _enable_debug_info=yes
17724 else
17725 _enable_debug_info=no
17726 fi
17727
17728 # Optional debug info feature
17729 # Do _not_ indent the help string below (appears in the configure --help
17730 # output).
17731 # Check whether --enable-debug-info was given.
17732 if test "${enable_debug_info+set}" = set; then :
17733 enableval=$enable_debug_info; if test "x$enableval" = xyes; then :
17734 _enable_debug_info=yes
17735 else
17736 _enable_debug_info=no
17737 fi
17738 fi
17739
17740
17741 if test "x$_enable_debug_info" = xyes; then
17742 ENABLE_DEBUG_INFO_TRUE=
17743 ENABLE_DEBUG_INFO_FALSE='#'
17744 else
17745 ENABLE_DEBUG_INFO_TRUE='#'
17746 ENABLE_DEBUG_INFO_FALSE=
17747 fi
17748
17749 if test "x$_enable_debug_info" = xyes; then :
17750
17751 # Check if libelf and libdw are present
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_version in -lelf" >&5
17753 $as_echo_n "checking for elf_version in -lelf... " >&6; }
17754 if ${ac_cv_lib_elf_elf_version+:} false; then :
17755 $as_echo_n "(cached) " >&6
17756 else
17757 ac_check_lib_save_LIBS=$LIBS
17758 LIBS="-lelf $LIBS"
17759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17760 /* end confdefs.h. */
17761
17762 /* Override any GCC internal prototype to avoid an error.
17763 Use char because int might match the return type of a GCC
17764 builtin and then its argument prototype would still apply. */
17765 #ifdef __cplusplus
17766 extern "C"
17767 #endif
17768 char elf_version ();
17769 int
17770 main ()
17771 {
17772 return elf_version ();
17773 ;
17774 return 0;
17775 }
17776 _ACEOF
17777 if ac_fn_c_try_link "$LINENO"; then :
17778 ac_cv_lib_elf_elf_version=yes
17779 else
17780 ac_cv_lib_elf_elf_version=no
17781 fi
17782 rm -f core conftest.err conftest.$ac_objext \
17783 conftest$ac_exeext conftest.$ac_ext
17784 LIBS=$ac_check_lib_save_LIBS
17785 fi
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_version" >&5
17787 $as_echo "$ac_cv_lib_elf_elf_version" >&6; }
17788 if test "x$ac_cv_lib_elf_elf_version" = xyes; then :
17789 cat >>confdefs.h <<_ACEOF
17790 #define HAVE_LIBELF 1
17791 _ACEOF
17792
17793 LIBS="-lelf $LIBS"
17794
17795 else
17796 as_fn_error $? "Missing libelf (from elfutils >= 0.154) which is required by debug info. You can disable this feature using --disable-debug-info." "$LINENO" 5
17797 fi
17798
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dwarf_begin in -ldw" >&5
17800 $as_echo_n "checking for dwarf_begin in -ldw... " >&6; }
17801 if ${ac_cv_lib_dw_dwarf_begin+:} false; then :
17802 $as_echo_n "(cached) " >&6
17803 else
17804 ac_check_lib_save_LIBS=$LIBS
17805 LIBS="-ldw $LIBS"
17806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17807 /* end confdefs.h. */
17808
17809 /* Override any GCC internal prototype to avoid an error.
17810 Use char because int might match the return type of a GCC
17811 builtin and then its argument prototype would still apply. */
17812 #ifdef __cplusplus
17813 extern "C"
17814 #endif
17815 char dwarf_begin ();
17816 int
17817 main ()
17818 {
17819 return dwarf_begin ();
17820 ;
17821 return 0;
17822 }
17823 _ACEOF
17824 if ac_fn_c_try_link "$LINENO"; then :
17825 ac_cv_lib_dw_dwarf_begin=yes
17826 else
17827 ac_cv_lib_dw_dwarf_begin=no
17828 fi
17829 rm -f core conftest.err conftest.$ac_objext \
17830 conftest$ac_exeext conftest.$ac_ext
17831 LIBS=$ac_check_lib_save_LIBS
17832 fi
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dw_dwarf_begin" >&5
17834 $as_echo "$ac_cv_lib_dw_dwarf_begin" >&6; }
17835 if test "x$ac_cv_lib_dw_dwarf_begin" = xyes; then :
17836 cat >>confdefs.h <<_ACEOF
17837 #define HAVE_LIBDW 1
17838 _ACEOF
17839
17840 LIBS="-ldw $LIBS"
17841
17842 else
17843 as_fn_error $? "Missing libdw (from elfutils >= 0.154) which is required by debug info. You can disable this feature using --disable-debug-info." "$LINENO" 5
17844 fi
17845
17846
17847
17848
17849
17850
17851
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elfutils version >= 0.154" >&5
17853 $as_echo_n "checking for elfutils version >= 0.154... " >&6; }
17854 if ${bt_cv_lib_elfutils+:} false; then :
17855 $as_echo_n "(cached) " >&6
17856 else
17857
17858 if test "$cross_compiling" = yes; then :
17859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17861 as_fn_error $? "cannot run test program while cross compiling
17862 See \`config.log' for more details" "$LINENO" 5; }
17863 else
17864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17865 /* end confdefs.h. */
17866
17867 #include <stdlib.h>
17868 #include <elfutils/version.h>
17869
17870 int main(void) {
17871 return _ELFUTILS_PREREQ(0, 154) ? EXIT_SUCCESS : EXIT_FAILURE;
17872 }
17873
17874 _ACEOF
17875 if ac_fn_c_try_run "$LINENO"; then :
17876 bt_cv_lib_elfutils=yes
17877 else
17878 bt_cv_lib_elfutils=no
17879 fi
17880 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17881 conftest.$ac_objext conftest.beam conftest.$ac_ext
17882 fi
17883
17884
17885
17886 fi
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bt_cv_lib_elfutils" >&5
17888 $as_echo "$bt_cv_lib_elfutils" >&6; }
17889
17890 if test "x$bt_cv_lib_elfutils" = "xyes"; then :
17891 :
17892 else
17893 as_fn_error $? "elfutils >= 0.154 is required to use the debug info feature. You can disable this feature using --disable-debug-info." "$LINENO" 5
17894 fi
17895
17896
17897
17898
17899
17900
17901
17902 $as_echo "#define ENABLE_DEBUG_INFO 1" >>confdefs.h
17903
17904
17905 fi
17906
17907
17908 pkg_failed=no
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE" >&5
17910 $as_echo_n "checking for GMODULE... " >&6; }
17911
17912 if test -n "$GMODULE_CFLAGS"; then
17913 pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
17914 elif test -n "$PKG_CONFIG"; then
17915 if test -n "$PKG_CONFIG" && \
17916 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0 >= 2.0.0\""; } >&5
17917 ($PKG_CONFIG --exists --print-errors "gmodule-2.0 >= 2.0.0") 2>&5
17918 ac_status=$?
17919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17920 test $ac_status = 0; }; then
17921 pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0 >= 2.0.0" 2>/dev/null`
17922 test "x$?" != "x0" && pkg_failed=yes
17923 else
17924 pkg_failed=yes
17925 fi
17926 else
17927 pkg_failed=untried
17928 fi
17929 if test -n "$GMODULE_LIBS"; then
17930 pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
17931 elif test -n "$PKG_CONFIG"; then
17932 if test -n "$PKG_CONFIG" && \
17933 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0 >= 2.0.0\""; } >&5
17934 ($PKG_CONFIG --exists --print-errors "gmodule-2.0 >= 2.0.0") 2>&5
17935 ac_status=$?
17936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17937 test $ac_status = 0; }; then
17938 pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0 >= 2.0.0" 2>/dev/null`
17939 test "x$?" != "x0" && pkg_failed=yes
17940 else
17941 pkg_failed=yes
17942 fi
17943 else
17944 pkg_failed=untried
17945 fi
17946
17947
17948
17949 if test $pkg_failed = yes; then
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17951 $as_echo "no" >&6; }
17952
17953 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17954 _pkg_short_errors_supported=yes
17955 else
17956 _pkg_short_errors_supported=no
17957 fi
17958 if test $_pkg_short_errors_supported = yes; then
17959 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0 >= 2.0.0" 2>&1`
17960 else
17961 GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0 >= 2.0.0" 2>&1`
17962 fi
17963 # Put the nasty error message in config.log where it belongs
17964 echo "$GMODULE_PKG_ERRORS" >&5
17965
17966 as_fn_error $? "Package requirements (gmodule-2.0 >= 2.0.0) were not met:
17967
17968 $GMODULE_PKG_ERRORS
17969
17970 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17971 installed software in a non-standard prefix.
17972
17973 Alternatively, you may set the environment variables GMODULE_CFLAGS
17974 and GMODULE_LIBS to avoid the need to call pkg-config.
17975 See the pkg-config man page for more details." "$LINENO" 5
17976 elif test $pkg_failed = untried; then
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17978 $as_echo "no" >&6; }
17979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17981 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17982 is in your PATH or set the PKG_CONFIG environment variable to the full
17983 path to pkg-config.
17984
17985 Alternatively, you may set the environment variables GMODULE_CFLAGS
17986 and GMODULE_LIBS to avoid the need to call pkg-config.
17987 See the pkg-config man page for more details.
17988
17989 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17990 See \`config.log' for more details" "$LINENO" 5; }
17991 else
17992 GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
17993 GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17995 $as_echo "yes" >&6; }
17996
17997 fi
17998
17999
18000 LIBS="$LIBS $GMODULE_LIBS"
18001 PACKAGE_CFLAGS="$GMODULE_CFLAGS -Wall -Wformat"
18002
18003
18004 DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_builddir) -I\$(top_builddir)/include -include config.h"
18005
18006
18007 babeltraceincludedir="${includedir}/babeltrace"
18008
18009
18010 babeltracectfincludedir="${includedir}/babeltrace/ctf"
18011
18012
18013 babeltracectfwriterincludedir="${includedir}/babeltrace/ctf-writer"
18014
18015
18016 babeltracectfirincludedir="${includedir}/babeltrace/ctf-ir"
18017
18018
18019 ac_config_files="$ac_config_files Makefile types/Makefile compat/Makefile formats/Makefile formats/ctf/Makefile formats/ctf/types/Makefile formats/ctf-text/Makefile formats/ctf-text/types/Makefile formats/ctf-metadata/Makefile formats/bt-dummy/Makefile formats/lttng-live/Makefile formats/ctf/metadata/Makefile formats/ctf/writer/Makefile formats/ctf/ir/Makefile converter/Makefile doc/Makefile lib/Makefile lib/prio_heap/Makefile include/Makefile bindings/Makefile bindings/python/Makefile bindings/python/setup.py bindings/python/babeltrace/Makefile bindings/python/babeltrace/__init__.py tests/Makefile tests/bin/Makefile tests/bin/intersection/Makefile tests/lib/Makefile tests/utils/Makefile tests/utils/tap/Makefile extras/Makefile extras/valgrind/Makefile babeltrace.pc babeltrace-ctf.pc"
18020
18021
18022 ac_config_files="$ac_config_files tests/lib/test_ctf_writer_complete"
18023
18024 ac_config_files="$ac_config_files tests/lib/test_seek_big_trace"
18025
18026 ac_config_files="$ac_config_files tests/lib/test_seek_empty_packet"
18027
18028 ac_config_files="$ac_config_files tests/lib/test_dwarf_complete"
18029
18030 ac_config_files="$ac_config_files tests/lib/test_bin_info_complete"
18031
18032
18033 ac_config_files="$ac_config_files tests/bin/test_trace_read"
18034
18035 ac_config_files="$ac_config_files tests/bin/intersection/test_intersection"
18036
18037 ac_config_files="$ac_config_files tests/bin/intersection/bt_python_helper.py"
18038
18039 ac_config_files="$ac_config_files tests/bin/test_packet_seq_num"
18040
18041
18042 # Create link for Babeltrace complements files for out-of-tree builds
18043 ac_config_links="$ac_config_links bindings/python/babeltrace/python-complements.c:bindings/python/babeltrace/python-complements.c bindings/python/babeltrace/python-complements.h:bindings/python/babeltrace/python-complements.h bindings/python/babeltrace/babeltrace.i.in:bindings/python/babeltrace/babeltrace.i.in"
18044
18045
18046 cat >confcache <<\_ACEOF
18047 # This file is a shell script that caches the results of configure
18048 # tests run on this system so they can be shared between configure
18049 # scripts and configure runs, see configure's option --config-cache.
18050 # It is not useful on other systems. If it contains results you don't
18051 # want to keep, you may remove or edit it.
18052 #
18053 # config.status only pays attention to the cache file if you give it
18054 # the --recheck option to rerun configure.
18055 #
18056 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18057 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18058 # following values.
18059
18060 _ACEOF
18061
18062 # The following way of writing the cache mishandles newlines in values,
18063 # but we know of no workaround that is simple, portable, and efficient.
18064 # So, we kill variables containing newlines.
18065 # Ultrix sh set writes to stderr and can't be redirected directly,
18066 # and sets the high bit in the cache file unless we assign to the vars.
18067 (
18068 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18069 eval ac_val=\$$ac_var
18070 case $ac_val in #(
18071 *${as_nl}*)
18072 case $ac_var in #(
18073 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18074 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18075 esac
18076 case $ac_var in #(
18077 _ | IFS | as_nl) ;; #(
18078 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18079 *) { eval $ac_var=; unset $ac_var;} ;;
18080 esac ;;
18081 esac
18082 done
18083
18084 (set) 2>&1 |
18085 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18086 *${as_nl}ac_space=\ *)
18087 # `set' does not quote correctly, so add quotes: double-quote
18088 # substitution turns \\\\ into \\, and sed turns \\ into \.
18089 sed -n \
18090 "s/'/'\\\\''/g;
18091 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18092 ;; #(
18093 *)
18094 # `set' quotes correctly as required by POSIX, so do not add quotes.
18095 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18096 ;;
18097 esac |
18098 sort
18099 ) |
18100 sed '
18101 /^ac_cv_env_/b end
18102 t clear
18103 :clear
18104 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18105 t end
18106 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18107 :end' >>confcache
18108 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18109 if test -w "$cache_file"; then
18110 if test "x$cache_file" != "x/dev/null"; then
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18112 $as_echo "$as_me: updating cache $cache_file" >&6;}
18113 if test ! -f "$cache_file" || test -h "$cache_file"; then
18114 cat confcache >"$cache_file"
18115 else
18116 case $cache_file in #(
18117 */* | ?:*)
18118 mv -f confcache "$cache_file"$$ &&
18119 mv -f "$cache_file"$$ "$cache_file" ;; #(
18120 *)
18121 mv -f confcache "$cache_file" ;;
18122 esac
18123 fi
18124 fi
18125 else
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18127 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18128 fi
18129 fi
18130 rm -f confcache
18131
18132 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18133 # Let make expand exec_prefix.
18134 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18135
18136 DEFS=-DHAVE_CONFIG_H
18137
18138 ac_libobjs=
18139 ac_ltlibobjs=
18140 U=
18141 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18142 # 1. Remove the extension, and $U if already installed.
18143 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18144 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18145 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18146 # will be set to the directory where LIBOBJS objects are built.
18147 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18148 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18149 done
18150 LIBOBJS=$ac_libobjs
18151
18152 LTLIBOBJS=$ac_ltlibobjs
18153
18154
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18156 $as_echo_n "checking that generated files are newer than configure... " >&6; }
18157 if test -n "$am_sleep_pid"; then
18158 # Hide warnings about reused PIDs.
18159 wait $am_sleep_pid 2>/dev/null
18160 fi
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18162 $as_echo "done" >&6; }
18163 if test -n "$EXEEXT"; then
18164 am__EXEEXT_TRUE=
18165 am__EXEEXT_FALSE='#'
18166 else
18167 am__EXEEXT_TRUE='#'
18168 am__EXEEXT_FALSE=
18169 fi
18170
18171 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18172 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18174 fi
18175 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18176 as_fn_error $? "conditional \"AMDEP\" was never defined.
18177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18178 fi
18179 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18180 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18182 fi
18183 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18184 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18186 fi
18187 if test -z "${BABELTRACE_BUILD_WITH_MINGW_TRUE}" && test -z "${BABELTRACE_BUILD_WITH_MINGW_FALSE}"; then
18188 as_fn_error $? "conditional \"BABELTRACE_BUILD_WITH_MINGW\" was never defined.
18189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18190 fi
18191 if test -z "${BABELTRACE_BUILD_WITH_LIBUUID_TRUE}" && test -z "${BABELTRACE_BUILD_WITH_LIBUUID_FALSE}"; then
18192 as_fn_error $? "conditional \"BABELTRACE_BUILD_WITH_LIBUUID\" was never defined.
18193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18194 fi
18195 if test -z "${BABELTRACE_BUILD_WITH_LIBC_UUID_TRUE}" && test -z "${BABELTRACE_BUILD_WITH_LIBC_UUID_FALSE}"; then
18196 as_fn_error $? "conditional \"BABELTRACE_BUILD_WITH_LIBC_UUID\" was never defined.
18197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18198 fi
18199 if test -z "${USE_PYTHON_TRUE}" && test -z "${USE_PYTHON_FALSE}"; then
18200 as_fn_error $? "conditional \"USE_PYTHON\" was never defined.
18201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18202 fi
18203 if test -z "${ENABLE_DEBUG_INFO_TRUE}" && test -z "${ENABLE_DEBUG_INFO_FALSE}"; then
18204 as_fn_error $? "conditional \"ENABLE_DEBUG_INFO\" was never defined.
18205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18206 fi
18207
18208 : "${CONFIG_STATUS=./config.status}"
18209 ac_write_fail=0
18210 ac_clean_files_save=$ac_clean_files
18211 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18213 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18214 as_write_fail=0
18215 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18216 #! $SHELL
18217 # Generated by $as_me.
18218 # Run this file to recreate the current configuration.
18219 # Compiler output produced by configure, useful for debugging
18220 # configure, is in config.log if it exists.
18221
18222 debug=false
18223 ac_cs_recheck=false
18224 ac_cs_silent=false
18225
18226 SHELL=\${CONFIG_SHELL-$SHELL}
18227 export SHELL
18228 _ASEOF
18229 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18230 ## -------------------- ##
18231 ## M4sh Initialization. ##
18232 ## -------------------- ##
18233
18234 # Be more Bourne compatible
18235 DUALCASE=1; export DUALCASE # for MKS sh
18236 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18237 emulate sh
18238 NULLCMD=:
18239 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18240 # is contrary to our usage. Disable this feature.
18241 alias -g '${1+"$@"}'='"$@"'
18242 setopt NO_GLOB_SUBST
18243 else
18244 case `(set -o) 2>/dev/null` in #(
18245 *posix*) :
18246 set -o posix ;; #(
18247 *) :
18248 ;;
18249 esac
18250 fi
18251
18252
18253 as_nl='
18254 '
18255 export as_nl
18256 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18257 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18258 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18259 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18260 # Prefer a ksh shell builtin over an external printf program on Solaris,
18261 # but without wasting forks for bash or zsh.
18262 if test -z "$BASH_VERSION$ZSH_VERSION" \
18263 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18264 as_echo='print -r --'
18265 as_echo_n='print -rn --'
18266 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18267 as_echo='printf %s\n'
18268 as_echo_n='printf %s'
18269 else
18270 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18271 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18272 as_echo_n='/usr/ucb/echo -n'
18273 else
18274 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18275 as_echo_n_body='eval
18276 arg=$1;
18277 case $arg in #(
18278 *"$as_nl"*)
18279 expr "X$arg" : "X\\(.*\\)$as_nl";
18280 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18281 esac;
18282 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18283 '
18284 export as_echo_n_body
18285 as_echo_n='sh -c $as_echo_n_body as_echo'
18286 fi
18287 export as_echo_body
18288 as_echo='sh -c $as_echo_body as_echo'
18289 fi
18290
18291 # The user is always right.
18292 if test "${PATH_SEPARATOR+set}" != set; then
18293 PATH_SEPARATOR=:
18294 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18295 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18296 PATH_SEPARATOR=';'
18297 }
18298 fi
18299
18300
18301 # IFS
18302 # We need space, tab and new line, in precisely that order. Quoting is
18303 # there to prevent editors from complaining about space-tab.
18304 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18305 # splitting by setting IFS to empty value.)
18306 IFS=" "" $as_nl"
18307
18308 # Find who we are. Look in the path if we contain no directory separator.
18309 as_myself=
18310 case $0 in #((
18311 *[\\/]* ) as_myself=$0 ;;
18312 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18313 for as_dir in $PATH
18314 do
18315 IFS=$as_save_IFS
18316 test -z "$as_dir" && as_dir=.
18317 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18318 done
18319 IFS=$as_save_IFS
18320
18321 ;;
18322 esac
18323 # We did not find ourselves, most probably we were run as `sh COMMAND'
18324 # in which case we are not to be found in the path.
18325 if test "x$as_myself" = x; then
18326 as_myself=$0
18327 fi
18328 if test ! -f "$as_myself"; then
18329 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18330 exit 1
18331 fi
18332
18333 # Unset variables that we do not need and which cause bugs (e.g. in
18334 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18335 # suppresses any "Segmentation fault" message there. '((' could
18336 # trigger a bug in pdksh 5.2.14.
18337 for as_var in BASH_ENV ENV MAIL MAILPATH
18338 do eval test x\${$as_var+set} = xset \
18339 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18340 done
18341 PS1='$ '
18342 PS2='> '
18343 PS4='+ '
18344
18345 # NLS nuisances.
18346 LC_ALL=C
18347 export LC_ALL
18348 LANGUAGE=C
18349 export LANGUAGE
18350
18351 # CDPATH.
18352 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18353
18354
18355 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18356 # ----------------------------------------
18357 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18358 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18359 # script with STATUS, using 1 if that was 0.
18360 as_fn_error ()
18361 {
18362 as_status=$1; test $as_status -eq 0 && as_status=1
18363 if test "$4"; then
18364 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18365 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18366 fi
18367 $as_echo "$as_me: error: $2" >&2
18368 as_fn_exit $as_status
18369 } # as_fn_error
18370
18371
18372 # as_fn_set_status STATUS
18373 # -----------------------
18374 # Set $? to STATUS, without forking.
18375 as_fn_set_status ()
18376 {
18377 return $1
18378 } # as_fn_set_status
18379
18380 # as_fn_exit STATUS
18381 # -----------------
18382 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18383 as_fn_exit ()
18384 {
18385 set +e
18386 as_fn_set_status $1
18387 exit $1
18388 } # as_fn_exit
18389
18390 # as_fn_unset VAR
18391 # ---------------
18392 # Portably unset VAR.
18393 as_fn_unset ()
18394 {
18395 { eval $1=; unset $1;}
18396 }
18397 as_unset=as_fn_unset
18398 # as_fn_append VAR VALUE
18399 # ----------------------
18400 # Append the text in VALUE to the end of the definition contained in VAR. Take
18401 # advantage of any shell optimizations that allow amortized linear growth over
18402 # repeated appends, instead of the typical quadratic growth present in naive
18403 # implementations.
18404 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18405 eval 'as_fn_append ()
18406 {
18407 eval $1+=\$2
18408 }'
18409 else
18410 as_fn_append ()
18411 {
18412 eval $1=\$$1\$2
18413 }
18414 fi # as_fn_append
18415
18416 # as_fn_arith ARG...
18417 # ------------------
18418 # Perform arithmetic evaluation on the ARGs, and store the result in the
18419 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18420 # must be portable across $(()) and expr.
18421 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18422 eval 'as_fn_arith ()
18423 {
18424 as_val=$(( $* ))
18425 }'
18426 else
18427 as_fn_arith ()
18428 {
18429 as_val=`expr "$@" || test $? -eq 1`
18430 }
18431 fi # as_fn_arith
18432
18433
18434 if expr a : '\(a\)' >/dev/null 2>&1 &&
18435 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18436 as_expr=expr
18437 else
18438 as_expr=false
18439 fi
18440
18441 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18442 as_basename=basename
18443 else
18444 as_basename=false
18445 fi
18446
18447 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18448 as_dirname=dirname
18449 else
18450 as_dirname=false
18451 fi
18452
18453 as_me=`$as_basename -- "$0" ||
18454 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18455 X"$0" : 'X\(//\)$' \| \
18456 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18457 $as_echo X/"$0" |
18458 sed '/^.*\/\([^/][^/]*\)\/*$/{
18459 s//\1/
18460 q
18461 }
18462 /^X\/\(\/\/\)$/{
18463 s//\1/
18464 q
18465 }
18466 /^X\/\(\/\).*/{
18467 s//\1/
18468 q
18469 }
18470 s/.*/./; q'`
18471
18472 # Avoid depending upon Character Ranges.
18473 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18474 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18475 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18476 as_cr_digits='0123456789'
18477 as_cr_alnum=$as_cr_Letters$as_cr_digits
18478
18479 ECHO_C= ECHO_N= ECHO_T=
18480 case `echo -n x` in #(((((
18481 -n*)
18482 case `echo 'xy\c'` in
18483 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18484 xy) ECHO_C='\c';;
18485 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18486 ECHO_T=' ';;
18487 esac;;
18488 *)
18489 ECHO_N='-n';;
18490 esac
18491
18492 rm -f conf$$ conf$$.exe conf$$.file
18493 if test -d conf$$.dir; then
18494 rm -f conf$$.dir/conf$$.file
18495 else
18496 rm -f conf$$.dir
18497 mkdir conf$$.dir 2>/dev/null
18498 fi
18499 if (echo >conf$$.file) 2>/dev/null; then
18500 if ln -s conf$$.file conf$$ 2>/dev/null; then
18501 as_ln_s='ln -s'
18502 # ... but there are two gotchas:
18503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18505 # In both cases, we have to default to `cp -pR'.
18506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18507 as_ln_s='cp -pR'
18508 elif ln conf$$.file conf$$ 2>/dev/null; then
18509 as_ln_s=ln
18510 else
18511 as_ln_s='cp -pR'
18512 fi
18513 else
18514 as_ln_s='cp -pR'
18515 fi
18516 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18517 rmdir conf$$.dir 2>/dev/null
18518
18519
18520 # as_fn_mkdir_p
18521 # -------------
18522 # Create "$as_dir" as a directory, including parents if necessary.
18523 as_fn_mkdir_p ()
18524 {
18525
18526 case $as_dir in #(
18527 -*) as_dir=./$as_dir;;
18528 esac
18529 test -d "$as_dir" || eval $as_mkdir_p || {
18530 as_dirs=
18531 while :; do
18532 case $as_dir in #(
18533 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18534 *) as_qdir=$as_dir;;
18535 esac
18536 as_dirs="'$as_qdir' $as_dirs"
18537 as_dir=`$as_dirname -- "$as_dir" ||
18538 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18539 X"$as_dir" : 'X\(//\)[^/]' \| \
18540 X"$as_dir" : 'X\(//\)$' \| \
18541 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18542 $as_echo X"$as_dir" |
18543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18544 s//\1/
18545 q
18546 }
18547 /^X\(\/\/\)[^/].*/{
18548 s//\1/
18549 q
18550 }
18551 /^X\(\/\/\)$/{
18552 s//\1/
18553 q
18554 }
18555 /^X\(\/\).*/{
18556 s//\1/
18557 q
18558 }
18559 s/.*/./; q'`
18560 test -d "$as_dir" && break
18561 done
18562 test -z "$as_dirs" || eval "mkdir $as_dirs"
18563 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18564
18565
18566 } # as_fn_mkdir_p
18567 if mkdir -p . 2>/dev/null; then
18568 as_mkdir_p='mkdir -p "$as_dir"'
18569 else
18570 test -d ./-p && rmdir ./-p
18571 as_mkdir_p=false
18572 fi
18573
18574
18575 # as_fn_executable_p FILE
18576 # -----------------------
18577 # Test if FILE is an executable regular file.
18578 as_fn_executable_p ()
18579 {
18580 test -f "$1" && test -x "$1"
18581 } # as_fn_executable_p
18582 as_test_x='test -x'
18583 as_executable_p=as_fn_executable_p
18584
18585 # Sed expression to map a string onto a valid CPP name.
18586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18587
18588 # Sed expression to map a string onto a valid variable name.
18589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18590
18591
18592 exec 6>&1
18593 ## ----------------------------------- ##
18594 ## Main body of $CONFIG_STATUS script. ##
18595 ## ----------------------------------- ##
18596 _ASEOF
18597 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18598
18599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18600 # Save the log message, to keep $0 and so on meaningful, and to
18601 # report actual input values of CONFIG_FILES etc. instead of their
18602 # values after options handling.
18603 ac_log="
18604 This file was extended by babeltrace $as_me 1.5.11, which was
18605 generated by GNU Autoconf 2.69. Invocation command line was
18606
18607 CONFIG_FILES = $CONFIG_FILES
18608 CONFIG_HEADERS = $CONFIG_HEADERS
18609 CONFIG_LINKS = $CONFIG_LINKS
18610 CONFIG_COMMANDS = $CONFIG_COMMANDS
18611 $ $0 $@
18612
18613 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18614 "
18615
18616 _ACEOF
18617
18618 case $ac_config_files in *"
18619 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18620 esac
18621
18622 case $ac_config_headers in *"
18623 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18624 esac
18625
18626
18627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18628 # Files that config.status was made for.
18629 config_files="$ac_config_files"
18630 config_headers="$ac_config_headers"
18631 config_links="$ac_config_links"
18632 config_commands="$ac_config_commands"
18633
18634 _ACEOF
18635
18636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18637 ac_cs_usage="\
18638 \`$as_me' instantiates files and other configuration actions
18639 from templates according to the current configuration. Unless the files
18640 and actions are specified as TAGs, all are instantiated by default.
18641
18642 Usage: $0 [OPTION]... [TAG]...
18643
18644 -h, --help print this help, then exit
18645 -V, --version print version number and configuration settings, then exit
18646 --config print configuration, then exit
18647 -q, --quiet, --silent
18648 do not print progress messages
18649 -d, --debug don't remove temporary files
18650 --recheck update $as_me by reconfiguring in the same conditions
18651 --file=FILE[:TEMPLATE]
18652 instantiate the configuration file FILE
18653 --header=FILE[:TEMPLATE]
18654 instantiate the configuration header FILE
18655
18656 Configuration files:
18657 $config_files
18658
18659 Configuration headers:
18660 $config_headers
18661
18662 Configuration links:
18663 $config_links
18664
18665 Configuration commands:
18666 $config_commands
18667
18668 Report bugs to <[email protected]>.
18669 babeltrace home page: <https://diamon.org/babeltrace>."
18670
18671 _ACEOF
18672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18673 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18674 ac_cs_version="\\
18675 babeltrace config.status 1.5.11
18676 configured by $0, generated by GNU Autoconf 2.69,
18677 with options \\"\$ac_cs_config\\"
18678
18679 Copyright (C) 2012 Free Software Foundation, Inc.
18680 This config.status script is free software; the Free Software Foundation
18681 gives unlimited permission to copy, distribute and modify it."
18682
18683 ac_pwd='$ac_pwd'
18684 srcdir='$srcdir'
18685 INSTALL='$INSTALL'
18686 MKDIR_P='$MKDIR_P'
18687 AWK='$AWK'
18688 test -n "\$AWK" || AWK=awk
18689 _ACEOF
18690
18691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18692 # The default lists apply if the user does not specify any file.
18693 ac_need_defaults=:
18694 while test $# != 0
18695 do
18696 case $1 in
18697 --*=?*)
18698 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18699 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18700 ac_shift=:
18701 ;;
18702 --*=)
18703 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18704 ac_optarg=
18705 ac_shift=:
18706 ;;
18707 *)
18708 ac_option=$1
18709 ac_optarg=$2
18710 ac_shift=shift
18711 ;;
18712 esac
18713
18714 case $ac_option in
18715 # Handling of the options.
18716 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18717 ac_cs_recheck=: ;;
18718 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18719 $as_echo "$ac_cs_version"; exit ;;
18720 --config | --confi | --conf | --con | --co | --c )
18721 $as_echo "$ac_cs_config"; exit ;;
18722 --debug | --debu | --deb | --de | --d | -d )
18723 debug=: ;;
18724 --file | --fil | --fi | --f )
18725 $ac_shift
18726 case $ac_optarg in
18727 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18728 '') as_fn_error $? "missing file argument" ;;
18729 esac
18730 as_fn_append CONFIG_FILES " '$ac_optarg'"
18731 ac_need_defaults=false;;
18732 --header | --heade | --head | --hea )
18733 $ac_shift
18734 case $ac_optarg in
18735 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18736 esac
18737 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18738 ac_need_defaults=false;;
18739 --he | --h)
18740 # Conflict between --help and --header
18741 as_fn_error $? "ambiguous option: \`$1'
18742 Try \`$0 --help' for more information.";;
18743 --help | --hel | -h )
18744 $as_echo "$ac_cs_usage"; exit ;;
18745 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18746 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18747 ac_cs_silent=: ;;
18748
18749 # This is an error.
18750 -*) as_fn_error $? "unrecognized option: \`$1'
18751 Try \`$0 --help' for more information." ;;
18752
18753 *) as_fn_append ac_config_targets " $1"
18754 ac_need_defaults=false ;;
18755
18756 esac
18757 shift
18758 done
18759
18760 ac_configure_extra_args=
18761
18762 if $ac_cs_silent; then
18763 exec 6>/dev/null
18764 ac_configure_extra_args="$ac_configure_extra_args --silent"
18765 fi
18766
18767 _ACEOF
18768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18769 if \$ac_cs_recheck; then
18770 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18771 shift
18772 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18773 CONFIG_SHELL='$SHELL'
18774 export CONFIG_SHELL
18775 exec "\$@"
18776 fi
18777
18778 _ACEOF
18779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18780 exec 5>>config.log
18781 {
18782 echo
18783 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18784 ## Running $as_me. ##
18785 _ASBOX
18786 $as_echo "$ac_log"
18787 } >&5
18788
18789 _ACEOF
18790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18791 #
18792 # INIT-COMMANDS
18793 #
18794 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18795
18796
18797 # The HP-UX ksh and POSIX shell print the target directory to stdout
18798 # if CDPATH is set.
18799 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18800
18801 sed_quote_subst='$sed_quote_subst'
18802 double_quote_subst='$double_quote_subst'
18803 delay_variable_subst='$delay_variable_subst'
18804 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18805 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18806 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18807 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18808 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18809 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18810 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18811 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18812 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18813 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18814 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18815 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18816 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18817 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18818 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18819 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18820 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18821 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18822 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18823 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18824 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18825 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18826 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18827 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18828 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18829 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18830 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18831 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18832 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18833 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18834 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18835 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18836 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18837 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18838 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18839 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18840 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18841 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18842 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18843 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18844 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18845 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18846 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18847 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18848 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18849 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18850 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18851 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18852 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18853 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18854 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18855 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18856 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18857 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18858 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18859 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18860 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18861 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18862 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"`'
18863 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18864 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18865 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18866 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18867 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18868 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18869 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18870 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18871 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18872 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18873 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18874 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18875 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18876 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18877 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18878 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18879 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18880 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18881 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18882 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18883 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18884 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18885 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18886 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18887 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18888 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18889 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18890 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18891 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18892 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18893 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18894 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18895 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18896 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18897 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18898 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18899 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18900 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18901 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18902 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18903 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18904 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18905 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18906 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18907 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18908 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18909 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18910 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18911 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18912 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18913 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18914 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18915 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18916 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18917 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18918 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18919 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18920 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18921 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18922 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18923 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18924 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18925 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18926 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18927 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18928 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18929 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18930 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18931 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18932 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18933 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18934 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18935 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18936 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18937 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18938 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18939
18940 LTCC='$LTCC'
18941 LTCFLAGS='$LTCFLAGS'
18942 compiler='$compiler_DEFAULT'
18943
18944 # A function that is used when there is no print builtin or printf.
18945 func_fallback_echo ()
18946 {
18947 eval 'cat <<_LTECHO_EOF
18948 \$1
18949 _LTECHO_EOF'
18950 }
18951
18952 # Quote evaled strings.
18953 for var in SHELL \
18954 ECHO \
18955 PATH_SEPARATOR \
18956 SED \
18957 GREP \
18958 EGREP \
18959 FGREP \
18960 LD \
18961 NM \
18962 LN_S \
18963 lt_SP2NL \
18964 lt_NL2SP \
18965 reload_flag \
18966 OBJDUMP \
18967 deplibs_check_method \
18968 file_magic_cmd \
18969 file_magic_glob \
18970 want_nocaseglob \
18971 DLLTOOL \
18972 sharedlib_from_linklib_cmd \
18973 AR \
18974 AR_FLAGS \
18975 archiver_list_spec \
18976 STRIP \
18977 RANLIB \
18978 CC \
18979 CFLAGS \
18980 compiler \
18981 lt_cv_sys_global_symbol_pipe \
18982 lt_cv_sys_global_symbol_to_cdecl \
18983 lt_cv_sys_global_symbol_to_import \
18984 lt_cv_sys_global_symbol_to_c_name_address \
18985 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18986 lt_cv_nm_interface \
18987 nm_file_list_spec \
18988 lt_cv_truncate_bin \
18989 lt_prog_compiler_no_builtin_flag \
18990 lt_prog_compiler_pic \
18991 lt_prog_compiler_wl \
18992 lt_prog_compiler_static \
18993 lt_cv_prog_compiler_c_o \
18994 need_locks \
18995 MANIFEST_TOOL \
18996 DSYMUTIL \
18997 NMEDIT \
18998 LIPO \
18999 OTOOL \
19000 OTOOL64 \
19001 shrext_cmds \
19002 export_dynamic_flag_spec \
19003 whole_archive_flag_spec \
19004 compiler_needs_object \
19005 with_gnu_ld \
19006 allow_undefined_flag \
19007 no_undefined_flag \
19008 hardcode_libdir_flag_spec \
19009 hardcode_libdir_separator \
19010 exclude_expsyms \
19011 include_expsyms \
19012 file_list_spec \
19013 variables_saved_for_relink \
19014 libname_spec \
19015 library_names_spec \
19016 soname_spec \
19017 install_override_mode \
19018 finish_eval \
19019 old_striplib \
19020 striplib; do
19021 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19022 *[\\\\\\\`\\"\\\$]*)
19023 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19024 ;;
19025 *)
19026 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19027 ;;
19028 esac
19029 done
19030
19031 # Double-quote double-evaled strings.
19032 for var in reload_cmds \
19033 old_postinstall_cmds \
19034 old_postuninstall_cmds \
19035 old_archive_cmds \
19036 extract_expsyms_cmds \
19037 old_archive_from_new_cmds \
19038 old_archive_from_expsyms_cmds \
19039 archive_cmds \
19040 archive_expsym_cmds \
19041 module_cmds \
19042 module_expsym_cmds \
19043 export_symbols_cmds \
19044 prelink_cmds \
19045 postlink_cmds \
19046 postinstall_cmds \
19047 postuninstall_cmds \
19048 finish_cmds \
19049 sys_lib_search_path_spec \
19050 configure_time_dlsearch_path \
19051 configure_time_lt_sys_library_path; do
19052 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19053 *[\\\\\\\`\\"\\\$]*)
19054 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19055 ;;
19056 *)
19057 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19058 ;;
19059 esac
19060 done
19061
19062 ac_aux_dir='$ac_aux_dir'
19063
19064 # See if we are running on zsh, and set the options that allow our
19065 # commands through without removal of \ escapes INIT.
19066 if test -n "\${ZSH_VERSION+set}"; then
19067 setopt NO_GLOB_SUBST
19068 fi
19069
19070
19071 PACKAGE='$PACKAGE'
19072 VERSION='$VERSION'
19073 RM='$RM'
19074 ofile='$ofile'
19075
19076
19077
19078
19079 _ACEOF
19080
19081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19082
19083 # Handling of arguments.
19084 for ac_config_target in $ac_config_targets
19085 do
19086 case $ac_config_target in
19087 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19088 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19089 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19090 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19091 "types/Makefile") CONFIG_FILES="$CONFIG_FILES types/Makefile" ;;
19092 "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
19093 "formats/Makefile") CONFIG_FILES="$CONFIG_FILES formats/Makefile" ;;
19094 "formats/ctf/Makefile") CONFIG_FILES="$CONFIG_FILES formats/ctf/Makefile" ;;
19095 "formats/ctf/types/Makefile") CONFIG_FILES="$CONFIG_FILES formats/ctf/types/Makefile" ;;
19096 "formats/ctf-text/Makefile") CONFIG_FILES="$CONFIG_FILES formats/ctf-text/Makefile" ;;
19097 "formats/ctf-text/types/Makefile") CONFIG_FILES="$CONFIG_FILES formats/ctf-text/types/Makefile" ;;
19098 "formats/ctf-metadata/Makefile") CONFIG_FILES="$CONFIG_FILES formats/ctf-metadata/Makefile" ;;
19099 "formats/bt-dummy/Makefile") CONFIG_FILES="$CONFIG_FILES formats/bt-dummy/Makefile" ;;
19100 "formats/lttng-live/Makefile") CONFIG_FILES="$CONFIG_FILES formats/lttng-live/Makefile" ;;
19101 "formats/ctf/metadata/Makefile") CONFIG_FILES="$CONFIG_FILES formats/ctf/metadata/Makefile" ;;
19102 "formats/ctf/writer/Makefile") CONFIG_FILES="$CONFIG_FILES formats/ctf/writer/Makefile" ;;
19103 "formats/ctf/ir/Makefile") CONFIG_FILES="$CONFIG_FILES formats/ctf/ir/Makefile" ;;
19104 "converter/Makefile") CONFIG_FILES="$CONFIG_FILES converter/Makefile" ;;
19105 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19106 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19107 "lib/prio_heap/Makefile") CONFIG_FILES="$CONFIG_FILES lib/prio_heap/Makefile" ;;
19108 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19109 "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
19110 "bindings/python/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/python/Makefile" ;;
19111 "bindings/python/setup.py") CONFIG_FILES="$CONFIG_FILES bindings/python/setup.py" ;;
19112 "bindings/python/babeltrace/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/python/babeltrace/Makefile" ;;
19113 "bindings/python/babeltrace/__init__.py") CONFIG_FILES="$CONFIG_FILES bindings/python/babeltrace/__init__.py" ;;
19114 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19115 "tests/bin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bin/Makefile" ;;
19116 "tests/bin/intersection/Makefile") CONFIG_FILES="$CONFIG_FILES tests/bin/intersection/Makefile" ;;
19117 "tests/lib/Makefile") CONFIG_FILES="$CONFIG_FILES tests/lib/Makefile" ;;
19118 "tests/utils/Makefile") CONFIG_FILES="$CONFIG_FILES tests/utils/Makefile" ;;
19119 "tests/utils/tap/Makefile") CONFIG_FILES="$CONFIG_FILES tests/utils/tap/Makefile" ;;
19120 "extras/Makefile") CONFIG_FILES="$CONFIG_FILES extras/Makefile" ;;
19121 "extras/valgrind/Makefile") CONFIG_FILES="$CONFIG_FILES extras/valgrind/Makefile" ;;
19122 "babeltrace.pc") CONFIG_FILES="$CONFIG_FILES babeltrace.pc" ;;
19123 "babeltrace-ctf.pc") CONFIG_FILES="$CONFIG_FILES babeltrace-ctf.pc" ;;
19124 "tests/lib/test_ctf_writer_complete") CONFIG_FILES="$CONFIG_FILES tests/lib/test_ctf_writer_complete" ;;
19125 "tests/lib/test_seek_big_trace") CONFIG_FILES="$CONFIG_FILES tests/lib/test_seek_big_trace" ;;
19126 "tests/lib/test_seek_empty_packet") CONFIG_FILES="$CONFIG_FILES tests/lib/test_seek_empty_packet" ;;
19127 "tests/lib/test_dwarf_complete") CONFIG_FILES="$CONFIG_FILES tests/lib/test_dwarf_complete" ;;
19128 "tests/lib/test_bin_info_complete") CONFIG_FILES="$CONFIG_FILES tests/lib/test_bin_info_complete" ;;
19129 "tests/bin/test_trace_read") CONFIG_FILES="$CONFIG_FILES tests/bin/test_trace_read" ;;
19130 "tests/bin/intersection/test_intersection") CONFIG_FILES="$CONFIG_FILES tests/bin/intersection/test_intersection" ;;
19131 "tests/bin/intersection/bt_python_helper.py") CONFIG_FILES="$CONFIG_FILES tests/bin/intersection/bt_python_helper.py" ;;
19132 "tests/bin/test_packet_seq_num") CONFIG_FILES="$CONFIG_FILES tests/bin/test_packet_seq_num" ;;
19133 "bindings/python/babeltrace/python-complements.c") CONFIG_LINKS="$CONFIG_LINKS bindings/python/babeltrace/python-complements.c:bindings/python/babeltrace/python-complements.c" ;;
19134 "bindings/python/babeltrace/python-complements.h") CONFIG_LINKS="$CONFIG_LINKS bindings/python/babeltrace/python-complements.h:bindings/python/babeltrace/python-complements.h" ;;
19135 "bindings/python/babeltrace/babeltrace.i.in") CONFIG_LINKS="$CONFIG_LINKS bindings/python/babeltrace/babeltrace.i.in:bindings/python/babeltrace/babeltrace.i.in" ;;
19136
19137 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19138 esac
19139 done
19140
19141
19142 # If the user did not use the arguments to specify the items to instantiate,
19143 # then the envvar interface is used. Set only those that are not.
19144 # We use the long form for the default assignment because of an extremely
19145 # bizarre bug on SunOS 4.1.3.
19146 if $ac_need_defaults; then
19147 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19148 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19149 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
19150 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19151 fi
19152
19153 # Have a temporary directory for convenience. Make it in the build tree
19154 # simply because there is no reason against having it here, and in addition,
19155 # creating and moving files from /tmp can sometimes cause problems.
19156 # Hook for its removal unless debugging.
19157 # Note that there is a small window in which the directory will not be cleaned:
19158 # after its creation but before its name has been assigned to `$tmp'.
19159 $debug ||
19160 {
19161 tmp= ac_tmp=
19162 trap 'exit_status=$?
19163 : "${ac_tmp:=$tmp}"
19164 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19165 ' 0
19166 trap 'as_fn_exit 1' 1 2 13 15
19167 }
19168 # Create a (secure) tmp directory for tmp files.
19169
19170 {
19171 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19172 test -d "$tmp"
19173 } ||
19174 {
19175 tmp=./conf$$-$RANDOM
19176 (umask 077 && mkdir "$tmp")
19177 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19178 ac_tmp=$tmp
19179
19180 # Set up the scripts for CONFIG_FILES section.
19181 # No need to generate them if there are no CONFIG_FILES.
19182 # This happens for instance with `./config.status config.h'.
19183 if test -n "$CONFIG_FILES"; then
19184
19185
19186 ac_cr=`echo X | tr X '\015'`
19187 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19188 # But we know of no other shell where ac_cr would be empty at this
19189 # point, so we can use a bashism as a fallback.
19190 if test "x$ac_cr" = x; then
19191 eval ac_cr=\$\'\\r\'
19192 fi
19193 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19194 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19195 ac_cs_awk_cr='\\r'
19196 else
19197 ac_cs_awk_cr=$ac_cr
19198 fi
19199
19200 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19201 _ACEOF
19202
19203
19204 {
19205 echo "cat >conf$$subs.awk <<_ACEOF" &&
19206 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19207 echo "_ACEOF"
19208 } >conf$$subs.sh ||
19209 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19210 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19211 ac_delim='%!_!# '
19212 for ac_last_try in false false false false false :; do
19213 . ./conf$$subs.sh ||
19214 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19215
19216 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19217 if test $ac_delim_n = $ac_delim_num; then
19218 break
19219 elif $ac_last_try; then
19220 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19221 else
19222 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19223 fi
19224 done
19225 rm -f conf$$subs.sh
19226
19227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19228 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19229 _ACEOF
19230 sed -n '
19231 h
19232 s/^/S["/; s/!.*/"]=/
19233 p
19234 g
19235 s/^[^!]*!//
19236 :repl
19237 t repl
19238 s/'"$ac_delim"'$//
19239 t delim
19240 :nl
19241 h
19242 s/\(.\{148\}\)..*/\1/
19243 t more1
19244 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19245 p
19246 n
19247 b repl
19248 :more1
19249 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19250 p
19251 g
19252 s/.\{148\}//
19253 t nl
19254 :delim
19255 h
19256 s/\(.\{148\}\)..*/\1/
19257 t more2
19258 s/["\\]/\\&/g; s/^/"/; s/$/"/
19259 p
19260 b
19261 :more2
19262 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19263 p
19264 g
19265 s/.\{148\}//
19266 t delim
19267 ' <conf$$subs.awk | sed '
19268 /^[^""]/{
19269 N
19270 s/\n//
19271 }
19272 ' >>$CONFIG_STATUS || ac_write_fail=1
19273 rm -f conf$$subs.awk
19274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19275 _ACAWK
19276 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19277 for (key in S) S_is_set[key] = 1
19278 FS = ""
19279
19280 }
19281 {
19282 line = $ 0
19283 nfields = split(line, field, "@")
19284 substed = 0
19285 len = length(field[1])
19286 for (i = 2; i < nfields; i++) {
19287 key = field[i]
19288 keylen = length(key)
19289 if (S_is_set[key]) {
19290 value = S[key]
19291 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19292 len += length(value) + length(field[++i])
19293 substed = 1
19294 } else
19295 len += 1 + keylen
19296 }
19297
19298 print line
19299 }
19300
19301 _ACAWK
19302 _ACEOF
19303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19304 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19305 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19306 else
19307 cat
19308 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19309 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19310 _ACEOF
19311
19312 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19313 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19314 # trailing colons and then remove the whole line if VPATH becomes empty
19315 # (actually we leave an empty line to preserve line numbers).
19316 if test "x$srcdir" = x.; then
19317 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19318 h
19319 s///
19320 s/^/:/
19321 s/[ ]*$/:/
19322 s/:\$(srcdir):/:/g
19323 s/:\${srcdir}:/:/g
19324 s/:@srcdir@:/:/g
19325 s/^:*//
19326 s/:*$//
19327 x
19328 s/\(=[ ]*\).*/\1/
19329 G
19330 s/\n//
19331 s/^[^=]*=[ ]*$//
19332 }'
19333 fi
19334
19335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19336 fi # test -n "$CONFIG_FILES"
19337
19338 # Set up the scripts for CONFIG_HEADERS section.
19339 # No need to generate them if there are no CONFIG_HEADERS.
19340 # This happens for instance with `./config.status Makefile'.
19341 if test -n "$CONFIG_HEADERS"; then
19342 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19343 BEGIN {
19344 _ACEOF
19345
19346 # Transform confdefs.h into an awk script `defines.awk', embedded as
19347 # here-document in config.status, that substitutes the proper values into
19348 # config.h.in to produce config.h.
19349
19350 # Create a delimiter string that does not exist in confdefs.h, to ease
19351 # handling of long lines.
19352 ac_delim='%!_!# '
19353 for ac_last_try in false false :; do
19354 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19355 if test -z "$ac_tt"; then
19356 break
19357 elif $ac_last_try; then
19358 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19359 else
19360 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19361 fi
19362 done
19363
19364 # For the awk script, D is an array of macro values keyed by name,
19365 # likewise P contains macro parameters if any. Preserve backslash
19366 # newline sequences.
19367
19368 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19369 sed -n '
19370 s/.\{148\}/&'"$ac_delim"'/g
19371 t rset
19372 :rset
19373 s/^[ ]*#[ ]*define[ ][ ]*/ /
19374 t def
19375 d
19376 :def
19377 s/\\$//
19378 t bsnl
19379 s/["\\]/\\&/g
19380 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19381 D["\1"]=" \3"/p
19382 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19383 d
19384 :bsnl
19385 s/["\\]/\\&/g
19386 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19387 D["\1"]=" \3\\\\\\n"\\/p
19388 t cont
19389 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19390 t cont
19391 d
19392 :cont
19393 n
19394 s/.\{148\}/&'"$ac_delim"'/g
19395 t clear
19396 :clear
19397 s/\\$//
19398 t bsnlc
19399 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19400 d
19401 :bsnlc
19402 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19403 b cont
19404 ' <confdefs.h | sed '
19405 s/'"$ac_delim"'/"\\\
19406 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19407
19408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19409 for (key in D) D_is_set[key] = 1
19410 FS = ""
19411 }
19412 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19413 line = \$ 0
19414 split(line, arg, " ")
19415 if (arg[1] == "#") {
19416 defundef = arg[2]
19417 mac1 = arg[3]
19418 } else {
19419 defundef = substr(arg[1], 2)
19420 mac1 = arg[2]
19421 }
19422 split(mac1, mac2, "(") #)
19423 macro = mac2[1]
19424 prefix = substr(line, 1, index(line, defundef) - 1)
19425 if (D_is_set[macro]) {
19426 # Preserve the white space surrounding the "#".
19427 print prefix "define", macro P[macro] D[macro]
19428 next
19429 } else {
19430 # Replace #undef with comments. This is necessary, for example,
19431 # in the case of _POSIX_SOURCE, which is predefined and required
19432 # on some systems where configure will not decide to define it.
19433 if (defundef == "undef") {
19434 print "/*", prefix defundef, macro, "*/"
19435 next
19436 }
19437 }
19438 }
19439 { print }
19440 _ACAWK
19441 _ACEOF
19442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19443 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19444 fi # test -n "$CONFIG_HEADERS"
19445
19446
19447 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
19448 shift
19449 for ac_tag
19450 do
19451 case $ac_tag in
19452 :[FHLC]) ac_mode=$ac_tag; continue;;
19453 esac
19454 case $ac_mode$ac_tag in
19455 :[FHL]*:*);;
19456 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19457 :[FH]-) ac_tag=-:-;;
19458 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19459 esac
19460 ac_save_IFS=$IFS
19461 IFS=:
19462 set x $ac_tag
19463 IFS=$ac_save_IFS
19464 shift
19465 ac_file=$1
19466 shift
19467
19468 case $ac_mode in
19469 :L) ac_source=$1;;
19470 :[FH])
19471 ac_file_inputs=
19472 for ac_f
19473 do
19474 case $ac_f in
19475 -) ac_f="$ac_tmp/stdin";;
19476 *) # Look for the file first in the build tree, then in the source tree
19477 # (if the path is not absolute). The absolute path cannot be DOS-style,
19478 # because $ac_f cannot contain `:'.
19479 test -f "$ac_f" ||
19480 case $ac_f in
19481 [\\/$]*) false;;
19482 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19483 esac ||
19484 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19485 esac
19486 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19487 as_fn_append ac_file_inputs " '$ac_f'"
19488 done
19489
19490 # Let's still pretend it is `configure' which instantiates (i.e., don't
19491 # use $as_me), people would be surprised to read:
19492 # /* config.h. Generated by config.status. */
19493 configure_input='Generated from '`
19494 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19495 `' by configure.'
19496 if test x"$ac_file" != x-; then
19497 configure_input="$ac_file. $configure_input"
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19499 $as_echo "$as_me: creating $ac_file" >&6;}
19500 fi
19501 # Neutralize special characters interpreted by sed in replacement strings.
19502 case $configure_input in #(
19503 *\&* | *\|* | *\\* )
19504 ac_sed_conf_input=`$as_echo "$configure_input" |
19505 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19506 *) ac_sed_conf_input=$configure_input;;
19507 esac
19508
19509 case $ac_tag in
19510 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19511 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19512 esac
19513 ;;
19514 esac
19515
19516 ac_dir=`$as_dirname -- "$ac_file" ||
19517 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19518 X"$ac_file" : 'X\(//\)[^/]' \| \
19519 X"$ac_file" : 'X\(//\)$' \| \
19520 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19521 $as_echo X"$ac_file" |
19522 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19523 s//\1/
19524 q
19525 }
19526 /^X\(\/\/\)[^/].*/{
19527 s//\1/
19528 q
19529 }
19530 /^X\(\/\/\)$/{
19531 s//\1/
19532 q
19533 }
19534 /^X\(\/\).*/{
19535 s//\1/
19536 q
19537 }
19538 s/.*/./; q'`
19539 as_dir="$ac_dir"; as_fn_mkdir_p
19540 ac_builddir=.
19541
19542 case "$ac_dir" in
19543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19544 *)
19545 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19546 # A ".." for each directory in $ac_dir_suffix.
19547 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19548 case $ac_top_builddir_sub in
19549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19551 esac ;;
19552 esac
19553 ac_abs_top_builddir=$ac_pwd
19554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19555 # for backward compatibility:
19556 ac_top_builddir=$ac_top_build_prefix
19557
19558 case $srcdir in
19559 .) # We are building in place.
19560 ac_srcdir=.
19561 ac_top_srcdir=$ac_top_builddir_sub
19562 ac_abs_top_srcdir=$ac_pwd ;;
19563 [\\/]* | ?:[\\/]* ) # Absolute name.
19564 ac_srcdir=$srcdir$ac_dir_suffix;
19565 ac_top_srcdir=$srcdir
19566 ac_abs_top_srcdir=$srcdir ;;
19567 *) # Relative name.
19568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19569 ac_top_srcdir=$ac_top_build_prefix$srcdir
19570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19571 esac
19572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19573
19574
19575 case $ac_mode in
19576 :F)
19577 #
19578 # CONFIG_FILE
19579 #
19580
19581 case $INSTALL in
19582 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19583 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19584 esac
19585 ac_MKDIR_P=$MKDIR_P
19586 case $MKDIR_P in
19587 [\\/$]* | ?:[\\/]* ) ;;
19588 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19589 esac
19590 _ACEOF
19591
19592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19593 # If the template does not know about datarootdir, expand it.
19594 # FIXME: This hack should be removed a few years after 2.60.
19595 ac_datarootdir_hack=; ac_datarootdir_seen=
19596 ac_sed_dataroot='
19597 /datarootdir/ {
19598 p
19599 q
19600 }
19601 /@datadir@/p
19602 /@docdir@/p
19603 /@infodir@/p
19604 /@localedir@/p
19605 /@mandir@/p'
19606 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19607 *datarootdir*) ac_datarootdir_seen=yes;;
19608 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19610 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19611 _ACEOF
19612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19613 ac_datarootdir_hack='
19614 s&@datadir@&$datadir&g
19615 s&@docdir@&$docdir&g
19616 s&@infodir@&$infodir&g
19617 s&@localedir@&$localedir&g
19618 s&@mandir@&$mandir&g
19619 s&\\\${datarootdir}&$datarootdir&g' ;;
19620 esac
19621 _ACEOF
19622
19623 # Neutralize VPATH when `$srcdir' = `.'.
19624 # Shell code in configure.ac might set extrasub.
19625 # FIXME: do we really want to maintain this feature?
19626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19627 ac_sed_extra="$ac_vpsub
19628 $extrasub
19629 _ACEOF
19630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19631 :t
19632 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19633 s|@configure_input@|$ac_sed_conf_input|;t t
19634 s&@top_builddir@&$ac_top_builddir_sub&;t t
19635 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19636 s&@srcdir@&$ac_srcdir&;t t
19637 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19638 s&@top_srcdir@&$ac_top_srcdir&;t t
19639 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19640 s&@builddir@&$ac_builddir&;t t
19641 s&@abs_builddir@&$ac_abs_builddir&;t t
19642 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19643 s&@INSTALL@&$ac_INSTALL&;t t
19644 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19645 $ac_datarootdir_hack
19646 "
19647 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19648 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19649
19650 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19651 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19652 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19653 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19655 which seems to be undefined. Please make sure it is defined" >&5
19656 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19657 which seems to be undefined. Please make sure it is defined" >&2;}
19658
19659 rm -f "$ac_tmp/stdin"
19660 case $ac_file in
19661 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19662 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19663 esac \
19664 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19665 ;;
19666 :H)
19667 #
19668 # CONFIG_HEADER
19669 #
19670 if test x"$ac_file" != x-; then
19671 {
19672 $as_echo "/* $configure_input */" \
19673 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19674 } >"$ac_tmp/config.h" \
19675 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19676 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19678 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19679 else
19680 rm -f "$ac_file"
19681 mv "$ac_tmp/config.h" "$ac_file" \
19682 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19683 fi
19684 else
19685 $as_echo "/* $configure_input */" \
19686 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19687 || as_fn_error $? "could not create -" "$LINENO" 5
19688 fi
19689 # Compute "$ac_file"'s index in $config_headers.
19690 _am_arg="$ac_file"
19691 _am_stamp_count=1
19692 for _am_header in $config_headers :; do
19693 case $_am_header in
19694 $_am_arg | $_am_arg:* )
19695 break ;;
19696 * )
19697 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19698 esac
19699 done
19700 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19701 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19702 X"$_am_arg" : 'X\(//\)[^/]' \| \
19703 X"$_am_arg" : 'X\(//\)$' \| \
19704 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19705 $as_echo X"$_am_arg" |
19706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19707 s//\1/
19708 q
19709 }
19710 /^X\(\/\/\)[^/].*/{
19711 s//\1/
19712 q
19713 }
19714 /^X\(\/\/\)$/{
19715 s//\1/
19716 q
19717 }
19718 /^X\(\/\).*/{
19719 s//\1/
19720 q
19721 }
19722 s/.*/./; q'`/stamp-h$_am_stamp_count
19723 ;;
19724 :L)
19725 #
19726 # CONFIG_LINK
19727 #
19728
19729 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
19730 :
19731 else
19732 # Prefer the file from the source tree if names are identical.
19733 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19734 ac_source=$srcdir/$ac_source
19735 fi
19736
19737 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19738 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19739
19740 if test ! -r "$ac_source"; then
19741 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19742 fi
19743 rm -f "$ac_file"
19744
19745 # Try a relative symlink, then a hard link, then a copy.
19746 case $ac_source in
19747 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19748 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19749 esac
19750 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19751 ln "$ac_source" "$ac_file" 2>/dev/null ||
19752 cp -p "$ac_source" "$ac_file" ||
19753 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19754 fi
19755 ;;
19756 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19757 $as_echo "$as_me: executing $ac_file commands" >&6;}
19758 ;;
19759 esac
19760
19761
19762 case $ac_file$ac_mode in
19763 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19764 # Older Autoconf quotes --file arguments for eval, but not when files
19765 # are listed without --file. Let's play safe and only enable the eval
19766 # if we detect the quoting.
19767 case $CONFIG_FILES in
19768 *\'*) eval set x "$CONFIG_FILES" ;;
19769 *) set x $CONFIG_FILES ;;
19770 esac
19771 shift
19772 for mf
19773 do
19774 # Strip MF so we end up with the name of the file.
19775 mf=`echo "$mf" | sed -e 's/:.*$//'`
19776 # Check whether this is an Automake generated Makefile or not.
19777 # We used to match only the files named 'Makefile.in', but
19778 # some people rename them; so instead we look at the file content.
19779 # Grep'ing the first line is not enough: some people post-process
19780 # each Makefile.in and add a new line on top of each file to say so.
19781 # Grep'ing the whole file is not good either: AIX grep has a line
19782 # limit of 2048, but all sed's we know have understand at least 4000.
19783 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19784 dirpart=`$as_dirname -- "$mf" ||
19785 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19786 X"$mf" : 'X\(//\)[^/]' \| \
19787 X"$mf" : 'X\(//\)$' \| \
19788 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19789 $as_echo X"$mf" |
19790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19791 s//\1/
19792 q
19793 }
19794 /^X\(\/\/\)[^/].*/{
19795 s//\1/
19796 q
19797 }
19798 /^X\(\/\/\)$/{
19799 s//\1/
19800 q
19801 }
19802 /^X\(\/\).*/{
19803 s//\1/
19804 q
19805 }
19806 s/.*/./; q'`
19807 else
19808 continue
19809 fi
19810 # Extract the definition of DEPDIR, am__include, and am__quote
19811 # from the Makefile without running 'make'.
19812 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19813 test -z "$DEPDIR" && continue
19814 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19815 test -z "$am__include" && continue
19816 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19817 # Find all dependency output files, they are included files with
19818 # $(DEPDIR) in their names. We invoke sed twice because it is the
19819 # simplest approach to changing $(DEPDIR) to its actual value in the
19820 # expansion.
19821 for file in `sed -n "
19822 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19823 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19824 # Make sure the directory exists.
19825 test -f "$dirpart/$file" && continue
19826 fdir=`$as_dirname -- "$file" ||
19827 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19828 X"$file" : 'X\(//\)[^/]' \| \
19829 X"$file" : 'X\(//\)$' \| \
19830 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19831 $as_echo X"$file" |
19832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19833 s//\1/
19834 q
19835 }
19836 /^X\(\/\/\)[^/].*/{
19837 s//\1/
19838 q
19839 }
19840 /^X\(\/\/\)$/{
19841 s//\1/
19842 q
19843 }
19844 /^X\(\/\).*/{
19845 s//\1/
19846 q
19847 }
19848 s/.*/./; q'`
19849 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19850 # echo "creating $dirpart/$file"
19851 echo '# dummy' > "$dirpart/$file"
19852 done
19853 done
19854 }
19855 ;;
19856 "libtool":C)
19857
19858 # See if we are running on zsh, and set the options that allow our
19859 # commands through without removal of \ escapes.
19860 if test -n "${ZSH_VERSION+set}"; then
19861 setopt NO_GLOB_SUBST
19862 fi
19863
19864 cfgfile=${ofile}T
19865 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19866 $RM "$cfgfile"
19867
19868 cat <<_LT_EOF >> "$cfgfile"
19869 #! $SHELL
19870 # Generated automatically by $as_me ($PACKAGE) $VERSION
19871 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19872
19873 # Provide generalized library-building support services.
19874 # Written by Gordon Matzigkeit, 1996
19875
19876 # Copyright (C) 2014 Free Software Foundation, Inc.
19877 # This is free software; see the source for copying conditions. There is NO
19878 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19879
19880 # GNU Libtool is free software; you can redistribute it and/or modify
19881 # it under the terms of the GNU General Public License as published by
19882 # the Free Software Foundation; either version 2 of of the License, or
19883 # (at your option) any later version.
19884 #
19885 # As a special exception to the GNU General Public License, if you
19886 # distribute this file as part of a program or library that is built
19887 # using GNU Libtool, you may include this file under the same
19888 # distribution terms that you use for the rest of that program.
19889 #
19890 # GNU Libtool is distributed in the hope that it will be useful, but
19891 # WITHOUT ANY WARRANTY; without even the implied warranty of
19892 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19893 # GNU General Public License for more details.
19894 #
19895 # You should have received a copy of the GNU General Public License
19896 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19897
19898
19899 # The names of the tagged configurations supported by this script.
19900 available_tags=''
19901
19902 # Configured defaults for sys_lib_dlsearch_path munging.
19903 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19904
19905 # ### BEGIN LIBTOOL CONFIG
19906
19907 # Which release of libtool.m4 was used?
19908 macro_version=$macro_version
19909 macro_revision=$macro_revision
19910
19911 # Whether or not to build shared libraries.
19912 build_libtool_libs=$enable_shared
19913
19914 # Whether or not to build static libraries.
19915 build_old_libs=$enable_static
19916
19917 # What type of objects to build.
19918 pic_mode=$pic_mode
19919
19920 # Whether or not to optimize for fast installation.
19921 fast_install=$enable_fast_install
19922
19923 # Shared archive member basename,for filename based shared library versioning on AIX.
19924 shared_archive_member_spec=$shared_archive_member_spec
19925
19926 # Shell to use when invoking shell scripts.
19927 SHELL=$lt_SHELL
19928
19929 # An echo program that protects backslashes.
19930 ECHO=$lt_ECHO
19931
19932 # The PATH separator for the build system.
19933 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19934
19935 # The host system.
19936 host_alias=$host_alias
19937 host=$host
19938 host_os=$host_os
19939
19940 # The build system.
19941 build_alias=$build_alias
19942 build=$build
19943 build_os=$build_os
19944
19945 # A sed program that does not truncate output.
19946 SED=$lt_SED
19947
19948 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19949 Xsed="\$SED -e 1s/^X//"
19950
19951 # A grep program that handles long lines.
19952 GREP=$lt_GREP
19953
19954 # An ERE matcher.
19955 EGREP=$lt_EGREP
19956
19957 # A literal string matcher.
19958 FGREP=$lt_FGREP
19959
19960 # A BSD- or MS-compatible name lister.
19961 NM=$lt_NM
19962
19963 # Whether we need soft or hard links.
19964 LN_S=$lt_LN_S
19965
19966 # What is the maximum length of a command?
19967 max_cmd_len=$max_cmd_len
19968
19969 # Object file suffix (normally "o").
19970 objext=$ac_objext
19971
19972 # Executable file suffix (normally "").
19973 exeext=$exeext
19974
19975 # whether the shell understands "unset".
19976 lt_unset=$lt_unset
19977
19978 # turn spaces into newlines.
19979 SP2NL=$lt_lt_SP2NL
19980
19981 # turn newlines into spaces.
19982 NL2SP=$lt_lt_NL2SP
19983
19984 # convert \$build file names to \$host format.
19985 to_host_file_cmd=$lt_cv_to_host_file_cmd
19986
19987 # convert \$build files to toolchain format.
19988 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19989
19990 # An object symbol dumper.
19991 OBJDUMP=$lt_OBJDUMP
19992
19993 # Method to check whether dependent libraries are shared objects.
19994 deplibs_check_method=$lt_deplibs_check_method
19995
19996 # Command to use when deplibs_check_method = "file_magic".
19997 file_magic_cmd=$lt_file_magic_cmd
19998
19999 # How to find potential files when deplibs_check_method = "file_magic".
20000 file_magic_glob=$lt_file_magic_glob
20001
20002 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20003 want_nocaseglob=$lt_want_nocaseglob
20004
20005 # DLL creation program.
20006 DLLTOOL=$lt_DLLTOOL
20007
20008 # Command to associate shared and link libraries.
20009 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20010
20011 # The archiver.
20012 AR=$lt_AR
20013
20014 # Flags to create an archive.
20015 AR_FLAGS=$lt_AR_FLAGS
20016
20017 # How to feed a file listing to the archiver.
20018 archiver_list_spec=$lt_archiver_list_spec
20019
20020 # A symbol stripping program.
20021 STRIP=$lt_STRIP
20022
20023 # Commands used to install an old-style archive.
20024 RANLIB=$lt_RANLIB
20025 old_postinstall_cmds=$lt_old_postinstall_cmds
20026 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20027
20028 # Whether to use a lock for old archive extraction.
20029 lock_old_archive_extraction=$lock_old_archive_extraction
20030
20031 # A C compiler.
20032 LTCC=$lt_CC
20033
20034 # LTCC compiler flags.
20035 LTCFLAGS=$lt_CFLAGS
20036
20037 # Take the output of nm and produce a listing of raw symbols and C names.
20038 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20039
20040 # Transform the output of nm in a proper C declaration.
20041 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20042
20043 # Transform the output of nm into a list of symbols to manually relocate.
20044 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20045
20046 # Transform the output of nm in a C name address pair.
20047 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20048
20049 # Transform the output of nm in a C name address pair when lib prefix is needed.
20050 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20051
20052 # The name lister interface.
20053 nm_interface=$lt_lt_cv_nm_interface
20054
20055 # Specify filename containing input files for \$NM.
20056 nm_file_list_spec=$lt_nm_file_list_spec
20057
20058 # The root where to search for dependent libraries,and where our libraries should be installed.
20059 lt_sysroot=$lt_sysroot
20060
20061 # Command to truncate a binary pipe.
20062 lt_truncate_bin=$lt_lt_cv_truncate_bin
20063
20064 # The name of the directory that contains temporary libtool files.
20065 objdir=$objdir
20066
20067 # Used to examine libraries when file_magic_cmd begins with "file".
20068 MAGIC_CMD=$MAGIC_CMD
20069
20070 # Must we lock files when doing compilation?
20071 need_locks=$lt_need_locks
20072
20073 # Manifest tool.
20074 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20075
20076 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20077 DSYMUTIL=$lt_DSYMUTIL
20078
20079 # Tool to change global to local symbols on Mac OS X.
20080 NMEDIT=$lt_NMEDIT
20081
20082 # Tool to manipulate fat objects and archives on Mac OS X.
20083 LIPO=$lt_LIPO
20084
20085 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20086 OTOOL=$lt_OTOOL
20087
20088 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20089 OTOOL64=$lt_OTOOL64
20090
20091 # Old archive suffix (normally "a").
20092 libext=$libext
20093
20094 # Shared library suffix (normally ".so").
20095 shrext_cmds=$lt_shrext_cmds
20096
20097 # The commands to extract the exported symbol list from a shared archive.
20098 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20099
20100 # Variables whose values should be saved in libtool wrapper scripts and
20101 # restored at link time.
20102 variables_saved_for_relink=$lt_variables_saved_for_relink
20103
20104 # Do we need the "lib" prefix for modules?
20105 need_lib_prefix=$need_lib_prefix
20106
20107 # Do we need a version for libraries?
20108 need_version=$need_version
20109
20110 # Library versioning type.
20111 version_type=$version_type
20112
20113 # Shared library runtime path variable.
20114 runpath_var=$runpath_var
20115
20116 # Shared library path variable.
20117 shlibpath_var=$shlibpath_var
20118
20119 # Is shlibpath searched before the hard-coded library search path?
20120 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20121
20122 # Format of library name prefix.
20123 libname_spec=$lt_libname_spec
20124
20125 # List of archive names. First name is the real one, the rest are links.
20126 # The last name is the one that the linker finds with -lNAME
20127 library_names_spec=$lt_library_names_spec
20128
20129 # The coded name of the library, if different from the real name.
20130 soname_spec=$lt_soname_spec
20131
20132 # Permission mode override for installation of shared libraries.
20133 install_override_mode=$lt_install_override_mode
20134
20135 # Command to use after installation of a shared archive.
20136 postinstall_cmds=$lt_postinstall_cmds
20137
20138 # Command to use after uninstallation of a shared archive.
20139 postuninstall_cmds=$lt_postuninstall_cmds
20140
20141 # Commands used to finish a libtool library installation in a directory.
20142 finish_cmds=$lt_finish_cmds
20143
20144 # As "finish_cmds", except a single script fragment to be evaled but
20145 # not shown.
20146 finish_eval=$lt_finish_eval
20147
20148 # Whether we should hardcode library paths into libraries.
20149 hardcode_into_libs=$hardcode_into_libs
20150
20151 # Compile-time system search path for libraries.
20152 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20153
20154 # Detected run-time system search path for libraries.
20155 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20156
20157 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20158 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20159
20160 # Whether dlopen is supported.
20161 dlopen_support=$enable_dlopen
20162
20163 # Whether dlopen of programs is supported.
20164 dlopen_self=$enable_dlopen_self
20165
20166 # Whether dlopen of statically linked programs is supported.
20167 dlopen_self_static=$enable_dlopen_self_static
20168
20169 # Commands to strip libraries.
20170 old_striplib=$lt_old_striplib
20171 striplib=$lt_striplib
20172
20173
20174 # The linker used to build libraries.
20175 LD=$lt_LD
20176
20177 # How to create reloadable object files.
20178 reload_flag=$lt_reload_flag
20179 reload_cmds=$lt_reload_cmds
20180
20181 # Commands used to build an old-style archive.
20182 old_archive_cmds=$lt_old_archive_cmds
20183
20184 # A language specific compiler.
20185 CC=$lt_compiler
20186
20187 # Is the compiler the GNU compiler?
20188 with_gcc=$GCC
20189
20190 # Compiler flag to turn off builtin functions.
20191 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20192
20193 # Additional compiler flags for building library objects.
20194 pic_flag=$lt_lt_prog_compiler_pic
20195
20196 # How to pass a linker flag through the compiler.
20197 wl=$lt_lt_prog_compiler_wl
20198
20199 # Compiler flag to prevent dynamic linking.
20200 link_static_flag=$lt_lt_prog_compiler_static
20201
20202 # Does compiler simultaneously support -c and -o options?
20203 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20204
20205 # Whether or not to add -lc for building shared libraries.
20206 build_libtool_need_lc=$archive_cmds_need_lc
20207
20208 # Whether or not to disallow shared libs when runtime libs are static.
20209 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20210
20211 # Compiler flag to allow reflexive dlopens.
20212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20213
20214 # Compiler flag to generate shared objects directly from archives.
20215 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20216
20217 # Whether the compiler copes with passing no objects directly.
20218 compiler_needs_object=$lt_compiler_needs_object
20219
20220 # Create an old-style archive from a shared archive.
20221 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20222
20223 # Create a temporary old-style archive to link instead of a shared archive.
20224 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20225
20226 # Commands used to build a shared archive.
20227 archive_cmds=$lt_archive_cmds
20228 archive_expsym_cmds=$lt_archive_expsym_cmds
20229
20230 # Commands used to build a loadable module if different from building
20231 # a shared archive.
20232 module_cmds=$lt_module_cmds
20233 module_expsym_cmds=$lt_module_expsym_cmds
20234
20235 # Whether we are building with GNU ld or not.
20236 with_gnu_ld=$lt_with_gnu_ld
20237
20238 # Flag that allows shared libraries with undefined symbols to be built.
20239 allow_undefined_flag=$lt_allow_undefined_flag
20240
20241 # Flag that enforces no undefined symbols.
20242 no_undefined_flag=$lt_no_undefined_flag
20243
20244 # Flag to hardcode \$libdir into a binary during linking.
20245 # This must work even if \$libdir does not exist
20246 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20247
20248 # Whether we need a single "-rpath" flag with a separated argument.
20249 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20250
20251 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20252 # DIR into the resulting binary.
20253 hardcode_direct=$hardcode_direct
20254
20255 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20256 # DIR into the resulting binary and the resulting library dependency is
20257 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
20258 # library is relocated.
20259 hardcode_direct_absolute=$hardcode_direct_absolute
20260
20261 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20262 # into the resulting binary.
20263 hardcode_minus_L=$hardcode_minus_L
20264
20265 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20266 # into the resulting binary.
20267 hardcode_shlibpath_var=$hardcode_shlibpath_var
20268
20269 # Set to "yes" if building a shared library automatically hardcodes DIR
20270 # into the library and all subsequent libraries and executables linked
20271 # against it.
20272 hardcode_automatic=$hardcode_automatic
20273
20274 # Set to yes if linker adds runtime paths of dependent libraries
20275 # to runtime path list.
20276 inherit_rpath=$inherit_rpath
20277
20278 # Whether libtool must link a program against all its dependency libraries.
20279 link_all_deplibs=$link_all_deplibs
20280
20281 # Set to "yes" if exported symbols are required.
20282 always_export_symbols=$always_export_symbols
20283
20284 # The commands to list exported symbols.
20285 export_symbols_cmds=$lt_export_symbols_cmds
20286
20287 # Symbols that should not be listed in the preloaded symbols.
20288 exclude_expsyms=$lt_exclude_expsyms
20289
20290 # Symbols that must always be exported.
20291 include_expsyms=$lt_include_expsyms
20292
20293 # Commands necessary for linking programs (against libraries) with templates.
20294 prelink_cmds=$lt_prelink_cmds
20295
20296 # Commands necessary for finishing linking programs.
20297 postlink_cmds=$lt_postlink_cmds
20298
20299 # Specify filename containing input files.
20300 file_list_spec=$lt_file_list_spec
20301
20302 # How to hardcode a shared library path into an executable.
20303 hardcode_action=$hardcode_action
20304
20305 # ### END LIBTOOL CONFIG
20306
20307 _LT_EOF
20308
20309 cat <<'_LT_EOF' >> "$cfgfile"
20310
20311 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20312
20313 # func_munge_path_list VARIABLE PATH
20314 # -----------------------------------
20315 # VARIABLE is name of variable containing _space_ separated list of
20316 # directories to be munged by the contents of PATH, which is string
20317 # having a format:
20318 # "DIR[:DIR]:"
20319 # string "DIR[ DIR]" will be prepended to VARIABLE
20320 # ":DIR[:DIR]"
20321 # string "DIR[ DIR]" will be appended to VARIABLE
20322 # "DIRP[:DIRP]::[DIRA:]DIRA"
20323 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20324 # "DIRA[ DIRA]" will be appended to VARIABLE
20325 # "DIR[:DIR]"
20326 # VARIABLE will be replaced by "DIR[ DIR]"
20327 func_munge_path_list ()
20328 {
20329 case x$2 in
20330 x)
20331 ;;
20332 *:)
20333 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20334 ;;
20335 x:*)
20336 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20337 ;;
20338 *::*)
20339 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20340 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20341 ;;
20342 *)
20343 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20344 ;;
20345 esac
20346 }
20347
20348
20349 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
20350 func_cc_basename ()
20351 {
20352 for cc_temp in $*""; do
20353 case $cc_temp in
20354 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20355 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20356 \-*) ;;
20357 *) break;;
20358 esac
20359 done
20360 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20361 }
20362
20363
20364 # ### END FUNCTIONS SHARED WITH CONFIGURE
20365
20366 _LT_EOF
20367
20368 case $host_os in
20369 aix3*)
20370 cat <<\_LT_EOF >> "$cfgfile"
20371 # AIX sometimes has problems with the GCC collect2 program. For some
20372 # reason, if we set the COLLECT_NAMES environment variable, the problems
20373 # vanish in a puff of smoke.
20374 if test set != "${COLLECT_NAMES+set}"; then
20375 COLLECT_NAMES=
20376 export COLLECT_NAMES
20377 fi
20378 _LT_EOF
20379 ;;
20380 esac
20381
20382
20383 ltmain=$ac_aux_dir/ltmain.sh
20384
20385
20386 # We use sed instead of cat because bash on DJGPP gets confused if
20387 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20388 # text mode, it properly converts lines to CR/LF. This bash problem
20389 # is reportedly fixed, but why not run on old versions too?
20390 sed '$q' "$ltmain" >> "$cfgfile" \
20391 || (rm -f "$cfgfile"; exit 1)
20392
20393 mv -f "$cfgfile" "$ofile" ||
20394 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20395 chmod +x "$ofile"
20396
20397 ;;
20398 "tests/lib/test_ctf_writer_complete":F) chmod +x tests/lib/test_ctf_writer_complete ;;
20399 "tests/lib/test_seek_big_trace":F) chmod +x tests/lib/test_seek_big_trace ;;
20400 "tests/lib/test_seek_empty_packet":F) chmod +x tests/lib/test_seek_empty_packet ;;
20401 "tests/lib/test_dwarf_complete":F) chmod +x tests/lib/test_dwarf_complete ;;
20402 "tests/lib/test_bin_info_complete":F) chmod +x tests/lib/test_bin_info_complete ;;
20403 "tests/bin/test_trace_read":F) chmod +x tests/bin/test_trace_read ;;
20404 "tests/bin/intersection/test_intersection":F) chmod +x tests/bin/intersection/test_intersection ;;
20405 "tests/bin/test_packet_seq_num":F) chmod +x tests/bin/test_packet_seq_num ;;
20406
20407 esac
20408 done # for ac_tag
20409
20410
20411 as_fn_exit 0
20412 _ACEOF
20413 ac_clean_files=$ac_clean_files_save
20414
20415 test $ac_write_fail = 0 ||
20416 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20417
20418
20419 # configure is writing to config.log, and then calls config.status.
20420 # config.status does its own redirection, appending to config.log.
20421 # Unfortunately, on DOS this fails, as config.log is still kept open
20422 # by configure, so config.status won't be able to write to it; its
20423 # output is simply discarded. So we exec the FD to /dev/null,
20424 # effectively closing config.log, so it can be properly (re)opened and
20425 # appended to by config.status. When coming back to configure, we
20426 # need to make the FD available again.
20427 if test "$no_create" != yes; then
20428 ac_cs_success=:
20429 ac_config_status_args=
20430 test "$silent" = yes &&
20431 ac_config_status_args="$ac_config_status_args --quiet"
20432 exec 5>/dev/null
20433 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20434 exec 5>>config.log
20435 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20436 # would make configure fail if this is the last instruction.
20437 $ac_cs_success || as_fn_exit 1
20438 fi
20439 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20441 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20442 fi
20443
20444
20445 #
20446 # Mini-report on what will be built.
20447 #
20448
20449
20450
20451
20452 PPRINT_YES_MSG=yes
20453 PPRINT_NO_MSG=no
20454
20455 # find tput, which tells us if colors are supported and gives us color codes
20456 # Extract the first word of "tput", so it can be a program name with args.
20457 set dummy tput; ac_word=$2
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20459 $as_echo_n "checking for $ac_word... " >&6; }
20460 if ${ac_cv_path_pprint_tput+:} false; then :
20461 $as_echo_n "(cached) " >&6
20462 else
20463 case $pprint_tput in
20464 [\\/]* | ?:[\\/]*)
20465 ac_cv_path_pprint_tput="$pprint_tput" # Let the user override the test with a path.
20466 ;;
20467 *)
20468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20469 for as_dir in $PATH
20470 do
20471 IFS=$as_save_IFS
20472 test -z "$as_dir" && as_dir=.
20473 for ac_exec_ext in '' $ac_executable_extensions; do
20474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20475 ac_cv_path_pprint_tput="$as_dir/$ac_word$ac_exec_ext"
20476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20477 break 2
20478 fi
20479 done
20480 done
20481 IFS=$as_save_IFS
20482
20483 ;;
20484 esac
20485 fi
20486 pprint_tput=$ac_cv_path_pprint_tput
20487 if test -n "$pprint_tput"; then
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pprint_tput" >&5
20489 $as_echo "$pprint_tput" >&6; }
20490 else
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20492 $as_echo "no" >&6; }
20493 fi
20494
20495
20496
20497 if test -n "$pprint_tput"; then :
20498
20499 if test -n "$PS1" && test `"$pprint_tput" colors` -ge 8 && test -t 1; then :
20500
20501 # interactive shell and colors supported and standard output
20502 # file descriptor is opened on a terminal
20503 PPRINT_COLOR_TXTBLK=`"$pprint_tput" setf 0`
20504 PPRINT_COLOR_TXTBLU=`"$pprint_tput" setf 1`
20505 PPRINT_COLOR_TXTGRN=`"$pprint_tput" setf 2`
20506 PPRINT_COLOR_TXTCYN=`"$pprint_tput" setf 3`
20507 PPRINT_COLOR_TXTRED=`"$pprint_tput" setf 4`
20508 PPRINT_COLOR_TXTPUR=`"$pprint_tput" setf 5`
20509 PPRINT_COLOR_TXTYLW=`"$pprint_tput" setf 6`
20510 PPRINT_COLOR_TXTWHT=`"$pprint_tput" setf 7`
20511 PPRINT_COLOR_BLD=`"$pprint_tput" bold`
20512 PPRINT_COLOR_BLDBLK=$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTBLK
20513 PPRINT_COLOR_BLDBLU=$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTBLU
20514 PPRINT_COLOR_BLDGRN=$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTGRN
20515 PPRINT_COLOR_BLDCYN=$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTCYN
20516 PPRINT_COLOR_BLDRED=$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTRED
20517 PPRINT_COLOR_BLDPUR=$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTPUR
20518 PPRINT_COLOR_BLDYLW=$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTYLW
20519 PPRINT_COLOR_BLDWHT=$PPRINT_COLOR_BLD$PPRINT_COLOR_TXTWHT
20520 PPRINT_COLOR_RST=`"$pprint_tput" sgr0`
20521
20522 # colored yes and no
20523 PPRINT_YES_MSG="$PPRINT_COLOR_BLDGRN$PPRINT_YES_MSG$PPRINT_COLOR_RST"
20524 PPRINT_NO_MSG="$PPRINT_COLOR_BLDRED$PPRINT_NO_MSG$PPRINT_COLOR_RST"
20525
20526 # subtitle color
20527 PPRINT_COLOR_SUBTITLE=$PPRINT_COLOR_BLDCYN
20528
20529 fi
20530
20531 fi
20532
20533
20534
20535
20536
20537
20538
20539
20540 $as_echo
20541 $as_echo "${PPRINT_COLOR_BLDBLU}Babeltrace $PACKAGE_VERSION$PPRINT_COLOR_RST"
20542 $as_echo
20543
20544
20545 $as_echo "${PPRINT_COLOR_SUBTITLE}Features$PPRINT_COLOR_RST"
20546
20547
20548 # Target architecture we're building for.
20549 target_arch=$host_cpu
20550
20551 for f in $CFLAGS; do
20552 if test $f = "-m32"; then
20553 target_arch="32-bit"
20554 elif test $f = "-m64"; then
20555 target_arch="64-bit"
20556 fi
20557 done
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611 $as_echo_n " "
20612
20613 $as_echo_n " "
20614
20615
20616
20617
20618 $as_echo_n """Target architecture$PPRINT_COLOR_RST: "
20619 $as_echo "${PPRINT_COLOR_BLD}$target_arch$PPRINT_COLOR_RST"
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629 # python bindings enabled/disabled
20630 test "x$enable_python" = "xyes" && value=1 || value=0
20631
20632
20633
20634
20635 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698 $as_echo_n " "
20699
20700 $as_echo_n " "
20701
20702
20703
20704
20705 $as_echo_n """Python bindings$PPRINT_COLOR_RST: "
20706 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721 # python bindings doc enabled/disabled
20722 test "x$enable_python_bindings_doc" = "xyes" && value=1 || value=0
20723
20724
20725
20726
20727 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782 $as_echo_n " "
20783
20784 $as_echo_n " "
20785
20786
20787
20788
20789 $as_echo_n """Python bindings doc$PPRINT_COLOR_RST: "
20790 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805 # debug info enabled/disabled
20806 test "x$_enable_debug_info" = "xyes" && value=1 || value=0
20807
20808
20809
20810
20811 test $value -eq 0 && pprint_msg="$PPRINT_NO_MSG" || pprint_msg="$PPRINT_YES_MSG"
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856 $as_echo_n " "
20857
20858 $as_echo_n " "
20859
20860
20861
20862
20863 $as_echo_n """Debug information output$PPRINT_COLOR_RST: "
20864 $as_echo "${PPRINT_COLOR_BLD}$pprint_msg$PPRINT_COLOR_RST"
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880 report_bindir="`eval eval echo $bindir`"
20881 report_libdir="`eval eval echo $libdir`"
20882
20883 # Print the bindir and libdir this `make install' will install into.
20884 $as_echo
20885
20886 $as_echo "${PPRINT_COLOR_SUBTITLE}Install directories$PPRINT_COLOR_RST"
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962 $as_echo_n " "
20963
20964 $as_echo_n " "
20965
20966
20967
20968
20969 $as_echo_n """Binaries$PPRINT_COLOR_RST: "
20970 $as_echo "${PPRINT_COLOR_BLD}$report_bindir$PPRINT_COLOR_RST"
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051 $as_echo_n " "
21052
21053 $as_echo_n " "
21054
21055
21056
21057
21058 $as_echo_n """Libraries$PPRINT_COLOR_RST: "
21059 $as_echo "${PPRINT_COLOR_BLD}$report_libdir$PPRINT_COLOR_RST"
21060
21061
21062
21063
21064
21065
21066
21067