PR22509 - Null pointer dereference on coff_slurp_reloc_table
[binutils-gdb.git] / libctf / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libctf 1.2.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libctf'
589 PACKAGE_TARNAME='libctf'
590 PACKAGE_VERSION='1.2.0'
591 PACKAGE_STRING='libctf 1.2.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="ctf-impl.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_header_list=
633 ac_func_list=
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 VERSION_FLAGS_NOBFD
639 VERSION_FLAGS
640 TCL_TRY_FALSE
641 TCL_TRY_TRUE
642 EXPECT
643 CTF_LIBADD
644 SHARED_LDFLAGS
645 BUILD_INFO_FALSE
646 BUILD_INFO_TRUE
647 NEED_CTF_QSORT_R_FALSE
648 NEED_CTF_QSORT_R_TRUE
649 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE
650 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE
651 ZSTD_LIBS
652 ZSTD_CFLAGS
653 PKG_CONFIG_LIBDIR
654 PKG_CONFIG_PATH
655 PKG_CONFIG
656 zlibinc
657 zlibdir
658 ac_libctf_warn_cflags
659 bfdincludedir
660 bfdlibdir
661 target_noncanonical
662 host_noncanonical
663 INSTALL_LIBBFD_FALSE
664 INSTALL_LIBBFD_TRUE
665 MAINT
666 MAINTAINER_MODE_FALSE
667 MAINTAINER_MODE_TRUE
668 WERROR
669 WARN_PEDANTIC
670 c_warn
671 warn
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 OBJDUMP
678 LN_S
679 NM
680 ac_ct_DUMPBIN
681 DUMPBIN
682 LD
683 FGREP
684 SED
685 LIBTOOL
686 CATOBJEXT
687 GENCAT
688 INSTOBJEXT
689 DATADIRNAME
690 CATALOGS
691 POSUB
692 GMSGFMT
693 XGETTEXT
694 INCINTL
695 LIBINTL_DEP
696 LIBINTL
697 USE_NLS
698 ac_ct_AR
699 AR
700 RANLIB
701 AM_BACKSLASH
702 AM_DEFAULT_VERBOSITY
703 AM_DEFAULT_V
704 AM_V
705 am__fastdepCC_FALSE
706 am__fastdepCC_TRUE
707 CCDEPMODE
708 am__nodep
709 AMDEPBACKSLASH
710 AMDEP_FALSE
711 AMDEP_TRUE
712 am__quote
713 am__include
714 DEPDIR
715 am__untar
716 am__tar
717 AMTAR
718 am__leading_dot
719 SET_MAKE
720 AWK
721 mkdir_p
722 MKDIR_P
723 INSTALL_STRIP_PROGRAM
724 STRIP
725 install_sh
726 MAKEINFO
727 AUTOHEADER
728 AUTOMAKE
729 AUTOCONF
730 ACLOCAL
731 VERSION
732 PACKAGE
733 CYGPATH_W
734 am__isrc
735 INSTALL_DATA
736 INSTALL_SCRIPT
737 INSTALL_PROGRAM
738 EGREP
739 GREP
740 CPP
741 OBJEXT
742 EXEEXT
743 ac_ct_CC
744 CPPFLAGS
745 LDFLAGS
746 CFLAGS
747 CC
748 target_os
749 target_vendor
750 target_cpu
751 target
752 host_os
753 host_vendor
754 host_cpu
755 host
756 build_os
757 build_vendor
758 build_cpu
759 build
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_URL
791 PACKAGE_BUGREPORT
792 PACKAGE_STRING
793 PACKAGE_VERSION
794 PACKAGE_TARNAME
795 PACKAGE_NAME
796 PATH_SEPARATOR
797 SHELL'
798 ac_subst_files=''
799 ac_user_opts='
800 enable_option_checking
801 enable_dependency_tracking
802 enable_silent_rules
803 enable_shared
804 enable_static
805 with_pic
806 enable_fast_install
807 with_gnu_ld
808 enable_libtool_lock
809 enable_largefile
810 enable_werror_always
811 enable_maintainer_mode
812 enable_install_libbfd
813 with_system_zlib
814 with_zstd
815 enable_libctf_hash_debugging
816 '
817 ac_precious_vars='build_alias
818 host_alias
819 target_alias
820 CC
821 CFLAGS
822 LDFLAGS
823 LIBS
824 CPPFLAGS
825 CPP
826 PKG_CONFIG
827 PKG_CONFIG_PATH
828 PKG_CONFIG_LIBDIR
829 ZSTD_CFLAGS
830 ZSTD_LIBS'
831
832
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 ac_unrecognized_opts=
837 ac_unrecognized_sep=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
854
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
880
881 ac_prev=
882 ac_dashdash=
883 for ac_option
884 do
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
888 ac_prev=
889 continue
890 fi
891
892 case $ac_option in
893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *=) ac_optarg= ;;
895 *) ac_optarg=yes ;;
896 esac
897
898 # Accept the important Cygnus configure options, so we can diagnose typos.
899
900 case $ac_dashdash$ac_option in
901 --)
902 ac_dashdash=yes ;;
903
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 ac_prev=bindir ;;
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 bindir=$ac_optarg ;;
908
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
913
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
920
921 --config-cache | -C)
922 cache_file=config.cache ;;
923
924 -datadir | --datadir | --datadi | --datad)
925 ac_prev=datadir ;;
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
928
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
935
936 -disable-* | --disable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=no ;;
951
952 -docdir | --docdir | --docdi | --doc | --do)
953 ac_prev=docdir ;;
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 docdir=$ac_optarg ;;
956
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 ac_prev=dvidir ;;
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 dvidir=$ac_optarg ;;
961
962 -enable-* | --enable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971 "enable_$ac_useropt"
972 "*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=\$ac_optarg ;;
977
978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980 | --exec | --exe | --ex)
981 ac_prev=exec_prefix ;;
982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984 | --exec=* | --exe=* | --ex=*)
985 exec_prefix=$ac_optarg ;;
986
987 -gas | --gas | --ga | --g)
988 # Obsolete; use --with-gas.
989 with_gas=yes ;;
990
991 -help | --help | --hel | --he | -h)
992 ac_init_help=long ;;
993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994 ac_init_help=recursive ;;
995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996 ac_init_help=short ;;
997
998 -host | --host | --hos | --ho)
999 ac_prev=host_alias ;;
1000 -host=* | --host=* | --hos=* | --ho=*)
1001 host_alias=$ac_optarg ;;
1002
1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 ac_prev=htmldir ;;
1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 | --ht=*)
1007 htmldir=$ac_optarg ;;
1008
1009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
1014 includedir=$ac_optarg ;;
1015
1016 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 ac_prev=infodir ;;
1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019 infodir=$ac_optarg ;;
1020
1021 -libdir | --libdir | --libdi | --libd)
1022 ac_prev=libdir ;;
1023 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024 libdir=$ac_optarg ;;
1025
1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027 | --libexe | --libex | --libe)
1028 ac_prev=libexecdir ;;
1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030 | --libexe=* | --libex=* | --libe=*)
1031 libexecdir=$ac_optarg ;;
1032
1033 -localedir | --localedir | --localedi | --localed | --locale)
1034 ac_prev=localedir ;;
1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036 localedir=$ac_optarg ;;
1037
1038 -localstatedir | --localstatedir | --localstatedi | --localstated \
1039 | --localstate | --localstat | --localsta | --localst | --locals)
1040 ac_prev=localstatedir ;;
1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043 localstatedir=$ac_optarg ;;
1044
1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 ac_prev=mandir ;;
1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048 mandir=$ac_optarg ;;
1049
1050 -nfp | --nfp | --nf)
1051 # Obsolete; use --without-fp.
1052 with_fp=no ;;
1053
1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055 | --no-cr | --no-c | -n)
1056 no_create=yes ;;
1057
1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 no_recursion=yes ;;
1061
1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064 | --oldin | --oldi | --old | --ol | --o)
1065 ac_prev=oldincludedir ;;
1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069 oldincludedir=$ac_optarg ;;
1070
1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 ac_prev=prefix ;;
1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074 prefix=$ac_optarg ;;
1075
1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077 | --program-pre | --program-pr | --program-p)
1078 ac_prev=program_prefix ;;
1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081 program_prefix=$ac_optarg ;;
1082
1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084 | --program-suf | --program-su | --program-s)
1085 ac_prev=program_suffix ;;
1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088 program_suffix=$ac_optarg ;;
1089
1090 -program-transform-name | --program-transform-name \
1091 | --program-transform-nam | --program-transform-na \
1092 | --program-transform-n | --program-transform- \
1093 | --program-transform | --program-transfor \
1094 | --program-transfo | --program-transf \
1095 | --program-trans | --program-tran \
1096 | --progr-tra | --program-tr | --program-t)
1097 ac_prev=program_transform_name ;;
1098 -program-transform-name=* | --program-transform-name=* \
1099 | --program-transform-nam=* | --program-transform-na=* \
1100 | --program-transform-n=* | --program-transform-=* \
1101 | --program-transform=* | --program-transfor=* \
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
1105 program_transform_name=$ac_optarg ;;
1106
1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 ac_prev=pdfdir ;;
1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110 pdfdir=$ac_optarg ;;
1111
1112 -psdir | --psdir | --psdi | --psd | --ps)
1113 ac_prev=psdir ;;
1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 psdir=$ac_optarg ;;
1116
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1119 silent=yes ;;
1120
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1126
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1137
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1142
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1147
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1154
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1159
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1162
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1165
1166 -with-* | --with-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1181
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
1197
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1201
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1208
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1215
1216 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217 Try \`$0 --help' for more information"
1218 ;;
1219
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1226 esac
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1229
1230 *)
1231 # FIXME: should be removed in autoconf 3.0.
1232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 ;;
1237
1238 esac
1239 done
1240
1241 if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error $? "missing argument to $ac_option"
1244 fi
1245
1246 if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1252 fi
1253
1254 # Check all directory arguments for consistency.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1259 do
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1274
1275 # There might be people who depend on the old broken behavior: `$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1281
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289 fi
1290
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294 test "$silent" = yes && exec 6>/dev/null
1295
1296
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error $? "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error $? "pwd does not report name of working directory"
1303
1304
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 $as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1335 fi
1336 else
1337 ac_srcdir_defaulted=no
1338 fi
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1342 fi
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350 fi
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1363
1364 #
1365 # Report the --help message.
1366 #
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371 \`configure' configures libctf 1.2.0 to adapt to many kinds of systems.
1372
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378 Defaults for the options are specified in brackets.
1379
1380 Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking ...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1396
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1401
1402 For better control, use the options below.
1403
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/libctf]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1425
1426 cat <<\_ACEOF
1427
1428 Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432
1433 System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 --target=TARGET configure for building compilers for TARGET [HOST]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of libctf 1.2.0:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-dependency-tracking
1451 do not reject slow dependency extractors
1452 --disable-dependency-tracking
1453 speeds up one-time build
1454 --enable-silent-rules less verbose build output (undo: "make V=1")
1455 --disable-silent-rules verbose build output (undo: "make V=0")
1456 --enable-shared[=PKGS] build shared libraries [default=no]
1457 --enable-static[=PKGS] build static libraries [default=yes]
1458 --enable-fast-install[=PKGS]
1459 optimize for fast installation [default=yes]
1460 --disable-libtool-lock avoid locking (might break parallel builds)
1461 --disable-largefile omit support for large files
1462 --enable-werror-always enable -Werror despite compiler version
1463 --enable-maintainer-mode
1464 enable make rules and dependencies not useful (and
1465 sometimes confusing) to the casual installer
1466 --enable-install-libbfd controls installation of libbfd and related headers
1467 --enable-libctf-hash-debugging
1468 Enable expensive debugging of CTF deduplication type
1469 hashing [default=no]
1470
1471 Optional Packages:
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-pic try to use only PIC/non-PIC objects [default=use
1475 both]
1476 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1477 --with-system-zlib use installed libz
1478 --with-zstd support zstd compressed debug sections
1479 (default=auto)
1480
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 LIBS libraries to pass to the linker, e.g. -l<library>
1487 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1488 you have headers in a nonstandard directory <include dir>
1489 CPP C preprocessor
1490 PKG_CONFIG path to pkg-config utility
1491 PKG_CONFIG_PATH
1492 directories to add to pkg-config's search path
1493 PKG_CONFIG_LIBDIR
1494 path overriding pkg-config's built-in search path
1495 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1496 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1497
1498 Use these variables to override the choices made by `configure' or to help
1499 it to find libraries and programs with nonstandard names/locations.
1500
1501 Report bugs to the package provider.
1502 _ACEOF
1503 ac_status=$?
1504 fi
1505
1506 if test "$ac_init_help" = "recursive"; then
1507 # If there are subdirs, report their specific --help.
1508 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1509 test -d "$ac_dir" ||
1510 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1511 continue
1512 ac_builddir=.
1513
1514 case "$ac_dir" in
1515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *)
1517 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1518 # A ".." for each directory in $ac_dir_suffix.
1519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1520 case $ac_top_builddir_sub in
1521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523 esac ;;
1524 esac
1525 ac_abs_top_builddir=$ac_pwd
1526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527 # for backward compatibility:
1528 ac_top_builddir=$ac_top_build_prefix
1529
1530 case $srcdir in
1531 .) # We are building in place.
1532 ac_srcdir=.
1533 ac_top_srcdir=$ac_top_builddir_sub
1534 ac_abs_top_srcdir=$ac_pwd ;;
1535 [\\/]* | ?:[\\/]* ) # Absolute name.
1536 ac_srcdir=$srcdir$ac_dir_suffix;
1537 ac_top_srcdir=$srcdir
1538 ac_abs_top_srcdir=$srcdir ;;
1539 *) # Relative name.
1540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541 ac_top_srcdir=$ac_top_build_prefix$srcdir
1542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543 esac
1544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545
1546 cd "$ac_dir" || { ac_status=$?; continue; }
1547 # Check for guested configure.
1548 if test -f "$ac_srcdir/configure.gnu"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551 elif test -f "$ac_srcdir/configure"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure" --help=recursive
1554 else
1555 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 fi || ac_status=$?
1557 cd "$ac_pwd" || { ac_status=$?; break; }
1558 done
1559 fi
1560
1561 test -n "$ac_init_help" && exit $ac_status
1562 if $ac_init_version; then
1563 cat <<\_ACEOF
1564 libctf configure 1.2.0
1565 generated by GNU Autoconf 2.69
1566
1567 Copyright (C) 2012 Free Software Foundation, Inc.
1568 This configure script is free software; the Free Software Foundation
1569 gives unlimited permission to copy, distribute and modify it.
1570 _ACEOF
1571 exit
1572 fi
1573
1574 ## ------------------------ ##
1575 ## Autoconf initialization. ##
1576 ## ------------------------ ##
1577
1578 # ac_fn_c_try_compile LINENO
1579 # --------------------------
1580 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1581 ac_fn_c_try_compile ()
1582 {
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 rm -f conftest.$ac_objext
1585 if { { ac_try="$ac_compile"
1586 case "(($ac_try" in
1587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588 *) ac_try_echo=$ac_try;;
1589 esac
1590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591 $as_echo "$ac_try_echo"; } >&5
1592 (eval "$ac_compile") 2>conftest.err
1593 ac_status=$?
1594 if test -s conftest.err; then
1595 grep -v '^ *+' conftest.err >conftest.er1
1596 cat conftest.er1 >&5
1597 mv -f conftest.er1 conftest.err
1598 fi
1599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600 test $ac_status = 0; } && {
1601 test -z "$ac_c_werror_flag" ||
1602 test ! -s conftest.err
1603 } && test -s conftest.$ac_objext; then :
1604 ac_retval=0
1605 else
1606 $as_echo "$as_me: failed program was:" >&5
1607 sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=1
1610 fi
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612 as_fn_set_status $ac_retval
1613
1614 } # ac_fn_c_try_compile
1615
1616 # ac_fn_c_try_cpp LINENO
1617 # ----------------------
1618 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_try_cpp ()
1620 {
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if { { ac_try="$ac_cpp conftest.$ac_ext"
1623 case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } > conftest.i && {
1638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 }; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1645
1646 ac_retval=1
1647 fi
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1650
1651 } # ac_fn_c_try_cpp
1652
1653 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1654 # -------------------------------------------------------
1655 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1656 # the include files in INCLUDES and setting the cache variable VAR
1657 # accordingly.
1658 ac_fn_c_check_header_mongrel ()
1659 {
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 if eval \${$3+:} false; then :
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1663 $as_echo_n "checking for $2... " >&6; }
1664 if eval \${$3+:} false; then :
1665 $as_echo_n "(cached) " >&6
1666 fi
1667 eval ac_res=\$$3
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1669 $as_echo "$ac_res" >&6; }
1670 else
1671 # Is the header compilable?
1672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1673 $as_echo_n "checking $2 usability... " >&6; }
1674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1675 /* end confdefs.h. */
1676 $4
1677 #include <$2>
1678 _ACEOF
1679 if ac_fn_c_try_compile "$LINENO"; then :
1680 ac_header_compiler=yes
1681 else
1682 ac_header_compiler=no
1683 fi
1684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1686 $as_echo "$ac_header_compiler" >&6; }
1687
1688 # Is the header present?
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1690 $as_echo_n "checking $2 presence... " >&6; }
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h. */
1693 #include <$2>
1694 _ACEOF
1695 if ac_fn_c_try_cpp "$LINENO"; then :
1696 ac_header_preproc=yes
1697 else
1698 ac_header_preproc=no
1699 fi
1700 rm -f conftest.err conftest.i conftest.$ac_ext
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1702 $as_echo "$ac_header_preproc" >&6; }
1703
1704 # So? What about this header?
1705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1706 yes:no: )
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1708 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1710 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1711 ;;
1712 no:yes:* )
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1714 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1716 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1718 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1720 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1723 ;;
1724 esac
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if eval \${$3+:} false; then :
1728 $as_echo_n "(cached) " >&6
1729 else
1730 eval "$3=\$ac_header_compiler"
1731 fi
1732 eval ac_res=\$$3
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734 $as_echo "$ac_res" >&6; }
1735 fi
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737
1738 } # ac_fn_c_check_header_mongrel
1739
1740 # ac_fn_c_try_run LINENO
1741 # ----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1743 # that executables *can* be run.
1744 ac_fn_c_try_run ()
1745 {
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 if { { ac_try="$ac_link"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>&5
1755 ac_status=$?
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1758 { { case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_try") 2>&5
1765 ac_status=$?
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; }; }; then :
1768 ac_retval=0
1769 else
1770 $as_echo "$as_me: program exited with status $ac_status" >&5
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1773
1774 ac_retval=$ac_status
1775 fi
1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1779
1780 } # ac_fn_c_try_run
1781
1782 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1783 # -------------------------------------------------------
1784 # Tests whether HEADER exists and can be compiled using the include files in
1785 # INCLUDES, setting the cache variable VAR accordingly.
1786 ac_fn_c_check_header_compile ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790 $as_echo_n "checking for $2... " >&6; }
1791 if eval \${$3+:} false; then :
1792 $as_echo_n "(cached) " >&6
1793 else
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 $4
1797 #include <$2>
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800 eval "$3=yes"
1801 else
1802 eval "$3=no"
1803 fi
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1805 fi
1806 eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810
1811 } # ac_fn_c_check_header_compile
1812
1813 # ac_fn_c_try_link LINENO
1814 # -----------------------
1815 # Try to link conftest.$ac_ext, and return whether this succeeded.
1816 ac_fn_c_try_link ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 rm -f conftest.$ac_objext conftest$ac_exeext
1820 if { { ac_try="$ac_link"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_link") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1833 fi
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_c_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest$ac_exeext && {
1839 test "$cross_compiling" = yes ||
1840 test -x conftest$ac_exeext
1841 }; then :
1842 ac_retval=0
1843 else
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1846
1847 ac_retval=1
1848 fi
1849 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1850 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1851 # interfere with the next link command; also delete a directory that is
1852 # left behind by Apple's compiler. We do this before executing the actions.
1853 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1856
1857 } # ac_fn_c_try_link
1858
1859 # ac_fn_c_check_func LINENO FUNC VAR
1860 # ----------------------------------
1861 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1862 ac_fn_c_check_func ()
1863 {
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if eval \${$3+:} false; then :
1868 $as_echo_n "(cached) " >&6
1869 else
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1872 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1874 #define $2 innocuous_$2
1875
1876 /* System header to define __stub macros and hopefully few prototypes,
1877 which can conflict with char $2 (); below.
1878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1879 <limits.h> exists even on freestanding compilers. */
1880
1881 #ifdef __STDC__
1882 # include <limits.h>
1883 #else
1884 # include <assert.h>
1885 #endif
1886
1887 #undef $2
1888
1889 /* Override any GCC internal prototype to avoid an error.
1890 Use char because int might match the return type of a GCC
1891 builtin and then its argument prototype would still apply. */
1892 #ifdef __cplusplus
1893 extern "C"
1894 #endif
1895 char $2 ();
1896 /* The GNU C library defines this for functions which it implements
1897 to always fail with ENOSYS. Some functions are actually named
1898 something starting with __ and the normal name is an alias. */
1899 #if defined __stub_$2 || defined __stub___$2
1900 choke me
1901 #endif
1902
1903 int
1904 main ()
1905 {
1906 return $2 ();
1907 ;
1908 return 0;
1909 }
1910 _ACEOF
1911 if ac_fn_c_try_link "$LINENO"; then :
1912 eval "$3=yes"
1913 else
1914 eval "$3=no"
1915 fi
1916 rm -f core conftest.err conftest.$ac_objext \
1917 conftest$ac_exeext conftest.$ac_ext
1918 fi
1919 eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923
1924 } # ac_fn_c_check_func
1925
1926 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1927 # ---------------------------------------------
1928 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1929 # accordingly.
1930 ac_fn_c_check_decl ()
1931 {
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 as_decl_name=`echo $2|sed 's/ *(.*//'`
1934 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1936 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1937 if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1939 else
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 $4
1943 int
1944 main ()
1945 {
1946 #ifndef $as_decl_name
1947 #ifdef __cplusplus
1948 (void) $as_decl_use;
1949 #else
1950 (void) $as_decl_name;
1951 #endif
1952 #endif
1953
1954 ;
1955 return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"; then :
1959 eval "$3=yes"
1960 else
1961 eval "$3=no"
1962 fi
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964 fi
1965 eval ac_res=\$$3
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969
1970 } # ac_fn_c_check_decl
1971 cat >config.log <<_ACEOF
1972 This file contains any messages produced by compilers while
1973 running configure, to aid debugging if configure makes a mistake.
1974
1975 It was created by libctf $as_me 1.2.0, which was
1976 generated by GNU Autoconf 2.69. Invocation command line was
1977
1978 $ $0 $@
1979
1980 _ACEOF
1981 exec 5>>config.log
1982 {
1983 cat <<_ASUNAME
1984 ## --------- ##
1985 ## Platform. ##
1986 ## --------- ##
1987
1988 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1989 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1990 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1991 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1992 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1993
1994 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1995 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1996
1997 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1998 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1999 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2000 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2001 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2002 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2003 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2004
2005 _ASUNAME
2006
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2009 do
2010 IFS=$as_save_IFS
2011 test -z "$as_dir" && as_dir=.
2012 $as_echo "PATH: $as_dir"
2013 done
2014 IFS=$as_save_IFS
2015
2016 } >&5
2017
2018 cat >&5 <<_ACEOF
2019
2020
2021 ## ----------- ##
2022 ## Core tests. ##
2023 ## ----------- ##
2024
2025 _ACEOF
2026
2027
2028 # Keep a trace of the command line.
2029 # Strip out --no-create and --no-recursion so they do not pile up.
2030 # Strip out --silent because we don't want to record it for future runs.
2031 # Also quote any args containing shell meta-characters.
2032 # Make two passes to allow for proper duplicate-argument suppression.
2033 ac_configure_args=
2034 ac_configure_args0=
2035 ac_configure_args1=
2036 ac_must_keep_next=false
2037 for ac_pass in 1 2
2038 do
2039 for ac_arg
2040 do
2041 case $ac_arg in
2042 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2044 | -silent | --silent | --silen | --sile | --sil)
2045 continue ;;
2046 *\'*)
2047 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2048 esac
2049 case $ac_pass in
2050 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2051 2)
2052 as_fn_append ac_configure_args1 " '$ac_arg'"
2053 if test $ac_must_keep_next = true; then
2054 ac_must_keep_next=false # Got value, back to normal.
2055 else
2056 case $ac_arg in
2057 *=* | --config-cache | -C | -disable-* | --disable-* \
2058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2060 | -with-* | --with-* | -without-* | --without-* | --x)
2061 case "$ac_configure_args0 " in
2062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2063 esac
2064 ;;
2065 -* ) ac_must_keep_next=true ;;
2066 esac
2067 fi
2068 as_fn_append ac_configure_args " '$ac_arg'"
2069 ;;
2070 esac
2071 done
2072 done
2073 { ac_configure_args0=; unset ac_configure_args0;}
2074 { ac_configure_args1=; unset ac_configure_args1;}
2075
2076 # When interrupted or exit'd, cleanup temporary files, and complete
2077 # config.log. We remove comments because anyway the quotes in there
2078 # would cause problems or look ugly.
2079 # WARNING: Use '\'' to represent an apostrophe within the trap.
2080 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2081 trap 'exit_status=$?
2082 # Save into config.log some information that might help in debugging.
2083 {
2084 echo
2085
2086 $as_echo "## ---------------- ##
2087 ## Cache variables. ##
2088 ## ---------------- ##"
2089 echo
2090 # The following way of writing the cache mishandles newlines in values,
2091 (
2092 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2093 eval ac_val=\$$ac_var
2094 case $ac_val in #(
2095 *${as_nl}*)
2096 case $ac_var in #(
2097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2098 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2099 esac
2100 case $ac_var in #(
2101 _ | IFS | as_nl) ;; #(
2102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2103 *) { eval $ac_var=; unset $ac_var;} ;;
2104 esac ;;
2105 esac
2106 done
2107 (set) 2>&1 |
2108 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2109 *${as_nl}ac_space=\ *)
2110 sed -n \
2111 "s/'\''/'\''\\\\'\'''\''/g;
2112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2113 ;; #(
2114 *)
2115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2116 ;;
2117 esac |
2118 sort
2119 )
2120 echo
2121
2122 $as_echo "## ----------------- ##
2123 ## Output variables. ##
2124 ## ----------------- ##"
2125 echo
2126 for ac_var in $ac_subst_vars
2127 do
2128 eval ac_val=\$$ac_var
2129 case $ac_val in
2130 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 esac
2132 $as_echo "$ac_var='\''$ac_val'\''"
2133 done | sort
2134 echo
2135
2136 if test -n "$ac_subst_files"; then
2137 $as_echo "## ------------------- ##
2138 ## File substitutions. ##
2139 ## ------------------- ##"
2140 echo
2141 for ac_var in $ac_subst_files
2142 do
2143 eval ac_val=\$$ac_var
2144 case $ac_val in
2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 esac
2147 $as_echo "$ac_var='\''$ac_val'\''"
2148 done | sort
2149 echo
2150 fi
2151
2152 if test -s confdefs.h; then
2153 $as_echo "## ----------- ##
2154 ## confdefs.h. ##
2155 ## ----------- ##"
2156 echo
2157 cat confdefs.h
2158 echo
2159 fi
2160 test "$ac_signal" != 0 &&
2161 $as_echo "$as_me: caught signal $ac_signal"
2162 $as_echo "$as_me: exit $exit_status"
2163 } >&5
2164 rm -f core *.core core.conftest.* &&
2165 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2166 exit $exit_status
2167 ' 0
2168 for ac_signal in 1 2 13 15; do
2169 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2170 done
2171 ac_signal=0
2172
2173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2174 rm -f -r conftest* confdefs.h
2175
2176 $as_echo "/* confdefs.h */" > confdefs.h
2177
2178 # Predefined preprocessor variables.
2179
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_NAME "$PACKAGE_NAME"
2182 _ACEOF
2183
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2186 _ACEOF
2187
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2190 _ACEOF
2191
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_STRING "$PACKAGE_STRING"
2194 _ACEOF
2195
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2198 _ACEOF
2199
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_URL "$PACKAGE_URL"
2202 _ACEOF
2203
2204
2205 # Let the site file select an alternate cache file if it wants to.
2206 # Prefer an explicitly selected file to automatically selected ones.
2207 ac_site_file1=NONE
2208 ac_site_file2=NONE
2209 if test -n "$CONFIG_SITE"; then
2210 # We do not want a PATH search for config.site.
2211 case $CONFIG_SITE in #((
2212 -*) ac_site_file1=./$CONFIG_SITE;;
2213 */*) ac_site_file1=$CONFIG_SITE;;
2214 *) ac_site_file1=./$CONFIG_SITE;;
2215 esac
2216 elif test "x$prefix" != xNONE; then
2217 ac_site_file1=$prefix/share/config.site
2218 ac_site_file2=$prefix/etc/config.site
2219 else
2220 ac_site_file1=$ac_default_prefix/share/config.site
2221 ac_site_file2=$ac_default_prefix/etc/config.site
2222 fi
2223 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2224 do
2225 test "x$ac_site_file" = xNONE && continue
2226 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2228 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2229 sed 's/^/| /' "$ac_site_file" >&5
2230 . "$ac_site_file" \
2231 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2233 as_fn_error $? "failed to load site script $ac_site_file
2234 See \`config.log' for more details" "$LINENO" 5; }
2235 fi
2236 done
2237
2238 if test -r "$cache_file"; then
2239 # Some versions of bash will fail to source /dev/null (special files
2240 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2241 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2243 $as_echo "$as_me: loading cache $cache_file" >&6;}
2244 case $cache_file in
2245 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2246 *) . "./$cache_file";;
2247 esac
2248 fi
2249 else
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2251 $as_echo "$as_me: creating cache $cache_file" >&6;}
2252 >$cache_file
2253 fi
2254
2255 as_fn_append ac_header_list " stdlib.h"
2256 as_fn_append ac_header_list " unistd.h"
2257 as_fn_append ac_header_list " sys/param.h"
2258 as_fn_append ac_func_list " qsort_r"
2259 # Check that the precious variables saved in the cache have kept the same
2260 # value.
2261 ac_cache_corrupted=false
2262 for ac_var in $ac_precious_vars; do
2263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2264 eval ac_new_set=\$ac_env_${ac_var}_set
2265 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2266 eval ac_new_val=\$ac_env_${ac_var}_value
2267 case $ac_old_set,$ac_new_set in
2268 set,)
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2270 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2272 ,set)
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2274 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2275 ac_cache_corrupted=: ;;
2276 ,);;
2277 *)
2278 if test "x$ac_old_val" != "x$ac_new_val"; then
2279 # differences in whitespace do not lead to failure.
2280 ac_old_val_w=`echo x $ac_old_val`
2281 ac_new_val_w=`echo x $ac_new_val`
2282 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2284 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2285 ac_cache_corrupted=:
2286 else
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2288 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2289 eval $ac_var=\$ac_old_val
2290 fi
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2292 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2294 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2295 fi;;
2296 esac
2297 # Pass precious variables to config.status.
2298 if test "$ac_new_set" = set; then
2299 case $ac_new_val in
2300 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2301 *) ac_arg=$ac_var=$ac_new_val ;;
2302 esac
2303 case " $ac_configure_args " in
2304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2305 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2306 esac
2307 fi
2308 done
2309 if $ac_cache_corrupted; then
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2313 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2314 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2315 fi
2316 ## -------------------- ##
2317 ## Main body of script. ##
2318 ## -------------------- ##
2319
2320 ac_ext=c
2321 ac_cpp='$CPP $CPPFLAGS'
2322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334 ac_aux_dir=
2335 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2336 if test -f "$ac_dir/install-sh"; then
2337 ac_aux_dir=$ac_dir
2338 ac_install_sh="$ac_aux_dir/install-sh -c"
2339 break
2340 elif test -f "$ac_dir/install.sh"; then
2341 ac_aux_dir=$ac_dir
2342 ac_install_sh="$ac_aux_dir/install.sh -c"
2343 break
2344 elif test -f "$ac_dir/shtool"; then
2345 ac_aux_dir=$ac_dir
2346 ac_install_sh="$ac_aux_dir/shtool install -c"
2347 break
2348 fi
2349 done
2350 if test -z "$ac_aux_dir"; then
2351 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2352 fi
2353
2354 # These three variables are undocumented and unsupported,
2355 # and are intended to be withdrawn in a future Autoconf release.
2356 # They can cause serious problems if a builder's source tree is in a directory
2357 # whose full name contains unusual characters.
2358 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2359 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2360 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2361
2362
2363 # Make sure we can run config.sub.
2364 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2365 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2366
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2368 $as_echo_n "checking build system type... " >&6; }
2369 if ${ac_cv_build+:} false; then :
2370 $as_echo_n "(cached) " >&6
2371 else
2372 ac_build_alias=$build_alias
2373 test "x$ac_build_alias" = x &&
2374 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2375 test "x$ac_build_alias" = x &&
2376 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2377 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2378 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2379
2380 fi
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2382 $as_echo "$ac_cv_build" >&6; }
2383 case $ac_cv_build in
2384 *-*-*) ;;
2385 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2386 esac
2387 build=$ac_cv_build
2388 ac_save_IFS=$IFS; IFS='-'
2389 set x $ac_cv_build
2390 shift
2391 build_cpu=$1
2392 build_vendor=$2
2393 shift; shift
2394 # Remember, the first character of IFS is used to create $*,
2395 # except with old shells:
2396 build_os=$*
2397 IFS=$ac_save_IFS
2398 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2399
2400
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2402 $as_echo_n "checking host system type... " >&6; }
2403 if ${ac_cv_host+:} false; then :
2404 $as_echo_n "(cached) " >&6
2405 else
2406 if test "x$host_alias" = x; then
2407 ac_cv_host=$ac_cv_build
2408 else
2409 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2410 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2411 fi
2412
2413 fi
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2415 $as_echo "$ac_cv_host" >&6; }
2416 case $ac_cv_host in
2417 *-*-*) ;;
2418 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2419 esac
2420 host=$ac_cv_host
2421 ac_save_IFS=$IFS; IFS='-'
2422 set x $ac_cv_host
2423 shift
2424 host_cpu=$1
2425 host_vendor=$2
2426 shift; shift
2427 # Remember, the first character of IFS is used to create $*,
2428 # except with old shells:
2429 host_os=$*
2430 IFS=$ac_save_IFS
2431 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2432
2433
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2435 $as_echo_n "checking target system type... " >&6; }
2436 if ${ac_cv_target+:} false; then :
2437 $as_echo_n "(cached) " >&6
2438 else
2439 if test "x$target_alias" = x; then
2440 ac_cv_target=$ac_cv_host
2441 else
2442 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2443 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2444 fi
2445
2446 fi
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2448 $as_echo "$ac_cv_target" >&6; }
2449 case $ac_cv_target in
2450 *-*-*) ;;
2451 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2452 esac
2453 target=$ac_cv_target
2454 ac_save_IFS=$IFS; IFS='-'
2455 set x $ac_cv_target
2456 shift
2457 target_cpu=$1
2458 target_vendor=$2
2459 shift; shift
2460 # Remember, the first character of IFS is used to create $*,
2461 # except with old shells:
2462 target_os=$*
2463 IFS=$ac_save_IFS
2464 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2465
2466
2467 # The aliases save the names the user supplied, while $host etc.
2468 # will get canonicalized.
2469 test -n "$target_alias" &&
2470 test "$program_prefix$program_suffix$program_transform_name" = \
2471 NONENONEs,x,x, &&
2472 program_prefix=${target_alias}-
2473 # Expand $ac_aux_dir to an absolute path.
2474 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2475
2476 ac_ext=c
2477 ac_cpp='$CPP $CPPFLAGS'
2478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481 if test -n "$ac_tool_prefix"; then
2482 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2483 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485 $as_echo_n "checking for $ac_word... " >&6; }
2486 if ${ac_cv_prog_CC+:} false; then :
2487 $as_echo_n "(cached) " >&6
2488 else
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2491 else
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2493 for as_dir in $PATH
2494 do
2495 IFS=$as_save_IFS
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 break 2
2502 fi
2503 done
2504 done
2505 IFS=$as_save_IFS
2506
2507 fi
2508 fi
2509 CC=$ac_cv_prog_CC
2510 if test -n "$CC"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2512 $as_echo "$CC" >&6; }
2513 else
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515 $as_echo "no" >&6; }
2516 fi
2517
2518
2519 fi
2520 if test -z "$ac_cv_prog_CC"; then
2521 ac_ct_CC=$CC
2522 # Extract the first word of "gcc", so it can be a program name with args.
2523 set dummy gcc; ac_word=$2
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525 $as_echo_n "checking for $ac_word... " >&6; }
2526 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 if test -n "$ac_ct_CC"; then
2530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2531 else
2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533 for as_dir in $PATH
2534 do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539 ac_cv_prog_ac_ct_CC="gcc"
2540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2542 fi
2543 done
2544 done
2545 IFS=$as_save_IFS
2546
2547 fi
2548 fi
2549 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2550 if test -n "$ac_ct_CC"; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2552 $as_echo "$ac_ct_CC" >&6; }
2553 else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555 $as_echo "no" >&6; }
2556 fi
2557
2558 if test "x$ac_ct_CC" = x; then
2559 CC=""
2560 else
2561 case $cross_compiling:$ac_tool_warned in
2562 yes:)
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2565 ac_tool_warned=yes ;;
2566 esac
2567 CC=$ac_ct_CC
2568 fi
2569 else
2570 CC="$ac_cv_prog_CC"
2571 fi
2572
2573 if test -z "$CC"; then
2574 if test -n "$ac_tool_prefix"; then
2575 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2576 set dummy ${ac_tool_prefix}cc; ac_word=$2
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2578 $as_echo_n "checking for $ac_word... " >&6; }
2579 if ${ac_cv_prog_CC+:} false; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 if test -n "$CC"; then
2583 ac_cv_prog_CC="$CC" # Let the user override the test.
2584 else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2587 do
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2592 ac_cv_prog_CC="${ac_tool_prefix}cc"
2593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 break 2
2595 fi
2596 done
2597 done
2598 IFS=$as_save_IFS
2599
2600 fi
2601 fi
2602 CC=$ac_cv_prog_CC
2603 if test -n "$CC"; then
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2605 $as_echo "$CC" >&6; }
2606 else
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608 $as_echo "no" >&6; }
2609 fi
2610
2611
2612 fi
2613 fi
2614 if test -z "$CC"; then
2615 # Extract the first word of "cc", so it can be a program name with args.
2616 set dummy cc; ac_word=$2
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618 $as_echo_n "checking for $ac_word... " >&6; }
2619 if ${ac_cv_prog_CC+:} false; then :
2620 $as_echo_n "(cached) " >&6
2621 else
2622 if test -n "$CC"; then
2623 ac_cv_prog_CC="$CC" # Let the user override the test.
2624 else
2625 ac_prog_rejected=no
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2633 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2634 ac_prog_rejected=yes
2635 continue
2636 fi
2637 ac_cv_prog_CC="cc"
2638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 break 2
2640 fi
2641 done
2642 done
2643 IFS=$as_save_IFS
2644
2645 if test $ac_prog_rejected = yes; then
2646 # We found a bogon in the path, so make sure we never use it.
2647 set dummy $ac_cv_prog_CC
2648 shift
2649 if test $# != 0; then
2650 # We chose a different compiler from the bogus one.
2651 # However, it has the same basename, so the bogon will be chosen
2652 # first if we set CC to just the basename; use the full file name.
2653 shift
2654 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2655 fi
2656 fi
2657 fi
2658 fi
2659 CC=$ac_cv_prog_CC
2660 if test -n "$CC"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2662 $as_echo "$CC" >&6; }
2663 else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2665 $as_echo "no" >&6; }
2666 fi
2667
2668
2669 fi
2670 if test -z "$CC"; then
2671 if test -n "$ac_tool_prefix"; then
2672 for ac_prog in cl.exe
2673 do
2674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if ${ac_cv_prog_CC+:} false; then :
2679 $as_echo_n "(cached) " >&6
2680 else
2681 if test -n "$CC"; then
2682 ac_cv_prog_CC="$CC" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687 IFS=$as_save_IFS
2688 test -z "$as_dir" && as_dir=.
2689 for ac_exec_ext in '' $ac_executable_extensions; do
2690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2691 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693 break 2
2694 fi
2695 done
2696 done
2697 IFS=$as_save_IFS
2698
2699 fi
2700 fi
2701 CC=$ac_cv_prog_CC
2702 if test -n "$CC"; then
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2704 $as_echo "$CC" >&6; }
2705 else
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2708 fi
2709
2710
2711 test -n "$CC" && break
2712 done
2713 fi
2714 if test -z "$CC"; then
2715 ac_ct_CC=$CC
2716 for ac_prog in cl.exe
2717 do
2718 # Extract the first word of "$ac_prog", so it can be a program name with args.
2719 set dummy $ac_prog; ac_word=$2
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721 $as_echo_n "checking for $ac_word... " >&6; }
2722 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2723 $as_echo_n "(cached) " >&6
2724 else
2725 if test -n "$ac_ct_CC"; then
2726 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2727 else
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729 for as_dir in $PATH
2730 do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2735 ac_cv_prog_ac_ct_CC="$ac_prog"
2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 break 2
2738 fi
2739 done
2740 done
2741 IFS=$as_save_IFS
2742
2743 fi
2744 fi
2745 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2746 if test -n "$ac_ct_CC"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2748 $as_echo "$ac_ct_CC" >&6; }
2749 else
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751 $as_echo "no" >&6; }
2752 fi
2753
2754
2755 test -n "$ac_ct_CC" && break
2756 done
2757
2758 if test "x$ac_ct_CC" = x; then
2759 CC=""
2760 else
2761 case $cross_compiling:$ac_tool_warned in
2762 yes:)
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2765 ac_tool_warned=yes ;;
2766 esac
2767 CC=$ac_ct_CC
2768 fi
2769 fi
2770
2771 fi
2772
2773
2774 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2776 as_fn_error $? "no acceptable C compiler found in \$PATH
2777 See \`config.log' for more details" "$LINENO" 5; }
2778
2779 # Provide some information about the compiler.
2780 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2781 set X $ac_compile
2782 ac_compiler=$2
2783 for ac_option in --version -v -V -qversion; do
2784 { { ac_try="$ac_compiler $ac_option >&5"
2785 case "(($ac_try" in
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2788 esac
2789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2790 $as_echo "$ac_try_echo"; } >&5
2791 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2792 ac_status=$?
2793 if test -s conftest.err; then
2794 sed '10a\
2795 ... rest of stderr output deleted ...
2796 10q' conftest.err >conftest.er1
2797 cat conftest.er1 >&5
2798 fi
2799 rm -f conftest.er1 conftest.err
2800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2801 test $ac_status = 0; }
2802 done
2803
2804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2805 /* end confdefs.h. */
2806
2807 int
2808 main ()
2809 {
2810
2811 ;
2812 return 0;
2813 }
2814 _ACEOF
2815 ac_clean_files_save=$ac_clean_files
2816 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2817 # Try to create an executable without -o first, disregard a.out.
2818 # It will help us diagnose broken compilers, and finding out an intuition
2819 # of exeext.
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2821 $as_echo_n "checking whether the C compiler works... " >&6; }
2822 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2823
2824 # The possible output files:
2825 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2826
2827 ac_rmfiles=
2828 for ac_file in $ac_files
2829 do
2830 case $ac_file in
2831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2832 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2833 esac
2834 done
2835 rm -f $ac_rmfiles
2836
2837 if { { ac_try="$ac_link_default"
2838 case "(($ac_try" in
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2841 esac
2842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2843 $as_echo "$ac_try_echo"; } >&5
2844 (eval "$ac_link_default") 2>&5
2845 ac_status=$?
2846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2847 test $ac_status = 0; }; then :
2848 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2849 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2850 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2851 # so that the user can short-circuit this test for compilers unknown to
2852 # Autoconf.
2853 for ac_file in $ac_files ''
2854 do
2855 test -f "$ac_file" || continue
2856 case $ac_file in
2857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2858 ;;
2859 [ab].out )
2860 # We found the default executable, but exeext='' is most
2861 # certainly right.
2862 break;;
2863 *.* )
2864 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2865 then :; else
2866 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2867 fi
2868 # We set ac_cv_exeext here because the later test for it is not
2869 # safe: cross compilers may not add the suffix if given an `-o'
2870 # argument, so we may need to know it at that point already.
2871 # Even if this section looks crufty: it has the advantage of
2872 # actually working.
2873 break;;
2874 * )
2875 break;;
2876 esac
2877 done
2878 test "$ac_cv_exeext" = no && ac_cv_exeext=
2879
2880 else
2881 ac_file=''
2882 fi
2883 if test -z "$ac_file"; then :
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2886 $as_echo "$as_me: failed program was:" >&5
2887 sed 's/^/| /' conftest.$ac_ext >&5
2888
2889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2891 as_fn_error 77 "C compiler cannot create executables
2892 See \`config.log' for more details" "$LINENO" 5; }
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2895 $as_echo "yes" >&6; }
2896 fi
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2898 $as_echo_n "checking for C compiler default output file name... " >&6; }
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2900 $as_echo "$ac_file" >&6; }
2901 ac_exeext=$ac_cv_exeext
2902
2903 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2904 ac_clean_files=$ac_clean_files_save
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2906 $as_echo_n "checking for suffix of executables... " >&6; }
2907 if { { ac_try="$ac_link"
2908 case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2911 esac
2912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2913 $as_echo "$ac_try_echo"; } >&5
2914 (eval "$ac_link") 2>&5
2915 ac_status=$?
2916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2917 test $ac_status = 0; }; then :
2918 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2919 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2920 # work properly (i.e., refer to `conftest.exe'), while it won't with
2921 # `rm'.
2922 for ac_file in conftest.exe conftest conftest.*; do
2923 test -f "$ac_file" || continue
2924 case $ac_file in
2925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2926 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2927 break;;
2928 * ) break;;
2929 esac
2930 done
2931 else
2932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2935 See \`config.log' for more details" "$LINENO" 5; }
2936 fi
2937 rm -f conftest conftest$ac_cv_exeext
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2939 $as_echo "$ac_cv_exeext" >&6; }
2940
2941 rm -f conftest.$ac_ext
2942 EXEEXT=$ac_cv_exeext
2943 ac_exeext=$EXEEXT
2944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2945 /* end confdefs.h. */
2946 #include <stdio.h>
2947 int
2948 main ()
2949 {
2950 FILE *f = fopen ("conftest.out", "w");
2951 return ferror (f) || fclose (f) != 0;
2952
2953 ;
2954 return 0;
2955 }
2956 _ACEOF
2957 ac_clean_files="$ac_clean_files conftest.out"
2958 # Check that the compiler produces executables we can run. If not, either
2959 # the compiler is broken, or we cross compile.
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2961 $as_echo_n "checking whether we are cross compiling... " >&6; }
2962 if test "$cross_compiling" != yes; then
2963 { { ac_try="$ac_link"
2964 case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967 esac
2968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2969 $as_echo "$ac_try_echo"; } >&5
2970 (eval "$ac_link") 2>&5
2971 ac_status=$?
2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973 test $ac_status = 0; }
2974 if { ac_try='./conftest$ac_cv_exeext'
2975 { { case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978 esac
2979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980 $as_echo "$ac_try_echo"; } >&5
2981 (eval "$ac_try") 2>&5
2982 ac_status=$?
2983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2984 test $ac_status = 0; }; }; then
2985 cross_compiling=no
2986 else
2987 if test "$cross_compiling" = maybe; then
2988 cross_compiling=yes
2989 else
2990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2992 as_fn_error $? "cannot run C compiled programs.
2993 If you meant to cross compile, use \`--host'.
2994 See \`config.log' for more details" "$LINENO" 5; }
2995 fi
2996 fi
2997 fi
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2999 $as_echo "$cross_compiling" >&6; }
3000
3001 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3002 ac_clean_files=$ac_clean_files_save
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3004 $as_echo_n "checking for suffix of object files... " >&6; }
3005 if ${ac_cv_objext+:} false; then :
3006 $as_echo_n "(cached) " >&6
3007 else
3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009 /* end confdefs.h. */
3010
3011 int
3012 main ()
3013 {
3014
3015 ;
3016 return 0;
3017 }
3018 _ACEOF
3019 rm -f conftest.o conftest.obj
3020 if { { ac_try="$ac_compile"
3021 case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024 esac
3025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026 $as_echo "$ac_try_echo"; } >&5
3027 (eval "$ac_compile") 2>&5
3028 ac_status=$?
3029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3030 test $ac_status = 0; }; then :
3031 for ac_file in conftest.o conftest.obj conftest.*; do
3032 test -f "$ac_file" || continue;
3033 case $ac_file in
3034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3035 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3036 break;;
3037 esac
3038 done
3039 else
3040 $as_echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3044 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3045 as_fn_error $? "cannot compute suffix of object files: cannot compile
3046 See \`config.log' for more details" "$LINENO" 5; }
3047 fi
3048 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3049 fi
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3051 $as_echo "$ac_cv_objext" >&6; }
3052 OBJEXT=$ac_cv_objext
3053 ac_objext=$OBJEXT
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3055 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3056 if ${ac_cv_c_compiler_gnu+:} false; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060 /* end confdefs.h. */
3061
3062 int
3063 main ()
3064 {
3065 #ifndef __GNUC__
3066 choke me
3067 #endif
3068
3069 ;
3070 return 0;
3071 }
3072 _ACEOF
3073 if ac_fn_c_try_compile "$LINENO"; then :
3074 ac_compiler_gnu=yes
3075 else
3076 ac_compiler_gnu=no
3077 fi
3078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3079 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3080
3081 fi
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3083 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3084 if test $ac_compiler_gnu = yes; then
3085 GCC=yes
3086 else
3087 GCC=
3088 fi
3089 ac_test_CFLAGS=${CFLAGS+set}
3090 ac_save_CFLAGS=$CFLAGS
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3092 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3093 if ${ac_cv_prog_cc_g+:} false; then :
3094 $as_echo_n "(cached) " >&6
3095 else
3096 ac_save_c_werror_flag=$ac_c_werror_flag
3097 ac_c_werror_flag=yes
3098 ac_cv_prog_cc_g=no
3099 CFLAGS="-g"
3100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101 /* end confdefs.h. */
3102
3103 int
3104 main ()
3105 {
3106
3107 ;
3108 return 0;
3109 }
3110 _ACEOF
3111 if ac_fn_c_try_compile "$LINENO"; then :
3112 ac_cv_prog_cc_g=yes
3113 else
3114 CFLAGS=""
3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116 /* end confdefs.h. */
3117
3118 int
3119 main ()
3120 {
3121
3122 ;
3123 return 0;
3124 }
3125 _ACEOF
3126 if ac_fn_c_try_compile "$LINENO"; then :
3127
3128 else
3129 ac_c_werror_flag=$ac_save_c_werror_flag
3130 CFLAGS="-g"
3131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3132 /* end confdefs.h. */
3133
3134 int
3135 main ()
3136 {
3137
3138 ;
3139 return 0;
3140 }
3141 _ACEOF
3142 if ac_fn_c_try_compile "$LINENO"; then :
3143 ac_cv_prog_cc_g=yes
3144 fi
3145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3146 fi
3147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148 fi
3149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150 ac_c_werror_flag=$ac_save_c_werror_flag
3151 fi
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3153 $as_echo "$ac_cv_prog_cc_g" >&6; }
3154 if test "$ac_test_CFLAGS" = set; then
3155 CFLAGS=$ac_save_CFLAGS
3156 elif test $ac_cv_prog_cc_g = yes; then
3157 if test "$GCC" = yes; then
3158 CFLAGS="-g -O2"
3159 else
3160 CFLAGS="-g"
3161 fi
3162 else
3163 if test "$GCC" = yes; then
3164 CFLAGS="-O2"
3165 else
3166 CFLAGS=
3167 fi
3168 fi
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3170 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3171 if ${ac_cv_prog_cc_c89+:} false; then :
3172 $as_echo_n "(cached) " >&6
3173 else
3174 ac_cv_prog_cc_c89=no
3175 ac_save_CC=$CC
3176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3177 /* end confdefs.h. */
3178 #include <stdarg.h>
3179 #include <stdio.h>
3180 struct stat;
3181 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3182 struct buf { int x; };
3183 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3184 static char *e (p, i)
3185 char **p;
3186 int i;
3187 {
3188 return p[i];
3189 }
3190 static char *f (char * (*g) (char **, int), char **p, ...)
3191 {
3192 char *s;
3193 va_list v;
3194 va_start (v,p);
3195 s = g (p, va_arg (v,int));
3196 va_end (v);
3197 return s;
3198 }
3199
3200 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3201 function prototypes and stuff, but not '\xHH' hex character constants.
3202 These don't provoke an error unfortunately, instead are silently treated
3203 as 'x'. The following induces an error, until -std is added to get
3204 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3205 array size at least. It's necessary to write '\x00'==0 to get something
3206 that's true only with -std. */
3207 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3208
3209 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3210 inside strings and character constants. */
3211 #define FOO(x) 'x'
3212 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3213
3214 int test (int i, double x);
3215 struct s1 {int (*f) (int a);};
3216 struct s2 {int (*f) (double a);};
3217 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3218 int argc;
3219 char **argv;
3220 int
3221 main ()
3222 {
3223 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3224 ;
3225 return 0;
3226 }
3227 _ACEOF
3228 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3229 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3230 do
3231 CC="$ac_save_CC $ac_arg"
3232 if ac_fn_c_try_compile "$LINENO"; then :
3233 ac_cv_prog_cc_c89=$ac_arg
3234 fi
3235 rm -f core conftest.err conftest.$ac_objext
3236 test "x$ac_cv_prog_cc_c89" != "xno" && break
3237 done
3238 rm -f conftest.$ac_ext
3239 CC=$ac_save_CC
3240
3241 fi
3242 # AC_CACHE_VAL
3243 case "x$ac_cv_prog_cc_c89" in
3244 x)
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3246 $as_echo "none needed" >&6; } ;;
3247 xno)
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3249 $as_echo "unsupported" >&6; } ;;
3250 *)
3251 CC="$CC $ac_cv_prog_cc_c89"
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3253 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3254 esac
3255 if test "x$ac_cv_prog_cc_c89" != xno; then :
3256
3257 fi
3258
3259 ac_ext=c
3260 ac_cpp='$CPP $CPPFLAGS'
3261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264
3265 ac_ext=c
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3271 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3272 if ${am_cv_prog_cc_c_o+:} false; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 /* end confdefs.h. */
3277
3278 int
3279 main ()
3280 {
3281
3282 ;
3283 return 0;
3284 }
3285 _ACEOF
3286 # Make sure it works both with $CC and with simple cc.
3287 # Following AC_PROG_CC_C_O, we do the test twice because some
3288 # compilers refuse to overwrite an existing .o file with -o,
3289 # though they will create one.
3290 am_cv_prog_cc_c_o=yes
3291 for am_i in 1 2; do
3292 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3293 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } \
3297 && test -f conftest2.$ac_objext; then
3298 : OK
3299 else
3300 am_cv_prog_cc_c_o=no
3301 break
3302 fi
3303 done
3304 rm -f core conftest*
3305 unset am_i
3306 fi
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3308 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3309 if test "$am_cv_prog_cc_c_o" != yes; then
3310 # Losing compiler, so override with the script.
3311 # FIXME: It is wrong to rewrite CC.
3312 # But if we don't then we get into trouble of one sort or another.
3313 # A longer-term fix would be to have automake use am__CC in this case,
3314 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3315 CC="$am_aux_dir/compile $CC"
3316 fi
3317 ac_ext=c
3318 ac_cpp='$CPP $CPPFLAGS'
3319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322
3323
3324
3325 ac_ext=c
3326 ac_cpp='$CPP $CPPFLAGS'
3327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3331 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3332 # On Suns, sometimes $CPP names a directory.
3333 if test -n "$CPP" && test -d "$CPP"; then
3334 CPP=
3335 fi
3336 if test -z "$CPP"; then
3337 if ${ac_cv_prog_CPP+:} false; then :
3338 $as_echo_n "(cached) " >&6
3339 else
3340 # Double quotes because CPP needs to be expanded
3341 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3342 do
3343 ac_preproc_ok=false
3344 for ac_c_preproc_warn_flag in '' yes
3345 do
3346 # Use a header file that comes with gcc, so configuring glibc
3347 # with a fresh cross-compiler works.
3348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349 # <limits.h> exists even on freestanding compilers.
3350 # On the NeXT, cc -E runs the code through the compiler's parser,
3351 # not just through cpp. "Syntax error" is here to catch this case.
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3354 #ifdef __STDC__
3355 # include <limits.h>
3356 #else
3357 # include <assert.h>
3358 #endif
3359 Syntax error
3360 _ACEOF
3361 if ac_fn_c_try_cpp "$LINENO"; then :
3362
3363 else
3364 # Broken: fails on valid input.
3365 continue
3366 fi
3367 rm -f conftest.err conftest.i conftest.$ac_ext
3368
3369 # OK, works on sane cases. Now check whether nonexistent headers
3370 # can be detected and how.
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3373 #include <ac_nonexistent.h>
3374 _ACEOF
3375 if ac_fn_c_try_cpp "$LINENO"; then :
3376 # Broken: success on invalid input.
3377 continue
3378 else
3379 # Passes both tests.
3380 ac_preproc_ok=:
3381 break
3382 fi
3383 rm -f conftest.err conftest.i conftest.$ac_ext
3384
3385 done
3386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3387 rm -f conftest.i conftest.err conftest.$ac_ext
3388 if $ac_preproc_ok; then :
3389 break
3390 fi
3391
3392 done
3393 ac_cv_prog_CPP=$CPP
3394
3395 fi
3396 CPP=$ac_cv_prog_CPP
3397 else
3398 ac_cv_prog_CPP=$CPP
3399 fi
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3401 $as_echo "$CPP" >&6; }
3402 ac_preproc_ok=false
3403 for ac_c_preproc_warn_flag in '' yes
3404 do
3405 # Use a header file that comes with gcc, so configuring glibc
3406 # with a fresh cross-compiler works.
3407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3408 # <limits.h> exists even on freestanding compilers.
3409 # On the NeXT, cc -E runs the code through the compiler's parser,
3410 # not just through cpp. "Syntax error" is here to catch this case.
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3413 #ifdef __STDC__
3414 # include <limits.h>
3415 #else
3416 # include <assert.h>
3417 #endif
3418 Syntax error
3419 _ACEOF
3420 if ac_fn_c_try_cpp "$LINENO"; then :
3421
3422 else
3423 # Broken: fails on valid input.
3424 continue
3425 fi
3426 rm -f conftest.err conftest.i conftest.$ac_ext
3427
3428 # OK, works on sane cases. Now check whether nonexistent headers
3429 # can be detected and how.
3430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431 /* end confdefs.h. */
3432 #include <ac_nonexistent.h>
3433 _ACEOF
3434 if ac_fn_c_try_cpp "$LINENO"; then :
3435 # Broken: success on invalid input.
3436 continue
3437 else
3438 # Passes both tests.
3439 ac_preproc_ok=:
3440 break
3441 fi
3442 rm -f conftest.err conftest.i conftest.$ac_ext
3443
3444 done
3445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446 rm -f conftest.i conftest.err conftest.$ac_ext
3447 if $ac_preproc_ok; then :
3448
3449 else
3450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3453 See \`config.log' for more details" "$LINENO" 5; }
3454 fi
3455
3456 ac_ext=c
3457 ac_cpp='$CPP $CPPFLAGS'
3458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461
3462
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3464 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3465 if ${ac_cv_path_GREP+:} false; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 if test -z "$GREP"; then
3469 ac_path_GREP_found=false
3470 # Loop through the user's path and test for each of PROGNAME-LIST
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3473 do
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 for ac_prog in grep ggrep; do
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3479 as_fn_executable_p "$ac_path_GREP" || continue
3480 # Check for GNU ac_path_GREP and select it if it is found.
3481 # Check for GNU $ac_path_GREP
3482 case `"$ac_path_GREP" --version 2>&1` in
3483 *GNU*)
3484 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3485 *)
3486 ac_count=0
3487 $as_echo_n 0123456789 >"conftest.in"
3488 while :
3489 do
3490 cat "conftest.in" "conftest.in" >"conftest.tmp"
3491 mv "conftest.tmp" "conftest.in"
3492 cp "conftest.in" "conftest.nl"
3493 $as_echo 'GREP' >> "conftest.nl"
3494 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3495 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3496 as_fn_arith $ac_count + 1 && ac_count=$as_val
3497 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3498 # Best one so far, save it but keep looking for a better one
3499 ac_cv_path_GREP="$ac_path_GREP"
3500 ac_path_GREP_max=$ac_count
3501 fi
3502 # 10*(2^10) chars as input seems more than enough
3503 test $ac_count -gt 10 && break
3504 done
3505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3506 esac
3507
3508 $ac_path_GREP_found && break 3
3509 done
3510 done
3511 done
3512 IFS=$as_save_IFS
3513 if test -z "$ac_cv_path_GREP"; then
3514 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3515 fi
3516 else
3517 ac_cv_path_GREP=$GREP
3518 fi
3519
3520 fi
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3522 $as_echo "$ac_cv_path_GREP" >&6; }
3523 GREP="$ac_cv_path_GREP"
3524
3525
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3527 $as_echo_n "checking for egrep... " >&6; }
3528 if ${ac_cv_path_EGREP+:} false; then :
3529 $as_echo_n "(cached) " >&6
3530 else
3531 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3532 then ac_cv_path_EGREP="$GREP -E"
3533 else
3534 if test -z "$EGREP"; then
3535 ac_path_EGREP_found=false
3536 # Loop through the user's path and test for each of PROGNAME-LIST
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3539 do
3540 IFS=$as_save_IFS
3541 test -z "$as_dir" && as_dir=.
3542 for ac_prog in egrep; do
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3545 as_fn_executable_p "$ac_path_EGREP" || continue
3546 # Check for GNU ac_path_EGREP and select it if it is found.
3547 # Check for GNU $ac_path_EGREP
3548 case `"$ac_path_EGREP" --version 2>&1` in
3549 *GNU*)
3550 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3551 *)
3552 ac_count=0
3553 $as_echo_n 0123456789 >"conftest.in"
3554 while :
3555 do
3556 cat "conftest.in" "conftest.in" >"conftest.tmp"
3557 mv "conftest.tmp" "conftest.in"
3558 cp "conftest.in" "conftest.nl"
3559 $as_echo 'EGREP' >> "conftest.nl"
3560 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3562 as_fn_arith $ac_count + 1 && ac_count=$as_val
3563 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3564 # Best one so far, save it but keep looking for a better one
3565 ac_cv_path_EGREP="$ac_path_EGREP"
3566 ac_path_EGREP_max=$ac_count
3567 fi
3568 # 10*(2^10) chars as input seems more than enough
3569 test $ac_count -gt 10 && break
3570 done
3571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3572 esac
3573
3574 $ac_path_EGREP_found && break 3
3575 done
3576 done
3577 done
3578 IFS=$as_save_IFS
3579 if test -z "$ac_cv_path_EGREP"; then
3580 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3581 fi
3582 else
3583 ac_cv_path_EGREP=$EGREP
3584 fi
3585
3586 fi
3587 fi
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3589 $as_echo "$ac_cv_path_EGREP" >&6; }
3590 EGREP="$ac_cv_path_EGREP"
3591
3592
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3594 $as_echo_n "checking for ANSI C header files... " >&6; }
3595 if ${ac_cv_header_stdc+:} false; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3600 #include <stdlib.h>
3601 #include <stdarg.h>
3602 #include <string.h>
3603 #include <float.h>
3604
3605 int
3606 main ()
3607 {
3608
3609 ;
3610 return 0;
3611 }
3612 _ACEOF
3613 if ac_fn_c_try_compile "$LINENO"; then :
3614 ac_cv_header_stdc=yes
3615 else
3616 ac_cv_header_stdc=no
3617 fi
3618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619
3620 if test $ac_cv_header_stdc = yes; then
3621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3624 #include <string.h>
3625
3626 _ACEOF
3627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3628 $EGREP "memchr" >/dev/null 2>&1; then :
3629
3630 else
3631 ac_cv_header_stdc=no
3632 fi
3633 rm -f conftest*
3634
3635 fi
3636
3637 if test $ac_cv_header_stdc = yes; then
3638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640 /* end confdefs.h. */
3641 #include <stdlib.h>
3642
3643 _ACEOF
3644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3645 $EGREP "free" >/dev/null 2>&1; then :
3646
3647 else
3648 ac_cv_header_stdc=no
3649 fi
3650 rm -f conftest*
3651
3652 fi
3653
3654 if test $ac_cv_header_stdc = yes; then
3655 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3656 if test "$cross_compiling" = yes; then :
3657 :
3658 else
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3661 #include <ctype.h>
3662 #include <stdlib.h>
3663 #if ((' ' & 0x0FF) == 0x020)
3664 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3665 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3666 #else
3667 # define ISLOWER(c) \
3668 (('a' <= (c) && (c) <= 'i') \
3669 || ('j' <= (c) && (c) <= 'r') \
3670 || ('s' <= (c) && (c) <= 'z'))
3671 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3672 #endif
3673
3674 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3675 int
3676 main ()
3677 {
3678 int i;
3679 for (i = 0; i < 256; i++)
3680 if (XOR (islower (i), ISLOWER (i))
3681 || toupper (i) != TOUPPER (i))
3682 return 2;
3683 return 0;
3684 }
3685 _ACEOF
3686 if ac_fn_c_try_run "$LINENO"; then :
3687
3688 else
3689 ac_cv_header_stdc=no
3690 fi
3691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3692 conftest.$ac_objext conftest.beam conftest.$ac_ext
3693 fi
3694
3695 fi
3696 fi
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3698 $as_echo "$ac_cv_header_stdc" >&6; }
3699 if test $ac_cv_header_stdc = yes; then
3700
3701 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3702
3703 fi
3704
3705 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3706 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3707 inttypes.h stdint.h unistd.h
3708 do :
3709 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3710 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3711 "
3712 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3713 cat >>confdefs.h <<_ACEOF
3714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3715 _ACEOF
3716
3717 fi
3718
3719 done
3720
3721
3722
3723 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3724 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3725 MINIX=yes
3726 else
3727 MINIX=
3728 fi
3729
3730
3731 if test "$MINIX" = yes; then
3732
3733 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3734
3735
3736 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3737
3738
3739 $as_echo "#define _MINIX 1" >>confdefs.h
3740
3741 fi
3742
3743
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3745 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3746 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3747 $as_echo_n "(cached) " >&6
3748 else
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751
3752 # define __EXTENSIONS__ 1
3753 $ac_includes_default
3754 int
3755 main ()
3756 {
3757
3758 ;
3759 return 0;
3760 }
3761 _ACEOF
3762 if ac_fn_c_try_compile "$LINENO"; then :
3763 ac_cv_safe_to_define___extensions__=yes
3764 else
3765 ac_cv_safe_to_define___extensions__=no
3766 fi
3767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3768 fi
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3770 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3771 test $ac_cv_safe_to_define___extensions__ = yes &&
3772 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3773
3774 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3775
3776 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3777
3778 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3779
3780 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3781
3782
3783 am__api_version='1.15'
3784
3785 # Find a good install program. We prefer a C program (faster),
3786 # so one script is as good as another. But avoid the broken or
3787 # incompatible versions:
3788 # SysV /etc/install, /usr/sbin/install
3789 # SunOS /usr/etc/install
3790 # IRIX /sbin/install
3791 # AIX /bin/install
3792 # AmigaOS /C/install, which installs bootblocks on floppy discs
3793 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3794 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3795 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3796 # OS/2's system install, which has a completely different semantic
3797 # ./install, which can be erroneously created by make from ./install.sh.
3798 # Reject install programs that cannot install multiple files.
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3800 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3801 if test -z "$INSTALL"; then
3802 if ${ac_cv_path_install+:} false; then :
3803 $as_echo_n "(cached) " >&6
3804 else
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3806 for as_dir in $PATH
3807 do
3808 IFS=$as_save_IFS
3809 test -z "$as_dir" && as_dir=.
3810 # Account for people who put trailing slashes in PATH elements.
3811 case $as_dir/ in #((
3812 ./ | .// | /[cC]/* | \
3813 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3814 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3815 /usr/ucb/* ) ;;
3816 *)
3817 # OSF1 and SCO ODT 3.0 have their own names for install.
3818 # Don't use installbsd from OSF since it installs stuff as root
3819 # by default.
3820 for ac_prog in ginstall scoinst install; do
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3823 if test $ac_prog = install &&
3824 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3825 # AIX install. It has an incompatible calling convention.
3826 :
3827 elif test $ac_prog = install &&
3828 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3829 # program-specific install script used by HP pwplus--don't use.
3830 :
3831 else
3832 rm -rf conftest.one conftest.two conftest.dir
3833 echo one > conftest.one
3834 echo two > conftest.two
3835 mkdir conftest.dir
3836 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3837 test -s conftest.one && test -s conftest.two &&
3838 test -s conftest.dir/conftest.one &&
3839 test -s conftest.dir/conftest.two
3840 then
3841 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3842 break 3
3843 fi
3844 fi
3845 fi
3846 done
3847 done
3848 ;;
3849 esac
3850
3851 done
3852 IFS=$as_save_IFS
3853
3854 rm -rf conftest.one conftest.two conftest.dir
3855
3856 fi
3857 if test "${ac_cv_path_install+set}" = set; then
3858 INSTALL=$ac_cv_path_install
3859 else
3860 # As a last resort, use the slow shell script. Don't cache a
3861 # value for INSTALL within a source directory, because that will
3862 # break other packages using the cache if that directory is
3863 # removed, or if the value is a relative name.
3864 INSTALL=$ac_install_sh
3865 fi
3866 fi
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3868 $as_echo "$INSTALL" >&6; }
3869
3870 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3871 # It thinks the first close brace ends the variable substitution.
3872 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3873
3874 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3875
3876 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3877
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3879 $as_echo_n "checking whether build environment is sane... " >&6; }
3880 # Reject unsafe characters in $srcdir or the absolute working directory
3881 # name. Accept space and tab only in the latter.
3882 am_lf='
3883 '
3884 case `pwd` in
3885 *[\\\"\#\$\&\'\`$am_lf]*)
3886 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3887 esac
3888 case $srcdir in
3889 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3890 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3891 esac
3892
3893 # Do 'set' in a subshell so we don't clobber the current shell's
3894 # arguments. Must try -L first in case configure is actually a
3895 # symlink; some systems play weird games with the mod time of symlinks
3896 # (eg FreeBSD returns the mod time of the symlink's containing
3897 # directory).
3898 if (
3899 am_has_slept=no
3900 for am_try in 1 2; do
3901 echo "timestamp, slept: $am_has_slept" > conftest.file
3902 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3903 if test "$*" = "X"; then
3904 # -L didn't work.
3905 set X `ls -t "$srcdir/configure" conftest.file`
3906 fi
3907 if test "$*" != "X $srcdir/configure conftest.file" \
3908 && test "$*" != "X conftest.file $srcdir/configure"; then
3909
3910 # If neither matched, then we have a broken ls. This can happen
3911 # if, for instance, CONFIG_SHELL is bash and it inherits a
3912 # broken ls alias from the environment. This has actually
3913 # happened. Such a system could not be considered "sane".
3914 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3915 alias in your environment" "$LINENO" 5
3916 fi
3917 if test "$2" = conftest.file || test $am_try -eq 2; then
3918 break
3919 fi
3920 # Just in case.
3921 sleep 1
3922 am_has_slept=yes
3923 done
3924 test "$2" = conftest.file
3925 )
3926 then
3927 # Ok.
3928 :
3929 else
3930 as_fn_error $? "newly created file is older than distributed files!
3931 Check your system clock" "$LINENO" 5
3932 fi
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3934 $as_echo "yes" >&6; }
3935 # If we didn't sleep, we still need to ensure time stamps of config.status and
3936 # generated files are strictly newer.
3937 am_sleep_pid=
3938 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3939 ( sleep 1 ) &
3940 am_sleep_pid=$!
3941 fi
3942
3943 rm -f conftest.file
3944
3945 test "$program_prefix" != NONE &&
3946 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3947 # Use a double $ so make ignores it.
3948 test "$program_suffix" != NONE &&
3949 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3950 # Double any \ or $.
3951 # By default was `s,x,x', remove it if useless.
3952 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3953 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3954
3955 if test x"${MISSING+set}" != xset; then
3956 case $am_aux_dir in
3957 *\ * | *\ *)
3958 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3959 *)
3960 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3961 esac
3962 fi
3963 # Use eval to expand $SHELL
3964 if eval "$MISSING --is-lightweight"; then
3965 am_missing_run="$MISSING "
3966 else
3967 am_missing_run=
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3969 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3970 fi
3971
3972 if test x"${install_sh+set}" != xset; then
3973 case $am_aux_dir in
3974 *\ * | *\ *)
3975 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3976 *)
3977 install_sh="\${SHELL} $am_aux_dir/install-sh"
3978 esac
3979 fi
3980
3981 # Installed binaries are usually stripped using 'strip' when the user
3982 # run "make install-strip". However 'strip' might not be the right
3983 # tool to use in cross-compilation environments, therefore Automake
3984 # will honor the 'STRIP' environment variable to overrule this program.
3985 if test "$cross_compiling" != no; then
3986 if test -n "$ac_tool_prefix"; then
3987 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3988 set dummy ${ac_tool_prefix}strip; ac_word=$2
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990 $as_echo_n "checking for $ac_word... " >&6; }
3991 if ${ac_cv_prog_STRIP+:} false; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 if test -n "$STRIP"; then
3995 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3996 else
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH
3999 do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4004 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 break 2
4007 fi
4008 done
4009 done
4010 IFS=$as_save_IFS
4011
4012 fi
4013 fi
4014 STRIP=$ac_cv_prog_STRIP
4015 if test -n "$STRIP"; then
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4017 $as_echo "$STRIP" >&6; }
4018 else
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020 $as_echo "no" >&6; }
4021 fi
4022
4023
4024 fi
4025 if test -z "$ac_cv_prog_STRIP"; then
4026 ac_ct_STRIP=$STRIP
4027 # Extract the first word of "strip", so it can be a program name with args.
4028 set dummy strip; ac_word=$2
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4030 $as_echo_n "checking for $ac_word... " >&6; }
4031 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4032 $as_echo_n "(cached) " >&6
4033 else
4034 if test -n "$ac_ct_STRIP"; then
4035 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4036 else
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 for as_dir in $PATH
4039 do
4040 IFS=$as_save_IFS
4041 test -z "$as_dir" && as_dir=.
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4044 ac_cv_prog_ac_ct_STRIP="strip"
4045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4046 break 2
4047 fi
4048 done
4049 done
4050 IFS=$as_save_IFS
4051
4052 fi
4053 fi
4054 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4055 if test -n "$ac_ct_STRIP"; then
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4057 $as_echo "$ac_ct_STRIP" >&6; }
4058 else
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4061 fi
4062
4063 if test "x$ac_ct_STRIP" = x; then
4064 STRIP=":"
4065 else
4066 case $cross_compiling:$ac_tool_warned in
4067 yes:)
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4070 ac_tool_warned=yes ;;
4071 esac
4072 STRIP=$ac_ct_STRIP
4073 fi
4074 else
4075 STRIP="$ac_cv_prog_STRIP"
4076 fi
4077
4078 fi
4079 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4080
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4082 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4083 if test -z "$MKDIR_P"; then
4084 if ${ac_cv_path_mkdir+:} false; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4089 do
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_prog in mkdir gmkdir; do
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4095 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4096 'mkdir (GNU coreutils) '* | \
4097 'mkdir (coreutils) '* | \
4098 'mkdir (fileutils) '4.1*)
4099 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4100 break 3;;
4101 esac
4102 done
4103 done
4104 done
4105 IFS=$as_save_IFS
4106
4107 fi
4108
4109 test -d ./--version && rmdir ./--version
4110 if test "${ac_cv_path_mkdir+set}" = set; then
4111 MKDIR_P="$ac_cv_path_mkdir -p"
4112 else
4113 # As a last resort, use the slow shell script. Don't cache a
4114 # value for MKDIR_P within a source directory, because that will
4115 # break other packages using the cache if that directory is
4116 # removed, or if the value is a relative name.
4117 MKDIR_P="$ac_install_sh -d"
4118 fi
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4121 $as_echo "$MKDIR_P" >&6; }
4122
4123 for ac_prog in gawk mawk nawk awk
4124 do
4125 # Extract the first word of "$ac_prog", so it can be a program name with args.
4126 set dummy $ac_prog; ac_word=$2
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128 $as_echo_n "checking for $ac_word... " >&6; }
4129 if ${ac_cv_prog_AWK+:} false; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 if test -n "$AWK"; then
4133 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4134 else
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142 ac_cv_prog_AWK="$ac_prog"
4143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 break 2
4145 fi
4146 done
4147 done
4148 IFS=$as_save_IFS
4149
4150 fi
4151 fi
4152 AWK=$ac_cv_prog_AWK
4153 if test -n "$AWK"; then
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4155 $as_echo "$AWK" >&6; }
4156 else
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4158 $as_echo "no" >&6; }
4159 fi
4160
4161
4162 test -n "$AWK" && break
4163 done
4164
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4166 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4167 set x ${MAKE-make}
4168 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4169 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4170 $as_echo_n "(cached) " >&6
4171 else
4172 cat >conftest.make <<\_ACEOF
4173 SHELL = /bin/sh
4174 all:
4175 @echo '@@@%%%=$(MAKE)=@@@%%%'
4176 _ACEOF
4177 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4178 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4179 *@@@%%%=?*=@@@%%%*)
4180 eval ac_cv_prog_make_${ac_make}_set=yes;;
4181 *)
4182 eval ac_cv_prog_make_${ac_make}_set=no;;
4183 esac
4184 rm -f conftest.make
4185 fi
4186 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4188 $as_echo "yes" >&6; }
4189 SET_MAKE=
4190 else
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192 $as_echo "no" >&6; }
4193 SET_MAKE="MAKE=${MAKE-make}"
4194 fi
4195
4196 rm -rf .tst 2>/dev/null
4197 mkdir .tst 2>/dev/null
4198 if test -d .tst; then
4199 am__leading_dot=.
4200 else
4201 am__leading_dot=_
4202 fi
4203 rmdir .tst 2>/dev/null
4204
4205 DEPDIR="${am__leading_dot}deps"
4206
4207 ac_config_commands="$ac_config_commands depfiles"
4208
4209
4210 am_make=${MAKE-make}
4211 cat > confinc << 'END'
4212 am__doit:
4213 @echo this is the am__doit target
4214 .PHONY: am__doit
4215 END
4216 # If we don't find an include directive, just comment out the code.
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4218 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4219 am__include="#"
4220 am__quote=
4221 _am_result=none
4222 # First try GNU make style include.
4223 echo "include confinc" > confmf
4224 # Ignore all kinds of additional output from 'make'.
4225 case `$am_make -s -f confmf 2> /dev/null` in #(
4226 *the\ am__doit\ target*)
4227 am__include=include
4228 am__quote=
4229 _am_result=GNU
4230 ;;
4231 esac
4232 # Now try BSD make style include.
4233 if test "$am__include" = "#"; then
4234 echo '.include "confinc"' > confmf
4235 case `$am_make -s -f confmf 2> /dev/null` in #(
4236 *the\ am__doit\ target*)
4237 am__include=.include
4238 am__quote="\""
4239 _am_result=BSD
4240 ;;
4241 esac
4242 fi
4243
4244
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4246 $as_echo "$_am_result" >&6; }
4247 rm -f confinc confmf
4248
4249 # Check whether --enable-dependency-tracking was given.
4250 if test "${enable_dependency_tracking+set}" = set; then :
4251 enableval=$enable_dependency_tracking;
4252 fi
4253
4254 if test "x$enable_dependency_tracking" != xno; then
4255 am_depcomp="$ac_aux_dir/depcomp"
4256 AMDEPBACKSLASH='\'
4257 am__nodep='_no'
4258 fi
4259 if test "x$enable_dependency_tracking" != xno; then
4260 AMDEP_TRUE=
4261 AMDEP_FALSE='#'
4262 else
4263 AMDEP_TRUE='#'
4264 AMDEP_FALSE=
4265 fi
4266
4267
4268 # Check whether --enable-silent-rules was given.
4269 if test "${enable_silent_rules+set}" = set; then :
4270 enableval=$enable_silent_rules;
4271 fi
4272
4273 case $enable_silent_rules in # (((
4274 yes) AM_DEFAULT_VERBOSITY=0;;
4275 no) AM_DEFAULT_VERBOSITY=1;;
4276 *) AM_DEFAULT_VERBOSITY=1;;
4277 esac
4278 am_make=${MAKE-make}
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4280 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4281 if ${am_cv_make_support_nested_variables+:} false; then :
4282 $as_echo_n "(cached) " >&6
4283 else
4284 if $as_echo 'TRUE=$(BAR$(V))
4285 BAR0=false
4286 BAR1=true
4287 V=1
4288 am__doit:
4289 @$(TRUE)
4290 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4291 am_cv_make_support_nested_variables=yes
4292 else
4293 am_cv_make_support_nested_variables=no
4294 fi
4295 fi
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4297 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4298 if test $am_cv_make_support_nested_variables = yes; then
4299 AM_V='$(V)'
4300 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4301 else
4302 AM_V=$AM_DEFAULT_VERBOSITY
4303 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4304 fi
4305 AM_BACKSLASH='\'
4306
4307 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4308 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4309 # is not polluted with repeated "-I."
4310 am__isrc=' -I$(srcdir)'
4311 # test to see if srcdir already configured
4312 if test -f $srcdir/config.status; then
4313 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4314 fi
4315 fi
4316
4317 # test whether we have cygpath
4318 if test -z "$CYGPATH_W"; then
4319 if (cygpath --version) >/dev/null 2>/dev/null; then
4320 CYGPATH_W='cygpath -w'
4321 else
4322 CYGPATH_W=echo
4323 fi
4324 fi
4325
4326
4327 # Define the identity of the package.
4328 PACKAGE='libctf'
4329 VERSION='1.2.0'
4330
4331
4332 cat >>confdefs.h <<_ACEOF
4333 #define PACKAGE "$PACKAGE"
4334 _ACEOF
4335
4336
4337 cat >>confdefs.h <<_ACEOF
4338 #define VERSION "$VERSION"
4339 _ACEOF
4340
4341 # Some tools Automake needs.
4342
4343 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4344
4345
4346 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4347
4348
4349 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4350
4351
4352 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4353
4354
4355 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4356
4357 # For better backward compatibility. To be removed once Automake 1.9.x
4358 # dies out for good. For more background, see:
4359 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4360 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4361 mkdir_p='$(MKDIR_P)'
4362
4363 # We need awk for the "check" target (and possibly the TAP driver). The
4364 # system "awk" is bad on some platforms.
4365 # Always define AMTAR for backward compatibility. Yes, it's still used
4366 # in the wild :-( We should find a proper way to deprecate it ...
4367 AMTAR='$${TAR-tar}'
4368
4369
4370 # We'll loop over all known methods to create a tar archive until one works.
4371 _am_tools='gnutar pax cpio none'
4372
4373 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4374
4375
4376
4377
4378
4379 depcc="$CC" am_compiler_list=
4380
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4382 $as_echo_n "checking dependency style of $depcc... " >&6; }
4383 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4384 $as_echo_n "(cached) " >&6
4385 else
4386 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4387 # We make a subdir and do the tests there. Otherwise we can end up
4388 # making bogus files that we don't know about and never remove. For
4389 # instance it was reported that on HP-UX the gcc test will end up
4390 # making a dummy file named 'D' -- because '-MD' means "put the output
4391 # in D".
4392 rm -rf conftest.dir
4393 mkdir conftest.dir
4394 # Copy depcomp to subdir because otherwise we won't find it if we're
4395 # using a relative directory.
4396 cp "$am_depcomp" conftest.dir
4397 cd conftest.dir
4398 # We will build objects and dependencies in a subdirectory because
4399 # it helps to detect inapplicable dependency modes. For instance
4400 # both Tru64's cc and ICC support -MD to output dependencies as a
4401 # side effect of compilation, but ICC will put the dependencies in
4402 # the current directory while Tru64 will put them in the object
4403 # directory.
4404 mkdir sub
4405
4406 am_cv_CC_dependencies_compiler_type=none
4407 if test "$am_compiler_list" = ""; then
4408 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4409 fi
4410 am__universal=false
4411 case " $depcc " in #(
4412 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4413 esac
4414
4415 for depmode in $am_compiler_list; do
4416 # Setup a source with many dependencies, because some compilers
4417 # like to wrap large dependency lists on column 80 (with \), and
4418 # we should not choose a depcomp mode which is confused by this.
4419 #
4420 # We need to recreate these files for each test, as the compiler may
4421 # overwrite some of them when testing with obscure command lines.
4422 # This happens at least with the AIX C compiler.
4423 : > sub/conftest.c
4424 for i in 1 2 3 4 5 6; do
4425 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4426 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4427 # Solaris 10 /bin/sh.
4428 echo '/* dummy */' > sub/conftst$i.h
4429 done
4430 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4431
4432 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4433 # mode. It turns out that the SunPro C++ compiler does not properly
4434 # handle '-M -o', and we need to detect this. Also, some Intel
4435 # versions had trouble with output in subdirs.
4436 am__obj=sub/conftest.${OBJEXT-o}
4437 am__minus_obj="-o $am__obj"
4438 case $depmode in
4439 gcc)
4440 # This depmode causes a compiler race in universal mode.
4441 test "$am__universal" = false || continue
4442 ;;
4443 nosideeffect)
4444 # After this tag, mechanisms are not by side-effect, so they'll
4445 # only be used when explicitly requested.
4446 if test "x$enable_dependency_tracking" = xyes; then
4447 continue
4448 else
4449 break
4450 fi
4451 ;;
4452 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4453 # This compiler won't grok '-c -o', but also, the minuso test has
4454 # not run yet. These depmodes are late enough in the game, and
4455 # so weak that their functioning should not be impacted.
4456 am__obj=conftest.${OBJEXT-o}
4457 am__minus_obj=
4458 ;;
4459 none) break ;;
4460 esac
4461 if depmode=$depmode \
4462 source=sub/conftest.c object=$am__obj \
4463 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4464 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4465 >/dev/null 2>conftest.err &&
4466 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4467 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4468 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4469 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4470 # icc doesn't choke on unknown options, it will just issue warnings
4471 # or remarks (even with -Werror). So we grep stderr for any message
4472 # that says an option was ignored or not supported.
4473 # When given -MP, icc 7.0 and 7.1 complain thusly:
4474 # icc: Command line warning: ignoring option '-M'; no argument required
4475 # The diagnosis changed in icc 8.0:
4476 # icc: Command line remark: option '-MP' not supported
4477 if (grep 'ignoring option' conftest.err ||
4478 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4479 am_cv_CC_dependencies_compiler_type=$depmode
4480 break
4481 fi
4482 fi
4483 done
4484
4485 cd ..
4486 rm -rf conftest.dir
4487 else
4488 am_cv_CC_dependencies_compiler_type=none
4489 fi
4490
4491 fi
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4493 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4494 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4495
4496 if
4497 test "x$enable_dependency_tracking" != xno \
4498 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4499 am__fastdepCC_TRUE=
4500 am__fastdepCC_FALSE='#'
4501 else
4502 am__fastdepCC_TRUE='#'
4503 am__fastdepCC_FALSE=
4504 fi
4505
4506
4507
4508 # POSIX will say in a future version that running "rm -f" with no argument
4509 # is OK; and we want to be able to make that assumption in our Makefile
4510 # recipes. So use an aggressive probe to check that the usage we want is
4511 # actually supported "in the wild" to an acceptable degree.
4512 # See automake bug#10828.
4513 # To make any issue more visible, cause the running configure to be aborted
4514 # by default if the 'rm' program in use doesn't match our expectations; the
4515 # user can still override this though.
4516 if rm -f && rm -fr && rm -rf; then : OK; else
4517 cat >&2 <<'END'
4518 Oops!
4519
4520 Your 'rm' program seems unable to run without file operands specified
4521 on the command line, even when the '-f' option is present. This is contrary
4522 to the behaviour of most rm programs out there, and not conforming with
4523 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4524
4525 Please tell bug-automake@gnu.org about your system, including the value
4526 of your $PATH and any error possibly output before this message. This
4527 can help us improve future automake versions.
4528
4529 END
4530 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4531 echo 'Configuration will proceed anyway, since you have set the' >&2
4532 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4533 echo >&2
4534 else
4535 cat >&2 <<'END'
4536 Aborting the configuration process, to ensure you take notice of the issue.
4537
4538 You can download and install GNU coreutils to get an 'rm' implementation
4539 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4540
4541 If you want to complete the configuration process using your problematic
4542 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4543 to "yes", and re-run configure.
4544
4545 END
4546 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4547 fi
4548 fi
4549
4550 # Check whether --enable-silent-rules was given.
4551 if test "${enable_silent_rules+set}" = set; then :
4552 enableval=$enable_silent_rules;
4553 fi
4554
4555 case $enable_silent_rules in # (((
4556 yes) AM_DEFAULT_VERBOSITY=0;;
4557 no) AM_DEFAULT_VERBOSITY=1;;
4558 *) AM_DEFAULT_VERBOSITY=0;;
4559 esac
4560 am_make=${MAKE-make}
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4562 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4563 if ${am_cv_make_support_nested_variables+:} false; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 if $as_echo 'TRUE=$(BAR$(V))
4567 BAR0=false
4568 BAR1=true
4569 V=1
4570 am__doit:
4571 @$(TRUE)
4572 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4573 am_cv_make_support_nested_variables=yes
4574 else
4575 am_cv_make_support_nested_variables=no
4576 fi
4577 fi
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4579 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4580 if test $am_cv_make_support_nested_variables = yes; then
4581 AM_V='$(V)'
4582 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4583 else
4584 AM_V=$AM_DEFAULT_VERBOSITY
4585 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4586 fi
4587 AM_BACKSLASH='\'
4588
4589
4590 # Checks for programs.
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4592 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4593 set x ${MAKE-make}
4594 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4595 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 cat >conftest.make <<\_ACEOF
4599 SHELL = /bin/sh
4600 all:
4601 @echo '@@@%%%=$(MAKE)=@@@%%%'
4602 _ACEOF
4603 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4604 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4605 *@@@%%%=?*=@@@%%%*)
4606 eval ac_cv_prog_make_${ac_make}_set=yes;;
4607 *)
4608 eval ac_cv_prog_make_${ac_make}_set=no;;
4609 esac
4610 rm -f conftest.make
4611 fi
4612 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4614 $as_echo "yes" >&6; }
4615 SET_MAKE=
4616 else
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618 $as_echo "no" >&6; }
4619 SET_MAKE="MAKE=${MAKE-make}"
4620 fi
4621
4622 ac_ext=c
4623 ac_cpp='$CPP $CPPFLAGS'
4624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4627 if test -n "$ac_tool_prefix"; then
4628 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4629 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631 $as_echo_n "checking for $ac_word... " >&6; }
4632 if ${ac_cv_prog_CC+:} false; then :
4633 $as_echo_n "(cached) " >&6
4634 else
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4637 else
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4640 do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4645 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4647 break 2
4648 fi
4649 done
4650 done
4651 IFS=$as_save_IFS
4652
4653 fi
4654 fi
4655 CC=$ac_cv_prog_CC
4656 if test -n "$CC"; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4658 $as_echo "$CC" >&6; }
4659 else
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661 $as_echo "no" >&6; }
4662 fi
4663
4664
4665 fi
4666 if test -z "$ac_cv_prog_CC"; then
4667 ac_ct_CC=$CC
4668 # Extract the first word of "gcc", so it can be a program name with args.
4669 set dummy gcc; ac_word=$2
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 $as_echo_n "checking for $ac_word... " >&6; }
4672 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4673 $as_echo_n "(cached) " >&6
4674 else
4675 if test -n "$ac_ct_CC"; then
4676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4685 ac_cv_prog_ac_ct_CC="gcc"
4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4688 fi
4689 done
4690 done
4691 IFS=$as_save_IFS
4692
4693 fi
4694 fi
4695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4696 if test -n "$ac_ct_CC"; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4698 $as_echo "$ac_ct_CC" >&6; }
4699 else
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4702 fi
4703
4704 if test "x$ac_ct_CC" = x; then
4705 CC=""
4706 else
4707 case $cross_compiling:$ac_tool_warned in
4708 yes:)
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4711 ac_tool_warned=yes ;;
4712 esac
4713 CC=$ac_ct_CC
4714 fi
4715 else
4716 CC="$ac_cv_prog_CC"
4717 fi
4718
4719 if test -z "$CC"; then
4720 if test -n "$ac_tool_prefix"; then
4721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4722 set dummy ${ac_tool_prefix}cc; ac_word=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if ${ac_cv_prog_CC+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 if test -n "$CC"; then
4729 ac_cv_prog_CC="$CC" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738 ac_cv_prog_CC="${ac_tool_prefix}cc"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4741 fi
4742 done
4743 done
4744 IFS=$as_save_IFS
4745
4746 fi
4747 fi
4748 CC=$ac_cv_prog_CC
4749 if test -n "$CC"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4751 $as_echo "$CC" >&6; }
4752 else
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4755 fi
4756
4757
4758 fi
4759 fi
4760 if test -z "$CC"; then
4761 # Extract the first word of "cc", so it can be a program name with args.
4762 set dummy cc; ac_word=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if ${ac_cv_prog_CC+:} false; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 if test -n "$CC"; then
4769 ac_cv_prog_CC="$CC" # Let the user override the test.
4770 else
4771 ac_prog_rejected=no
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775 IFS=$as_save_IFS
4776 test -z "$as_dir" && as_dir=.
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4780 ac_prog_rejected=yes
4781 continue
4782 fi
4783 ac_cv_prog_CC="cc"
4784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 break 2
4786 fi
4787 done
4788 done
4789 IFS=$as_save_IFS
4790
4791 if test $ac_prog_rejected = yes; then
4792 # We found a bogon in the path, so make sure we never use it.
4793 set dummy $ac_cv_prog_CC
4794 shift
4795 if test $# != 0; then
4796 # We chose a different compiler from the bogus one.
4797 # However, it has the same basename, so the bogon will be chosen
4798 # first if we set CC to just the basename; use the full file name.
4799 shift
4800 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4801 fi
4802 fi
4803 fi
4804 fi
4805 CC=$ac_cv_prog_CC
4806 if test -n "$CC"; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4808 $as_echo "$CC" >&6; }
4809 else
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4811 $as_echo "no" >&6; }
4812 fi
4813
4814
4815 fi
4816 if test -z "$CC"; then
4817 if test -n "$ac_tool_prefix"; then
4818 for ac_prog in cl.exe
4819 do
4820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823 $as_echo_n "checking for $ac_word... " >&6; }
4824 if ${ac_cv_prog_CC+:} false; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 if test -n "$CC"; then
4828 ac_cv_prog_CC="$CC" # Let the user override the test.
4829 else
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4840 fi
4841 done
4842 done
4843 IFS=$as_save_IFS
4844
4845 fi
4846 fi
4847 CC=$ac_cv_prog_CC
4848 if test -n "$CC"; then
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4850 $as_echo "$CC" >&6; }
4851 else
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853 $as_echo "no" >&6; }
4854 fi
4855
4856
4857 test -n "$CC" && break
4858 done
4859 fi
4860 if test -z "$CC"; then
4861 ac_ct_CC=$CC
4862 for ac_prog in cl.exe
4863 do
4864 # Extract the first word of "$ac_prog", so it can be a program name with args.
4865 set dummy $ac_prog; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 if test -n "$ac_ct_CC"; then
4872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4876 do
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4881 ac_cv_prog_ac_ct_CC="$ac_prog"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4884 fi
4885 done
4886 done
4887 IFS=$as_save_IFS
4888
4889 fi
4890 fi
4891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4892 if test -n "$ac_ct_CC"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4894 $as_echo "$ac_ct_CC" >&6; }
4895 else
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4898 fi
4899
4900
4901 test -n "$ac_ct_CC" && break
4902 done
4903
4904 if test "x$ac_ct_CC" = x; then
4905 CC=""
4906 else
4907 case $cross_compiling:$ac_tool_warned in
4908 yes:)
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911 ac_tool_warned=yes ;;
4912 esac
4913 CC=$ac_ct_CC
4914 fi
4915 fi
4916
4917 fi
4918
4919
4920 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4922 as_fn_error $? "no acceptable C compiler found in \$PATH
4923 See \`config.log' for more details" "$LINENO" 5; }
4924
4925 # Provide some information about the compiler.
4926 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4927 set X $ac_compile
4928 ac_compiler=$2
4929 for ac_option in --version -v -V -qversion; do
4930 { { ac_try="$ac_compiler $ac_option >&5"
4931 case "(($ac_try" in
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4934 esac
4935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4936 $as_echo "$ac_try_echo"; } >&5
4937 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4938 ac_status=$?
4939 if test -s conftest.err; then
4940 sed '10a\
4941 ... rest of stderr output deleted ...
4942 10q' conftest.err >conftest.er1
4943 cat conftest.er1 >&5
4944 fi
4945 rm -f conftest.er1 conftest.err
4946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4947 test $ac_status = 0; }
4948 done
4949
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4951 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4952 if ${ac_cv_c_compiler_gnu+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4957
4958 int
4959 main ()
4960 {
4961 #ifndef __GNUC__
4962 choke me
4963 #endif
4964
4965 ;
4966 return 0;
4967 }
4968 _ACEOF
4969 if ac_fn_c_try_compile "$LINENO"; then :
4970 ac_compiler_gnu=yes
4971 else
4972 ac_compiler_gnu=no
4973 fi
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4976
4977 fi
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4979 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4980 if test $ac_compiler_gnu = yes; then
4981 GCC=yes
4982 else
4983 GCC=
4984 fi
4985 ac_test_CFLAGS=${CFLAGS+set}
4986 ac_save_CFLAGS=$CFLAGS
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4988 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4989 if ${ac_cv_prog_cc_g+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 ac_save_c_werror_flag=$ac_c_werror_flag
4993 ac_c_werror_flag=yes
4994 ac_cv_prog_cc_g=no
4995 CFLAGS="-g"
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
4998
4999 int
5000 main ()
5001 {
5002
5003 ;
5004 return 0;
5005 }
5006 _ACEOF
5007 if ac_fn_c_try_compile "$LINENO"; then :
5008 ac_cv_prog_cc_g=yes
5009 else
5010 CFLAGS=""
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5013
5014 int
5015 main ()
5016 {
5017
5018 ;
5019 return 0;
5020 }
5021 _ACEOF
5022 if ac_fn_c_try_compile "$LINENO"; then :
5023
5024 else
5025 ac_c_werror_flag=$ac_save_c_werror_flag
5026 CFLAGS="-g"
5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h. */
5029
5030 int
5031 main ()
5032 {
5033
5034 ;
5035 return 0;
5036 }
5037 _ACEOF
5038 if ac_fn_c_try_compile "$LINENO"; then :
5039 ac_cv_prog_cc_g=yes
5040 fi
5041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5042 fi
5043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044 fi
5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5046 ac_c_werror_flag=$ac_save_c_werror_flag
5047 fi
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5049 $as_echo "$ac_cv_prog_cc_g" >&6; }
5050 if test "$ac_test_CFLAGS" = set; then
5051 CFLAGS=$ac_save_CFLAGS
5052 elif test $ac_cv_prog_cc_g = yes; then
5053 if test "$GCC" = yes; then
5054 CFLAGS="-g -O2"
5055 else
5056 CFLAGS="-g"
5057 fi
5058 else
5059 if test "$GCC" = yes; then
5060 CFLAGS="-O2"
5061 else
5062 CFLAGS=
5063 fi
5064 fi
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5066 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5067 if ${ac_cv_prog_cc_c89+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 ac_cv_prog_cc_c89=no
5071 ac_save_CC=$CC
5072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5073 /* end confdefs.h. */
5074 #include <stdarg.h>
5075 #include <stdio.h>
5076 struct stat;
5077 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5078 struct buf { int x; };
5079 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5080 static char *e (p, i)
5081 char **p;
5082 int i;
5083 {
5084 return p[i];
5085 }
5086 static char *f (char * (*g) (char **, int), char **p, ...)
5087 {
5088 char *s;
5089 va_list v;
5090 va_start (v,p);
5091 s = g (p, va_arg (v,int));
5092 va_end (v);
5093 return s;
5094 }
5095
5096 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5097 function prototypes and stuff, but not '\xHH' hex character constants.
5098 These don't provoke an error unfortunately, instead are silently treated
5099 as 'x'. The following induces an error, until -std is added to get
5100 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5101 array size at least. It's necessary to write '\x00'==0 to get something
5102 that's true only with -std. */
5103 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5104
5105 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5106 inside strings and character constants. */
5107 #define FOO(x) 'x'
5108 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5109
5110 int test (int i, double x);
5111 struct s1 {int (*f) (int a);};
5112 struct s2 {int (*f) (double a);};
5113 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5114 int argc;
5115 char **argv;
5116 int
5117 main ()
5118 {
5119 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5120 ;
5121 return 0;
5122 }
5123 _ACEOF
5124 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5125 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5126 do
5127 CC="$ac_save_CC $ac_arg"
5128 if ac_fn_c_try_compile "$LINENO"; then :
5129 ac_cv_prog_cc_c89=$ac_arg
5130 fi
5131 rm -f core conftest.err conftest.$ac_objext
5132 test "x$ac_cv_prog_cc_c89" != "xno" && break
5133 done
5134 rm -f conftest.$ac_ext
5135 CC=$ac_save_CC
5136
5137 fi
5138 # AC_CACHE_VAL
5139 case "x$ac_cv_prog_cc_c89" in
5140 x)
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5142 $as_echo "none needed" >&6; } ;;
5143 xno)
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5145 $as_echo "unsupported" >&6; } ;;
5146 *)
5147 CC="$CC $ac_cv_prog_cc_c89"
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5149 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5150 esac
5151 if test "x$ac_cv_prog_cc_c89" != xno; then :
5152
5153 fi
5154
5155 ac_ext=c
5156 ac_cpp='$CPP $CPPFLAGS'
5157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5160
5161 ac_ext=c
5162 ac_cpp='$CPP $CPPFLAGS'
5163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5167 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5168 if ${am_cv_prog_cc_c_o+:} false; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5173
5174 int
5175 main ()
5176 {
5177
5178 ;
5179 return 0;
5180 }
5181 _ACEOF
5182 # Make sure it works both with $CC and with simple cc.
5183 # Following AC_PROG_CC_C_O, we do the test twice because some
5184 # compilers refuse to overwrite an existing .o file with -o,
5185 # though they will create one.
5186 am_cv_prog_cc_c_o=yes
5187 for am_i in 1 2; do
5188 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5189 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5190 ac_status=$?
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } \
5193 && test -f conftest2.$ac_objext; then
5194 : OK
5195 else
5196 am_cv_prog_cc_c_o=no
5197 break
5198 fi
5199 done
5200 rm -f core conftest*
5201 unset am_i
5202 fi
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5204 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5205 if test "$am_cv_prog_cc_c_o" != yes; then
5206 # Losing compiler, so override with the script.
5207 # FIXME: It is wrong to rewrite CC.
5208 # But if we don't then we get into trouble of one sort or another.
5209 # A longer-term fix would be to have automake use am__CC in this case,
5210 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5211 CC="$am_aux_dir/compile $CC"
5212 fi
5213 ac_ext=c
5214 ac_cpp='$CPP $CPPFLAGS'
5215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5218
5219
5220 if test -n "$ac_tool_prefix"; then
5221 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5222 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_prog_RANLIB+:} false; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 if test -n "$RANLIB"; then
5229 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242 done
5243 done
5244 IFS=$as_save_IFS
5245
5246 fi
5247 fi
5248 RANLIB=$ac_cv_prog_RANLIB
5249 if test -n "$RANLIB"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5251 $as_echo "$RANLIB" >&6; }
5252 else
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 $as_echo "no" >&6; }
5255 fi
5256
5257
5258 fi
5259 if test -z "$ac_cv_prog_RANLIB"; then
5260 ac_ct_RANLIB=$RANLIB
5261 # Extract the first word of "ranlib", so it can be a program name with args.
5262 set dummy ranlib; ac_word=$2
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5264 $as_echo_n "checking for $ac_word... " >&6; }
5265 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5266 $as_echo_n "(cached) " >&6
5267 else
5268 if test -n "$ac_ct_RANLIB"; then
5269 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5270 else
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278 ac_cv_prog_ac_ct_RANLIB="ranlib"
5279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 break 2
5281 fi
5282 done
5283 done
5284 IFS=$as_save_IFS
5285
5286 fi
5287 fi
5288 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5289 if test -n "$ac_ct_RANLIB"; then
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5291 $as_echo "$ac_ct_RANLIB" >&6; }
5292 else
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5295 fi
5296
5297 if test "x$ac_ct_RANLIB" = x; then
5298 RANLIB=":"
5299 else
5300 case $cross_compiling:$ac_tool_warned in
5301 yes:)
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5304 ac_tool_warned=yes ;;
5305 esac
5306 RANLIB=$ac_ct_RANLIB
5307 fi
5308 else
5309 RANLIB="$ac_cv_prog_RANLIB"
5310 fi
5311
5312 if test -n "$ac_tool_prefix"; then
5313 for ac_prog in ar lib "link -lib"
5314 do
5315 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5316 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if ${ac_cv_prog_AR+:} false; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 if test -n "$AR"; then
5323 ac_cv_prog_AR="$AR" # Let the user override the test.
5324 else
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5327 do
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 break 2
5335 fi
5336 done
5337 done
5338 IFS=$as_save_IFS
5339
5340 fi
5341 fi
5342 AR=$ac_cv_prog_AR
5343 if test -n "$AR"; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5345 $as_echo "$AR" >&6; }
5346 else
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 $as_echo "no" >&6; }
5349 fi
5350
5351
5352 test -n "$AR" && break
5353 done
5354 fi
5355 if test -z "$AR"; then
5356 ac_ct_AR=$AR
5357 for ac_prog in ar lib "link -lib"
5358 do
5359 # Extract the first word of "$ac_prog", so it can be a program name with args.
5360 set dummy $ac_prog; ac_word=$2
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5362 $as_echo_n "checking for $ac_word... " >&6; }
5363 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365 else
5366 if test -n "$ac_ct_AR"; then
5367 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5368 else
5369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5371 do
5372 IFS=$as_save_IFS
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376 ac_cv_prog_ac_ct_AR="$ac_prog"
5377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 break 2
5379 fi
5380 done
5381 done
5382 IFS=$as_save_IFS
5383
5384 fi
5385 fi
5386 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5387 if test -n "$ac_ct_AR"; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5389 $as_echo "$ac_ct_AR" >&6; }
5390 else
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 $as_echo "no" >&6; }
5393 fi
5394
5395
5396 test -n "$ac_ct_AR" && break
5397 done
5398
5399 if test "x$ac_ct_AR" = x; then
5400 AR="false"
5401 else
5402 case $cross_compiling:$ac_tool_warned in
5403 yes:)
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5406 ac_tool_warned=yes ;;
5407 esac
5408 AR=$ac_ct_AR
5409 fi
5410 fi
5411
5412 : ${AR=ar}
5413
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5415 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5416 if ${am_cv_ar_interface+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 ac_ext=c
5420 ac_cpp='$CPP $CPPFLAGS'
5421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5424
5425 am_cv_ar_interface=ar
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5428 int some_variable = 0;
5429 _ACEOF
5430 if ac_fn_c_try_compile "$LINENO"; then :
5431 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5433 (eval $am_ar_try) 2>&5
5434 ac_status=$?
5435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5436 test $ac_status = 0; }
5437 if test "$ac_status" -eq 0; then
5438 am_cv_ar_interface=ar
5439 else
5440 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5442 (eval $am_ar_try) 2>&5
5443 ac_status=$?
5444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5445 test $ac_status = 0; }
5446 if test "$ac_status" -eq 0; then
5447 am_cv_ar_interface=lib
5448 else
5449 am_cv_ar_interface=unknown
5450 fi
5451 fi
5452 rm -f conftest.lib libconftest.a
5453
5454 fi
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456 ac_ext=c
5457 ac_cpp='$CPP $CPPFLAGS'
5458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5461
5462 fi
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5464 $as_echo "$am_cv_ar_interface" >&6; }
5465
5466 case $am_cv_ar_interface in
5467 ar)
5468 ;;
5469 lib)
5470 # Microsoft lib, so override with the ar-lib wrapper script.
5471 # FIXME: It is wrong to rewrite AR.
5472 # But if we don't then we get into trouble of one sort or another.
5473 # A longer-term fix would be to have automake use am__AR in this case,
5474 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5475 # similar.
5476 AR="$am_aux_dir/ar-lib $AR"
5477 ;;
5478 unknown)
5479 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5480 ;;
5481 esac
5482
5483 # If we haven't got the data from the intl directory,
5484 # assume NLS is disabled.
5485 USE_NLS=no
5486 LIBINTL=
5487 LIBINTL_DEP=
5488 INCINTL=
5489 XGETTEXT=
5490 GMSGFMT=
5491 POSUB=
5492
5493 if test -f ../intl/config.intl; then
5494 . ../intl/config.intl
5495 fi
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5497 $as_echo_n "checking whether NLS is requested... " >&6; }
5498 if test x"$USE_NLS" != xyes; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500 $as_echo "no" >&6; }
5501 else
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5503 $as_echo "yes" >&6; }
5504
5505 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5506
5507
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5509 $as_echo_n "checking for catalogs to be installed... " >&6; }
5510 # Look for .po and .gmo files in the source directory.
5511 CATALOGS=
5512 XLINGUAS=
5513 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5514 # If there aren't any .gmo files the shell will give us the
5515 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5516 # weeded out.
5517 case "$cat" in *\**)
5518 continue;;
5519 esac
5520 # The quadruple backslash is collapsed to a double backslash
5521 # by the backticks, then collapsed again by the double quotes,
5522 # leaving us with one backslash in the sed expression (right
5523 # before the dot that mustn't act as a wildcard).
5524 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5525 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5526 # The user is allowed to set LINGUAS to a list of languages to
5527 # install catalogs for. If it's empty that means "all of them."
5528 if test "x$LINGUAS" = x; then
5529 CATALOGS="$CATALOGS $cat"
5530 XLINGUAS="$XLINGUAS $lang"
5531 else
5532 case "$LINGUAS" in *$lang*)
5533 CATALOGS="$CATALOGS $cat"
5534 XLINGUAS="$XLINGUAS $lang"
5535 ;;
5536 esac
5537 fi
5538 done
5539 LINGUAS="$XLINGUAS"
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5541 $as_echo "$LINGUAS" >&6; }
5542
5543
5544 DATADIRNAME=share
5545
5546 INSTOBJEXT=.mo
5547
5548 GENCAT=gencat
5549
5550 CATOBJEXT=.gmo
5551
5552 fi
5553
5554 # Check whether --enable-shared was given.
5555 if test "${enable_shared+set}" = set; then :
5556 enableval=$enable_shared; p=${PACKAGE-default}
5557 case $enableval in
5558 yes) enable_shared=yes ;;
5559 no) enable_shared=no ;;
5560 *)
5561 enable_shared=no
5562 # Look at the argument we got. We use all the common list separators.
5563 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5564 for pkg in $enableval; do
5565 IFS="$lt_save_ifs"
5566 if test "X$pkg" = "X$p"; then
5567 enable_shared=yes
5568 fi
5569 done
5570 IFS="$lt_save_ifs"
5571 ;;
5572 esac
5573 else
5574 enable_shared=no
5575 fi
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586 case `pwd` in
5587 *\ * | *\ *)
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5589 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5590 esac
5591
5592
5593
5594 macro_version='2.2.7a'
5595 macro_revision='1.3134'
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609 ltmain="$ac_aux_dir/ltmain.sh"
5610
5611 # Backslashify metacharacters that are still active within
5612 # double-quoted strings.
5613 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5614
5615 # Same as above, but do not quote variable references.
5616 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5617
5618 # Sed substitution to delay expansion of an escaped shell variable in a
5619 # double_quote_subst'ed string.
5620 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5621
5622 # Sed substitution to delay expansion of an escaped single quote.
5623 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5624
5625 # Sed substitution to avoid accidental globbing in evaled expressions
5626 no_glob_subst='s/\*/\\\*/g'
5627
5628 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5629 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5630 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5631
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5633 $as_echo_n "checking how to print strings... " >&6; }
5634 # Test print first, because it will be a builtin if present.
5635 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5636 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5637 ECHO='print -r --'
5638 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5639 ECHO='printf %s\n'
5640 else
5641 # Use this function as a fallback that always works.
5642 func_fallback_echo ()
5643 {
5644 eval 'cat <<_LTECHO_EOF
5645 $1
5646 _LTECHO_EOF'
5647 }
5648 ECHO='func_fallback_echo'
5649 fi
5650
5651 # func_echo_all arg...
5652 # Invoke $ECHO with all args, space-separated.
5653 func_echo_all ()
5654 {
5655 $ECHO ""
5656 }
5657
5658 case "$ECHO" in
5659 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5660 $as_echo "printf" >&6; } ;;
5661 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5662 $as_echo "print -r" >&6; } ;;
5663 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5664 $as_echo "cat" >&6; } ;;
5665 esac
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5681 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5682 if ${ac_cv_path_SED+:} false; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5686 for ac_i in 1 2 3 4 5 6 7; do
5687 ac_script="$ac_script$as_nl$ac_script"
5688 done
5689 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5690 { ac_script=; unset ac_script;}
5691 if test -z "$SED"; then
5692 ac_path_SED_found=false
5693 # Loop through the user's path and test for each of PROGNAME-LIST
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5696 do
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_prog in sed gsed; do
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5702 as_fn_executable_p "$ac_path_SED" || continue
5703 # Check for GNU ac_path_SED and select it if it is found.
5704 # Check for GNU $ac_path_SED
5705 case `"$ac_path_SED" --version 2>&1` in
5706 *GNU*)
5707 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5708 *)
5709 ac_count=0
5710 $as_echo_n 0123456789 >"conftest.in"
5711 while :
5712 do
5713 cat "conftest.in" "conftest.in" >"conftest.tmp"
5714 mv "conftest.tmp" "conftest.in"
5715 cp "conftest.in" "conftest.nl"
5716 $as_echo '' >> "conftest.nl"
5717 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5718 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5719 as_fn_arith $ac_count + 1 && ac_count=$as_val
5720 if test $ac_count -gt ${ac_path_SED_max-0}; then
5721 # Best one so far, save it but keep looking for a better one
5722 ac_cv_path_SED="$ac_path_SED"
5723 ac_path_SED_max=$ac_count
5724 fi
5725 # 10*(2^10) chars as input seems more than enough
5726 test $ac_count -gt 10 && break
5727 done
5728 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5729 esac
5730
5731 $ac_path_SED_found && break 3
5732 done
5733 done
5734 done
5735 IFS=$as_save_IFS
5736 if test -z "$ac_cv_path_SED"; then
5737 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5738 fi
5739 else
5740 ac_cv_path_SED=$SED
5741 fi
5742
5743 fi
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5745 $as_echo "$ac_cv_path_SED" >&6; }
5746 SED="$ac_cv_path_SED"
5747 rm -f conftest.sed
5748
5749 test -z "$SED" && SED=sed
5750 Xsed="$SED -e 1s/^X//"
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5763 $as_echo_n "checking for fgrep... " >&6; }
5764 if ${ac_cv_path_FGREP+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5768 then ac_cv_path_FGREP="$GREP -F"
5769 else
5770 if test -z "$FGREP"; then
5771 ac_path_FGREP_found=false
5772 # Loop through the user's path and test for each of PROGNAME-LIST
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5775 do
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 for ac_prog in fgrep; do
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5781 as_fn_executable_p "$ac_path_FGREP" || continue
5782 # Check for GNU ac_path_FGREP and select it if it is found.
5783 # Check for GNU $ac_path_FGREP
5784 case `"$ac_path_FGREP" --version 2>&1` in
5785 *GNU*)
5786 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5787 *)
5788 ac_count=0
5789 $as_echo_n 0123456789 >"conftest.in"
5790 while :
5791 do
5792 cat "conftest.in" "conftest.in" >"conftest.tmp"
5793 mv "conftest.tmp" "conftest.in"
5794 cp "conftest.in" "conftest.nl"
5795 $as_echo 'FGREP' >> "conftest.nl"
5796 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5798 as_fn_arith $ac_count + 1 && ac_count=$as_val
5799 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5800 # Best one so far, save it but keep looking for a better one
5801 ac_cv_path_FGREP="$ac_path_FGREP"
5802 ac_path_FGREP_max=$ac_count
5803 fi
5804 # 10*(2^10) chars as input seems more than enough
5805 test $ac_count -gt 10 && break
5806 done
5807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5808 esac
5809
5810 $ac_path_FGREP_found && break 3
5811 done
5812 done
5813 done
5814 IFS=$as_save_IFS
5815 if test -z "$ac_cv_path_FGREP"; then
5816 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5817 fi
5818 else
5819 ac_cv_path_FGREP=$FGREP
5820 fi
5821
5822 fi
5823 fi
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5825 $as_echo "$ac_cv_path_FGREP" >&6; }
5826 FGREP="$ac_cv_path_FGREP"
5827
5828
5829 test -z "$GREP" && GREP=grep
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849 # Check whether --with-gnu-ld was given.
5850 if test "${with_gnu_ld+set}" = set; then :
5851 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5852 else
5853 with_gnu_ld=no
5854 fi
5855
5856 ac_prog=ld
5857 if test "$GCC" = yes; then
5858 # Check if gcc -print-prog-name=ld gives a path.
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5860 $as_echo_n "checking for ld used by $CC... " >&6; }
5861 case $host in
5862 *-*-mingw*)
5863 # gcc leaves a trailing carriage return which upsets mingw
5864 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5865 *)
5866 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5867 esac
5868 case $ac_prog in
5869 # Accept absolute paths.
5870 [\\/]* | ?:[\\/]*)
5871 re_direlt='/[^/][^/]*/\.\./'
5872 # Canonicalize the pathname of ld
5873 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5874 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5875 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5876 done
5877 test -z "$LD" && LD="$ac_prog"
5878 ;;
5879 "")
5880 # If it fails, then pretend we aren't using GCC.
5881 ac_prog=ld
5882 ;;
5883 *)
5884 # If it is relative, then search for the first ld in PATH.
5885 with_gnu_ld=unknown
5886 ;;
5887 esac
5888 elif test "$with_gnu_ld" = yes; then
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5890 $as_echo_n "checking for GNU ld... " >&6; }
5891 else
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5893 $as_echo_n "checking for non-GNU ld... " >&6; }
5894 fi
5895 if ${lt_cv_path_LD+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 if test -z "$LD"; then
5899 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5900 for ac_dir in $PATH; do
5901 IFS="$lt_save_ifs"
5902 test -z "$ac_dir" && ac_dir=.
5903 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5904 lt_cv_path_LD="$ac_dir/$ac_prog"
5905 # Check to see if the program is GNU ld. I'd rather use --version,
5906 # but apparently some variants of GNU ld only accept -v.
5907 # Break only if it was the GNU/non-GNU ld that we prefer.
5908 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5909 *GNU* | *'with BFD'*)
5910 test "$with_gnu_ld" != no && break
5911 ;;
5912 *)
5913 test "$with_gnu_ld" != yes && break
5914 ;;
5915 esac
5916 fi
5917 done
5918 IFS="$lt_save_ifs"
5919 else
5920 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5921 fi
5922 fi
5923
5924 LD="$lt_cv_path_LD"
5925 if test -n "$LD"; then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5927 $as_echo "$LD" >&6; }
5928 else
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5931 fi
5932 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5934 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5935 if ${lt_cv_prog_gnu_ld+:} false; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5938 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5939 case `$LD -v 2>&1 </dev/null` in
5940 *GNU* | *'with BFD'*)
5941 lt_cv_prog_gnu_ld=yes
5942 ;;
5943 *)
5944 lt_cv_prog_gnu_ld=no
5945 ;;
5946 esac
5947 fi
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5949 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5950 with_gnu_ld=$lt_cv_prog_gnu_ld
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5961 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5962 if ${lt_cv_path_NM+:} false; then :
5963 $as_echo_n "(cached) " >&6
5964 else
5965 if test -n "$NM"; then
5966 # Let the user override the nm to test.
5967 lt_nm_to_check="$NM"
5968 else
5969 lt_nm_to_check="${ac_tool_prefix}nm"
5970 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5971 lt_nm_to_check="$lt_nm_to_check nm"
5972 fi
5973 fi
5974 for lt_tmp_nm in "$lt_nm_to_check"; do
5975 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5976 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5977 IFS="$lt_save_ifs"
5978 test -z "$ac_dir" && ac_dir=.
5979 # Strip out any user-provided options from the nm to test twice,
5980 # the first time to test to see if nm (rather than its options) has
5981 # an explicit path, the second time to yield a file which can be
5982 # nm'ed itself.
5983 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5984 case "$tmp_nm_path" in
5985 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5986 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5987 esac
5988 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5989 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5990 # Check to see if the nm accepts a BSD-compat flag.
5991 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5992 # nm: unknown option "B" ignored
5993 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5994 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5995 break
5996 ;;
5997 *)
5998 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5999 *$tmp_nm*)
6000 lt_cv_path_NM="$tmp_nm -p"
6001 break
6002 ;;
6003 *)
6004 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6005 continue # so that we can try to find one that supports BSD flags
6006 ;;
6007 esac
6008 ;;
6009 esac
6010 fi
6011 done
6012 IFS="$lt_save_ifs"
6013 done
6014 : ${lt_cv_path_NM=no}
6015 fi
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6017 $as_echo "$lt_cv_path_NM" >&6; }
6018 if test "$lt_cv_path_NM" != "no"; then
6019 NM="$lt_cv_path_NM"
6020 else
6021 # Didn't find any BSD compatible name lister, look for dumpbin.
6022 if test -n "$DUMPBIN"; then :
6023 # Let the user override the test.
6024 else
6025 if test -n "$ac_tool_prefix"; then
6026 for ac_prog in dumpbin "link -dump"
6027 do
6028 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if ${ac_cv_prog_DUMPBIN+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 if test -n "$DUMPBIN"; then
6036 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6037 else
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6048 fi
6049 done
6050 done
6051 IFS=$as_save_IFS
6052
6053 fi
6054 fi
6055 DUMPBIN=$ac_cv_prog_DUMPBIN
6056 if test -n "$DUMPBIN"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6058 $as_echo "$DUMPBIN" >&6; }
6059 else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6062 fi
6063
6064
6065 test -n "$DUMPBIN" && break
6066 done
6067 fi
6068 if test -z "$DUMPBIN"; then
6069 ac_ct_DUMPBIN=$DUMPBIN
6070 for ac_prog in dumpbin "link -dump"
6071 do
6072 # Extract the first word of "$ac_prog", so it can be a program name with args.
6073 set dummy $ac_prog; ac_word=$2
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6075 $as_echo_n "checking for $ac_word... " >&6; }
6076 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079 if test -n "$ac_ct_DUMPBIN"; then
6080 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6081 else
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH
6084 do
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
6087 for ac_exec_ext in '' $ac_executable_extensions; do
6088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6089 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 break 2
6092 fi
6093 done
6094 done
6095 IFS=$as_save_IFS
6096
6097 fi
6098 fi
6099 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6100 if test -n "$ac_ct_DUMPBIN"; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6102 $as_echo "$ac_ct_DUMPBIN" >&6; }
6103 else
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 $as_echo "no" >&6; }
6106 fi
6107
6108
6109 test -n "$ac_ct_DUMPBIN" && break
6110 done
6111
6112 if test "x$ac_ct_DUMPBIN" = x; then
6113 DUMPBIN=":"
6114 else
6115 case $cross_compiling:$ac_tool_warned in
6116 yes:)
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6119 ac_tool_warned=yes ;;
6120 esac
6121 DUMPBIN=$ac_ct_DUMPBIN
6122 fi
6123 fi
6124
6125 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6126 *COFF*)
6127 DUMPBIN="$DUMPBIN -symbols"
6128 ;;
6129 *)
6130 DUMPBIN=:
6131 ;;
6132 esac
6133 fi
6134
6135 if test "$DUMPBIN" != ":"; then
6136 NM="$DUMPBIN"
6137 fi
6138 fi
6139 test -z "$NM" && NM=nm
6140
6141
6142
6143
6144
6145
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6147 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6148 if ${lt_cv_nm_interface+:} false; then :
6149 $as_echo_n "(cached) " >&6
6150 else
6151 lt_cv_nm_interface="BSD nm"
6152 echo "int some_variable = 0;" > conftest.$ac_ext
6153 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6154 (eval "$ac_compile" 2>conftest.err)
6155 cat conftest.err >&5
6156 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6157 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6158 cat conftest.err >&5
6159 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6160 cat conftest.out >&5
6161 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6162 lt_cv_nm_interface="MS dumpbin"
6163 fi
6164 rm -f conftest*
6165 fi
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6167 $as_echo "$lt_cv_nm_interface" >&6; }
6168
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6170 $as_echo_n "checking whether ln -s works... " >&6; }
6171 LN_S=$as_ln_s
6172 if test "$LN_S" = "ln -s"; then
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6174 $as_echo "yes" >&6; }
6175 else
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6177 $as_echo "no, using $LN_S" >&6; }
6178 fi
6179
6180 # find the maximum length of command line arguments
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6182 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6183 if ${lt_cv_sys_max_cmd_len+:} false; then :
6184 $as_echo_n "(cached) " >&6
6185 else
6186 i=0
6187 teststring="ABCD"
6188
6189 case $build_os in
6190 msdosdjgpp*)
6191 # On DJGPP, this test can blow up pretty badly due to problems in libc
6192 # (any single argument exceeding 2000 bytes causes a buffer overrun
6193 # during glob expansion). Even if it were fixed, the result of this
6194 # check would be larger than it should be.
6195 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6196 ;;
6197
6198 gnu*)
6199 # Under GNU Hurd, this test is not required because there is
6200 # no limit to the length of command line arguments.
6201 # Libtool will interpret -1 as no limit whatsoever
6202 lt_cv_sys_max_cmd_len=-1;
6203 ;;
6204
6205 cygwin* | mingw* | cegcc*)
6206 # On Win9x/ME, this test blows up -- it succeeds, but takes
6207 # about 5 minutes as the teststring grows exponentially.
6208 # Worse, since 9x/ME are not pre-emptively multitasking,
6209 # you end up with a "frozen" computer, even though with patience
6210 # the test eventually succeeds (with a max line length of 256k).
6211 # Instead, let's just punt: use the minimum linelength reported by
6212 # all of the supported platforms: 8192 (on NT/2K/XP).
6213 lt_cv_sys_max_cmd_len=8192;
6214 ;;
6215
6216 mint*)
6217 # On MiNT this can take a long time and run out of memory.
6218 lt_cv_sys_max_cmd_len=8192;
6219 ;;
6220
6221 amigaos*)
6222 # On AmigaOS with pdksh, this test takes hours, literally.
6223 # So we just punt and use a minimum line length of 8192.
6224 lt_cv_sys_max_cmd_len=8192;
6225 ;;
6226
6227 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6228 # This has been around since 386BSD, at least. Likely further.
6229 if test -x /sbin/sysctl; then
6230 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6231 elif test -x /usr/sbin/sysctl; then
6232 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6233 else
6234 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6235 fi
6236 # And add a safety zone
6237 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6238 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6239 ;;
6240
6241 interix*)
6242 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6243 lt_cv_sys_max_cmd_len=196608
6244 ;;
6245
6246 osf*)
6247 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6248 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6249 # nice to cause kernel panics so lets avoid the loop below.
6250 # First set a reasonable default.
6251 lt_cv_sys_max_cmd_len=16384
6252 #
6253 if test -x /sbin/sysconfig; then
6254 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6255 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6256 esac
6257 fi
6258 ;;
6259 sco3.2v5*)
6260 lt_cv_sys_max_cmd_len=102400
6261 ;;
6262 sysv5* | sco5v6* | sysv4.2uw2*)
6263 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6264 if test -n "$kargmax"; then
6265 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6266 else
6267 lt_cv_sys_max_cmd_len=32768
6268 fi
6269 ;;
6270 *)
6271 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6272 if test -n "$lt_cv_sys_max_cmd_len"; then
6273 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6275 else
6276 # Make teststring a little bigger before we do anything with it.
6277 # a 1K string should be a reasonable start.
6278 for i in 1 2 3 4 5 6 7 8 ; do
6279 teststring=$teststring$teststring
6280 done
6281 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6282 # If test is not a shell built-in, we'll probably end up computing a
6283 # maximum length that is only half of the actual maximum length, but
6284 # we can't tell.
6285 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6286 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6287 test $i != 17 # 1/2 MB should be enough
6288 do
6289 i=`expr $i + 1`
6290 teststring=$teststring$teststring
6291 done
6292 # Only check the string length outside the loop.
6293 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6294 teststring=
6295 # Add a significant safety factor because C++ compilers can tack on
6296 # massive amounts of additional arguments before passing them to the
6297 # linker. It appears as though 1/2 is a usable value.
6298 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6299 fi
6300 ;;
6301 esac
6302
6303 fi
6304
6305 if test -n $lt_cv_sys_max_cmd_len ; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6307 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6308 else
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6310 $as_echo "none" >&6; }
6311 fi
6312 max_cmd_len=$lt_cv_sys_max_cmd_len
6313
6314
6315
6316
6317
6318
6319 : ${CP="cp -f"}
6320 : ${MV="mv -f"}
6321 : ${RM="rm -f"}
6322
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6324 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6325 # Try some XSI features
6326 xsi_shell=no
6327 ( _lt_dummy="a/b/c"
6328 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6329 = c,a/b,, \
6330 && eval 'test $(( 1 + 1 )) -eq 2 \
6331 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6332 && xsi_shell=yes
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6334 $as_echo "$xsi_shell" >&6; }
6335
6336
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6338 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6339 lt_shell_append=no
6340 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6341 >/dev/null 2>&1 \
6342 && lt_shell_append=yes
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6344 $as_echo "$lt_shell_append" >&6; }
6345
6346
6347 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6348 lt_unset=unset
6349 else
6350 lt_unset=false
6351 fi
6352
6353
6354
6355
6356
6357 # test EBCDIC or ASCII
6358 case `echo X|tr X '\101'` in
6359 A) # ASCII based system
6360 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6361 lt_SP2NL='tr \040 \012'
6362 lt_NL2SP='tr \015\012 \040\040'
6363 ;;
6364 *) # EBCDIC based system
6365 lt_SP2NL='tr \100 \n'
6366 lt_NL2SP='tr \r\n \100\100'
6367 ;;
6368 esac
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6379 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6380 if ${lt_cv_ld_reload_flag+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 lt_cv_ld_reload_flag='-r'
6384 fi
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6386 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6387 reload_flag=$lt_cv_ld_reload_flag
6388 case $reload_flag in
6389 "" | " "*) ;;
6390 *) reload_flag=" $reload_flag" ;;
6391 esac
6392 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6393 case $host_os in
6394 darwin*)
6395 if test "$GCC" = yes; then
6396 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6397 else
6398 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6399 fi
6400 ;;
6401 esac
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411 if test -n "$ac_tool_prefix"; then
6412 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6413 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if ${ac_cv_prog_OBJDUMP+:} false; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 if test -n "$OBJDUMP"; then
6420 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6421 else
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6424 do
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6429 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 break 2
6432 fi
6433 done
6434 done
6435 IFS=$as_save_IFS
6436
6437 fi
6438 fi
6439 OBJDUMP=$ac_cv_prog_OBJDUMP
6440 if test -n "$OBJDUMP"; then
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6442 $as_echo "$OBJDUMP" >&6; }
6443 else
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445 $as_echo "no" >&6; }
6446 fi
6447
6448
6449 fi
6450 if test -z "$ac_cv_prog_OBJDUMP"; then
6451 ac_ct_OBJDUMP=$OBJDUMP
6452 # Extract the first word of "objdump", so it can be a program name with args.
6453 set dummy objdump; ac_word=$2
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 if test -n "$ac_ct_OBJDUMP"; then
6460 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6461 else
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6464 do
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6469 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 break 2
6472 fi
6473 done
6474 done
6475 IFS=$as_save_IFS
6476
6477 fi
6478 fi
6479 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6480 if test -n "$ac_ct_OBJDUMP"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6482 $as_echo "$ac_ct_OBJDUMP" >&6; }
6483 else
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6486 fi
6487
6488 if test "x$ac_ct_OBJDUMP" = x; then
6489 OBJDUMP="false"
6490 else
6491 case $cross_compiling:$ac_tool_warned in
6492 yes:)
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6495 ac_tool_warned=yes ;;
6496 esac
6497 OBJDUMP=$ac_ct_OBJDUMP
6498 fi
6499 else
6500 OBJDUMP="$ac_cv_prog_OBJDUMP"
6501 fi
6502
6503 test -z "$OBJDUMP" && OBJDUMP=objdump
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6514 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6515 if ${lt_cv_deplibs_check_method+:} false; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 lt_cv_file_magic_cmd='$MAGIC_CMD'
6519 lt_cv_file_magic_test_file=
6520 lt_cv_deplibs_check_method='unknown'
6521 # Need to set the preceding variable on all platforms that support
6522 # interlibrary dependencies.
6523 # 'none' -- dependencies not supported.
6524 # `unknown' -- same as none, but documents that we really don't know.
6525 # 'pass_all' -- all dependencies passed with no checks.
6526 # 'test_compile' -- check by making test program.
6527 # 'file_magic [[regex]]' -- check by looking for files in library path
6528 # which responds to the $file_magic_cmd with a given extended regex.
6529 # If you have `file' or equivalent on your system and you're not sure
6530 # whether `pass_all' will *always* work, you probably want this one.
6531
6532 case $host_os in
6533 aix[4-9]*)
6534 lt_cv_deplibs_check_method=pass_all
6535 ;;
6536
6537 beos*)
6538 lt_cv_deplibs_check_method=pass_all
6539 ;;
6540
6541 bsdi[45]*)
6542 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6543 lt_cv_file_magic_cmd='/usr/bin/file -L'
6544 lt_cv_file_magic_test_file=/shlib/libc.so
6545 ;;
6546
6547 cygwin*)
6548 # func_win32_libid is a shell function defined in ltmain.sh
6549 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6550 lt_cv_file_magic_cmd='func_win32_libid'
6551 ;;
6552
6553 mingw* | pw32*)
6554 # Base MSYS/MinGW do not provide the 'file' command needed by
6555 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6556 # unless we find 'file', for example because we are cross-compiling.
6557 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6558 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6559 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6560 lt_cv_file_magic_cmd='func_win32_libid'
6561 else
6562 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6563 lt_cv_file_magic_cmd='$OBJDUMP -f'
6564 fi
6565 ;;
6566
6567 cegcc*)
6568 # use the weaker test based on 'objdump'. See mingw*.
6569 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6570 lt_cv_file_magic_cmd='$OBJDUMP -f'
6571 ;;
6572
6573 darwin* | rhapsody*)
6574 lt_cv_deplibs_check_method=pass_all
6575 ;;
6576
6577 freebsd* | dragonfly*)
6578 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6579 case $host_cpu in
6580 i*86 )
6581 # Not sure whether the presence of OpenBSD here was a mistake.
6582 # Let's accept both of them until this is cleared up.
6583 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6584 lt_cv_file_magic_cmd=/usr/bin/file
6585 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6586 ;;
6587 esac
6588 else
6589 lt_cv_deplibs_check_method=pass_all
6590 fi
6591 ;;
6592
6593 gnu*)
6594 lt_cv_deplibs_check_method=pass_all
6595 ;;
6596
6597 haiku*)
6598 lt_cv_deplibs_check_method=pass_all
6599 ;;
6600
6601 hpux10.20* | hpux11*)
6602 lt_cv_file_magic_cmd=/usr/bin/file
6603 case $host_cpu in
6604 ia64*)
6605 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6606 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6607 ;;
6608 hppa*64*)
6609 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]'
6610 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6611 ;;
6612 *)
6613 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6614 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6615 ;;
6616 esac
6617 ;;
6618
6619 interix[3-9]*)
6620 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6622 ;;
6623
6624 irix5* | irix6* | nonstopux*)
6625 case $LD in
6626 *-32|*"-32 ") libmagic=32-bit;;
6627 *-n32|*"-n32 ") libmagic=N32;;
6628 *-64|*"-64 ") libmagic=64-bit;;
6629 *) libmagic=never-match;;
6630 esac
6631 lt_cv_deplibs_check_method=pass_all
6632 ;;
6633
6634 # This must be Linux ELF.
6635 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6636 lt_cv_deplibs_check_method=pass_all
6637 ;;
6638
6639 netbsd*)
6640 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6642 else
6643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6644 fi
6645 ;;
6646
6647 newos6*)
6648 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6649 lt_cv_file_magic_cmd=/usr/bin/file
6650 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6651 ;;
6652
6653 *nto* | *qnx*)
6654 lt_cv_deplibs_check_method=pass_all
6655 ;;
6656
6657 openbsd*)
6658 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6659 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6660 else
6661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6662 fi
6663 ;;
6664
6665 osf3* | osf4* | osf5*)
6666 lt_cv_deplibs_check_method=pass_all
6667 ;;
6668
6669 rdos*)
6670 lt_cv_deplibs_check_method=pass_all
6671 ;;
6672
6673 solaris*)
6674 lt_cv_deplibs_check_method=pass_all
6675 ;;
6676
6677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6678 lt_cv_deplibs_check_method=pass_all
6679 ;;
6680
6681 sysv4 | sysv4.3*)
6682 case $host_vendor in
6683 motorola)
6684 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]'
6685 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6686 ;;
6687 ncr)
6688 lt_cv_deplibs_check_method=pass_all
6689 ;;
6690 sequent)
6691 lt_cv_file_magic_cmd='/bin/file'
6692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6693 ;;
6694 sni)
6695 lt_cv_file_magic_cmd='/bin/file'
6696 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6697 lt_cv_file_magic_test_file=/lib/libc.so
6698 ;;
6699 siemens)
6700 lt_cv_deplibs_check_method=pass_all
6701 ;;
6702 pc)
6703 lt_cv_deplibs_check_method=pass_all
6704 ;;
6705 esac
6706 ;;
6707
6708 tpf*)
6709 lt_cv_deplibs_check_method=pass_all
6710 ;;
6711 esac
6712
6713 fi
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6715 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6716 file_magic_cmd=$lt_cv_file_magic_cmd
6717 deplibs_check_method=$lt_cv_deplibs_check_method
6718 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731 plugin_option=
6732 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6733 for plugin in $plugin_names; do
6734 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6735 if test x$plugin_so = x$plugin; then
6736 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6737 fi
6738 if test x$plugin_so != x$plugin; then
6739 plugin_option="--plugin $plugin_so"
6740 break
6741 fi
6742 done
6743
6744 if test -n "$ac_tool_prefix"; then
6745 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6746 set dummy ${ac_tool_prefix}ar; ac_word=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if ${ac_cv_prog_AR+:} false; then :
6750 $as_echo_n "(cached) " >&6
6751 else
6752 if test -n "$AR"; then
6753 ac_cv_prog_AR="$AR" # Let the user override the test.
6754 else
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 for as_dir in $PATH
6757 do
6758 IFS=$as_save_IFS
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6762 ac_cv_prog_AR="${ac_tool_prefix}ar"
6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 break 2
6765 fi
6766 done
6767 done
6768 IFS=$as_save_IFS
6769
6770 fi
6771 fi
6772 AR=$ac_cv_prog_AR
6773 if test -n "$AR"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6775 $as_echo "$AR" >&6; }
6776 else
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778 $as_echo "no" >&6; }
6779 fi
6780
6781
6782 fi
6783 if test -z "$ac_cv_prog_AR"; then
6784 ac_ct_AR=$AR
6785 # Extract the first word of "ar", so it can be a program name with args.
6786 set dummy ar; ac_word=$2
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788 $as_echo_n "checking for $ac_word... " >&6; }
6789 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 if test -n "$ac_ct_AR"; then
6793 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6794 else
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6802 ac_cv_prog_ac_ct_AR="ar"
6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 break 2
6805 fi
6806 done
6807 done
6808 IFS=$as_save_IFS
6809
6810 fi
6811 fi
6812 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6813 if test -n "$ac_ct_AR"; then
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6815 $as_echo "$ac_ct_AR" >&6; }
6816 else
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6819 fi
6820
6821 if test "x$ac_ct_AR" = x; then
6822 AR="false"
6823 else
6824 case $cross_compiling:$ac_tool_warned in
6825 yes:)
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6828 ac_tool_warned=yes ;;
6829 esac
6830 AR=$ac_ct_AR
6831 fi
6832 else
6833 AR="$ac_cv_prog_AR"
6834 fi
6835
6836 test -z "$AR" && AR=ar
6837 if test -n "$plugin_option"; then
6838 if $AR --help 2>&1 | grep -q "\--plugin"; then
6839 touch conftest.c
6840 $AR $plugin_option rc conftest.a conftest.c
6841 if test "$?" != 0; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6843 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6844 else
6845 AR="$AR $plugin_option"
6846 fi
6847 rm -f conftest.*
6848 fi
6849 fi
6850 test -z "$AR_FLAGS" && AR_FLAGS=cru
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862 if test -n "$ac_tool_prefix"; then
6863 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6864 set dummy ${ac_tool_prefix}strip; ac_word=$2
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6866 $as_echo_n "checking for $ac_word... " >&6; }
6867 if ${ac_cv_prog_STRIP+:} false; then :
6868 $as_echo_n "(cached) " >&6
6869 else
6870 if test -n "$STRIP"; then
6871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6872 else
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 for as_dir in $PATH
6875 do
6876 IFS=$as_save_IFS
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6880 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6882 break 2
6883 fi
6884 done
6885 done
6886 IFS=$as_save_IFS
6887
6888 fi
6889 fi
6890 STRIP=$ac_cv_prog_STRIP
6891 if test -n "$STRIP"; then
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6893 $as_echo "$STRIP" >&6; }
6894 else
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6897 fi
6898
6899
6900 fi
6901 if test -z "$ac_cv_prog_STRIP"; then
6902 ac_ct_STRIP=$STRIP
6903 # Extract the first word of "strip", so it can be a program name with args.
6904 set dummy strip; ac_word=$2
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906 $as_echo_n "checking for $ac_word... " >&6; }
6907 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6908 $as_echo_n "(cached) " >&6
6909 else
6910 if test -n "$ac_ct_STRIP"; then
6911 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6912 else
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 for as_dir in $PATH
6915 do
6916 IFS=$as_save_IFS
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6920 ac_cv_prog_ac_ct_STRIP="strip"
6921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 break 2
6923 fi
6924 done
6925 done
6926 IFS=$as_save_IFS
6927
6928 fi
6929 fi
6930 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6931 if test -n "$ac_ct_STRIP"; then
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6933 $as_echo "$ac_ct_STRIP" >&6; }
6934 else
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936 $as_echo "no" >&6; }
6937 fi
6938
6939 if test "x$ac_ct_STRIP" = x; then
6940 STRIP=":"
6941 else
6942 case $cross_compiling:$ac_tool_warned in
6943 yes:)
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6946 ac_tool_warned=yes ;;
6947 esac
6948 STRIP=$ac_ct_STRIP
6949 fi
6950 else
6951 STRIP="$ac_cv_prog_STRIP"
6952 fi
6953
6954 test -z "$STRIP" && STRIP=:
6955
6956
6957
6958
6959
6960
6961 if test -n "$ac_tool_prefix"; then
6962 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6963 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6965 $as_echo_n "checking for $ac_word... " >&6; }
6966 if ${ac_cv_prog_RANLIB+:} false; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969 if test -n "$RANLIB"; then
6970 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6971 else
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6974 do
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
6978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6979 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 break 2
6982 fi
6983 done
6984 done
6985 IFS=$as_save_IFS
6986
6987 fi
6988 fi
6989 RANLIB=$ac_cv_prog_RANLIB
6990 if test -n "$RANLIB"; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6992 $as_echo "$RANLIB" >&6; }
6993 else
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
6996 fi
6997
6998
6999 fi
7000 if test -z "$ac_cv_prog_RANLIB"; then
7001 ac_ct_RANLIB=$RANLIB
7002 # Extract the first word of "ranlib", so it can be a program name with args.
7003 set dummy ranlib; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009 if test -n "$ac_ct_RANLIB"; then
7010 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7011 else
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7014 do
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7019 ac_cv_prog_ac_ct_RANLIB="ranlib"
7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7022 fi
7023 done
7024 done
7025 IFS=$as_save_IFS
7026
7027 fi
7028 fi
7029 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7030 if test -n "$ac_ct_RANLIB"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7032 $as_echo "$ac_ct_RANLIB" >&6; }
7033 else
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7036 fi
7037
7038 if test "x$ac_ct_RANLIB" = x; then
7039 RANLIB=":"
7040 else
7041 case $cross_compiling:$ac_tool_warned in
7042 yes:)
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7045 ac_tool_warned=yes ;;
7046 esac
7047 RANLIB=$ac_ct_RANLIB
7048 fi
7049 else
7050 RANLIB="$ac_cv_prog_RANLIB"
7051 fi
7052
7053 test -z "$RANLIB" && RANLIB=:
7054 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7055 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7056 RANLIB="$RANLIB $plugin_option"
7057 fi
7058 fi
7059
7060
7061
7062
7063
7064
7065 # Determine commands to create old-style static archives.
7066 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7067 old_postinstall_cmds='chmod 644 $oldlib'
7068 old_postuninstall_cmds=
7069
7070 if test -n "$RANLIB"; then
7071 case $host_os in
7072 openbsd*)
7073 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7074 ;;
7075 *)
7076 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7077 ;;
7078 esac
7079 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7080 fi
7081
7082 case $host_os in
7083 darwin*)
7084 lock_old_archive_extraction=yes ;;
7085 *)
7086 lock_old_archive_extraction=no ;;
7087 esac
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127 # If no C compiler was specified, use CC.
7128 LTCC=${LTCC-"$CC"}
7129
7130 # If no C compiler flags were specified, use CFLAGS.
7131 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7132
7133 # Allow CC to be a program name with arguments.
7134 compiler=$CC
7135
7136
7137 # Check for command to grab the raw symbol name followed by C symbol from nm.
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7139 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7140 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7141 $as_echo_n "(cached) " >&6
7142 else
7143
7144 # These are sane defaults that work on at least a few old systems.
7145 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7146
7147 # Character class describing NM global symbol codes.
7148 symcode='[BCDEGRST]'
7149
7150 # Regexp to match symbols that can be accessed directly from C.
7151 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7152
7153 # Define system-specific variables.
7154 case $host_os in
7155 aix*)
7156 symcode='[BCDT]'
7157 ;;
7158 cygwin* | mingw* | pw32* | cegcc*)
7159 symcode='[ABCDGISTW]'
7160 ;;
7161 hpux*)
7162 if test "$host_cpu" = ia64; then
7163 symcode='[ABCDEGRST]'
7164 fi
7165 ;;
7166 irix* | nonstopux*)
7167 symcode='[BCDEGRST]'
7168 ;;
7169 osf*)
7170 symcode='[BCDEGQRST]'
7171 ;;
7172 solaris*)
7173 symcode='[BCDRT]'
7174 ;;
7175 sco3.2v5*)
7176 symcode='[DT]'
7177 ;;
7178 sysv4.2uw2*)
7179 symcode='[DT]'
7180 ;;
7181 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7182 symcode='[ABDT]'
7183 ;;
7184 sysv4)
7185 symcode='[DFNSTU]'
7186 ;;
7187 esac
7188
7189 # If we're using GNU nm, then use its standard symbol codes.
7190 case `$NM -V 2>&1` in
7191 *GNU* | *'with BFD'*)
7192 symcode='[ABCDGIRSTW]' ;;
7193 esac
7194
7195 # Transform an extracted symbol line into a proper C declaration.
7196 # Some systems (esp. on ia64) link data and code symbols differently,
7197 # so use this general approach.
7198 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7199
7200 # Transform an extracted symbol line into symbol name and symbol address
7201 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7202 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7203
7204 # Handle CRLF in mingw tool chain
7205 opt_cr=
7206 case $build_os in
7207 mingw*)
7208 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7209 ;;
7210 esac
7211
7212 # Try without a prefix underscore, then with it.
7213 for ac_symprfx in "" "_"; do
7214
7215 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7216 symxfrm="\\1 $ac_symprfx\\2 \\2"
7217
7218 # Write the raw and C identifiers.
7219 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7220 # Fake it for dumpbin and say T for any non-static function
7221 # and D for any global variable.
7222 # Also find C++ and __fastcall symbols from MSVC++,
7223 # which start with @ or ?.
7224 lt_cv_sys_global_symbol_pipe="$AWK '"\
7225 " {last_section=section; section=\$ 3};"\
7226 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7227 " \$ 0!~/External *\|/{next};"\
7228 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7229 " {if(hide[section]) next};"\
7230 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7231 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7232 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7233 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7234 " ' prfx=^$ac_symprfx"
7235 else
7236 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7237 fi
7238
7239 # Check to see that the pipe works correctly.
7240 pipe_works=no
7241
7242 rm -f conftest*
7243 cat > conftest.$ac_ext <<_LT_EOF
7244 #ifdef __cplusplus
7245 extern "C" {
7246 #endif
7247 char nm_test_var;
7248 void nm_test_func(void);
7249 void nm_test_func(void){}
7250 #ifdef __cplusplus
7251 }
7252 #endif
7253 int main(){nm_test_var='a';nm_test_func();return(0);}
7254 _LT_EOF
7255
7256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7257 (eval $ac_compile) 2>&5
7258 ac_status=$?
7259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7260 test $ac_status = 0; }; then
7261 # Now try to grab the symbols.
7262 nlist=conftest.nm
7263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7264 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7265 ac_status=$?
7266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7267 test $ac_status = 0; } && test -s "$nlist"; then
7268 # Try sorting and uniquifying the output.
7269 if sort "$nlist" | uniq > "$nlist"T; then
7270 mv -f "$nlist"T "$nlist"
7271 else
7272 rm -f "$nlist"T
7273 fi
7274
7275 # Make sure that we snagged all the symbols we need.
7276 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7277 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7278 cat <<_LT_EOF > conftest.$ac_ext
7279 #ifdef __cplusplus
7280 extern "C" {
7281 #endif
7282
7283 _LT_EOF
7284 # Now generate the symbol file.
7285 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7286
7287 cat <<_LT_EOF >> conftest.$ac_ext
7288
7289 /* The mapping between symbol names and symbols. */
7290 const struct {
7291 const char *name;
7292 void *address;
7293 }
7294 lt__PROGRAM__LTX_preloaded_symbols[] =
7295 {
7296 { "@PROGRAM@", (void *) 0 },
7297 _LT_EOF
7298 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7299 cat <<\_LT_EOF >> conftest.$ac_ext
7300 {0, (void *) 0}
7301 };
7302
7303 /* This works around a problem in FreeBSD linker */
7304 #ifdef FREEBSD_WORKAROUND
7305 static const void *lt_preloaded_setup() {
7306 return lt__PROGRAM__LTX_preloaded_symbols;
7307 }
7308 #endif
7309
7310 #ifdef __cplusplus
7311 }
7312 #endif
7313 _LT_EOF
7314 # Now try linking the two files.
7315 mv conftest.$ac_objext conftstm.$ac_objext
7316 lt_save_LIBS="$LIBS"
7317 lt_save_CFLAGS="$CFLAGS"
7318 LIBS="conftstm.$ac_objext"
7319 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7321 (eval $ac_link) 2>&5
7322 ac_status=$?
7323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7324 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7325 pipe_works=yes
7326 fi
7327 LIBS="$lt_save_LIBS"
7328 CFLAGS="$lt_save_CFLAGS"
7329 else
7330 echo "cannot find nm_test_func in $nlist" >&5
7331 fi
7332 else
7333 echo "cannot find nm_test_var in $nlist" >&5
7334 fi
7335 else
7336 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7337 fi
7338 else
7339 echo "$progname: failed program was:" >&5
7340 cat conftest.$ac_ext >&5
7341 fi
7342 rm -rf conftest* conftst*
7343
7344 # Do not use the global_symbol_pipe unless it works.
7345 if test "$pipe_works" = yes; then
7346 break
7347 else
7348 lt_cv_sys_global_symbol_pipe=
7349 fi
7350 done
7351
7352 fi
7353
7354 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7355 lt_cv_sys_global_symbol_to_cdecl=
7356 fi
7357 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7359 $as_echo "failed" >&6; }
7360 else
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7362 $as_echo "ok" >&6; }
7363 fi
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386 # Check whether --enable-libtool-lock was given.
7387 if test "${enable_libtool_lock+set}" = set; then :
7388 enableval=$enable_libtool_lock;
7389 fi
7390
7391 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7392
7393 # Some flags need to be propagated to the compiler or linker for good
7394 # libtool support.
7395 case $host in
7396 ia64-*-hpux*)
7397 # Find out which ABI we are using.
7398 echo 'int i;' > conftest.$ac_ext
7399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7400 (eval $ac_compile) 2>&5
7401 ac_status=$?
7402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7403 test $ac_status = 0; }; then
7404 case `/usr/bin/file conftest.$ac_objext` in
7405 *ELF-32*)
7406 HPUX_IA64_MODE="32"
7407 ;;
7408 *ELF-64*)
7409 HPUX_IA64_MODE="64"
7410 ;;
7411 esac
7412 fi
7413 rm -rf conftest*
7414 ;;
7415 *-*-irix6*)
7416 # Find out which ABI we are using.
7417 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7419 (eval $ac_compile) 2>&5
7420 ac_status=$?
7421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7422 test $ac_status = 0; }; then
7423 if test "$lt_cv_prog_gnu_ld" = yes; then
7424 case `/usr/bin/file conftest.$ac_objext` in
7425 *32-bit*)
7426 LD="${LD-ld} -melf32bsmip"
7427 ;;
7428 *N32*)
7429 LD="${LD-ld} -melf32bmipn32"
7430 ;;
7431 *64-bit*)
7432 LD="${LD-ld} -melf64bmip"
7433 ;;
7434 esac
7435 else
7436 case `/usr/bin/file conftest.$ac_objext` in
7437 *32-bit*)
7438 LD="${LD-ld} -32"
7439 ;;
7440 *N32*)
7441 LD="${LD-ld} -n32"
7442 ;;
7443 *64-bit*)
7444 LD="${LD-ld} -64"
7445 ;;
7446 esac
7447 fi
7448 fi
7449 rm -rf conftest*
7450 ;;
7451
7452 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7453 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7454 # Find out which ABI we are using.
7455 echo 'int i;' > conftest.$ac_ext
7456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7457 (eval $ac_compile) 2>&5
7458 ac_status=$?
7459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7460 test $ac_status = 0; }; then
7461 case `/usr/bin/file conftest.o` in
7462 *32-bit*)
7463 case $host in
7464 x86_64-*kfreebsd*-gnu)
7465 LD="${LD-ld} -m elf_i386_fbsd"
7466 ;;
7467 x86_64-*linux*)
7468 case `/usr/bin/file conftest.o` in
7469 *x86-64*)
7470 LD="${LD-ld} -m elf32_x86_64"
7471 ;;
7472 *)
7473 LD="${LD-ld} -m elf_i386"
7474 ;;
7475 esac
7476 ;;
7477 powerpc64le-*linux*)
7478 LD="${LD-ld} -m elf32lppclinux"
7479 ;;
7480 powerpc64-*linux*)
7481 LD="${LD-ld} -m elf32ppclinux"
7482 ;;
7483 s390x-*linux*)
7484 LD="${LD-ld} -m elf_s390"
7485 ;;
7486 sparc64-*linux*)
7487 LD="${LD-ld} -m elf32_sparc"
7488 ;;
7489 esac
7490 ;;
7491 *64-bit*)
7492 case $host in
7493 x86_64-*kfreebsd*-gnu)
7494 LD="${LD-ld} -m elf_x86_64_fbsd"
7495 ;;
7496 x86_64-*linux*)
7497 LD="${LD-ld} -m elf_x86_64"
7498 ;;
7499 powerpcle-*linux*)
7500 LD="${LD-ld} -m elf64lppc"
7501 ;;
7502 powerpc-*linux*)
7503 LD="${LD-ld} -m elf64ppc"
7504 ;;
7505 s390*-*linux*|s390*-*tpf*)
7506 LD="${LD-ld} -m elf64_s390"
7507 ;;
7508 sparc*-*linux*)
7509 LD="${LD-ld} -m elf64_sparc"
7510 ;;
7511 esac
7512 ;;
7513 esac
7514 fi
7515 rm -rf conftest*
7516 ;;
7517
7518 *-*-sco3.2v5*)
7519 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7520 SAVE_CFLAGS="$CFLAGS"
7521 CFLAGS="$CFLAGS -belf"
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7523 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7524 if ${lt_cv_cc_needs_belf+:} false; then :
7525 $as_echo_n "(cached) " >&6
7526 else
7527 ac_ext=c
7528 ac_cpp='$CPP $CPPFLAGS'
7529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7532
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h. */
7535
7536 int
7537 main ()
7538 {
7539
7540 ;
7541 return 0;
7542 }
7543 _ACEOF
7544 if ac_fn_c_try_link "$LINENO"; then :
7545 lt_cv_cc_needs_belf=yes
7546 else
7547 lt_cv_cc_needs_belf=no
7548 fi
7549 rm -f core conftest.err conftest.$ac_objext \
7550 conftest$ac_exeext conftest.$ac_ext
7551 ac_ext=c
7552 ac_cpp='$CPP $CPPFLAGS'
7553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7556
7557 fi
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7559 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7560 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7561 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7562 CFLAGS="$SAVE_CFLAGS"
7563 fi
7564 ;;
7565 sparc*-*solaris*)
7566 # Find out which ABI we are using.
7567 echo 'int i;' > conftest.$ac_ext
7568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7569 (eval $ac_compile) 2>&5
7570 ac_status=$?
7571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7572 test $ac_status = 0; }; then
7573 case `/usr/bin/file conftest.o` in
7574 *64-bit*)
7575 case $lt_cv_prog_gnu_ld in
7576 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7577 *)
7578 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7579 LD="${LD-ld} -64"
7580 fi
7581 ;;
7582 esac
7583 ;;
7584 esac
7585 fi
7586 rm -rf conftest*
7587 ;;
7588 esac
7589
7590 need_locks="$enable_libtool_lock"
7591
7592
7593 case $host_os in
7594 rhapsody* | darwin*)
7595 if test -n "$ac_tool_prefix"; then
7596 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7597 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7601 $as_echo_n "(cached) " >&6
7602 else
7603 if test -n "$DSYMUTIL"; then
7604 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7605 else
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 for as_dir in $PATH
7608 do
7609 IFS=$as_save_IFS
7610 test -z "$as_dir" && as_dir=.
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7613 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 break 2
7616 fi
7617 done
7618 done
7619 IFS=$as_save_IFS
7620
7621 fi
7622 fi
7623 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7624 if test -n "$DSYMUTIL"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7626 $as_echo "$DSYMUTIL" >&6; }
7627 else
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7630 fi
7631
7632
7633 fi
7634 if test -z "$ac_cv_prog_DSYMUTIL"; then
7635 ac_ct_DSYMUTIL=$DSYMUTIL
7636 # Extract the first word of "dsymutil", so it can be a program name with args.
7637 set dummy dsymutil; ac_word=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7641 $as_echo_n "(cached) " >&6
7642 else
7643 if test -n "$ac_ct_DSYMUTIL"; then
7644 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7645 else
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7648 do
7649 IFS=$as_save_IFS
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7653 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 break 2
7656 fi
7657 done
7658 done
7659 IFS=$as_save_IFS
7660
7661 fi
7662 fi
7663 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7664 if test -n "$ac_ct_DSYMUTIL"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7666 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7667 else
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7670 fi
7671
7672 if test "x$ac_ct_DSYMUTIL" = x; then
7673 DSYMUTIL=":"
7674 else
7675 case $cross_compiling:$ac_tool_warned in
7676 yes:)
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7679 ac_tool_warned=yes ;;
7680 esac
7681 DSYMUTIL=$ac_ct_DSYMUTIL
7682 fi
7683 else
7684 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7685 fi
7686
7687 if test -n "$ac_tool_prefix"; then
7688 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7689 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691 $as_echo_n "checking for $ac_word... " >&6; }
7692 if ${ac_cv_prog_NMEDIT+:} false; then :
7693 $as_echo_n "(cached) " >&6
7694 else
7695 if test -n "$NMEDIT"; then
7696 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7697 else
7698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699 for as_dir in $PATH
7700 do
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7705 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7707 break 2
7708 fi
7709 done
7710 done
7711 IFS=$as_save_IFS
7712
7713 fi
7714 fi
7715 NMEDIT=$ac_cv_prog_NMEDIT
7716 if test -n "$NMEDIT"; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7718 $as_echo "$NMEDIT" >&6; }
7719 else
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7722 fi
7723
7724
7725 fi
7726 if test -z "$ac_cv_prog_NMEDIT"; then
7727 ac_ct_NMEDIT=$NMEDIT
7728 # Extract the first word of "nmedit", so it can be a program name with args.
7729 set dummy nmedit; ac_word=$2
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731 $as_echo_n "checking for $ac_word... " >&6; }
7732 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7733 $as_echo_n "(cached) " >&6
7734 else
7735 if test -n "$ac_ct_NMEDIT"; then
7736 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7737 else
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739 for as_dir in $PATH
7740 do
7741 IFS=$as_save_IFS
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
7744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7745 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 break 2
7748 fi
7749 done
7750 done
7751 IFS=$as_save_IFS
7752
7753 fi
7754 fi
7755 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7756 if test -n "$ac_ct_NMEDIT"; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7758 $as_echo "$ac_ct_NMEDIT" >&6; }
7759 else
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7761 $as_echo "no" >&6; }
7762 fi
7763
7764 if test "x$ac_ct_NMEDIT" = x; then
7765 NMEDIT=":"
7766 else
7767 case $cross_compiling:$ac_tool_warned in
7768 yes:)
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7770 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7771 ac_tool_warned=yes ;;
7772 esac
7773 NMEDIT=$ac_ct_NMEDIT
7774 fi
7775 else
7776 NMEDIT="$ac_cv_prog_NMEDIT"
7777 fi
7778
7779 if test -n "$ac_tool_prefix"; then
7780 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7781 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if ${ac_cv_prog_LIPO+:} false; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 if test -n "$LIPO"; then
7788 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7789 else
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7792 do
7793 IFS=$as_save_IFS
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7797 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 break 2
7800 fi
7801 done
7802 done
7803 IFS=$as_save_IFS
7804
7805 fi
7806 fi
7807 LIPO=$ac_cv_prog_LIPO
7808 if test -n "$LIPO"; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7810 $as_echo "$LIPO" >&6; }
7811 else
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7814 fi
7815
7816
7817 fi
7818 if test -z "$ac_cv_prog_LIPO"; then
7819 ac_ct_LIPO=$LIPO
7820 # Extract the first word of "lipo", so it can be a program name with args.
7821 set dummy lipo; ac_word=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7825 $as_echo_n "(cached) " >&6
7826 else
7827 if test -n "$ac_ct_LIPO"; then
7828 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7829 else
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7832 do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837 ac_cv_prog_ac_ct_LIPO="lipo"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7840 fi
7841 done
7842 done
7843 IFS=$as_save_IFS
7844
7845 fi
7846 fi
7847 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7848 if test -n "$ac_ct_LIPO"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7850 $as_echo "$ac_ct_LIPO" >&6; }
7851 else
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7854 fi
7855
7856 if test "x$ac_ct_LIPO" = x; then
7857 LIPO=":"
7858 else
7859 case $cross_compiling:$ac_tool_warned in
7860 yes:)
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7862 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7863 ac_tool_warned=yes ;;
7864 esac
7865 LIPO=$ac_ct_LIPO
7866 fi
7867 else
7868 LIPO="$ac_cv_prog_LIPO"
7869 fi
7870
7871 if test -n "$ac_tool_prefix"; then
7872 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7873 set dummy ${ac_tool_prefix}otool; ac_word=$2
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7875 $as_echo_n "checking for $ac_word... " >&6; }
7876 if ${ac_cv_prog_OTOOL+:} false; then :
7877 $as_echo_n "(cached) " >&6
7878 else
7879 if test -n "$OTOOL"; then
7880 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7881 else
7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7883 for as_dir in $PATH
7884 do
7885 IFS=$as_save_IFS
7886 test -z "$as_dir" && as_dir=.
7887 for ac_exec_ext in '' $ac_executable_extensions; do
7888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7889 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7891 break 2
7892 fi
7893 done
7894 done
7895 IFS=$as_save_IFS
7896
7897 fi
7898 fi
7899 OTOOL=$ac_cv_prog_OTOOL
7900 if test -n "$OTOOL"; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7902 $as_echo "$OTOOL" >&6; }
7903 else
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905 $as_echo "no" >&6; }
7906 fi
7907
7908
7909 fi
7910 if test -z "$ac_cv_prog_OTOOL"; then
7911 ac_ct_OTOOL=$OTOOL
7912 # Extract the first word of "otool", so it can be a program name with args.
7913 set dummy otool; ac_word=$2
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915 $as_echo_n "checking for $ac_word... " >&6; }
7916 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 if test -n "$ac_ct_OTOOL"; then
7920 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7921 else
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7924 do
7925 IFS=$as_save_IFS
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929 ac_cv_prog_ac_ct_OTOOL="otool"
7930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931 break 2
7932 fi
7933 done
7934 done
7935 IFS=$as_save_IFS
7936
7937 fi
7938 fi
7939 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7940 if test -n "$ac_ct_OTOOL"; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7942 $as_echo "$ac_ct_OTOOL" >&6; }
7943 else
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945 $as_echo "no" >&6; }
7946 fi
7947
7948 if test "x$ac_ct_OTOOL" = x; then
7949 OTOOL=":"
7950 else
7951 case $cross_compiling:$ac_tool_warned in
7952 yes:)
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7955 ac_tool_warned=yes ;;
7956 esac
7957 OTOOL=$ac_ct_OTOOL
7958 fi
7959 else
7960 OTOOL="$ac_cv_prog_OTOOL"
7961 fi
7962
7963 if test -n "$ac_tool_prefix"; then
7964 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7965 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967 $as_echo_n "checking for $ac_word... " >&6; }
7968 if ${ac_cv_prog_OTOOL64+:} false; then :
7969 $as_echo_n "(cached) " >&6
7970 else
7971 if test -n "$OTOOL64"; then
7972 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7973 else
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7976 do
7977 IFS=$as_save_IFS
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7981 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 break 2
7984 fi
7985 done
7986 done
7987 IFS=$as_save_IFS
7988
7989 fi
7990 fi
7991 OTOOL64=$ac_cv_prog_OTOOL64
7992 if test -n "$OTOOL64"; then
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7994 $as_echo "$OTOOL64" >&6; }
7995 else
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
7998 fi
7999
8000
8001 fi
8002 if test -z "$ac_cv_prog_OTOOL64"; then
8003 ac_ct_OTOOL64=$OTOOL64
8004 # Extract the first word of "otool64", so it can be a program name with args.
8005 set dummy otool64; ac_word=$2
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007 $as_echo_n "checking for $ac_word... " >&6; }
8008 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8009 $as_echo_n "(cached) " >&6
8010 else
8011 if test -n "$ac_ct_OTOOL64"; then
8012 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8013 else
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH
8016 do
8017 IFS=$as_save_IFS
8018 test -z "$as_dir" && as_dir=.
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8021 ac_cv_prog_ac_ct_OTOOL64="otool64"
8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8023 break 2
8024 fi
8025 done
8026 done
8027 IFS=$as_save_IFS
8028
8029 fi
8030 fi
8031 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8032 if test -n "$ac_ct_OTOOL64"; then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8034 $as_echo "$ac_ct_OTOOL64" >&6; }
8035 else
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037 $as_echo "no" >&6; }
8038 fi
8039
8040 if test "x$ac_ct_OTOOL64" = x; then
8041 OTOOL64=":"
8042 else
8043 case $cross_compiling:$ac_tool_warned in
8044 yes:)
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8047 ac_tool_warned=yes ;;
8048 esac
8049 OTOOL64=$ac_ct_OTOOL64
8050 fi
8051 else
8052 OTOOL64="$ac_cv_prog_OTOOL64"
8053 fi
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8082 $as_echo_n "checking for -single_module linker flag... " >&6; }
8083 if ${lt_cv_apple_cc_single_mod+:} false; then :
8084 $as_echo_n "(cached) " >&6
8085 else
8086 lt_cv_apple_cc_single_mod=no
8087 if test -z "${LT_MULTI_MODULE}"; then
8088 # By default we will add the -single_module flag. You can override
8089 # by either setting the environment variable LT_MULTI_MODULE
8090 # non-empty at configure time, or by adding -multi_module to the
8091 # link flags.
8092 rm -rf libconftest.dylib*
8093 echo "int foo(void){return 1;}" > conftest.c
8094 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8095 -dynamiclib -Wl,-single_module conftest.c" >&5
8096 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8097 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8098 _lt_result=$?
8099 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8100 lt_cv_apple_cc_single_mod=yes
8101 else
8102 cat conftest.err >&5
8103 fi
8104 rm -rf libconftest.dylib*
8105 rm -f conftest.*
8106 fi
8107 fi
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8109 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8111 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8112 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8113 $as_echo_n "(cached) " >&6
8114 else
8115 lt_cv_ld_exported_symbols_list=no
8116 save_LDFLAGS=$LDFLAGS
8117 echo "_main" > conftest.sym
8118 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8120 /* end confdefs.h. */
8121
8122 int
8123 main ()
8124 {
8125
8126 ;
8127 return 0;
8128 }
8129 _ACEOF
8130 if ac_fn_c_try_link "$LINENO"; then :
8131 lt_cv_ld_exported_symbols_list=yes
8132 else
8133 lt_cv_ld_exported_symbols_list=no
8134 fi
8135 rm -f core conftest.err conftest.$ac_objext \
8136 conftest$ac_exeext conftest.$ac_ext
8137 LDFLAGS="$save_LDFLAGS"
8138
8139 fi
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8141 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8143 $as_echo_n "checking for -force_load linker flag... " >&6; }
8144 if ${lt_cv_ld_force_load+:} false; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 lt_cv_ld_force_load=no
8148 cat > conftest.c << _LT_EOF
8149 int forced_loaded() { return 2;}
8150 _LT_EOF
8151 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8152 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8153 echo "$AR cru libconftest.a conftest.o" >&5
8154 $AR cru libconftest.a conftest.o 2>&5
8155 cat > conftest.c << _LT_EOF
8156 int main() { return 0;}
8157 _LT_EOF
8158 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8159 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8160 _lt_result=$?
8161 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8162 lt_cv_ld_force_load=yes
8163 else
8164 cat conftest.err >&5
8165 fi
8166 rm -f conftest.err libconftest.a conftest conftest.c
8167 rm -rf conftest.dSYM
8168
8169 fi
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8171 $as_echo "$lt_cv_ld_force_load" >&6; }
8172 case $host_os in
8173 rhapsody* | darwin1.[012])
8174 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8175 darwin1.*)
8176 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8177 darwin*) # darwin 5.x on
8178 # if running on 10.5 or later, the deployment target defaults
8179 # to the OS version, if on x86, and 10.4, the deployment
8180 # target defaults to 10.4. Don't you love it?
8181 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8182 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8183 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8184 10.[012][,.]*)
8185 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8186 10.*)
8187 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8188 esac
8189 ;;
8190 esac
8191 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8192 _lt_dar_single_mod='$single_module'
8193 fi
8194 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8195 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8196 else
8197 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8198 fi
8199 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8200 _lt_dsymutil='~$DSYMUTIL $lib || :'
8201 else
8202 _lt_dsymutil=
8203 fi
8204 ;;
8205 esac
8206
8207 for ac_header in dlfcn.h
8208 do :
8209 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8210 "
8211 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8212 cat >>confdefs.h <<_ACEOF
8213 #define HAVE_DLFCN_H 1
8214 _ACEOF
8215
8216 fi
8217
8218 done
8219
8220
8221
8222
8223
8224 # Set options
8225
8226
8227
8228 enable_dlopen=no
8229
8230
8231 enable_win32_dll=no
8232
8233
8234
8235 # Check whether --enable-static was given.
8236 if test "${enable_static+set}" = set; then :
8237 enableval=$enable_static; p=${PACKAGE-default}
8238 case $enableval in
8239 yes) enable_static=yes ;;
8240 no) enable_static=no ;;
8241 *)
8242 enable_static=no
8243 # Look at the argument we got. We use all the common list separators.
8244 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8245 for pkg in $enableval; do
8246 IFS="$lt_save_ifs"
8247 if test "X$pkg" = "X$p"; then
8248 enable_static=yes
8249 fi
8250 done
8251 IFS="$lt_save_ifs"
8252 ;;
8253 esac
8254 else
8255 enable_static=yes
8256 fi
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267 # Check whether --with-pic was given.
8268 if test "${with_pic+set}" = set; then :
8269 withval=$with_pic; pic_mode="$withval"
8270 else
8271 pic_mode=default
8272 fi
8273
8274
8275 test -z "$pic_mode" && pic_mode=default
8276
8277
8278
8279
8280
8281
8282
8283 # Check whether --enable-fast-install was given.
8284 if test "${enable_fast_install+set}" = set; then :
8285 enableval=$enable_fast_install; p=${PACKAGE-default}
8286 case $enableval in
8287 yes) enable_fast_install=yes ;;
8288 no) enable_fast_install=no ;;
8289 *)
8290 enable_fast_install=no
8291 # Look at the argument we got. We use all the common list separators.
8292 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8293 for pkg in $enableval; do
8294 IFS="$lt_save_ifs"
8295 if test "X$pkg" = "X$p"; then
8296 enable_fast_install=yes
8297 fi
8298 done
8299 IFS="$lt_save_ifs"
8300 ;;
8301 esac
8302 else
8303 enable_fast_install=yes
8304 fi
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316 # This can be used to rebuild libtool when needed
8317 LIBTOOL_DEPS="$ltmain"
8318
8319 # Always use our own libtool.
8320 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347 test -z "$LN_S" && LN_S="ln -s"
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362 if test -n "${ZSH_VERSION+set}" ; then
8363 setopt NO_GLOB_SUBST
8364 fi
8365
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8367 $as_echo_n "checking for objdir... " >&6; }
8368 if ${lt_cv_objdir+:} false; then :
8369 $as_echo_n "(cached) " >&6
8370 else
8371 rm -f .libs 2>/dev/null
8372 mkdir .libs 2>/dev/null
8373 if test -d .libs; then
8374 lt_cv_objdir=.libs
8375 else
8376 # MS-DOS does not allow filenames that begin with a dot.
8377 lt_cv_objdir=_libs
8378 fi
8379 rmdir .libs 2>/dev/null
8380 fi
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8382 $as_echo "$lt_cv_objdir" >&6; }
8383 objdir=$lt_cv_objdir
8384
8385
8386
8387
8388
8389 cat >>confdefs.h <<_ACEOF
8390 #define LT_OBJDIR "$lt_cv_objdir/"
8391 _ACEOF
8392
8393
8394
8395
8396 case $host_os in
8397 aix3*)
8398 # AIX sometimes has problems with the GCC collect2 program. For some
8399 # reason, if we set the COLLECT_NAMES environment variable, the problems
8400 # vanish in a puff of smoke.
8401 if test "X${COLLECT_NAMES+set}" != Xset; then
8402 COLLECT_NAMES=
8403 export COLLECT_NAMES
8404 fi
8405 ;;
8406 esac
8407
8408 # Global variables:
8409 ofile=libtool
8410 can_build_shared=yes
8411
8412 # All known linkers require a `.a' archive for static linking (except MSVC,
8413 # which needs '.lib').
8414 libext=a
8415
8416 with_gnu_ld="$lt_cv_prog_gnu_ld"
8417
8418 old_CC="$CC"
8419 old_CFLAGS="$CFLAGS"
8420
8421 # Set sane defaults for various variables
8422 test -z "$CC" && CC=cc
8423 test -z "$LTCC" && LTCC=$CC
8424 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8425 test -z "$LD" && LD=ld
8426 test -z "$ac_objext" && ac_objext=o
8427
8428 for cc_temp in $compiler""; do
8429 case $cc_temp in
8430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8432 \-*) ;;
8433 *) break;;
8434 esac
8435 done
8436 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8437
8438
8439 # Only perform the check for file, if the check method requires it
8440 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8441 case $deplibs_check_method in
8442 file_magic*)
8443 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8445 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8446 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8447 $as_echo_n "(cached) " >&6
8448 else
8449 case $MAGIC_CMD in
8450 [\\/*] | ?:[\\/]*)
8451 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8452 ;;
8453 *)
8454 lt_save_MAGIC_CMD="$MAGIC_CMD"
8455 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8456 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8457 for ac_dir in $ac_dummy; do
8458 IFS="$lt_save_ifs"
8459 test -z "$ac_dir" && ac_dir=.
8460 if test -f $ac_dir/${ac_tool_prefix}file; then
8461 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8462 if test -n "$file_magic_test_file"; then
8463 case $deplibs_check_method in
8464 "file_magic "*)
8465 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8466 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8467 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8468 $EGREP "$file_magic_regex" > /dev/null; then
8469 :
8470 else
8471 cat <<_LT_EOF 1>&2
8472
8473 *** Warning: the command libtool uses to detect shared libraries,
8474 *** $file_magic_cmd, produces output that libtool cannot recognize.
8475 *** The result is that libtool may fail to recognize shared libraries
8476 *** as such. This will affect the creation of libtool libraries that
8477 *** depend on shared libraries, but programs linked with such libtool
8478 *** libraries will work regardless of this problem. Nevertheless, you
8479 *** may want to report the problem to your system manager and/or to
8480 *** bug-libtool@gnu.org
8481
8482 _LT_EOF
8483 fi ;;
8484 esac
8485 fi
8486 break
8487 fi
8488 done
8489 IFS="$lt_save_ifs"
8490 MAGIC_CMD="$lt_save_MAGIC_CMD"
8491 ;;
8492 esac
8493 fi
8494
8495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8496 if test -n "$MAGIC_CMD"; then
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8498 $as_echo "$MAGIC_CMD" >&6; }
8499 else
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501 $as_echo "no" >&6; }
8502 fi
8503
8504
8505
8506
8507
8508 if test -z "$lt_cv_path_MAGIC_CMD"; then
8509 if test -n "$ac_tool_prefix"; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8511 $as_echo_n "checking for file... " >&6; }
8512 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 case $MAGIC_CMD in
8516 [\\/*] | ?:[\\/]*)
8517 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8518 ;;
8519 *)
8520 lt_save_MAGIC_CMD="$MAGIC_CMD"
8521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8522 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8523 for ac_dir in $ac_dummy; do
8524 IFS="$lt_save_ifs"
8525 test -z "$ac_dir" && ac_dir=.
8526 if test -f $ac_dir/file; then
8527 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8528 if test -n "$file_magic_test_file"; then
8529 case $deplibs_check_method in
8530 "file_magic "*)
8531 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8532 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8533 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8534 $EGREP "$file_magic_regex" > /dev/null; then
8535 :
8536 else
8537 cat <<_LT_EOF 1>&2
8538
8539 *** Warning: the command libtool uses to detect shared libraries,
8540 *** $file_magic_cmd, produces output that libtool cannot recognize.
8541 *** The result is that libtool may fail to recognize shared libraries
8542 *** as such. This will affect the creation of libtool libraries that
8543 *** depend on shared libraries, but programs linked with such libtool
8544 *** libraries will work regardless of this problem. Nevertheless, you
8545 *** may want to report the problem to your system manager and/or to
8546 *** bug-libtool@gnu.org
8547
8548 _LT_EOF
8549 fi ;;
8550 esac
8551 fi
8552 break
8553 fi
8554 done
8555 IFS="$lt_save_ifs"
8556 MAGIC_CMD="$lt_save_MAGIC_CMD"
8557 ;;
8558 esac
8559 fi
8560
8561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8562 if test -n "$MAGIC_CMD"; then
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8564 $as_echo "$MAGIC_CMD" >&6; }
8565 else
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567 $as_echo "no" >&6; }
8568 fi
8569
8570
8571 else
8572 MAGIC_CMD=:
8573 fi
8574 fi
8575
8576 fi
8577 ;;
8578 esac
8579
8580 # Use C for the default configuration in the libtool script
8581
8582 lt_save_CC="$CC"
8583 ac_ext=c
8584 ac_cpp='$CPP $CPPFLAGS'
8585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8588
8589
8590 # Source file extension for C test sources.
8591 ac_ext=c
8592
8593 # Object file extension for compiled C test sources.
8594 objext=o
8595 objext=$objext
8596
8597 # Code to be used in simple compile tests
8598 lt_simple_compile_test_code="int some_variable = 0;"
8599
8600 # Code to be used in simple link tests
8601 lt_simple_link_test_code='int main(){return(0);}'
8602
8603
8604
8605
8606
8607
8608
8609 # If no C compiler was specified, use CC.
8610 LTCC=${LTCC-"$CC"}
8611
8612 # If no C compiler flags were specified, use CFLAGS.
8613 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8614
8615 # Allow CC to be a program name with arguments.
8616 compiler=$CC
8617
8618 # Save the default compiler, since it gets overwritten when the other
8619 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8620 compiler_DEFAULT=$CC
8621
8622 # save warnings/boilerplate of simple test code
8623 ac_outfile=conftest.$ac_objext
8624 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8625 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8626 _lt_compiler_boilerplate=`cat conftest.err`
8627 $RM conftest*
8628
8629 ac_outfile=conftest.$ac_objext
8630 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8631 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8632 _lt_linker_boilerplate=`cat conftest.err`
8633 $RM -r conftest*
8634
8635
8636 ## CAVEAT EMPTOR:
8637 ## There is no encapsulation within the following macros, do not change
8638 ## the running order or otherwise move them around unless you know exactly
8639 ## what you are doing...
8640 if test -n "$compiler"; then
8641
8642 lt_prog_compiler_no_builtin_flag=
8643
8644 if test "$GCC" = yes; then
8645 case $cc_basename in
8646 nvcc*)
8647 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8648 *)
8649 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8650 esac
8651
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8653 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8654 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8655 $as_echo_n "(cached) " >&6
8656 else
8657 lt_cv_prog_compiler_rtti_exceptions=no
8658 ac_outfile=conftest.$ac_objext
8659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8660 lt_compiler_flag="-fno-rtti -fno-exceptions"
8661 # Insert the option either (1) after the last *FLAGS variable, or
8662 # (2) before a word containing "conftest.", or (3) at the end.
8663 # Note that $ac_compile itself does not contain backslashes and begins
8664 # with a dollar sign (not a hyphen), so the echo should work correctly.
8665 # The option is referenced via a variable to avoid confusing sed.
8666 lt_compile=`echo "$ac_compile" | $SED \
8667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8669 -e 's:$: $lt_compiler_flag:'`
8670 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8671 (eval "$lt_compile" 2>conftest.err)
8672 ac_status=$?
8673 cat conftest.err >&5
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 if (exit $ac_status) && test -s "$ac_outfile"; then
8676 # The compiler can only warn and ignore the option if not recognized
8677 # So say no if there are warnings other than the usual output.
8678 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8680 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8681 lt_cv_prog_compiler_rtti_exceptions=yes
8682 fi
8683 fi
8684 $RM conftest*
8685
8686 fi
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8688 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8689
8690 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8691 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8692 else
8693 :
8694 fi
8695
8696 fi
8697
8698
8699
8700
8701
8702
8703 lt_prog_compiler_wl=
8704 lt_prog_compiler_pic=
8705 lt_prog_compiler_static=
8706
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8708 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8709
8710 if test "$GCC" = yes; then
8711 lt_prog_compiler_wl='-Wl,'
8712 lt_prog_compiler_static='-static'
8713
8714 case $host_os in
8715 aix*)
8716 # All AIX code is PIC.
8717 if test "$host_cpu" = ia64; then
8718 # AIX 5 now supports IA64 processor
8719 lt_prog_compiler_static='-Bstatic'
8720 fi
8721 lt_prog_compiler_pic='-fPIC'
8722 ;;
8723
8724 amigaos*)
8725 case $host_cpu in
8726 powerpc)
8727 # see comment about AmigaOS4 .so support
8728 lt_prog_compiler_pic='-fPIC'
8729 ;;
8730 m68k)
8731 # FIXME: we need at least 68020 code to build shared libraries, but
8732 # adding the `-m68020' flag to GCC prevents building anything better,
8733 # like `-m68040'.
8734 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8735 ;;
8736 esac
8737 ;;
8738
8739 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8740 # PIC is the default for these OSes.
8741 ;;
8742
8743 mingw* | cygwin* | pw32* | os2* | cegcc*)
8744 # This hack is so that the source file can tell whether it is being
8745 # built for inclusion in a dll (and should export symbols for example).
8746 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8747 # (--disable-auto-import) libraries
8748 lt_prog_compiler_pic='-DDLL_EXPORT'
8749 ;;
8750
8751 darwin* | rhapsody*)
8752 # PIC is the default on this platform
8753 # Common symbols not allowed in MH_DYLIB files
8754 lt_prog_compiler_pic='-fno-common'
8755 ;;
8756
8757 haiku*)
8758 # PIC is the default for Haiku.
8759 # The "-static" flag exists, but is broken.
8760 lt_prog_compiler_static=
8761 ;;
8762
8763 hpux*)
8764 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8765 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8766 # sets the default TLS model and affects inlining.
8767 case $host_cpu in
8768 hppa*64*)
8769 # +Z the default
8770 ;;
8771 *)
8772 lt_prog_compiler_pic='-fPIC'
8773 ;;
8774 esac
8775 ;;
8776
8777 interix[3-9]*)
8778 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8779 # Instead, we relocate shared libraries at runtime.
8780 ;;
8781
8782 msdosdjgpp*)
8783 # Just because we use GCC doesn't mean we suddenly get shared libraries
8784 # on systems that don't support them.
8785 lt_prog_compiler_can_build_shared=no
8786 enable_shared=no
8787 ;;
8788
8789 *nto* | *qnx*)
8790 # QNX uses GNU C++, but need to define -shared option too, otherwise
8791 # it will coredump.
8792 lt_prog_compiler_pic='-fPIC -shared'
8793 ;;
8794
8795 sysv4*MP*)
8796 if test -d /usr/nec; then
8797 lt_prog_compiler_pic=-Kconform_pic
8798 fi
8799 ;;
8800
8801 *)
8802 lt_prog_compiler_pic='-fPIC'
8803 ;;
8804 esac
8805
8806 case $cc_basename in
8807 nvcc*) # Cuda Compiler Driver 2.2
8808 lt_prog_compiler_wl='-Xlinker '
8809 lt_prog_compiler_pic='-Xcompiler -fPIC'
8810 ;;
8811 esac
8812 else
8813 # PORTME Check for flag to pass linker flags through the system compiler.
8814 case $host_os in
8815 aix*)
8816 lt_prog_compiler_wl='-Wl,'
8817 if test "$host_cpu" = ia64; then
8818 # AIX 5 now supports IA64 processor
8819 lt_prog_compiler_static='-Bstatic'
8820 else
8821 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8822 fi
8823 ;;
8824
8825 mingw* | cygwin* | pw32* | os2* | cegcc*)
8826 # This hack is so that the source file can tell whether it is being
8827 # built for inclusion in a dll (and should export symbols for example).
8828 lt_prog_compiler_pic='-DDLL_EXPORT'
8829 ;;
8830
8831 hpux9* | hpux10* | hpux11*)
8832 lt_prog_compiler_wl='-Wl,'
8833 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8834 # not for PA HP-UX.
8835 case $host_cpu in
8836 hppa*64*|ia64*)
8837 # +Z the default
8838 ;;
8839 *)
8840 lt_prog_compiler_pic='+Z'
8841 ;;
8842 esac
8843 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8844 lt_prog_compiler_static='${wl}-a ${wl}archive'
8845 ;;
8846
8847 irix5* | irix6* | nonstopux*)
8848 lt_prog_compiler_wl='-Wl,'
8849 # PIC (with -KPIC) is the default.
8850 lt_prog_compiler_static='-non_shared'
8851 ;;
8852
8853 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8854 case $cc_basename in
8855 # old Intel for x86_64 which still supported -KPIC.
8856 ecc*)
8857 lt_prog_compiler_wl='-Wl,'
8858 lt_prog_compiler_pic='-KPIC'
8859 lt_prog_compiler_static='-static'
8860 ;;
8861 # icc used to be incompatible with GCC.
8862 # ICC 10 doesn't accept -KPIC any more.
8863 icc* | ifort*)
8864 lt_prog_compiler_wl='-Wl,'
8865 lt_prog_compiler_pic='-fPIC'
8866 lt_prog_compiler_static='-static'
8867 ;;
8868 # Lahey Fortran 8.1.
8869 lf95*)
8870 lt_prog_compiler_wl='-Wl,'
8871 lt_prog_compiler_pic='--shared'
8872 lt_prog_compiler_static='--static'
8873 ;;
8874 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8875 # Portland Group compilers (*not* the Pentium gcc compiler,
8876 # which looks to be a dead project)
8877 lt_prog_compiler_wl='-Wl,'
8878 lt_prog_compiler_pic='-fpic'
8879 lt_prog_compiler_static='-Bstatic'
8880 ;;
8881 ccc*)
8882 lt_prog_compiler_wl='-Wl,'
8883 # All Alpha code is PIC.
8884 lt_prog_compiler_static='-non_shared'
8885 ;;
8886 xl* | bgxl* | bgf* | mpixl*)
8887 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8888 lt_prog_compiler_wl='-Wl,'
8889 lt_prog_compiler_pic='-qpic'
8890 lt_prog_compiler_static='-qstaticlink'
8891 ;;
8892 *)
8893 case `$CC -V 2>&1 | sed 5q` in
8894 *Sun\ F* | *Sun*Fortran*)
8895 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8896 lt_prog_compiler_pic='-KPIC'
8897 lt_prog_compiler_static='-Bstatic'
8898 lt_prog_compiler_wl=''
8899 ;;
8900 *Sun\ C*)
8901 # Sun C 5.9
8902 lt_prog_compiler_pic='-KPIC'
8903 lt_prog_compiler_static='-Bstatic'
8904 lt_prog_compiler_wl='-Wl,'
8905 ;;
8906 esac
8907 ;;
8908 esac
8909 ;;
8910
8911 newsos6)
8912 lt_prog_compiler_pic='-KPIC'
8913 lt_prog_compiler_static='-Bstatic'
8914 ;;
8915
8916 *nto* | *qnx*)
8917 # QNX uses GNU C++, but need to define -shared option too, otherwise
8918 # it will coredump.
8919 lt_prog_compiler_pic='-fPIC -shared'
8920 ;;
8921
8922 osf3* | osf4* | osf5*)
8923 lt_prog_compiler_wl='-Wl,'
8924 # All OSF/1 code is PIC.
8925 lt_prog_compiler_static='-non_shared'
8926 ;;
8927
8928 rdos*)
8929 lt_prog_compiler_static='-non_shared'
8930 ;;
8931
8932 solaris*)
8933 lt_prog_compiler_pic='-KPIC'
8934 lt_prog_compiler_static='-Bstatic'
8935 case $cc_basename in
8936 f77* | f90* | f95*)
8937 lt_prog_compiler_wl='-Qoption ld ';;
8938 *)
8939 lt_prog_compiler_wl='-Wl,';;
8940 esac
8941 ;;
8942
8943 sunos4*)
8944 lt_prog_compiler_wl='-Qoption ld '
8945 lt_prog_compiler_pic='-PIC'
8946 lt_prog_compiler_static='-Bstatic'
8947 ;;
8948
8949 sysv4 | sysv4.2uw2* | sysv4.3*)
8950 lt_prog_compiler_wl='-Wl,'
8951 lt_prog_compiler_pic='-KPIC'
8952 lt_prog_compiler_static='-Bstatic'
8953 ;;
8954
8955 sysv4*MP*)
8956 if test -d /usr/nec ;then
8957 lt_prog_compiler_pic='-Kconform_pic'
8958 lt_prog_compiler_static='-Bstatic'
8959 fi
8960 ;;
8961
8962 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8963 lt_prog_compiler_wl='-Wl,'
8964 lt_prog_compiler_pic='-KPIC'
8965 lt_prog_compiler_static='-Bstatic'
8966 ;;
8967
8968 unicos*)
8969 lt_prog_compiler_wl='-Wl,'
8970 lt_prog_compiler_can_build_shared=no
8971 ;;
8972
8973 uts4*)
8974 lt_prog_compiler_pic='-pic'
8975 lt_prog_compiler_static='-Bstatic'
8976 ;;
8977
8978 *)
8979 lt_prog_compiler_can_build_shared=no
8980 ;;
8981 esac
8982 fi
8983
8984 case $host_os in
8985 # For platforms which do not support PIC, -DPIC is meaningless:
8986 *djgpp*)
8987 lt_prog_compiler_pic=
8988 ;;
8989 *)
8990 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8991 ;;
8992 esac
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8994 $as_echo "$lt_prog_compiler_pic" >&6; }
8995
8996
8997
8998
8999
9000
9001 #
9002 # Check to make sure the PIC flag actually works.
9003 #
9004 if test -n "$lt_prog_compiler_pic"; then
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9006 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9007 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9008 $as_echo_n "(cached) " >&6
9009 else
9010 lt_cv_prog_compiler_pic_works=no
9011 ac_outfile=conftest.$ac_objext
9012 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9013 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9014 # Insert the option either (1) after the last *FLAGS variable, or
9015 # (2) before a word containing "conftest.", or (3) at the end.
9016 # Note that $ac_compile itself does not contain backslashes and begins
9017 # with a dollar sign (not a hyphen), so the echo should work correctly.
9018 # The option is referenced via a variable to avoid confusing sed.
9019 lt_compile=`echo "$ac_compile" | $SED \
9020 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9021 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9022 -e 's:$: $lt_compiler_flag:'`
9023 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9024 (eval "$lt_compile" 2>conftest.err)
9025 ac_status=$?
9026 cat conftest.err >&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 if (exit $ac_status) && test -s "$ac_outfile"; then
9029 # The compiler can only warn and ignore the option if not recognized
9030 # So say no if there are warnings other than the usual output.
9031 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9033 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9034 lt_cv_prog_compiler_pic_works=yes
9035 fi
9036 fi
9037 $RM conftest*
9038
9039 fi
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9041 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9042
9043 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9044 case $lt_prog_compiler_pic in
9045 "" | " "*) ;;
9046 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9047 esac
9048 else
9049 lt_prog_compiler_pic=
9050 lt_prog_compiler_can_build_shared=no
9051 fi
9052
9053 fi
9054
9055
9056
9057
9058
9059
9060 #
9061 # Check to make sure the static flag actually works.
9062 #
9063 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9065 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9066 if ${lt_cv_prog_compiler_static_works+:} false; then :
9067 $as_echo_n "(cached) " >&6
9068 else
9069 lt_cv_prog_compiler_static_works=no
9070 save_LDFLAGS="$LDFLAGS"
9071 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9072 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9073 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9074 # The linker can only warn and ignore the option if not recognized
9075 # So say no if there are warnings
9076 if test -s conftest.err; then
9077 # Append any errors to the config.log.
9078 cat conftest.err 1>&5
9079 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9081 if diff conftest.exp conftest.er2 >/dev/null; then
9082 lt_cv_prog_compiler_static_works=yes
9083 fi
9084 else
9085 lt_cv_prog_compiler_static_works=yes
9086 fi
9087 fi
9088 $RM -r conftest*
9089 LDFLAGS="$save_LDFLAGS"
9090
9091 fi
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9093 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9094
9095 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9096 :
9097 else
9098 lt_prog_compiler_static=
9099 fi
9100
9101
9102
9103
9104
9105
9106
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9108 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9109 if ${lt_cv_prog_compiler_c_o+:} false; then :
9110 $as_echo_n "(cached) " >&6
9111 else
9112 lt_cv_prog_compiler_c_o=no
9113 $RM -r conftest 2>/dev/null
9114 mkdir conftest
9115 cd conftest
9116 mkdir out
9117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9118
9119 lt_compiler_flag="-o out/conftest2.$ac_objext"
9120 # Insert the option either (1) after the last *FLAGS variable, or
9121 # (2) before a word containing "conftest.", or (3) at the end.
9122 # Note that $ac_compile itself does not contain backslashes and begins
9123 # with a dollar sign (not a hyphen), so the echo should work correctly.
9124 lt_compile=`echo "$ac_compile" | $SED \
9125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9127 -e 's:$: $lt_compiler_flag:'`
9128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9129 (eval "$lt_compile" 2>out/conftest.err)
9130 ac_status=$?
9131 cat out/conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9134 then
9135 # The compiler can only warn and ignore the option if not recognized
9136 # So say no if there are warnings
9137 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9138 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9139 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9140 lt_cv_prog_compiler_c_o=yes
9141 fi
9142 fi
9143 chmod u+w . 2>&5
9144 $RM conftest*
9145 # SGI C++ compiler will create directory out/ii_files/ for
9146 # template instantiation
9147 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9148 $RM out/* && rmdir out
9149 cd ..
9150 $RM -r conftest
9151 $RM conftest*
9152
9153 fi
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9155 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9156
9157
9158
9159
9160
9161
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9163 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9164 if ${lt_cv_prog_compiler_c_o+:} false; then :
9165 $as_echo_n "(cached) " >&6
9166 else
9167 lt_cv_prog_compiler_c_o=no
9168 $RM -r conftest 2>/dev/null
9169 mkdir conftest
9170 cd conftest
9171 mkdir out
9172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9173
9174 lt_compiler_flag="-o out/conftest2.$ac_objext"
9175 # Insert the option either (1) after the last *FLAGS variable, or
9176 # (2) before a word containing "conftest.", or (3) at the end.
9177 # Note that $ac_compile itself does not contain backslashes and begins
9178 # with a dollar sign (not a hyphen), so the echo should work correctly.
9179 lt_compile=`echo "$ac_compile" | $SED \
9180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9182 -e 's:$: $lt_compiler_flag:'`
9183 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9184 (eval "$lt_compile" 2>out/conftest.err)
9185 ac_status=$?
9186 cat out/conftest.err >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9189 then
9190 # The compiler can only warn and ignore the option if not recognized
9191 # So say no if there are warnings
9192 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9193 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9194 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9195 lt_cv_prog_compiler_c_o=yes
9196 fi
9197 fi
9198 chmod u+w . 2>&5
9199 $RM conftest*
9200 # SGI C++ compiler will create directory out/ii_files/ for
9201 # template instantiation
9202 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9203 $RM out/* && rmdir out
9204 cd ..
9205 $RM -r conftest
9206 $RM conftest*
9207
9208 fi
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9210 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9211
9212
9213
9214
9215 hard_links="nottested"
9216 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9217 # do not overwrite the value of need_locks provided by the user
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9219 $as_echo_n "checking if we can lock with hard links... " >&6; }
9220 hard_links=yes
9221 $RM conftest*
9222 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9223 touch conftest.a
9224 ln conftest.a conftest.b 2>&5 || hard_links=no
9225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9227 $as_echo "$hard_links" >&6; }
9228 if test "$hard_links" = no; then
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9230 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9231 need_locks=warn
9232 fi
9233 else
9234 need_locks=no
9235 fi
9236
9237
9238
9239
9240
9241
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9243 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9244
9245 runpath_var=
9246 allow_undefined_flag=
9247 always_export_symbols=no
9248 archive_cmds=
9249 archive_expsym_cmds=
9250 compiler_needs_object=no
9251 enable_shared_with_static_runtimes=no
9252 export_dynamic_flag_spec=
9253 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9254 hardcode_automatic=no
9255 hardcode_direct=no
9256 hardcode_direct_absolute=no
9257 hardcode_libdir_flag_spec=
9258 hardcode_libdir_flag_spec_ld=
9259 hardcode_libdir_separator=
9260 hardcode_minus_L=no
9261 hardcode_shlibpath_var=unsupported
9262 inherit_rpath=no
9263 link_all_deplibs=unknown
9264 module_cmds=
9265 module_expsym_cmds=
9266 old_archive_from_new_cmds=
9267 old_archive_from_expsyms_cmds=
9268 thread_safe_flag_spec=
9269 whole_archive_flag_spec=
9270 # include_expsyms should be a list of space-separated symbols to be *always*
9271 # included in the symbol list
9272 include_expsyms=
9273 # exclude_expsyms can be an extended regexp of symbols to exclude
9274 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9275 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9276 # as well as any symbol that contains `d'.
9277 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9278 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9279 # platforms (ab)use it in PIC code, but their linkers get confused if
9280 # the symbol is explicitly referenced. Since portable code cannot
9281 # rely on this symbol name, it's probably fine to never include it in
9282 # preloaded symbol tables.
9283 # Exclude shared library initialization/finalization symbols.
9284 extract_expsyms_cmds=
9285
9286 case $host_os in
9287 cygwin* | mingw* | pw32* | cegcc*)
9288 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9289 # When not using gcc, we currently assume that we are using
9290 # Microsoft Visual C++.
9291 if test "$GCC" != yes; then
9292 with_gnu_ld=no
9293 fi
9294 ;;
9295 interix*)
9296 # we just hope/assume this is gcc and not c89 (= MSVC++)
9297 with_gnu_ld=yes
9298 ;;
9299 openbsd*)
9300 with_gnu_ld=no
9301 ;;
9302 esac
9303
9304 ld_shlibs=yes
9305
9306 # On some targets, GNU ld is compatible enough with the native linker
9307 # that we're better off using the native interface for both.
9308 lt_use_gnu_ld_interface=no
9309 if test "$with_gnu_ld" = yes; then
9310 case $host_os in
9311 aix*)
9312 # The AIX port of GNU ld has always aspired to compatibility
9313 # with the native linker. However, as the warning in the GNU ld
9314 # block says, versions before 2.19.5* couldn't really create working
9315 # shared libraries, regardless of the interface used.
9316 case `$LD -v 2>&1` in
9317 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9318 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9319 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9320 *)
9321 lt_use_gnu_ld_interface=yes
9322 ;;
9323 esac
9324 ;;
9325 *)
9326 lt_use_gnu_ld_interface=yes
9327 ;;
9328 esac
9329 fi
9330
9331 if test "$lt_use_gnu_ld_interface" = yes; then
9332 # If archive_cmds runs LD, not CC, wlarc should be empty
9333 wlarc='${wl}'
9334
9335 # Set some defaults for GNU ld with shared library support. These
9336 # are reset later if shared libraries are not supported. Putting them
9337 # here allows them to be overridden if necessary.
9338 runpath_var=LD_RUN_PATH
9339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9340 export_dynamic_flag_spec='${wl}--export-dynamic'
9341 # ancient GNU ld didn't support --whole-archive et. al.
9342 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9343 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9344 else
9345 whole_archive_flag_spec=
9346 fi
9347 supports_anon_versioning=no
9348 case `$LD -v 2>&1` in
9349 *GNU\ gold*) supports_anon_versioning=yes ;;
9350 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9351 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9352 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9353 *\ 2.11.*) ;; # other 2.11 versions
9354 *) supports_anon_versioning=yes ;;
9355 esac
9356
9357 # See if GNU ld supports shared libraries.
9358 case $host_os in
9359 aix[3-9]*)
9360 # On AIX/PPC, the GNU linker is very broken
9361 if test "$host_cpu" != ia64; then
9362 ld_shlibs=no
9363 cat <<_LT_EOF 1>&2
9364
9365 *** Warning: the GNU linker, at least up to release 2.19, is reported
9366 *** to be unable to reliably create shared libraries on AIX.
9367 *** Therefore, libtool is disabling shared libraries support. If you
9368 *** really care for shared libraries, you may want to install binutils
9369 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9370 *** You will then need to restart the configuration process.
9371
9372 _LT_EOF
9373 fi
9374 ;;
9375
9376 amigaos*)
9377 case $host_cpu in
9378 powerpc)
9379 # see comment about AmigaOS4 .so support
9380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9381 archive_expsym_cmds=''
9382 ;;
9383 m68k)
9384 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)'
9385 hardcode_libdir_flag_spec='-L$libdir'
9386 hardcode_minus_L=yes
9387 ;;
9388 esac
9389 ;;
9390
9391 beos*)
9392 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9393 allow_undefined_flag=unsupported
9394 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9395 # support --undefined. This deserves some investigation. FIXME
9396 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9397 else
9398 ld_shlibs=no
9399 fi
9400 ;;
9401
9402 cygwin* | mingw* | pw32* | cegcc*)
9403 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9404 # as there is no search path for DLLs.
9405 hardcode_libdir_flag_spec='-L$libdir'
9406 export_dynamic_flag_spec='${wl}--export-all-symbols'
9407 allow_undefined_flag=unsupported
9408 always_export_symbols=no
9409 enable_shared_with_static_runtimes=yes
9410 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9411
9412 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9414 # If the export-symbols file already is a .def file (1st line
9415 # is EXPORTS), use it as is; otherwise, prepend...
9416 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9417 cp $export_symbols $output_objdir/$soname.def;
9418 else
9419 echo EXPORTS > $output_objdir/$soname.def;
9420 cat $export_symbols >> $output_objdir/$soname.def;
9421 fi~
9422 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9423 else
9424 ld_shlibs=no
9425 fi
9426 ;;
9427
9428 haiku*)
9429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9430 link_all_deplibs=yes
9431 ;;
9432
9433 interix[3-9]*)
9434 hardcode_direct=no
9435 hardcode_shlibpath_var=no
9436 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9437 export_dynamic_flag_spec='${wl}-E'
9438 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9439 # Instead, shared libraries are loaded at an image base (0x10000000 by
9440 # default) and relocated if they conflict, which is a slow very memory
9441 # consuming and fragmenting process. To avoid this, we pick a random,
9442 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9443 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9444 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9445 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'
9446 ;;
9447
9448 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9449 tmp_diet=no
9450 if test "$host_os" = linux-dietlibc; then
9451 case $cc_basename in
9452 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9453 esac
9454 fi
9455 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9456 && test "$tmp_diet" = no
9457 then
9458 tmp_addflag=' $pic_flag'
9459 tmp_sharedflag='-shared'
9460 case $cc_basename,$host_cpu in
9461 pgcc*) # Portland Group C compiler
9462 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'
9463 tmp_addflag=' $pic_flag'
9464 ;;
9465 pgf77* | pgf90* | pgf95* | pgfortran*)
9466 # Portland Group f77 and f90 compilers
9467 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'
9468 tmp_addflag=' $pic_flag -Mnomain' ;;
9469 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9470 tmp_addflag=' -i_dynamic' ;;
9471 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9472 tmp_addflag=' -i_dynamic -nofor_main' ;;
9473 ifc* | ifort*) # Intel Fortran compiler
9474 tmp_addflag=' -nofor_main' ;;
9475 lf95*) # Lahey Fortran 8.1
9476 whole_archive_flag_spec=
9477 tmp_sharedflag='--shared' ;;
9478 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9479 tmp_sharedflag='-qmkshrobj'
9480 tmp_addflag= ;;
9481 nvcc*) # Cuda Compiler Driver 2.2
9482 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'
9483 compiler_needs_object=yes
9484 ;;
9485 esac
9486 case `$CC -V 2>&1 | sed 5q` in
9487 *Sun\ C*) # Sun C 5.9
9488 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'
9489 compiler_needs_object=yes
9490 tmp_sharedflag='-G' ;;
9491 *Sun\ F*) # Sun Fortran 8.3
9492 tmp_sharedflag='-G' ;;
9493 esac
9494 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9495
9496 if test "x$supports_anon_versioning" = xyes; then
9497 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9498 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9499 echo "local: *; };" >> $output_objdir/$libname.ver~
9500 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9501 fi
9502
9503 case $cc_basename in
9504 xlf* | bgf* | bgxlf* | mpixlf*)
9505 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9506 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9507 hardcode_libdir_flag_spec=
9508 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9509 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9510 if test "x$supports_anon_versioning" = xyes; then
9511 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9512 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9513 echo "local: *; };" >> $output_objdir/$libname.ver~
9514 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9515 fi
9516 ;;
9517 esac
9518 else
9519 ld_shlibs=no
9520 fi
9521 ;;
9522
9523 netbsd*)
9524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9525 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9526 wlarc=
9527 else
9528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9529 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9530 fi
9531 ;;
9532
9533 solaris*)
9534 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9535 ld_shlibs=no
9536 cat <<_LT_EOF 1>&2
9537
9538 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9539 *** create shared libraries on Solaris systems. Therefore, libtool
9540 *** is disabling shared libraries support. We urge you to upgrade GNU
9541 *** binutils to release 2.9.1 or newer. Another option is to modify
9542 *** your PATH or compiler configuration so that the native linker is
9543 *** used, and then restart.
9544
9545 _LT_EOF
9546 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9548 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9549 else
9550 ld_shlibs=no
9551 fi
9552 ;;
9553
9554 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9555 case `$LD -v 2>&1` in
9556 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9557 ld_shlibs=no
9558 cat <<_LT_EOF 1>&2
9559
9560 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9561 *** reliably create shared libraries on SCO systems. Therefore, libtool
9562 *** is disabling shared libraries support. We urge you to upgrade GNU
9563 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9564 *** your PATH or compiler configuration so that the native linker is
9565 *** used, and then restart.
9566
9567 _LT_EOF
9568 ;;
9569 *)
9570 # For security reasons, it is highly recommended that you always
9571 # use absolute paths for naming shared libraries, and exclude the
9572 # DT_RUNPATH tag from executables and libraries. But doing so
9573 # requires that you compile everything twice, which is a pain.
9574 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9577 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9578 else
9579 ld_shlibs=no
9580 fi
9581 ;;
9582 esac
9583 ;;
9584
9585 sunos4*)
9586 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9587 wlarc=
9588 hardcode_direct=yes
9589 hardcode_shlibpath_var=no
9590 ;;
9591
9592 *)
9593 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9595 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9596 else
9597 ld_shlibs=no
9598 fi
9599 ;;
9600 esac
9601
9602 if test "$ld_shlibs" = no; then
9603 runpath_var=
9604 hardcode_libdir_flag_spec=
9605 export_dynamic_flag_spec=
9606 whole_archive_flag_spec=
9607 fi
9608 else
9609 # PORTME fill in a description of your system's linker (not GNU ld)
9610 case $host_os in
9611 aix3*)
9612 allow_undefined_flag=unsupported
9613 always_export_symbols=yes
9614 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'
9615 # Note: this linker hardcodes the directories in LIBPATH if there
9616 # are no directories specified by -L.
9617 hardcode_minus_L=yes
9618 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9619 # Neither direct hardcoding nor static linking is supported with a
9620 # broken collect2.
9621 hardcode_direct=unsupported
9622 fi
9623 ;;
9624
9625 aix[4-9]*)
9626 if test "$host_cpu" = ia64; then
9627 # On IA64, the linker does run time linking by default, so we don't
9628 # have to do anything special.
9629 aix_use_runtimelinking=no
9630 exp_sym_flag='-Bexport'
9631 no_entry_flag=""
9632 else
9633 # If we're using GNU nm, then we don't want the "-C" option.
9634 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9635 # Also, AIX nm treats weak defined symbols like other global
9636 # defined symbols, whereas GNU nm marks them as "W".
9637 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9638 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9639 else
9640 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9641 fi
9642 aix_use_runtimelinking=no
9643
9644 # Test if we are trying to use run time linking or normal
9645 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9646 # need to do runtime linking.
9647 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9648 for ld_flag in $LDFLAGS; do
9649 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9650 aix_use_runtimelinking=yes
9651 break
9652 fi
9653 done
9654 ;;
9655 esac
9656
9657 exp_sym_flag='-bexport'
9658 no_entry_flag='-bnoentry'
9659 fi
9660
9661 # When large executables or shared objects are built, AIX ld can
9662 # have problems creating the table of contents. If linking a library
9663 # or program results in "error TOC overflow" add -mminimal-toc to
9664 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9665 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9666
9667 archive_cmds=''
9668 hardcode_direct=yes
9669 hardcode_direct_absolute=yes
9670 hardcode_libdir_separator=':'
9671 link_all_deplibs=yes
9672 file_list_spec='${wl}-f,'
9673
9674 if test "$GCC" = yes; then
9675 case $host_os in aix4.[012]|aix4.[012].*)
9676 # We only want to do this on AIX 4.2 and lower, the check
9677 # below for broken collect2 doesn't work under 4.3+
9678 collect2name=`${CC} -print-prog-name=collect2`
9679 if test -f "$collect2name" &&
9680 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9681 then
9682 # We have reworked collect2
9683 :
9684 else
9685 # We have old collect2
9686 hardcode_direct=unsupported
9687 # It fails to find uninstalled libraries when the uninstalled
9688 # path is not listed in the libpath. Setting hardcode_minus_L
9689 # to unsupported forces relinking
9690 hardcode_minus_L=yes
9691 hardcode_libdir_flag_spec='-L$libdir'
9692 hardcode_libdir_separator=
9693 fi
9694 ;;
9695 esac
9696 shared_flag='-shared'
9697 if test "$aix_use_runtimelinking" = yes; then
9698 shared_flag="$shared_flag "'${wl}-G'
9699 fi
9700 else
9701 # not using gcc
9702 if test "$host_cpu" = ia64; then
9703 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9704 # chokes on -Wl,-G. The following line is correct:
9705 shared_flag='-G'
9706 else
9707 if test "$aix_use_runtimelinking" = yes; then
9708 shared_flag='${wl}-G'
9709 else
9710 shared_flag='${wl}-bM:SRE'
9711 fi
9712 fi
9713 fi
9714
9715 export_dynamic_flag_spec='${wl}-bexpall'
9716 # It seems that -bexpall does not export symbols beginning with
9717 # underscore (_), so it is better to generate a list of symbols to export.
9718 always_export_symbols=yes
9719 if test "$aix_use_runtimelinking" = yes; then
9720 # Warning - without using the other runtime loading flags (-brtl),
9721 # -berok will link without error, but may produce a broken library.
9722 allow_undefined_flag='-berok'
9723 # Determine the default libpath from the value encoded in an
9724 # empty executable.
9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h. */
9727
9728 int
9729 main ()
9730 {
9731
9732 ;
9733 return 0;
9734 }
9735 _ACEOF
9736 if ac_fn_c_try_link "$LINENO"; then :
9737
9738 lt_aix_libpath_sed='
9739 /Import File Strings/,/^$/ {
9740 /^0/ {
9741 s/^0 *\(.*\)$/\1/
9742 p
9743 }
9744 }'
9745 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9746 # Check for a 64-bit object if we didn't find anything.
9747 if test -z "$aix_libpath"; then
9748 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9749 fi
9750 fi
9751 rm -f core conftest.err conftest.$ac_objext \
9752 conftest$ac_exeext conftest.$ac_ext
9753 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9754
9755 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9756 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9757 else
9758 if test "$host_cpu" = ia64; then
9759 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9760 allow_undefined_flag="-z nodefs"
9761 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"
9762 else
9763 # Determine the default libpath from the value encoded in an
9764 # empty executable.
9765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9766 /* end confdefs.h. */
9767
9768 int
9769 main ()
9770 {
9771
9772 ;
9773 return 0;
9774 }
9775 _ACEOF
9776 if ac_fn_c_try_link "$LINENO"; then :
9777
9778 lt_aix_libpath_sed='
9779 /Import File Strings/,/^$/ {
9780 /^0/ {
9781 s/^0 *\(.*\)$/\1/
9782 p
9783 }
9784 }'
9785 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9786 # Check for a 64-bit object if we didn't find anything.
9787 if test -z "$aix_libpath"; then
9788 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9789 fi
9790 fi
9791 rm -f core conftest.err conftest.$ac_objext \
9792 conftest$ac_exeext conftest.$ac_ext
9793 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9794
9795 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9796 # Warning - without using the other run time loading flags,
9797 # -berok will link without error, but may produce a broken library.
9798 no_undefined_flag=' ${wl}-bernotok'
9799 allow_undefined_flag=' ${wl}-berok'
9800 if test "$with_gnu_ld" = yes; then
9801 # We only use this code for GNU lds that support --whole-archive.
9802 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9803 else
9804 # Exported symbols can be pulled into shared objects from archives
9805 whole_archive_flag_spec='$convenience'
9806 fi
9807 archive_cmds_need_lc=yes
9808 # This is similar to how AIX traditionally builds its shared libraries.
9809 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9810 fi
9811 fi
9812 ;;
9813
9814 amigaos*)
9815 case $host_cpu in
9816 powerpc)
9817 # see comment about AmigaOS4 .so support
9818 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9819 archive_expsym_cmds=''
9820 ;;
9821 m68k)
9822 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)'
9823 hardcode_libdir_flag_spec='-L$libdir'
9824 hardcode_minus_L=yes
9825 ;;
9826 esac
9827 ;;
9828
9829 bsdi[45]*)
9830 export_dynamic_flag_spec=-rdynamic
9831 ;;
9832
9833 cygwin* | mingw* | pw32* | cegcc*)
9834 # When not using gcc, we currently assume that we are using
9835 # Microsoft Visual C++.
9836 # hardcode_libdir_flag_spec is actually meaningless, as there is
9837 # no search path for DLLs.
9838 hardcode_libdir_flag_spec=' '
9839 allow_undefined_flag=unsupported
9840 # Tell ltmain to make .lib files, not .a files.
9841 libext=lib
9842 # Tell ltmain to make .dll files, not .so files.
9843 shrext_cmds=".dll"
9844 # FIXME: Setting linknames here is a bad hack.
9845 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9846 # The linker will automatically build a .lib file if we build a DLL.
9847 old_archive_from_new_cmds='true'
9848 # FIXME: Should let the user specify the lib program.
9849 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9850 fix_srcfile_path='`cygpath -w "$srcfile"`'
9851 enable_shared_with_static_runtimes=yes
9852 ;;
9853
9854 darwin* | rhapsody*)
9855
9856
9857 archive_cmds_need_lc=no
9858 hardcode_direct=no
9859 hardcode_automatic=yes
9860 hardcode_shlibpath_var=unsupported
9861 if test "$lt_cv_ld_force_load" = "yes"; then
9862 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\"`'
9863 else
9864 whole_archive_flag_spec=''
9865 fi
9866 link_all_deplibs=yes
9867 allow_undefined_flag="$_lt_dar_allow_undefined"
9868 case $cc_basename in
9869 ifort*) _lt_dar_can_shared=yes ;;
9870 *) _lt_dar_can_shared=$GCC ;;
9871 esac
9872 if test "$_lt_dar_can_shared" = "yes"; then
9873 output_verbose_link_cmd=func_echo_all
9874 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9875 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9876 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}"
9877 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}"
9878
9879 else
9880 ld_shlibs=no
9881 fi
9882
9883 ;;
9884
9885 dgux*)
9886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9887 hardcode_libdir_flag_spec='-L$libdir'
9888 hardcode_shlibpath_var=no
9889 ;;
9890
9891 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9892 # support. Future versions do this automatically, but an explicit c++rt0.o
9893 # does not break anything, and helps significantly (at the cost of a little
9894 # extra space).
9895 freebsd2.2*)
9896 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9897 hardcode_libdir_flag_spec='-R$libdir'
9898 hardcode_direct=yes
9899 hardcode_shlibpath_var=no
9900 ;;
9901
9902 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9903 freebsd2.*)
9904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9905 hardcode_direct=yes
9906 hardcode_minus_L=yes
9907 hardcode_shlibpath_var=no
9908 ;;
9909
9910 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9911 freebsd* | dragonfly*)
9912 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9913 hardcode_libdir_flag_spec='-R$libdir'
9914 hardcode_direct=yes
9915 hardcode_shlibpath_var=no
9916 ;;
9917
9918 hpux9*)
9919 if test "$GCC" = yes; then
9920 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9921 else
9922 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9923 fi
9924 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9925 hardcode_libdir_separator=:
9926 hardcode_direct=yes
9927
9928 # hardcode_minus_L: Not really in the search PATH,
9929 # but as the default location of the library.
9930 hardcode_minus_L=yes
9931 export_dynamic_flag_spec='${wl}-E'
9932 ;;
9933
9934 hpux10*)
9935 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9936 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9937 else
9938 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9939 fi
9940 if test "$with_gnu_ld" = no; then
9941 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9942 hardcode_libdir_flag_spec_ld='+b $libdir'
9943 hardcode_libdir_separator=:
9944 hardcode_direct=yes
9945 hardcode_direct_absolute=yes
9946 export_dynamic_flag_spec='${wl}-E'
9947 # hardcode_minus_L: Not really in the search PATH,
9948 # but as the default location of the library.
9949 hardcode_minus_L=yes
9950 fi
9951 ;;
9952
9953 hpux11*)
9954 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9955 case $host_cpu in
9956 hppa*64*)
9957 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9958 ;;
9959 ia64*)
9960 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9961 ;;
9962 *)
9963 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9964 ;;
9965 esac
9966 else
9967 case $host_cpu in
9968 hppa*64*)
9969 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9970 ;;
9971 ia64*)
9972 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9973 ;;
9974 *)
9975
9976 # Older versions of the 11.00 compiler do not understand -b yet
9977 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9979 $as_echo_n "checking if $CC understands -b... " >&6; }
9980 if ${lt_cv_prog_compiler__b+:} false; then :
9981 $as_echo_n "(cached) " >&6
9982 else
9983 lt_cv_prog_compiler__b=no
9984 save_LDFLAGS="$LDFLAGS"
9985 LDFLAGS="$LDFLAGS -b"
9986 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9987 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9988 # The linker can only warn and ignore the option if not recognized
9989 # So say no if there are warnings
9990 if test -s conftest.err; then
9991 # Append any errors to the config.log.
9992 cat conftest.err 1>&5
9993 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9995 if diff conftest.exp conftest.er2 >/dev/null; then
9996 lt_cv_prog_compiler__b=yes
9997 fi
9998 else
9999 lt_cv_prog_compiler__b=yes
10000 fi
10001 fi
10002 $RM -r conftest*
10003 LDFLAGS="$save_LDFLAGS"
10004
10005 fi
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10007 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10008
10009 if test x"$lt_cv_prog_compiler__b" = xyes; then
10010 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10011 else
10012 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10013 fi
10014
10015 ;;
10016 esac
10017 fi
10018 if test "$with_gnu_ld" = no; then
10019 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10020 hardcode_libdir_separator=:
10021
10022 case $host_cpu in
10023 hppa*64*|ia64*)
10024 hardcode_direct=no
10025 hardcode_shlibpath_var=no
10026 ;;
10027 *)
10028 hardcode_direct=yes
10029 hardcode_direct_absolute=yes
10030 export_dynamic_flag_spec='${wl}-E'
10031
10032 # hardcode_minus_L: Not really in the search PATH,
10033 # but as the default location of the library.
10034 hardcode_minus_L=yes
10035 ;;
10036 esac
10037 fi
10038 ;;
10039
10040 irix5* | irix6* | nonstopux*)
10041 if test "$GCC" = yes; then
10042 archive_cmds='$CC -shared $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'
10043 # Try to use the -exported_symbol ld option, if it does not
10044 # work, assume that -exports_file does not work either and
10045 # implicitly export all symbols.
10046 save_LDFLAGS="$LDFLAGS"
10047 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10049 /* end confdefs.h. */
10050 int foo(void) {}
10051 _ACEOF
10052 if ac_fn_c_try_link "$LINENO"; then :
10053 archive_expsym_cmds='$CC -shared $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'
10054
10055 fi
10056 rm -f core conftest.err conftest.$ac_objext \
10057 conftest$ac_exeext conftest.$ac_ext
10058 LDFLAGS="$save_LDFLAGS"
10059 else
10060 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'
10061 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'
10062 fi
10063 archive_cmds_need_lc='no'
10064 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10065 hardcode_libdir_separator=:
10066 inherit_rpath=yes
10067 link_all_deplibs=yes
10068 ;;
10069
10070 netbsd*)
10071 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10072 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10073 else
10074 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10075 fi
10076 hardcode_libdir_flag_spec='-R$libdir'
10077 hardcode_direct=yes
10078 hardcode_shlibpath_var=no
10079 ;;
10080
10081 newsos6)
10082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10083 hardcode_direct=yes
10084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10085 hardcode_libdir_separator=:
10086 hardcode_shlibpath_var=no
10087 ;;
10088
10089 *nto* | *qnx*)
10090 ;;
10091
10092 openbsd*)
10093 if test -f /usr/libexec/ld.so; then
10094 hardcode_direct=yes
10095 hardcode_shlibpath_var=no
10096 hardcode_direct_absolute=yes
10097 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10098 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10099 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10100 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10101 export_dynamic_flag_spec='${wl}-E'
10102 else
10103 case $host_os in
10104 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10105 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10106 hardcode_libdir_flag_spec='-R$libdir'
10107 ;;
10108 *)
10109 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10110 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10111 ;;
10112 esac
10113 fi
10114 else
10115 ld_shlibs=no
10116 fi
10117 ;;
10118
10119 os2*)
10120 hardcode_libdir_flag_spec='-L$libdir'
10121 hardcode_minus_L=yes
10122 allow_undefined_flag=unsupported
10123 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10124 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10125 ;;
10126
10127 osf3*)
10128 if test "$GCC" = yes; then
10129 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10130 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'
10131 else
10132 allow_undefined_flag=' -expect_unresolved \*'
10133 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'
10134 fi
10135 archive_cmds_need_lc='no'
10136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10137 hardcode_libdir_separator=:
10138 ;;
10139
10140 osf4* | osf5*) # as osf3* with the addition of -msym flag
10141 if test "$GCC" = yes; then
10142 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10143 archive_cmds='$CC -shared${allow_undefined_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'
10144 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10145 else
10146 allow_undefined_flag=' -expect_unresolved \*'
10147 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'
10148 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~
10149 $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'
10150
10151 # Both c and cxx compiler support -rpath directly
10152 hardcode_libdir_flag_spec='-rpath $libdir'
10153 fi
10154 archive_cmds_need_lc='no'
10155 hardcode_libdir_separator=:
10156 ;;
10157
10158 solaris*)
10159 no_undefined_flag=' -z defs'
10160 if test "$GCC" = yes; then
10161 wlarc='${wl}'
10162 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10163 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10164 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10165 else
10166 case `$CC -V 2>&1` in
10167 *"Compilers 5.0"*)
10168 wlarc=''
10169 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10171 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10172 ;;
10173 *)
10174 wlarc='${wl}'
10175 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10176 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10177 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10178 ;;
10179 esac
10180 fi
10181 hardcode_libdir_flag_spec='-R$libdir'
10182 hardcode_shlibpath_var=no
10183 case $host_os in
10184 solaris2.[0-5] | solaris2.[0-5].*) ;;
10185 *)
10186 # The compiler driver will combine and reorder linker options,
10187 # but understands `-z linker_flag'. GCC discards it without `$wl',
10188 # but is careful enough not to reorder.
10189 # Supported since Solaris 2.6 (maybe 2.5.1?)
10190 if test "$GCC" = yes; then
10191 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10192 else
10193 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10194 fi
10195 ;;
10196 esac
10197 link_all_deplibs=yes
10198 ;;
10199
10200 sunos4*)
10201 if test "x$host_vendor" = xsequent; then
10202 # Use $CC to link under sequent, because it throws in some extra .o
10203 # files that make .init and .fini sections work.
10204 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10205 else
10206 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10207 fi
10208 hardcode_libdir_flag_spec='-L$libdir'
10209 hardcode_direct=yes
10210 hardcode_minus_L=yes
10211 hardcode_shlibpath_var=no
10212 ;;
10213
10214 sysv4)
10215 case $host_vendor in
10216 sni)
10217 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10218 hardcode_direct=yes # is this really true???
10219 ;;
10220 siemens)
10221 ## LD is ld it makes a PLAMLIB
10222 ## CC just makes a GrossModule.
10223 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10224 reload_cmds='$CC -r -o $output$reload_objs'
10225 hardcode_direct=no
10226 ;;
10227 motorola)
10228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10229 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10230 ;;
10231 esac
10232 runpath_var='LD_RUN_PATH'
10233 hardcode_shlibpath_var=no
10234 ;;
10235
10236 sysv4.3*)
10237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10238 hardcode_shlibpath_var=no
10239 export_dynamic_flag_spec='-Bexport'
10240 ;;
10241
10242 sysv4*MP*)
10243 if test -d /usr/nec; then
10244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10245 hardcode_shlibpath_var=no
10246 runpath_var=LD_RUN_PATH
10247 hardcode_runpath_var=yes
10248 ld_shlibs=yes
10249 fi
10250 ;;
10251
10252 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10253 no_undefined_flag='${wl}-z,text'
10254 archive_cmds_need_lc=no
10255 hardcode_shlibpath_var=no
10256 runpath_var='LD_RUN_PATH'
10257
10258 if test "$GCC" = yes; then
10259 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10260 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261 else
10262 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 fi
10265 ;;
10266
10267 sysv5* | sco3.2v5* | sco5v6*)
10268 # Note: We can NOT use -z defs as we might desire, because we do not
10269 # link with -lc, and that would cause any symbols used from libc to
10270 # always be unresolved, which means just about no library would
10271 # ever link correctly. If we're not using GNU ld we use -z text
10272 # though, which does catch some bad symbols but isn't as heavy-handed
10273 # as -z defs.
10274 no_undefined_flag='${wl}-z,text'
10275 allow_undefined_flag='${wl}-z,nodefs'
10276 archive_cmds_need_lc=no
10277 hardcode_shlibpath_var=no
10278 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10279 hardcode_libdir_separator=':'
10280 link_all_deplibs=yes
10281 export_dynamic_flag_spec='${wl}-Bexport'
10282 runpath_var='LD_RUN_PATH'
10283
10284 if test "$GCC" = yes; then
10285 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10286 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10287 else
10288 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10289 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10290 fi
10291 ;;
10292
10293 uts4*)
10294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10295 hardcode_libdir_flag_spec='-L$libdir'
10296 hardcode_shlibpath_var=no
10297 ;;
10298
10299 *)
10300 ld_shlibs=no
10301 ;;
10302 esac
10303
10304 if test x$host_vendor = xsni; then
10305 case $host in
10306 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10307 export_dynamic_flag_spec='${wl}-Blargedynsym'
10308 ;;
10309 esac
10310 fi
10311 fi
10312
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10314 $as_echo "$ld_shlibs" >&6; }
10315 test "$ld_shlibs" = no && can_build_shared=no
10316
10317 with_gnu_ld=$with_gnu_ld
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333 #
10334 # Do we need to explicitly link libc?
10335 #
10336 case "x$archive_cmds_need_lc" in
10337 x|xyes)
10338 # Assume -lc should be added
10339 archive_cmds_need_lc=yes
10340
10341 if test "$enable_shared" = yes && test "$GCC" = yes; then
10342 case $archive_cmds in
10343 *'~'*)
10344 # FIXME: we may have to deal with multi-command sequences.
10345 ;;
10346 '$CC '*)
10347 # Test whether the compiler implicitly links with -lc since on some
10348 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10349 # to ld, don't add -lc before -lgcc.
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10351 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10352 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10353 $as_echo_n "(cached) " >&6
10354 else
10355 $RM conftest*
10356 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10357
10358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10359 (eval $ac_compile) 2>&5
10360 ac_status=$?
10361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10362 test $ac_status = 0; } 2>conftest.err; then
10363 soname=conftest
10364 lib=conftest
10365 libobjs=conftest.$ac_objext
10366 deplibs=
10367 wl=$lt_prog_compiler_wl
10368 pic_flag=$lt_prog_compiler_pic
10369 compiler_flags=-v
10370 linker_flags=-v
10371 verstring=
10372 output_objdir=.
10373 libname=conftest
10374 lt_save_allow_undefined_flag=$allow_undefined_flag
10375 allow_undefined_flag=
10376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10377 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10378 ac_status=$?
10379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10380 test $ac_status = 0; }
10381 then
10382 lt_cv_archive_cmds_need_lc=no
10383 else
10384 lt_cv_archive_cmds_need_lc=yes
10385 fi
10386 allow_undefined_flag=$lt_save_allow_undefined_flag
10387 else
10388 cat conftest.err 1>&5
10389 fi
10390 $RM conftest*
10391
10392 fi
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10394 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10395 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10396 ;;
10397 esac
10398 fi
10399 ;;
10400 esac
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10559 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10560
10561 if test "$GCC" = yes; then
10562 case $host_os in
10563 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10564 *) lt_awk_arg="/^libraries:/" ;;
10565 esac
10566 case $host_os in
10567 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10568 *) lt_sed_strip_eq="s,=/,/,g" ;;
10569 esac
10570 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10571 case $lt_search_path_spec in
10572 *\;*)
10573 # if the path contains ";" then we assume it to be the separator
10574 # otherwise default to the standard path separator (i.e. ":") - it is
10575 # assumed that no part of a normal pathname contains ";" but that should
10576 # okay in the real world where ";" in dirpaths is itself problematic.
10577 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10578 ;;
10579 *)
10580 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10581 ;;
10582 esac
10583 # Ok, now we have the path, separated by spaces, we can step through it
10584 # and add multilib dir if necessary.
10585 lt_tmp_lt_search_path_spec=
10586 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10587 for lt_sys_path in $lt_search_path_spec; do
10588 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10589 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10590 else
10591 test -d "$lt_sys_path" && \
10592 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10593 fi
10594 done
10595 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10596 BEGIN {RS=" "; FS="/|\n";} {
10597 lt_foo="";
10598 lt_count=0;
10599 for (lt_i = NF; lt_i > 0; lt_i--) {
10600 if ($lt_i != "" && $lt_i != ".") {
10601 if ($lt_i == "..") {
10602 lt_count++;
10603 } else {
10604 if (lt_count == 0) {
10605 lt_foo="/" $lt_i lt_foo;
10606 } else {
10607 lt_count--;
10608 }
10609 }
10610 }
10611 }
10612 if (lt_foo != "") { lt_freq[lt_foo]++; }
10613 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10614 }'`
10615 # AWK program above erroneously prepends '/' to C:/dos/paths
10616 # for these hosts.
10617 case $host_os in
10618 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10619 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10620 esac
10621 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10622 else
10623 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10624 fi
10625 library_names_spec=
10626 libname_spec='lib$name'
10627 soname_spec=
10628 shrext_cmds=".so"
10629 postinstall_cmds=
10630 postuninstall_cmds=
10631 finish_cmds=
10632 finish_eval=
10633 shlibpath_var=
10634 shlibpath_overrides_runpath=unknown
10635 version_type=none
10636 dynamic_linker="$host_os ld.so"
10637 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10638 need_lib_prefix=unknown
10639 hardcode_into_libs=no
10640
10641 # when you set need_version to no, make sure it does not cause -set_version
10642 # flags to be left without arguments
10643 need_version=unknown
10644
10645 case $host_os in
10646 aix3*)
10647 version_type=linux
10648 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10649 shlibpath_var=LIBPATH
10650
10651 # AIX 3 has no versioning support, so we append a major version to the name.
10652 soname_spec='${libname}${release}${shared_ext}$major'
10653 ;;
10654
10655 aix[4-9]*)
10656 version_type=linux
10657 need_lib_prefix=no
10658 need_version=no
10659 hardcode_into_libs=yes
10660 if test "$host_cpu" = ia64; then
10661 # AIX 5 supports IA64
10662 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10663 shlibpath_var=LD_LIBRARY_PATH
10664 else
10665 # With GCC up to 2.95.x, collect2 would create an import file
10666 # for dependence libraries. The import file would start with
10667 # the line `#! .'. This would cause the generated library to
10668 # depend on `.', always an invalid library. This was fixed in
10669 # development snapshots of GCC prior to 3.0.
10670 case $host_os in
10671 aix4 | aix4.[01] | aix4.[01].*)
10672 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10673 echo ' yes '
10674 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10675 :
10676 else
10677 can_build_shared=no
10678 fi
10679 ;;
10680 esac
10681 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10682 # soname into executable. Probably we can add versioning support to
10683 # collect2, so additional links can be useful in future.
10684 if test "$aix_use_runtimelinking" = yes; then
10685 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10686 # instead of lib<name>.a to let people know that these are not
10687 # typical AIX shared libraries.
10688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689 else
10690 # We preserve .a as extension for shared libraries through AIX4.2
10691 # and later when we are not doing run time linking.
10692 library_names_spec='${libname}${release}.a $libname.a'
10693 soname_spec='${libname}${release}${shared_ext}$major'
10694 fi
10695 shlibpath_var=LIBPATH
10696 fi
10697 ;;
10698
10699 amigaos*)
10700 case $host_cpu in
10701 powerpc)
10702 # Since July 2007 AmigaOS4 officially supports .so libraries.
10703 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10705 ;;
10706 m68k)
10707 library_names_spec='$libname.ixlibrary $libname.a'
10708 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10709 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10710 ;;
10711 esac
10712 ;;
10713
10714 beos*)
10715 library_names_spec='${libname}${shared_ext}'
10716 dynamic_linker="$host_os ld.so"
10717 shlibpath_var=LIBRARY_PATH
10718 ;;
10719
10720 bsdi[45]*)
10721 version_type=linux
10722 need_version=no
10723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724 soname_spec='${libname}${release}${shared_ext}$major'
10725 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10726 shlibpath_var=LD_LIBRARY_PATH
10727 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10728 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10729 # the default ld.so.conf also contains /usr/contrib/lib and
10730 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10731 # libtool to hard-code these into programs
10732 ;;
10733
10734 cygwin* | mingw* | pw32* | cegcc*)
10735 version_type=windows
10736 shrext_cmds=".dll"
10737 need_version=no
10738 need_lib_prefix=no
10739
10740 case $GCC,$host_os in
10741 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10742 library_names_spec='$libname.dll.a'
10743 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10744 postinstall_cmds='base_file=`basename \${file}`~
10745 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10746 dldir=$destdir/`dirname \$dlpath`~
10747 test -d \$dldir || mkdir -p \$dldir~
10748 $install_prog $dir/$dlname \$dldir/$dlname~
10749 chmod a+x \$dldir/$dlname~
10750 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10751 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10752 fi'
10753 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10754 dlpath=$dir/\$dldll~
10755 $RM \$dlpath'
10756 shlibpath_overrides_runpath=yes
10757
10758 case $host_os in
10759 cygwin*)
10760 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10761 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10762
10763 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10764 ;;
10765 mingw* | cegcc*)
10766 # MinGW DLLs use traditional 'lib' prefix
10767 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10768 ;;
10769 pw32*)
10770 # pw32 DLLs use 'pw' prefix rather than 'lib'
10771 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10772 ;;
10773 esac
10774 ;;
10775
10776 *)
10777 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10778 ;;
10779 esac
10780 dynamic_linker='Win32 ld.exe'
10781 # FIXME: first we should search . and the directory the executable is in
10782 shlibpath_var=PATH
10783 ;;
10784
10785 darwin* | rhapsody*)
10786 dynamic_linker="$host_os dyld"
10787 version_type=darwin
10788 need_lib_prefix=no
10789 need_version=no
10790 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10791 soname_spec='${libname}${release}${major}$shared_ext'
10792 shlibpath_overrides_runpath=yes
10793 shlibpath_var=DYLD_LIBRARY_PATH
10794 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10795
10796 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10797 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10798 ;;
10799
10800 dgux*)
10801 version_type=linux
10802 need_lib_prefix=no
10803 need_version=no
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10805 soname_spec='${libname}${release}${shared_ext}$major'
10806 shlibpath_var=LD_LIBRARY_PATH
10807 ;;
10808
10809 freebsd* | dragonfly*)
10810 # DragonFly does not have aout. When/if they implement a new
10811 # versioning mechanism, adjust this.
10812 if test -x /usr/bin/objformat; then
10813 objformat=`/usr/bin/objformat`
10814 else
10815 case $host_os in
10816 freebsd[23].*) objformat=aout ;;
10817 *) objformat=elf ;;
10818 esac
10819 fi
10820 version_type=freebsd-$objformat
10821 case $version_type in
10822 freebsd-elf*)
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10824 need_version=no
10825 need_lib_prefix=no
10826 ;;
10827 freebsd-*)
10828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10829 need_version=yes
10830 ;;
10831 esac
10832 shlibpath_var=LD_LIBRARY_PATH
10833 case $host_os in
10834 freebsd2.*)
10835 shlibpath_overrides_runpath=yes
10836 ;;
10837 freebsd3.[01]* | freebsdelf3.[01]*)
10838 shlibpath_overrides_runpath=yes
10839 hardcode_into_libs=yes
10840 ;;
10841 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10842 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10843 shlibpath_overrides_runpath=no
10844 hardcode_into_libs=yes
10845 ;;
10846 *) # from 4.6 on, and DragonFly
10847 shlibpath_overrides_runpath=yes
10848 hardcode_into_libs=yes
10849 ;;
10850 esac
10851 ;;
10852
10853 haiku*)
10854 version_type=linux
10855 need_lib_prefix=no
10856 need_version=no
10857 dynamic_linker="$host_os runtime_loader"
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10859 soname_spec='${libname}${release}${shared_ext}$major'
10860 shlibpath_var=LIBRARY_PATH
10861 shlibpath_overrides_runpath=yes
10862 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10863 hardcode_into_libs=yes
10864 ;;
10865
10866 hpux9* | hpux10* | hpux11*)
10867 # Give a soname corresponding to the major version so that dld.sl refuses to
10868 # link against other versions.
10869 version_type=sunos
10870 need_lib_prefix=no
10871 need_version=no
10872 case $host_cpu in
10873 ia64*)
10874 shrext_cmds='.so'
10875 hardcode_into_libs=yes
10876 dynamic_linker="$host_os dld.so"
10877 shlibpath_var=LD_LIBRARY_PATH
10878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880 soname_spec='${libname}${release}${shared_ext}$major'
10881 if test "X$HPUX_IA64_MODE" = X32; then
10882 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10883 else
10884 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10885 fi
10886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10887 ;;
10888 hppa*64*)
10889 shrext_cmds='.sl'
10890 hardcode_into_libs=yes
10891 dynamic_linker="$host_os dld.sl"
10892 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10893 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10896 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10897 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10898 ;;
10899 *)
10900 shrext_cmds='.sl'
10901 dynamic_linker="$host_os dld.sl"
10902 shlibpath_var=SHLIB_PATH
10903 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905 soname_spec='${libname}${release}${shared_ext}$major'
10906 ;;
10907 esac
10908 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10909 postinstall_cmds='chmod 555 $lib'
10910 # or fails outright, so override atomically:
10911 install_override_mode=555
10912 ;;
10913
10914 interix[3-9]*)
10915 version_type=linux
10916 need_lib_prefix=no
10917 need_version=no
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10919 soname_spec='${libname}${release}${shared_ext}$major'
10920 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10921 shlibpath_var=LD_LIBRARY_PATH
10922 shlibpath_overrides_runpath=no
10923 hardcode_into_libs=yes
10924 ;;
10925
10926 irix5* | irix6* | nonstopux*)
10927 case $host_os in
10928 nonstopux*) version_type=nonstopux ;;
10929 *)
10930 if test "$lt_cv_prog_gnu_ld" = yes; then
10931 version_type=linux
10932 else
10933 version_type=irix
10934 fi ;;
10935 esac
10936 need_lib_prefix=no
10937 need_version=no
10938 soname_spec='${libname}${release}${shared_ext}$major'
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10940 case $host_os in
10941 irix5* | nonstopux*)
10942 libsuff= shlibsuff=
10943 ;;
10944 *)
10945 case $LD in # libtool.m4 will add one of these switches to LD
10946 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10947 libsuff= shlibsuff= libmagic=32-bit;;
10948 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10949 libsuff=32 shlibsuff=N32 libmagic=N32;;
10950 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10951 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10952 *) libsuff= shlibsuff= libmagic=never-match;;
10953 esac
10954 ;;
10955 esac
10956 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10957 shlibpath_overrides_runpath=no
10958 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10959 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10960 hardcode_into_libs=yes
10961 ;;
10962
10963 # No shared lib support for Linux oldld, aout, or coff.
10964 linux*oldld* | linux*aout* | linux*coff*)
10965 dynamic_linker=no
10966 ;;
10967
10968 # This must be Linux ELF.
10969 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10970 version_type=linux
10971 need_lib_prefix=no
10972 need_version=no
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974 soname_spec='${libname}${release}${shared_ext}$major'
10975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10976 shlibpath_var=LD_LIBRARY_PATH
10977 shlibpath_overrides_runpath=no
10978
10979 # Some binutils ld are patched to set DT_RUNPATH
10980 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10981 $as_echo_n "(cached) " >&6
10982 else
10983 lt_cv_shlibpath_overrides_runpath=no
10984 save_LDFLAGS=$LDFLAGS
10985 save_libdir=$libdir
10986 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10987 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989 /* end confdefs.h. */
10990
10991 int
10992 main ()
10993 {
10994
10995 ;
10996 return 0;
10997 }
10998 _ACEOF
10999 if ac_fn_c_try_link "$LINENO"; then :
11000 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11001 lt_cv_shlibpath_overrides_runpath=yes
11002 fi
11003 fi
11004 rm -f core conftest.err conftest.$ac_objext \
11005 conftest$ac_exeext conftest.$ac_ext
11006 LDFLAGS=$save_LDFLAGS
11007 libdir=$save_libdir
11008
11009 fi
11010
11011 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11012
11013 # This implies no fast_install, which is unacceptable.
11014 # Some rework will be needed to allow for fast_install
11015 # before this can be enabled.
11016 hardcode_into_libs=yes
11017
11018 # Append ld.so.conf contents to the search path
11019 if test -f /etc/ld.so.conf; then
11020 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' ' '`
11021 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11022 fi
11023
11024 # We used to test for /lib/ld.so.1 and disable shared libraries on
11025 # powerpc, because MkLinux only supported shared libraries with the
11026 # GNU dynamic linker. Since this was broken with cross compilers,
11027 # most powerpc-linux boxes support dynamic linking these days and
11028 # people can always --disable-shared, the test was removed, and we
11029 # assume the GNU/Linux dynamic linker is in use.
11030 dynamic_linker='GNU/Linux ld.so'
11031 ;;
11032
11033 netbsd*)
11034 version_type=sunos
11035 need_lib_prefix=no
11036 need_version=no
11037 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11040 dynamic_linker='NetBSD (a.out) ld.so'
11041 else
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11043 soname_spec='${libname}${release}${shared_ext}$major'
11044 dynamic_linker='NetBSD ld.elf_so'
11045 fi
11046 shlibpath_var=LD_LIBRARY_PATH
11047 shlibpath_overrides_runpath=yes
11048 hardcode_into_libs=yes
11049 ;;
11050
11051 newsos6)
11052 version_type=linux
11053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11054 shlibpath_var=LD_LIBRARY_PATH
11055 shlibpath_overrides_runpath=yes
11056 ;;
11057
11058 *nto* | *qnx*)
11059 version_type=qnx
11060 need_lib_prefix=no
11061 need_version=no
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063 soname_spec='${libname}${release}${shared_ext}$major'
11064 shlibpath_var=LD_LIBRARY_PATH
11065 shlibpath_overrides_runpath=no
11066 hardcode_into_libs=yes
11067 dynamic_linker='ldqnx.so'
11068 ;;
11069
11070 openbsd*)
11071 version_type=sunos
11072 sys_lib_dlsearch_path_spec="/usr/lib"
11073 need_lib_prefix=no
11074 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11075 case $host_os in
11076 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11077 *) need_version=no ;;
11078 esac
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11081 shlibpath_var=LD_LIBRARY_PATH
11082 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11083 case $host_os in
11084 openbsd2.[89] | openbsd2.[89].*)
11085 shlibpath_overrides_runpath=no
11086 ;;
11087 *)
11088 shlibpath_overrides_runpath=yes
11089 ;;
11090 esac
11091 else
11092 shlibpath_overrides_runpath=yes
11093 fi
11094 ;;
11095
11096 os2*)
11097 libname_spec='$name'
11098 shrext_cmds=".dll"
11099 need_lib_prefix=no
11100 library_names_spec='$libname${shared_ext} $libname.a'
11101 dynamic_linker='OS/2 ld.exe'
11102 shlibpath_var=LIBPATH
11103 ;;
11104
11105 osf3* | osf4* | osf5*)
11106 version_type=osf
11107 need_lib_prefix=no
11108 need_version=no
11109 soname_spec='${libname}${release}${shared_ext}$major'
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 shlibpath_var=LD_LIBRARY_PATH
11112 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11113 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11114 ;;
11115
11116 rdos*)
11117 dynamic_linker=no
11118 ;;
11119
11120 solaris*)
11121 version_type=linux
11122 need_lib_prefix=no
11123 need_version=no
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125 soname_spec='${libname}${release}${shared_ext}$major'
11126 shlibpath_var=LD_LIBRARY_PATH
11127 shlibpath_overrides_runpath=yes
11128 hardcode_into_libs=yes
11129 # ldd complains unless libraries are executable
11130 postinstall_cmds='chmod +x $lib'
11131 ;;
11132
11133 sunos4*)
11134 version_type=sunos
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11136 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 shlibpath_overrides_runpath=yes
11139 if test "$with_gnu_ld" = yes; then
11140 need_lib_prefix=no
11141 fi
11142 need_version=yes
11143 ;;
11144
11145 sysv4 | sysv4.3*)
11146 version_type=linux
11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11148 soname_spec='${libname}${release}${shared_ext}$major'
11149 shlibpath_var=LD_LIBRARY_PATH
11150 case $host_vendor in
11151 sni)
11152 shlibpath_overrides_runpath=no
11153 need_lib_prefix=no
11154 runpath_var=LD_RUN_PATH
11155 ;;
11156 siemens)
11157 need_lib_prefix=no
11158 ;;
11159 motorola)
11160 need_lib_prefix=no
11161 need_version=no
11162 shlibpath_overrides_runpath=no
11163 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11164 ;;
11165 esac
11166 ;;
11167
11168 sysv4*MP*)
11169 if test -d /usr/nec ;then
11170 version_type=linux
11171 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11172 soname_spec='$libname${shared_ext}.$major'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 fi
11175 ;;
11176
11177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11178 version_type=freebsd-elf
11179 need_lib_prefix=no
11180 need_version=no
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11182 soname_spec='${libname}${release}${shared_ext}$major'
11183 shlibpath_var=LD_LIBRARY_PATH
11184 shlibpath_overrides_runpath=yes
11185 hardcode_into_libs=yes
11186 if test "$with_gnu_ld" = yes; then
11187 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11188 else
11189 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11190 case $host_os in
11191 sco3.2v5*)
11192 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11193 ;;
11194 esac
11195 fi
11196 sys_lib_dlsearch_path_spec='/usr/lib'
11197 ;;
11198
11199 tpf*)
11200 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11201 version_type=linux
11202 need_lib_prefix=no
11203 need_version=no
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205 shlibpath_var=LD_LIBRARY_PATH
11206 shlibpath_overrides_runpath=no
11207 hardcode_into_libs=yes
11208 ;;
11209
11210 uts4*)
11211 version_type=linux
11212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11213 soname_spec='${libname}${release}${shared_ext}$major'
11214 shlibpath_var=LD_LIBRARY_PATH
11215 ;;
11216
11217 *)
11218 dynamic_linker=no
11219 ;;
11220 esac
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11222 $as_echo "$dynamic_linker" >&6; }
11223 test "$dynamic_linker" = no && can_build_shared=no
11224
11225 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11226 if test "$GCC" = yes; then
11227 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11228 fi
11229
11230 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11231 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11232 fi
11233 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11234 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11235 fi
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11329 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11330 hardcode_action=
11331 if test -n "$hardcode_libdir_flag_spec" ||
11332 test -n "$runpath_var" ||
11333 test "X$hardcode_automatic" = "Xyes" ; then
11334
11335 # We can hardcode non-existent directories.
11336 if test "$hardcode_direct" != no &&
11337 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11338 # have to relink, otherwise we might link with an installed library
11339 # when we should be linking with a yet-to-be-installed one
11340 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11341 test "$hardcode_minus_L" != no; then
11342 # Linking always hardcodes the temporary library directory.
11343 hardcode_action=relink
11344 else
11345 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11346 hardcode_action=immediate
11347 fi
11348 else
11349 # We cannot hardcode anything, or else we can only hardcode existing
11350 # directories.
11351 hardcode_action=unsupported
11352 fi
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11354 $as_echo "$hardcode_action" >&6; }
11355
11356 if test "$hardcode_action" = relink ||
11357 test "$inherit_rpath" = yes; then
11358 # Fast installation is not supported
11359 enable_fast_install=no
11360 elif test "$shlibpath_overrides_runpath" = yes ||
11361 test "$enable_shared" = no; then
11362 # Fast installation is not necessary
11363 enable_fast_install=needless
11364 fi
11365
11366
11367
11368
11369
11370
11371 if test "x$enable_dlopen" != xyes; then
11372 enable_dlopen=unknown
11373 enable_dlopen_self=unknown
11374 enable_dlopen_self_static=unknown
11375 else
11376 lt_cv_dlopen=no
11377 lt_cv_dlopen_libs=
11378
11379 case $host_os in
11380 beos*)
11381 lt_cv_dlopen="load_add_on"
11382 lt_cv_dlopen_libs=
11383 lt_cv_dlopen_self=yes
11384 ;;
11385
11386 mingw* | pw32* | cegcc*)
11387 lt_cv_dlopen="LoadLibrary"
11388 lt_cv_dlopen_libs=
11389 ;;
11390
11391 cygwin*)
11392 lt_cv_dlopen="dlopen"
11393 lt_cv_dlopen_libs=
11394 ;;
11395
11396 darwin*)
11397 # if libdl is installed we need to link against it
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11399 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11400 if ${ac_cv_lib_dl_dlopen+:} false; then :
11401 $as_echo_n "(cached) " >&6
11402 else
11403 ac_check_lib_save_LIBS=$LIBS
11404 LIBS="-ldl $LIBS"
11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h. */
11407
11408 /* Override any GCC internal prototype to avoid an error.
11409 Use char because int might match the return type of a GCC
11410 builtin and then its argument prototype would still apply. */
11411 #ifdef __cplusplus
11412 extern "C"
11413 #endif
11414 char dlopen ();
11415 int
11416 main ()
11417 {
11418 return dlopen ();
11419 ;
11420 return 0;
11421 }
11422 _ACEOF
11423 if ac_fn_c_try_link "$LINENO"; then :
11424 ac_cv_lib_dl_dlopen=yes
11425 else
11426 ac_cv_lib_dl_dlopen=no
11427 fi
11428 rm -f core conftest.err conftest.$ac_objext \
11429 conftest$ac_exeext conftest.$ac_ext
11430 LIBS=$ac_check_lib_save_LIBS
11431 fi
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11433 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11434 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11435 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11436 else
11437
11438 lt_cv_dlopen="dyld"
11439 lt_cv_dlopen_libs=
11440 lt_cv_dlopen_self=yes
11441
11442 fi
11443
11444 ;;
11445
11446 *)
11447 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11448 if test "x$ac_cv_func_shl_load" = xyes; then :
11449 lt_cv_dlopen="shl_load"
11450 else
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11452 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11453 if ${ac_cv_lib_dld_shl_load+:} false; then :
11454 $as_echo_n "(cached) " >&6
11455 else
11456 ac_check_lib_save_LIBS=$LIBS
11457 LIBS="-ldld $LIBS"
11458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11460
11461 /* Override any GCC internal prototype to avoid an error.
11462 Use char because int might match the return type of a GCC
11463 builtin and then its argument prototype would still apply. */
11464 #ifdef __cplusplus
11465 extern "C"
11466 #endif
11467 char shl_load ();
11468 int
11469 main ()
11470 {
11471 return shl_load ();
11472 ;
11473 return 0;
11474 }
11475 _ACEOF
11476 if ac_fn_c_try_link "$LINENO"; then :
11477 ac_cv_lib_dld_shl_load=yes
11478 else
11479 ac_cv_lib_dld_shl_load=no
11480 fi
11481 rm -f core conftest.err conftest.$ac_objext \
11482 conftest$ac_exeext conftest.$ac_ext
11483 LIBS=$ac_check_lib_save_LIBS
11484 fi
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11486 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11487 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11488 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11489 else
11490 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11491 if test "x$ac_cv_func_dlopen" = xyes; then :
11492 lt_cv_dlopen="dlopen"
11493 else
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11495 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11496 if ${ac_cv_lib_dl_dlopen+:} false; then :
11497 $as_echo_n "(cached) " >&6
11498 else
11499 ac_check_lib_save_LIBS=$LIBS
11500 LIBS="-ldl $LIBS"
11501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h. */
11503
11504 /* Override any GCC internal prototype to avoid an error.
11505 Use char because int might match the return type of a GCC
11506 builtin and then its argument prototype would still apply. */
11507 #ifdef __cplusplus
11508 extern "C"
11509 #endif
11510 char dlopen ();
11511 int
11512 main ()
11513 {
11514 return dlopen ();
11515 ;
11516 return 0;
11517 }
11518 _ACEOF
11519 if ac_fn_c_try_link "$LINENO"; then :
11520 ac_cv_lib_dl_dlopen=yes
11521 else
11522 ac_cv_lib_dl_dlopen=no
11523 fi
11524 rm -f core conftest.err conftest.$ac_objext \
11525 conftest$ac_exeext conftest.$ac_ext
11526 LIBS=$ac_check_lib_save_LIBS
11527 fi
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11529 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11530 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11531 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11532 else
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11534 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11535 if ${ac_cv_lib_svld_dlopen+:} false; then :
11536 $as_echo_n "(cached) " >&6
11537 else
11538 ac_check_lib_save_LIBS=$LIBS
11539 LIBS="-lsvld $LIBS"
11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h. */
11542
11543 /* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
11546 #ifdef __cplusplus
11547 extern "C"
11548 #endif
11549 char dlopen ();
11550 int
11551 main ()
11552 {
11553 return dlopen ();
11554 ;
11555 return 0;
11556 }
11557 _ACEOF
11558 if ac_fn_c_try_link "$LINENO"; then :
11559 ac_cv_lib_svld_dlopen=yes
11560 else
11561 ac_cv_lib_svld_dlopen=no
11562 fi
11563 rm -f core conftest.err conftest.$ac_objext \
11564 conftest$ac_exeext conftest.$ac_ext
11565 LIBS=$ac_check_lib_save_LIBS
11566 fi
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11568 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11569 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11570 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11571 else
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11573 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11574 if ${ac_cv_lib_dld_dld_link+:} false; then :
11575 $as_echo_n "(cached) " >&6
11576 else
11577 ac_check_lib_save_LIBS=$LIBS
11578 LIBS="-ldld $LIBS"
11579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h. */
11581
11582 /* Override any GCC internal prototype to avoid an error.
11583 Use char because int might match the return type of a GCC
11584 builtin and then its argument prototype would still apply. */
11585 #ifdef __cplusplus
11586 extern "C"
11587 #endif
11588 char dld_link ();
11589 int
11590 main ()
11591 {
11592 return dld_link ();
11593 ;
11594 return 0;
11595 }
11596 _ACEOF
11597 if ac_fn_c_try_link "$LINENO"; then :
11598 ac_cv_lib_dld_dld_link=yes
11599 else
11600 ac_cv_lib_dld_dld_link=no
11601 fi
11602 rm -f core conftest.err conftest.$ac_objext \
11603 conftest$ac_exeext conftest.$ac_ext
11604 LIBS=$ac_check_lib_save_LIBS
11605 fi
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11607 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11608 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11609 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11610 fi
11611
11612
11613 fi
11614
11615
11616 fi
11617
11618
11619 fi
11620
11621
11622 fi
11623
11624
11625 fi
11626
11627 ;;
11628 esac
11629
11630 if test "x$lt_cv_dlopen" != xno; then
11631 enable_dlopen=yes
11632 else
11633 enable_dlopen=no
11634 fi
11635
11636 case $lt_cv_dlopen in
11637 dlopen)
11638 save_CPPFLAGS="$CPPFLAGS"
11639 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11640
11641 save_LDFLAGS="$LDFLAGS"
11642 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11643
11644 save_LIBS="$LIBS"
11645 LIBS="$lt_cv_dlopen_libs $LIBS"
11646
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11648 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11649 if ${lt_cv_dlopen_self+:} false; then :
11650 $as_echo_n "(cached) " >&6
11651 else
11652 if test "$cross_compiling" = yes; then :
11653 lt_cv_dlopen_self=cross
11654 else
11655 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11656 lt_status=$lt_dlunknown
11657 cat > conftest.$ac_ext <<_LT_EOF
11658 #line 11658 "configure"
11659 #include "confdefs.h"
11660
11661 #if HAVE_DLFCN_H
11662 #include <dlfcn.h>
11663 #endif
11664
11665 #include <stdio.h>
11666
11667 #ifdef RTLD_GLOBAL
11668 # define LT_DLGLOBAL RTLD_GLOBAL
11669 #else
11670 # ifdef DL_GLOBAL
11671 # define LT_DLGLOBAL DL_GLOBAL
11672 # else
11673 # define LT_DLGLOBAL 0
11674 # endif
11675 #endif
11676
11677 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11678 find out it does not work in some platform. */
11679 #ifndef LT_DLLAZY_OR_NOW
11680 # ifdef RTLD_LAZY
11681 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11682 # else
11683 # ifdef DL_LAZY
11684 # define LT_DLLAZY_OR_NOW DL_LAZY
11685 # else
11686 # ifdef RTLD_NOW
11687 # define LT_DLLAZY_OR_NOW RTLD_NOW
11688 # else
11689 # ifdef DL_NOW
11690 # define LT_DLLAZY_OR_NOW DL_NOW
11691 # else
11692 # define LT_DLLAZY_OR_NOW 0
11693 # endif
11694 # endif
11695 # endif
11696 # endif
11697 #endif
11698
11699 /* When -fvisbility=hidden is used, assume the code has been annotated
11700 correspondingly for the symbols needed. */
11701 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11702 void fnord () __attribute__((visibility("default")));
11703 #endif
11704
11705 void fnord () { int i=42; }
11706 int main ()
11707 {
11708 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11709 int status = $lt_dlunknown;
11710
11711 if (self)
11712 {
11713 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11714 else
11715 {
11716 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11717 else puts (dlerror ());
11718 }
11719 /* dlclose (self); */
11720 }
11721 else
11722 puts (dlerror ());
11723
11724 return status;
11725 }
11726 _LT_EOF
11727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11728 (eval $ac_link) 2>&5
11729 ac_status=$?
11730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11731 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11732 (./conftest; exit; ) >&5 2>/dev/null
11733 lt_status=$?
11734 case x$lt_status in
11735 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11736 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11737 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11738 esac
11739 else :
11740 # compilation failed
11741 lt_cv_dlopen_self=no
11742 fi
11743 fi
11744 rm -fr conftest*
11745
11746
11747 fi
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11749 $as_echo "$lt_cv_dlopen_self" >&6; }
11750
11751 if test "x$lt_cv_dlopen_self" = xyes; then
11752 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11754 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11755 if ${lt_cv_dlopen_self_static+:} false; then :
11756 $as_echo_n "(cached) " >&6
11757 else
11758 if test "$cross_compiling" = yes; then :
11759 lt_cv_dlopen_self_static=cross
11760 else
11761 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11762 lt_status=$lt_dlunknown
11763 cat > conftest.$ac_ext <<_LT_EOF
11764 #line 11764 "configure"
11765 #include "confdefs.h"
11766
11767 #if HAVE_DLFCN_H
11768 #include <dlfcn.h>
11769 #endif
11770
11771 #include <stdio.h>
11772
11773 #ifdef RTLD_GLOBAL
11774 # define LT_DLGLOBAL RTLD_GLOBAL
11775 #else
11776 # ifdef DL_GLOBAL
11777 # define LT_DLGLOBAL DL_GLOBAL
11778 # else
11779 # define LT_DLGLOBAL 0
11780 # endif
11781 #endif
11782
11783 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11784 find out it does not work in some platform. */
11785 #ifndef LT_DLLAZY_OR_NOW
11786 # ifdef RTLD_LAZY
11787 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11788 # else
11789 # ifdef DL_LAZY
11790 # define LT_DLLAZY_OR_NOW DL_LAZY
11791 # else
11792 # ifdef RTLD_NOW
11793 # define LT_DLLAZY_OR_NOW RTLD_NOW
11794 # else
11795 # ifdef DL_NOW
11796 # define LT_DLLAZY_OR_NOW DL_NOW
11797 # else
11798 # define LT_DLLAZY_OR_NOW 0
11799 # endif
11800 # endif
11801 # endif
11802 # endif
11803 #endif
11804
11805 /* When -fvisbility=hidden is used, assume the code has been annotated
11806 correspondingly for the symbols needed. */
11807 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11808 void fnord () __attribute__((visibility("default")));
11809 #endif
11810
11811 void fnord () { int i=42; }
11812 int main ()
11813 {
11814 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11815 int status = $lt_dlunknown;
11816
11817 if (self)
11818 {
11819 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11820 else
11821 {
11822 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11823 else puts (dlerror ());
11824 }
11825 /* dlclose (self); */
11826 }
11827 else
11828 puts (dlerror ());
11829
11830 return status;
11831 }
11832 _LT_EOF
11833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11834 (eval $ac_link) 2>&5
11835 ac_status=$?
11836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11837 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11838 (./conftest; exit; ) >&5 2>/dev/null
11839 lt_status=$?
11840 case x$lt_status in
11841 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11842 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11843 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11844 esac
11845 else :
11846 # compilation failed
11847 lt_cv_dlopen_self_static=no
11848 fi
11849 fi
11850 rm -fr conftest*
11851
11852
11853 fi
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11855 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11856 fi
11857
11858 CPPFLAGS="$save_CPPFLAGS"
11859 LDFLAGS="$save_LDFLAGS"
11860 LIBS="$save_LIBS"
11861 ;;
11862 esac
11863
11864 case $lt_cv_dlopen_self in
11865 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11866 *) enable_dlopen_self=unknown ;;
11867 esac
11868
11869 case $lt_cv_dlopen_self_static in
11870 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11871 *) enable_dlopen_self_static=unknown ;;
11872 esac
11873 fi
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891 striplib=
11892 old_striplib=
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11894 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11895 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11896 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11897 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11899 $as_echo "yes" >&6; }
11900 else
11901 # FIXME - insert some real tests, host_os isn't really good enough
11902 case $host_os in
11903 darwin*)
11904 if test -n "$STRIP" ; then
11905 striplib="$STRIP -x"
11906 old_striplib="$STRIP -S"
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11908 $as_echo "yes" >&6; }
11909 else
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11911 $as_echo "no" >&6; }
11912 fi
11913 ;;
11914 *)
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11917 ;;
11918 esac
11919 fi
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932 # Report which library types will actually be built
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11934 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11936 $as_echo "$can_build_shared" >&6; }
11937
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11939 $as_echo_n "checking whether to build shared libraries... " >&6; }
11940 test "$can_build_shared" = "no" && enable_shared=no
11941
11942 # On AIX, shared libraries and static libraries use the same namespace, and
11943 # are all built from PIC.
11944 case $host_os in
11945 aix3*)
11946 test "$enable_shared" = yes && enable_static=no
11947 if test -n "$RANLIB"; then
11948 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11949 postinstall_cmds='$RANLIB $lib'
11950 fi
11951 ;;
11952
11953 aix[4-9]*)
11954 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11955 test "$enable_shared" = yes && enable_static=no
11956 fi
11957 ;;
11958 esac
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11960 $as_echo "$enable_shared" >&6; }
11961
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11963 $as_echo_n "checking whether to build static libraries... " >&6; }
11964 # Make sure either enable_shared or enable_static is yes.
11965 test "$enable_shared" = yes || enable_static=yes
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11967 $as_echo "$enable_static" >&6; }
11968
11969
11970
11971
11972 fi
11973 ac_ext=c
11974 ac_cpp='$CPP $CPPFLAGS'
11975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11978
11979 CC="$lt_save_CC"
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993 ac_config_commands="$ac_config_commands libtool"
11994
11995
11996
11997
11998 # Only expand once:
11999
12000
12001 # Check whether --enable-largefile was given.
12002 if test "${enable_largefile+set}" = set; then :
12003 enableval=$enable_largefile;
12004 fi
12005
12006 if test "$enable_largefile" != no; then
12007
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12009 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12010 if ${ac_cv_sys_largefile_CC+:} false; then :
12011 $as_echo_n "(cached) " >&6
12012 else
12013 ac_cv_sys_largefile_CC=no
12014 if test "$GCC" != yes; then
12015 ac_save_CC=$CC
12016 while :; do
12017 # IRIX 6.2 and later do not support large files by default,
12018 # so use the C compiler's -n32 option if that helps.
12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12020 /* end confdefs.h. */
12021 #include <sys/types.h>
12022 /* Check that off_t can represent 2**63 - 1 correctly.
12023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12024 since some C++ compilers masquerading as C compilers
12025 incorrectly reject 9223372036854775807. */
12026 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12028 && LARGE_OFF_T % 2147483647 == 1)
12029 ? 1 : -1];
12030 int
12031 main ()
12032 {
12033
12034 ;
12035 return 0;
12036 }
12037 _ACEOF
12038 if ac_fn_c_try_compile "$LINENO"; then :
12039 break
12040 fi
12041 rm -f core conftest.err conftest.$ac_objext
12042 CC="$CC -n32"
12043 if ac_fn_c_try_compile "$LINENO"; then :
12044 ac_cv_sys_largefile_CC=' -n32'; break
12045 fi
12046 rm -f core conftest.err conftest.$ac_objext
12047 break
12048 done
12049 CC=$ac_save_CC
12050 rm -f conftest.$ac_ext
12051 fi
12052 fi
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12054 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12055 if test "$ac_cv_sys_largefile_CC" != no; then
12056 CC=$CC$ac_cv_sys_largefile_CC
12057 fi
12058
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12060 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12061 if ${ac_cv_sys_file_offset_bits+:} false; then :
12062 $as_echo_n "(cached) " >&6
12063 else
12064 while :; do
12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h. */
12067 #include <sys/types.h>
12068 /* Check that off_t can represent 2**63 - 1 correctly.
12069 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12070 since some C++ compilers masquerading as C compilers
12071 incorrectly reject 9223372036854775807. */
12072 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12073 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12074 && LARGE_OFF_T % 2147483647 == 1)
12075 ? 1 : -1];
12076 int
12077 main ()
12078 {
12079
12080 ;
12081 return 0;
12082 }
12083 _ACEOF
12084 if ac_fn_c_try_compile "$LINENO"; then :
12085 ac_cv_sys_file_offset_bits=no; break
12086 fi
12087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h. */
12090 #define _FILE_OFFSET_BITS 64
12091 #include <sys/types.h>
12092 /* Check that off_t can represent 2**63 - 1 correctly.
12093 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12094 since some C++ compilers masquerading as C compilers
12095 incorrectly reject 9223372036854775807. */
12096 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12097 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12098 && LARGE_OFF_T % 2147483647 == 1)
12099 ? 1 : -1];
12100 int
12101 main ()
12102 {
12103
12104 ;
12105 return 0;
12106 }
12107 _ACEOF
12108 if ac_fn_c_try_compile "$LINENO"; then :
12109 ac_cv_sys_file_offset_bits=64; break
12110 fi
12111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12112 ac_cv_sys_file_offset_bits=unknown
12113 break
12114 done
12115 fi
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12117 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12118 case $ac_cv_sys_file_offset_bits in #(
12119 no | unknown) ;;
12120 *)
12121 cat >>confdefs.h <<_ACEOF
12122 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12123 _ACEOF
12124 ;;
12125 esac
12126 rm -rf conftest*
12127 if test $ac_cv_sys_file_offset_bits = unknown; then
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12129 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12130 if ${ac_cv_sys_large_files+:} false; then :
12131 $as_echo_n "(cached) " >&6
12132 else
12133 while :; do
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12136 #include <sys/types.h>
12137 /* Check that off_t can represent 2**63 - 1 correctly.
12138 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12139 since some C++ compilers masquerading as C compilers
12140 incorrectly reject 9223372036854775807. */
12141 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12142 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12143 && LARGE_OFF_T % 2147483647 == 1)
12144 ? 1 : -1];
12145 int
12146 main ()
12147 {
12148
12149 ;
12150 return 0;
12151 }
12152 _ACEOF
12153 if ac_fn_c_try_compile "$LINENO"; then :
12154 ac_cv_sys_large_files=no; break
12155 fi
12156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h. */
12159 #define _LARGE_FILES 1
12160 #include <sys/types.h>
12161 /* Check that off_t can represent 2**63 - 1 correctly.
12162 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12163 since some C++ compilers masquerading as C compilers
12164 incorrectly reject 9223372036854775807. */
12165 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12166 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12167 && LARGE_OFF_T % 2147483647 == 1)
12168 ? 1 : -1];
12169 int
12170 main ()
12171 {
12172
12173 ;
12174 return 0;
12175 }
12176 _ACEOF
12177 if ac_fn_c_try_compile "$LINENO"; then :
12178 ac_cv_sys_large_files=1; break
12179 fi
12180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12181 ac_cv_sys_large_files=unknown
12182 break
12183 done
12184 fi
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12186 $as_echo "$ac_cv_sys_large_files" >&6; }
12187 case $ac_cv_sys_large_files in #(
12188 no | unknown) ;;
12189 *)
12190 cat >>confdefs.h <<_ACEOF
12191 #define _LARGE_FILES $ac_cv_sys_large_files
12192 _ACEOF
12193 ;;
12194 esac
12195 rm -rf conftest*
12196 fi
12197
12198
12199 fi
12200
12201 : ${CONFIG_LT=./config.lt}
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
12203 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
12204 as_write_fail=0
12205 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
12206 #! $SHELL
12207 # Generated by $as_me.
12208 # Run this file to recreate a libtool stub with the current configuration.
12209 SHELL=\${CONFIG_SHELL-$SHELL}
12210 export SHELL
12211 _ASEOF
12212 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
12213 ## -------------------- ##
12214 ## M4sh Initialization. ##
12215 ## -------------------- ##
12216
12217 # Be more Bourne compatible
12218 DUALCASE=1; export DUALCASE # for MKS sh
12219 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12220 emulate sh
12221 NULLCMD=:
12222 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12223 # is contrary to our usage. Disable this feature.
12224 alias -g '${1+"$@"}'='"$@"'
12225 setopt NO_GLOB_SUBST
12226 else
12227 case `(set -o) 2>/dev/null` in #(
12228 *posix*) :
12229 set -o posix ;; #(
12230 *) :
12231 ;;
12232 esac
12233 fi
12234
12235
12236 as_nl='
12237 '
12238 export as_nl
12239 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12240 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12241 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12242 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12243 # Prefer a ksh shell builtin over an external printf program on Solaris,
12244 # but without wasting forks for bash or zsh.
12245 if test -z "$BASH_VERSION$ZSH_VERSION" \
12246 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12247 as_echo='print -r --'
12248 as_echo_n='print -rn --'
12249 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12250 as_echo='printf %s\n'
12251 as_echo_n='printf %s'
12252 else
12253 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12254 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12255 as_echo_n='/usr/ucb/echo -n'
12256 else
12257 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12258 as_echo_n_body='eval
12259 arg=$1;
12260 case $arg in #(
12261 *"$as_nl"*)
12262 expr "X$arg" : "X\\(.*\\)$as_nl";
12263 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12264 esac;
12265 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12266 '
12267 export as_echo_n_body
12268 as_echo_n='sh -c $as_echo_n_body as_echo'
12269 fi
12270 export as_echo_body
12271 as_echo='sh -c $as_echo_body as_echo'
12272 fi
12273
12274 # The user is always right.
12275 if test "${PATH_SEPARATOR+set}" != set; then
12276 PATH_SEPARATOR=:
12277 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12278 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12279 PATH_SEPARATOR=';'
12280 }
12281 fi
12282
12283
12284 # IFS
12285 # We need space, tab and new line, in precisely that order. Quoting is
12286 # there to prevent editors from complaining about space-tab.
12287 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12288 # splitting by setting IFS to empty value.)
12289 IFS=" "" $as_nl"
12290
12291 # Find who we are. Look in the path if we contain no directory separator.
12292 as_myself=
12293 case $0 in #((
12294 *[\\/]* ) as_myself=$0 ;;
12295 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296 for as_dir in $PATH
12297 do
12298 IFS=$as_save_IFS
12299 test -z "$as_dir" && as_dir=.
12300 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12301 done
12302 IFS=$as_save_IFS
12303
12304 ;;
12305 esac
12306 # We did not find ourselves, most probably we were run as `sh COMMAND'
12307 # in which case we are not to be found in the path.
12308 if test "x$as_myself" = x; then
12309 as_myself=$0
12310 fi
12311 if test ! -f "$as_myself"; then
12312 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12313 exit 1
12314 fi
12315
12316 # Unset variables that we do not need and which cause bugs (e.g. in
12317 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12318 # suppresses any "Segmentation fault" message there. '((' could
12319 # trigger a bug in pdksh 5.2.14.
12320 for as_var in BASH_ENV ENV MAIL MAILPATH
12321 do eval test x\${$as_var+set} = xset \
12322 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12323 done
12324 PS1='$ '
12325 PS2='> '
12326 PS4='+ '
12327
12328 # NLS nuisances.
12329 LC_ALL=C
12330 export LC_ALL
12331 LANGUAGE=C
12332 export LANGUAGE
12333
12334 # CDPATH.
12335 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12336
12337
12338 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12339 # ----------------------------------------
12340 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12341 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12342 # script with STATUS, using 1 if that was 0.
12343 as_fn_error ()
12344 {
12345 as_status=$1; test $as_status -eq 0 && as_status=1
12346 if test "$4"; then
12347 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12348 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12349 fi
12350 $as_echo "$as_me: error: $2" >&2
12351 as_fn_exit $as_status
12352 } # as_fn_error
12353
12354
12355 # as_fn_set_status STATUS
12356 # -----------------------
12357 # Set $? to STATUS, without forking.
12358 as_fn_set_status ()
12359 {
12360 return $1
12361 } # as_fn_set_status
12362
12363 # as_fn_exit STATUS
12364 # -----------------
12365 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12366 as_fn_exit ()
12367 {
12368 set +e
12369 as_fn_set_status $1
12370 exit $1
12371 } # as_fn_exit
12372
12373 # as_fn_unset VAR
12374 # ---------------
12375 # Portably unset VAR.
12376 as_fn_unset ()
12377 {
12378 { eval $1=; unset $1;}
12379 }
12380 as_unset=as_fn_unset
12381 # as_fn_append VAR VALUE
12382 # ----------------------
12383 # Append the text in VALUE to the end of the definition contained in VAR. Take
12384 # advantage of any shell optimizations that allow amortized linear growth over
12385 # repeated appends, instead of the typical quadratic growth present in naive
12386 # implementations.
12387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12388 eval 'as_fn_append ()
12389 {
12390 eval $1+=\$2
12391 }'
12392 else
12393 as_fn_append ()
12394 {
12395 eval $1=\$$1\$2
12396 }
12397 fi # as_fn_append
12398
12399 # as_fn_arith ARG...
12400 # ------------------
12401 # Perform arithmetic evaluation on the ARGs, and store the result in the
12402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12403 # must be portable across $(()) and expr.
12404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12405 eval 'as_fn_arith ()
12406 {
12407 as_val=$(( $* ))
12408 }'
12409 else
12410 as_fn_arith ()
12411 {
12412 as_val=`expr "$@" || test $? -eq 1`
12413 }
12414 fi # as_fn_arith
12415
12416
12417 if expr a : '\(a\)' >/dev/null 2>&1 &&
12418 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12419 as_expr=expr
12420 else
12421 as_expr=false
12422 fi
12423
12424 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12425 as_basename=basename
12426 else
12427 as_basename=false
12428 fi
12429
12430 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12431 as_dirname=dirname
12432 else
12433 as_dirname=false
12434 fi
12435
12436 as_me=`$as_basename -- "$0" ||
12437 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12438 X"$0" : 'X\(//\)$' \| \
12439 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12440 $as_echo X/"$0" |
12441 sed '/^.*\/\([^/][^/]*\)\/*$/{
12442 s//\1/
12443 q
12444 }
12445 /^X\/\(\/\/\)$/{
12446 s//\1/
12447 q
12448 }
12449 /^X\/\(\/\).*/{
12450 s//\1/
12451 q
12452 }
12453 s/.*/./; q'`
12454
12455 # Avoid depending upon Character Ranges.
12456 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12457 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12458 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12459 as_cr_digits='0123456789'
12460 as_cr_alnum=$as_cr_Letters$as_cr_digits
12461
12462 ECHO_C= ECHO_N= ECHO_T=
12463 case `echo -n x` in #(((((
12464 -n*)
12465 case `echo 'xy\c'` in
12466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12467 xy) ECHO_C='\c';;
12468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12469 ECHO_T=' ';;
12470 esac;;
12471 *)
12472 ECHO_N='-n';;
12473 esac
12474
12475 rm -f conf$$ conf$$.exe conf$$.file
12476 if test -d conf$$.dir; then
12477 rm -f conf$$.dir/conf$$.file
12478 else
12479 rm -f conf$$.dir
12480 mkdir conf$$.dir 2>/dev/null
12481 fi
12482 if (echo >conf$$.file) 2>/dev/null; then
12483 if ln -s conf$$.file conf$$ 2>/dev/null; then
12484 as_ln_s='ln -s'
12485 # ... but there are two gotchas:
12486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12488 # In both cases, we have to default to `cp -pR'.
12489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12490 as_ln_s='cp -pR'
12491 elif ln conf$$.file conf$$ 2>/dev/null; then
12492 as_ln_s=ln
12493 else
12494 as_ln_s='cp -pR'
12495 fi
12496 else
12497 as_ln_s='cp -pR'
12498 fi
12499 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12500 rmdir conf$$.dir 2>/dev/null
12501
12502
12503 # as_fn_mkdir_p
12504 # -------------
12505 # Create "$as_dir" as a directory, including parents if necessary.
12506 as_fn_mkdir_p ()
12507 {
12508
12509 case $as_dir in #(
12510 -*) as_dir=./$as_dir;;
12511 esac
12512 test -d "$as_dir" || eval $as_mkdir_p || {
12513 as_dirs=
12514 while :; do
12515 case $as_dir in #(
12516 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12517 *) as_qdir=$as_dir;;
12518 esac
12519 as_dirs="'$as_qdir' $as_dirs"
12520 as_dir=`$as_dirname -- "$as_dir" ||
12521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12522 X"$as_dir" : 'X\(//\)[^/]' \| \
12523 X"$as_dir" : 'X\(//\)$' \| \
12524 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12525 $as_echo X"$as_dir" |
12526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12527 s//\1/
12528 q
12529 }
12530 /^X\(\/\/\)[^/].*/{
12531 s//\1/
12532 q
12533 }
12534 /^X\(\/\/\)$/{
12535 s//\1/
12536 q
12537 }
12538 /^X\(\/\).*/{
12539 s//\1/
12540 q
12541 }
12542 s/.*/./; q'`
12543 test -d "$as_dir" && break
12544 done
12545 test -z "$as_dirs" || eval "mkdir $as_dirs"
12546 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12547
12548
12549 } # as_fn_mkdir_p
12550 if mkdir -p . 2>/dev/null; then
12551 as_mkdir_p='mkdir -p "$as_dir"'
12552 else
12553 test -d ./-p && rmdir ./-p
12554 as_mkdir_p=false
12555 fi
12556
12557
12558 # as_fn_executable_p FILE
12559 # -----------------------
12560 # Test if FILE is an executable regular file.
12561 as_fn_executable_p ()
12562 {
12563 test -f "$1" && test -x "$1"
12564 } # as_fn_executable_p
12565 as_test_x='test -x'
12566 as_executable_p=as_fn_executable_p
12567
12568 # Sed expression to map a string onto a valid CPP name.
12569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12570
12571 # Sed expression to map a string onto a valid variable name.
12572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12573
12574
12575 exec 6>&1
12576 ## --------------------------------- ##
12577 ## Main body of "$CONFIG_LT" script. ##
12578 ## --------------------------------- ##
12579 _ASEOF
12580 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
12581
12582 cat >>"$CONFIG_LT" <<\_LTEOF
12583 lt_cl_silent=false
12584 exec 5>>config.log
12585 {
12586 echo
12587 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12588 ## Running $as_me. ##
12589 _ASBOX
12590 } >&5
12591
12592 lt_cl_help="\
12593 \`$as_me' creates a local libtool stub from the current configuration,
12594 for use in further configure time tests before the real libtool is
12595 generated.
12596
12597 Usage: $0 [OPTIONS]
12598
12599 -h, --help print this help, then exit
12600 -V, --version print version number, then exit
12601 -q, --quiet do not print progress messages
12602 -d, --debug don't remove temporary files
12603
12604 Report bugs to <bug-libtool@gnu.org>."
12605
12606 lt_cl_version="\
12607 libctf config.lt 1.2.0
12608 configured by $0, generated by GNU Autoconf 2.69.
12609
12610 Copyright (C) 2009 Free Software Foundation, Inc.
12611 This config.lt script is free software; the Free Software Foundation
12612 gives unlimited permision to copy, distribute and modify it."
12613
12614 while test $# != 0
12615 do
12616 case $1 in
12617 --version | --v* | -V )
12618 echo "$lt_cl_version"; exit 0 ;;
12619 --help | --h* | -h )
12620 echo "$lt_cl_help"; exit 0 ;;
12621 --debug | --d* | -d )
12622 debug=: ;;
12623 --quiet | --q* | --silent | --s* | -q )
12624 lt_cl_silent=: ;;
12625
12626 -*) as_fn_error $? "unrecognized option: $1
12627 Try \`$0 --help' for more information." "$LINENO" 5 ;;
12628
12629 *) as_fn_error $? "unrecognized argument: $1
12630 Try \`$0 --help' for more information." "$LINENO" 5 ;;
12631 esac
12632 shift
12633 done
12634
12635 if $lt_cl_silent; then
12636 exec 6>/dev/null
12637 fi
12638 _LTEOF
12639
12640 cat >>"$CONFIG_LT" <<_LTEOF
12641
12642
12643 # The HP-UX ksh and POSIX shell print the target directory to stdout
12644 # if CDPATH is set.
12645 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12646
12647 sed_quote_subst='$sed_quote_subst'
12648 double_quote_subst='$double_quote_subst'
12649 delay_variable_subst='$delay_variable_subst'
12650 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12651 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12652 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12653 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12654 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12655 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12656 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12657 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12658 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12659 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12660 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12661 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12662 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12663 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12664 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12665 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12666 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12667 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12668 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12669 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12670 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12671 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12672 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12673 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12674 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12675 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12676 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12677 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12678 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12679 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12680 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12681 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12682 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12683 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12684 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12685 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12686 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12687 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12688 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12689 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12690 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12691 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12692 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12693 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12694 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12695 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12696 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12697 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12698 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"`'
12699 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12700 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12701 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12702 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12703 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12704 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12705 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12706 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12707 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12708 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12709 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12710 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12711 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12712 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12713 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12714 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12715 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12716 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12717 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12718 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12719 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12720 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12721 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12722 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12723 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12724 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12725 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12726 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12727 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12728 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12729 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12730 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12731 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12732 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12733 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12734 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12735 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12736 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12737 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12738 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12739 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12740 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12741 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12742 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12743 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12744 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12745 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12746 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12747 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12748 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12749 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12750 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12751 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12752 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12753 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12754 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12755 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12756 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12757 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12758 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12759 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12760 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12761 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12762 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12763 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12764 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12765 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12766 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12767 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12768 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12769 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12770
12771 LTCC='$LTCC'
12772 LTCFLAGS='$LTCFLAGS'
12773 compiler='$compiler_DEFAULT'
12774
12775 # A function that is used when there is no print builtin or printf.
12776 func_fallback_echo ()
12777 {
12778 eval 'cat <<_LTECHO_EOF
12779 \$1
12780 _LTECHO_EOF'
12781 }
12782
12783 # Quote evaled strings.
12784 for var in SHELL \
12785 ECHO \
12786 SED \
12787 GREP \
12788 EGREP \
12789 FGREP \
12790 LD \
12791 NM \
12792 LN_S \
12793 lt_SP2NL \
12794 lt_NL2SP \
12795 reload_flag \
12796 OBJDUMP \
12797 deplibs_check_method \
12798 file_magic_cmd \
12799 AR \
12800 AR_FLAGS \
12801 STRIP \
12802 RANLIB \
12803 CC \
12804 CFLAGS \
12805 compiler \
12806 lt_cv_sys_global_symbol_pipe \
12807 lt_cv_sys_global_symbol_to_cdecl \
12808 lt_cv_sys_global_symbol_to_c_name_address \
12809 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12810 lt_prog_compiler_no_builtin_flag \
12811 lt_prog_compiler_wl \
12812 lt_prog_compiler_pic \
12813 lt_prog_compiler_static \
12814 lt_cv_prog_compiler_c_o \
12815 need_locks \
12816 DSYMUTIL \
12817 NMEDIT \
12818 LIPO \
12819 OTOOL \
12820 OTOOL64 \
12821 shrext_cmds \
12822 export_dynamic_flag_spec \
12823 whole_archive_flag_spec \
12824 compiler_needs_object \
12825 with_gnu_ld \
12826 allow_undefined_flag \
12827 no_undefined_flag \
12828 hardcode_libdir_flag_spec \
12829 hardcode_libdir_flag_spec_ld \
12830 hardcode_libdir_separator \
12831 fix_srcfile_path \
12832 exclude_expsyms \
12833 include_expsyms \
12834 file_list_spec \
12835 variables_saved_for_relink \
12836 libname_spec \
12837 library_names_spec \
12838 soname_spec \
12839 install_override_mode \
12840 finish_eval \
12841 old_striplib \
12842 striplib; do
12843 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12844 *[\\\\\\\`\\"\\\$]*)
12845 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12846 ;;
12847 *)
12848 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12849 ;;
12850 esac
12851 done
12852
12853 # Double-quote double-evaled strings.
12854 for var in reload_cmds \
12855 old_postinstall_cmds \
12856 old_postuninstall_cmds \
12857 old_archive_cmds \
12858 extract_expsyms_cmds \
12859 old_archive_from_new_cmds \
12860 old_archive_from_expsyms_cmds \
12861 archive_cmds \
12862 archive_expsym_cmds \
12863 module_cmds \
12864 module_expsym_cmds \
12865 export_symbols_cmds \
12866 prelink_cmds \
12867 postinstall_cmds \
12868 postuninstall_cmds \
12869 finish_cmds \
12870 sys_lib_search_path_spec \
12871 sys_lib_dlsearch_path_spec; do
12872 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12873 *[\\\\\\\`\\"\\\$]*)
12874 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12875 ;;
12876 *)
12877 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12878 ;;
12879 esac
12880 done
12881
12882 ac_aux_dir='$ac_aux_dir'
12883 xsi_shell='$xsi_shell'
12884 lt_shell_append='$lt_shell_append'
12885
12886 # See if we are running on zsh, and set the options which allow our
12887 # commands through without removal of \ escapes INIT.
12888 if test -n "\${ZSH_VERSION+set}" ; then
12889 setopt NO_GLOB_SUBST
12890 fi
12891
12892
12893 PACKAGE='$PACKAGE'
12894 VERSION='$VERSION'
12895 TIMESTAMP='$TIMESTAMP'
12896 RM='$RM'
12897 ofile='$ofile'
12898
12899
12900
12901 _LTEOF
12902
12903 cat >>"$CONFIG_LT" <<\_LTEOF
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
12905 $as_echo "$as_me: creating $ofile" >&6;}
12906
12907
12908 # See if we are running on zsh, and set the options which allow our
12909 # commands through without removal of \ escapes.
12910 if test -n "${ZSH_VERSION+set}" ; then
12911 setopt NO_GLOB_SUBST
12912 fi
12913
12914 cfgfile="${ofile}T"
12915 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12916 $RM "$cfgfile"
12917
12918 cat <<_LT_EOF >> "$cfgfile"
12919 #! $SHELL
12920
12921 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12922 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12923 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12924 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12925 #
12926 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12927 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12928 # Written by Gordon Matzigkeit, 1996
12929 #
12930 # This file is part of GNU Libtool.
12931 #
12932 # GNU Libtool is free software; you can redistribute it and/or
12933 # modify it under the terms of the GNU General Public License as
12934 # published by the Free Software Foundation; either version 2 of
12935 # the License, or (at your option) any later version.
12936 #
12937 # As a special exception to the GNU General Public License,
12938 # if you distribute this file as part of a program or library that
12939 # is built using GNU Libtool, you may include this file under the
12940 # same distribution terms that you use for the rest of that program.
12941 #
12942 # GNU Libtool is distributed in the hope that it will be useful,
12943 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12944 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12945 # GNU General Public License for more details.
12946 #
12947 # You should have received a copy of the GNU General Public License
12948 # along with GNU Libtool; see the file COPYING. If not, a copy
12949 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12950 # obtained by writing to the Free Software Foundation, Inc.,
12951 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12952
12953
12954 # The names of the tagged configurations supported by this script.
12955 available_tags=""
12956
12957 # ### BEGIN LIBTOOL CONFIG
12958
12959 # Whether or not to build shared libraries.
12960 build_libtool_libs=$enable_shared
12961
12962 # Which release of libtool.m4 was used?
12963 macro_version=$macro_version
12964 macro_revision=$macro_revision
12965
12966 # Whether or not to build static libraries.
12967 build_old_libs=$enable_static
12968
12969 # What type of objects to build.
12970 pic_mode=$pic_mode
12971
12972 # Whether or not to optimize for fast installation.
12973 fast_install=$enable_fast_install
12974
12975 # Shell to use when invoking shell scripts.
12976 SHELL=$lt_SHELL
12977
12978 # An echo program that protects backslashes.
12979 ECHO=$lt_ECHO
12980
12981 # The host system.
12982 host_alias=$host_alias
12983 host=$host
12984 host_os=$host_os
12985
12986 # The build system.
12987 build_alias=$build_alias
12988 build=$build
12989 build_os=$build_os
12990
12991 # A sed program that does not truncate output.
12992 SED=$lt_SED
12993
12994 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12995 Xsed="\$SED -e 1s/^X//"
12996
12997 # A grep program that handles long lines.
12998 GREP=$lt_GREP
12999
13000 # An ERE matcher.
13001 EGREP=$lt_EGREP
13002
13003 # A literal string matcher.
13004 FGREP=$lt_FGREP
13005
13006 # A BSD- or MS-compatible name lister.
13007 NM=$lt_NM
13008
13009 # Whether we need soft or hard links.
13010 LN_S=$lt_LN_S
13011
13012 # What is the maximum length of a command?
13013 max_cmd_len=$max_cmd_len
13014
13015 # Object file suffix (normally "o").
13016 objext=$ac_objext
13017
13018 # Executable file suffix (normally "").
13019 exeext=$exeext
13020
13021 # whether the shell understands "unset".
13022 lt_unset=$lt_unset
13023
13024 # turn spaces into newlines.
13025 SP2NL=$lt_lt_SP2NL
13026
13027 # turn newlines into spaces.
13028 NL2SP=$lt_lt_NL2SP
13029
13030 # An object symbol dumper.
13031 OBJDUMP=$lt_OBJDUMP
13032
13033 # Method to check whether dependent libraries are shared objects.
13034 deplibs_check_method=$lt_deplibs_check_method
13035
13036 # Command to use when deplibs_check_method == "file_magic".
13037 file_magic_cmd=$lt_file_magic_cmd
13038
13039 # The archiver.
13040 AR=$lt_AR
13041 AR_FLAGS=$lt_AR_FLAGS
13042
13043 # A symbol stripping program.
13044 STRIP=$lt_STRIP
13045
13046 # Commands used to install an old-style archive.
13047 RANLIB=$lt_RANLIB
13048 old_postinstall_cmds=$lt_old_postinstall_cmds
13049 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13050
13051 # Whether to use a lock for old archive extraction.
13052 lock_old_archive_extraction=$lock_old_archive_extraction
13053
13054 # A C compiler.
13055 LTCC=$lt_CC
13056
13057 # LTCC compiler flags.
13058 LTCFLAGS=$lt_CFLAGS
13059
13060 # Take the output of nm and produce a listing of raw symbols and C names.
13061 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13062
13063 # Transform the output of nm in a proper C declaration.
13064 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13065
13066 # Transform the output of nm in a C name address pair.
13067 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13068
13069 # Transform the output of nm in a C name address pair when lib prefix is needed.
13070 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13071
13072 # The name of the directory that contains temporary libtool files.
13073 objdir=$objdir
13074
13075 # Used to examine libraries when file_magic_cmd begins with "file".
13076 MAGIC_CMD=$MAGIC_CMD
13077
13078 # Must we lock files when doing compilation?
13079 need_locks=$lt_need_locks
13080
13081 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13082 DSYMUTIL=$lt_DSYMUTIL
13083
13084 # Tool to change global to local symbols on Mac OS X.
13085 NMEDIT=$lt_NMEDIT
13086
13087 # Tool to manipulate fat objects and archives on Mac OS X.
13088 LIPO=$lt_LIPO
13089
13090 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13091 OTOOL=$lt_OTOOL
13092
13093 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13094 OTOOL64=$lt_OTOOL64
13095
13096 # Old archive suffix (normally "a").
13097 libext=$libext
13098
13099 # Shared library suffix (normally ".so").
13100 shrext_cmds=$lt_shrext_cmds
13101
13102 # The commands to extract the exported symbol list from a shared archive.
13103 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13104
13105 # Variables whose values should be saved in libtool wrapper scripts and
13106 # restored at link time.
13107 variables_saved_for_relink=$lt_variables_saved_for_relink
13108
13109 # Do we need the "lib" prefix for modules?
13110 need_lib_prefix=$need_lib_prefix
13111
13112 # Do we need a version for libraries?
13113 need_version=$need_version
13114
13115 # Library versioning type.
13116 version_type=$version_type
13117
13118 # Shared library runtime path variable.
13119 runpath_var=$runpath_var
13120
13121 # Shared library path variable.
13122 shlibpath_var=$shlibpath_var
13123
13124 # Is shlibpath searched before the hard-coded library search path?
13125 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13126
13127 # Format of library name prefix.
13128 libname_spec=$lt_libname_spec
13129
13130 # List of archive names. First name is the real one, the rest are links.
13131 # The last name is the one that the linker finds with -lNAME
13132 library_names_spec=$lt_library_names_spec
13133
13134 # The coded name of the library, if different from the real name.
13135 soname_spec=$lt_soname_spec
13136
13137 # Permission mode override for installation of shared libraries.
13138 install_override_mode=$lt_install_override_mode
13139
13140 # Command to use after installation of a shared archive.
13141 postinstall_cmds=$lt_postinstall_cmds
13142
13143 # Command to use after uninstallation of a shared archive.
13144 postuninstall_cmds=$lt_postuninstall_cmds
13145
13146 # Commands used to finish a libtool library installation in a directory.
13147 finish_cmds=$lt_finish_cmds
13148
13149 # As "finish_cmds", except a single script fragment to be evaled but
13150 # not shown.
13151 finish_eval=$lt_finish_eval
13152
13153 # Whether we should hardcode library paths into libraries.
13154 hardcode_into_libs=$hardcode_into_libs
13155
13156 # Compile-time system search path for libraries.
13157 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13158
13159 # Run-time system search path for libraries.
13160 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13161
13162 # Whether dlopen is supported.
13163 dlopen_support=$enable_dlopen
13164
13165 # Whether dlopen of programs is supported.
13166 dlopen_self=$enable_dlopen_self
13167
13168 # Whether dlopen of statically linked programs is supported.
13169 dlopen_self_static=$enable_dlopen_self_static
13170
13171 # Commands to strip libraries.
13172 old_striplib=$lt_old_striplib
13173 striplib=$lt_striplib
13174
13175
13176 # The linker used to build libraries.
13177 LD=$lt_LD
13178
13179 # How to create reloadable object files.
13180 reload_flag=$lt_reload_flag
13181 reload_cmds=$lt_reload_cmds
13182
13183 # Commands used to build an old-style archive.
13184 old_archive_cmds=$lt_old_archive_cmds
13185
13186 # A language specific compiler.
13187 CC=$lt_compiler
13188
13189 # Is the compiler the GNU compiler?
13190 with_gcc=$GCC
13191
13192 # Compiler flag to turn off builtin functions.
13193 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13194
13195 # How to pass a linker flag through the compiler.
13196 wl=$lt_lt_prog_compiler_wl
13197
13198 # Additional compiler flags for building library objects.
13199 pic_flag=$lt_lt_prog_compiler_pic
13200
13201 # Compiler flag to prevent dynamic linking.
13202 link_static_flag=$lt_lt_prog_compiler_static
13203
13204 # Does compiler simultaneously support -c and -o options?
13205 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13206
13207 # Whether or not to add -lc for building shared libraries.
13208 build_libtool_need_lc=$archive_cmds_need_lc
13209
13210 # Whether or not to disallow shared libs when runtime libs are static.
13211 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13212
13213 # Compiler flag to allow reflexive dlopens.
13214 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13215
13216 # Compiler flag to generate shared objects directly from archives.
13217 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13218
13219 # Whether the compiler copes with passing no objects directly.
13220 compiler_needs_object=$lt_compiler_needs_object
13221
13222 # Create an old-style archive from a shared archive.
13223 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13224
13225 # Create a temporary old-style archive to link instead of a shared archive.
13226 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13227
13228 # Commands used to build a shared archive.
13229 archive_cmds=$lt_archive_cmds
13230 archive_expsym_cmds=$lt_archive_expsym_cmds
13231
13232 # Commands used to build a loadable module if different from building
13233 # a shared archive.
13234 module_cmds=$lt_module_cmds
13235 module_expsym_cmds=$lt_module_expsym_cmds
13236
13237 # Whether we are building with GNU ld or not.
13238 with_gnu_ld=$lt_with_gnu_ld
13239
13240 # Flag that allows shared libraries with undefined symbols to be built.
13241 allow_undefined_flag=$lt_allow_undefined_flag
13242
13243 # Flag that enforces no undefined symbols.
13244 no_undefined_flag=$lt_no_undefined_flag
13245
13246 # Flag to hardcode \$libdir into a binary during linking.
13247 # This must work even if \$libdir does not exist
13248 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13249
13250 # If ld is used when linking, flag to hardcode \$libdir into a binary
13251 # during linking. This must work even if \$libdir does not exist.
13252 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13253
13254 # Whether we need a single "-rpath" flag with a separated argument.
13255 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13256
13257 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13258 # DIR into the resulting binary.
13259 hardcode_direct=$hardcode_direct
13260
13261 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13262 # DIR into the resulting binary and the resulting library dependency is
13263 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13264 # library is relocated.
13265 hardcode_direct_absolute=$hardcode_direct_absolute
13266
13267 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13268 # into the resulting binary.
13269 hardcode_minus_L=$hardcode_minus_L
13270
13271 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13272 # into the resulting binary.
13273 hardcode_shlibpath_var=$hardcode_shlibpath_var
13274
13275 # Set to "yes" if building a shared library automatically hardcodes DIR
13276 # into the library and all subsequent libraries and executables linked
13277 # against it.
13278 hardcode_automatic=$hardcode_automatic
13279
13280 # Set to yes if linker adds runtime paths of dependent libraries
13281 # to runtime path list.
13282 inherit_rpath=$inherit_rpath
13283
13284 # Whether libtool must link a program against all its dependency libraries.
13285 link_all_deplibs=$link_all_deplibs
13286
13287 # Fix the shell variable \$srcfile for the compiler.
13288 fix_srcfile_path=$lt_fix_srcfile_path
13289
13290 # Set to "yes" if exported symbols are required.
13291 always_export_symbols=$always_export_symbols
13292
13293 # The commands to list exported symbols.
13294 export_symbols_cmds=$lt_export_symbols_cmds
13295
13296 # Symbols that should not be listed in the preloaded symbols.
13297 exclude_expsyms=$lt_exclude_expsyms
13298
13299 # Symbols that must always be exported.
13300 include_expsyms=$lt_include_expsyms
13301
13302 # Commands necessary for linking programs (against libraries) with templates.
13303 prelink_cmds=$lt_prelink_cmds
13304
13305 # Specify filename containing input files.
13306 file_list_spec=$lt_file_list_spec
13307
13308 # How to hardcode a shared library path into an executable.
13309 hardcode_action=$hardcode_action
13310
13311 # ### END LIBTOOL CONFIG
13312
13313 _LT_EOF
13314
13315 case $host_os in
13316 aix3*)
13317 cat <<\_LT_EOF >> "$cfgfile"
13318 # AIX sometimes has problems with the GCC collect2 program. For some
13319 # reason, if we set the COLLECT_NAMES environment variable, the problems
13320 # vanish in a puff of smoke.
13321 if test "X${COLLECT_NAMES+set}" != Xset; then
13322 COLLECT_NAMES=
13323 export COLLECT_NAMES
13324 fi
13325 _LT_EOF
13326 ;;
13327 esac
13328
13329
13330 ltmain="$ac_aux_dir/ltmain.sh"
13331
13332
13333 # We use sed instead of cat because bash on DJGPP gets confused if
13334 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13335 # text mode, it properly converts lines to CR/LF. This bash problem
13336 # is reportedly fixed, but why not run on old versions too?
13337 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13338 || (rm -f "$cfgfile"; exit 1)
13339
13340 case $xsi_shell in
13341 yes)
13342 cat << \_LT_EOF >> "$cfgfile"
13343
13344 # func_dirname file append nondir_replacement
13345 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13346 # otherwise set result to NONDIR_REPLACEMENT.
13347 func_dirname ()
13348 {
13349 case ${1} in
13350 */*) func_dirname_result="${1%/*}${2}" ;;
13351 * ) func_dirname_result="${3}" ;;
13352 esac
13353 }
13354
13355 # func_basename file
13356 func_basename ()
13357 {
13358 func_basename_result="${1##*/}"
13359 }
13360
13361 # func_dirname_and_basename file append nondir_replacement
13362 # perform func_basename and func_dirname in a single function
13363 # call:
13364 # dirname: Compute the dirname of FILE. If nonempty,
13365 # add APPEND to the result, otherwise set result
13366 # to NONDIR_REPLACEMENT.
13367 # value returned in "$func_dirname_result"
13368 # basename: Compute filename of FILE.
13369 # value retuned in "$func_basename_result"
13370 # Implementation must be kept synchronized with func_dirname
13371 # and func_basename. For efficiency, we do not delegate to
13372 # those functions but instead duplicate the functionality here.
13373 func_dirname_and_basename ()
13374 {
13375 case ${1} in
13376 */*) func_dirname_result="${1%/*}${2}" ;;
13377 * ) func_dirname_result="${3}" ;;
13378 esac
13379 func_basename_result="${1##*/}"
13380 }
13381
13382 # func_stripname prefix suffix name
13383 # strip PREFIX and SUFFIX off of NAME.
13384 # PREFIX and SUFFIX must not contain globbing or regex special
13385 # characters, hashes, percent signs, but SUFFIX may contain a leading
13386 # dot (in which case that matches only a dot).
13387 func_stripname ()
13388 {
13389 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13390 # positional parameters, so assign one to ordinary parameter first.
13391 func_stripname_result=${3}
13392 func_stripname_result=${func_stripname_result#"${1}"}
13393 func_stripname_result=${func_stripname_result%"${2}"}
13394 }
13395
13396 # func_opt_split
13397 func_opt_split ()
13398 {
13399 func_opt_split_opt=${1%%=*}
13400 func_opt_split_arg=${1#*=}
13401 }
13402
13403 # func_lo2o object
13404 func_lo2o ()
13405 {
13406 case ${1} in
13407 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13408 *) func_lo2o_result=${1} ;;
13409 esac
13410 }
13411
13412 # func_xform libobj-or-source
13413 func_xform ()
13414 {
13415 func_xform_result=${1%.*}.lo
13416 }
13417
13418 # func_arith arithmetic-term...
13419 func_arith ()
13420 {
13421 func_arith_result=$(( $* ))
13422 }
13423
13424 # func_len string
13425 # STRING may not start with a hyphen.
13426 func_len ()
13427 {
13428 func_len_result=${#1}
13429 }
13430
13431 _LT_EOF
13432 ;;
13433 *) # Bourne compatible functions.
13434 cat << \_LT_EOF >> "$cfgfile"
13435
13436 # func_dirname file append nondir_replacement
13437 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13438 # otherwise set result to NONDIR_REPLACEMENT.
13439 func_dirname ()
13440 {
13441 # Extract subdirectory from the argument.
13442 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13443 if test "X$func_dirname_result" = "X${1}"; then
13444 func_dirname_result="${3}"
13445 else
13446 func_dirname_result="$func_dirname_result${2}"
13447 fi
13448 }
13449
13450 # func_basename file
13451 func_basename ()
13452 {
13453 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13454 }
13455
13456
13457 # func_stripname prefix suffix name
13458 # strip PREFIX and SUFFIX off of NAME.
13459 # PREFIX and SUFFIX must not contain globbing or regex special
13460 # characters, hashes, percent signs, but SUFFIX may contain a leading
13461 # dot (in which case that matches only a dot).
13462 # func_strip_suffix prefix name
13463 func_stripname ()
13464 {
13465 case ${2} in
13466 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13467 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13468 esac
13469 }
13470
13471 # sed scripts:
13472 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13473 my_sed_long_arg='1s/^-[^=]*=//'
13474
13475 # func_opt_split
13476 func_opt_split ()
13477 {
13478 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13479 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13480 }
13481
13482 # func_lo2o object
13483 func_lo2o ()
13484 {
13485 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13486 }
13487
13488 # func_xform libobj-or-source
13489 func_xform ()
13490 {
13491 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13492 }
13493
13494 # func_arith arithmetic-term...
13495 func_arith ()
13496 {
13497 func_arith_result=`expr "$@"`
13498 }
13499
13500 # func_len string
13501 # STRING may not start with a hyphen.
13502 func_len ()
13503 {
13504 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13505 }
13506
13507 _LT_EOF
13508 esac
13509
13510 case $lt_shell_append in
13511 yes)
13512 cat << \_LT_EOF >> "$cfgfile"
13513
13514 # func_append var value
13515 # Append VALUE to the end of shell variable VAR.
13516 func_append ()
13517 {
13518 eval "$1+=\$2"
13519 }
13520 _LT_EOF
13521 ;;
13522 *)
13523 cat << \_LT_EOF >> "$cfgfile"
13524
13525 # func_append var value
13526 # Append VALUE to the end of shell variable VAR.
13527 func_append ()
13528 {
13529 eval "$1=\$$1\$2"
13530 }
13531
13532 _LT_EOF
13533 ;;
13534 esac
13535
13536
13537 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13538 || (rm -f "$cfgfile"; exit 1)
13539
13540 mv -f "$cfgfile" "$ofile" ||
13541 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13542 chmod +x "$ofile"
13543
13544
13545 as_fn_exit 0
13546 _LTEOF
13547 chmod +x "$CONFIG_LT"
13548
13549 # configure is writing to config.log, but config.lt does its own redirection,
13550 # appending to config.log, which fails on DOS, as config.log is still kept
13551 # open by configure. Here we exec the FD to /dev/null, effectively closing
13552 # config.log, so it can be properly (re)opened and appended to by config.lt.
13553 lt_cl_success=:
13554 test "$silent" = yes &&
13555 lt_config_lt_args="$lt_config_lt_args --quiet"
13556 exec 5>/dev/null
13557 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
13558 exec 5>>config.log
13559 $lt_cl_success || as_fn_exit 1
13560
13561
13562 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
13563 for ac_prog in aclocal
13564 do
13565 # Extract the first word of "$ac_prog", so it can be a program name with args.
13566 set dummy $ac_prog; ac_word=$2
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13568 $as_echo_n "checking for $ac_word... " >&6; }
13569 if ${ac_cv_prog_ACLOCAL+:} false; then :
13570 $as_echo_n "(cached) " >&6
13571 else
13572 if test -n "$ACLOCAL"; then
13573 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
13574 else
13575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13576 for as_dir in $PATH
13577 do
13578 IFS=$as_save_IFS
13579 test -z "$as_dir" && as_dir=.
13580 for ac_exec_ext in '' $ac_executable_extensions; do
13581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13582 ac_cv_prog_ACLOCAL="$ac_prog"
13583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13584 break 2
13585 fi
13586 done
13587 done
13588 IFS=$as_save_IFS
13589
13590 fi
13591 fi
13592 ACLOCAL=$ac_cv_prog_ACLOCAL
13593 if test -n "$ACLOCAL"; then
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
13595 $as_echo "$ACLOCAL" >&6; }
13596 else
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13598 $as_echo "no" >&6; }
13599 fi
13600
13601
13602 test -n "$ACLOCAL" && break
13603 done
13604 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
13605
13606 for ac_prog in autoconf
13607 do
13608 # Extract the first word of "$ac_prog", so it can be a program name with args.
13609 set dummy $ac_prog; ac_word=$2
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13611 $as_echo_n "checking for $ac_word... " >&6; }
13612 if ${ac_cv_prog_AUTOCONF+:} false; then :
13613 $as_echo_n "(cached) " >&6
13614 else
13615 if test -n "$AUTOCONF"; then
13616 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
13617 else
13618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13619 for as_dir in $PATH
13620 do
13621 IFS=$as_save_IFS
13622 test -z "$as_dir" && as_dir=.
13623 for ac_exec_ext in '' $ac_executable_extensions; do
13624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13625 ac_cv_prog_AUTOCONF="$ac_prog"
13626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13627 break 2
13628 fi
13629 done
13630 done
13631 IFS=$as_save_IFS
13632
13633 fi
13634 fi
13635 AUTOCONF=$ac_cv_prog_AUTOCONF
13636 if test -n "$AUTOCONF"; then
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
13638 $as_echo "$AUTOCONF" >&6; }
13639 else
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641 $as_echo "no" >&6; }
13642 fi
13643
13644
13645 test -n "$AUTOCONF" && break
13646 done
13647 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
13648
13649 for ac_prog in autoheader
13650 do
13651 # Extract the first word of "$ac_prog", so it can be a program name with args.
13652 set dummy $ac_prog; ac_word=$2
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13654 $as_echo_n "checking for $ac_word... " >&6; }
13655 if ${ac_cv_prog_AUTOHEADER+:} false; then :
13656 $as_echo_n "(cached) " >&6
13657 else
13658 if test -n "$AUTOHEADER"; then
13659 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
13660 else
13661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13662 for as_dir in $PATH
13663 do
13664 IFS=$as_save_IFS
13665 test -z "$as_dir" && as_dir=.
13666 for ac_exec_ext in '' $ac_executable_extensions; do
13667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13668 ac_cv_prog_AUTOHEADER="$ac_prog"
13669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13670 break 2
13671 fi
13672 done
13673 done
13674 IFS=$as_save_IFS
13675
13676 fi
13677 fi
13678 AUTOHEADER=$ac_cv_prog_AUTOHEADER
13679 if test -n "$AUTOHEADER"; then
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
13681 $as_echo "$AUTOHEADER" >&6; }
13682 else
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13684 $as_echo "no" >&6; }
13685 fi
13686
13687
13688 test -n "$AUTOHEADER" && break
13689 done
13690 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
13691
13692
13693 # Figure out what compiler warnings we can enable.
13694 # See config/warnings.m4 for details.
13695
13696 ac_ext=c
13697 ac_cpp='$CPP $CPPFLAGS'
13698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13701
13702 warn=
13703 save_CFLAGS="$CFLAGS"
13704 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
13705 -Wmissing-format-attribute; do
13706 # Do the check with the no- prefix removed since gcc silently
13707 # accepts any -Wno-* option on purpose
13708 case $real_option in
13709 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
13710 *) option=$real_option ;;
13711 esac
13712 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
13713
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
13715 $as_echo_n "checking whether $CC supports $option... " >&6; }
13716 if eval \${$as_acx_Woption+:} false; then :
13717 $as_echo_n "(cached) " >&6
13718 else
13719 CFLAGS="$option"
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13722
13723 int
13724 main ()
13725 {
13726
13727 ;
13728 return 0;
13729 }
13730 _ACEOF
13731 if ac_fn_c_try_compile "$LINENO"; then :
13732 eval "$as_acx_Woption=yes"
13733 else
13734 eval "$as_acx_Woption=no"
13735 fi
13736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13737
13738 fi
13739 eval ac_res=\$$as_acx_Woption
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13741 $as_echo "$ac_res" >&6; }
13742 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
13743 warn="$warn${warn:+ }$real_option"
13744 fi
13745 done
13746 CFLAGS="$save_CFLAGS"
13747 ac_ext=c
13748 ac_cpp='$CPP $CPPFLAGS'
13749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13752
13753
13754 ac_ext=c
13755 ac_cpp='$CPP $CPPFLAGS'
13756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13759
13760 c_warn=
13761 save_CFLAGS="$CFLAGS"
13762 for real_option in -Wstrict-prototypes -Wmissing-prototypes \
13763 -Wold-style-definition; do
13764 # Do the check with the no- prefix removed since gcc silently
13765 # accepts any -Wno-* option on purpose
13766 case $real_option in
13767 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
13768 *) option=$real_option ;;
13769 esac
13770 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
13771
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
13773 $as_echo_n "checking whether $CC supports $option... " >&6; }
13774 if eval \${$as_acx_Woption+:} false; then :
13775 $as_echo_n "(cached) " >&6
13776 else
13777 CFLAGS="$option"
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13780
13781 int
13782 main ()
13783 {
13784
13785 ;
13786 return 0;
13787 }
13788 _ACEOF
13789 if ac_fn_c_try_compile "$LINENO"; then :
13790 eval "$as_acx_Woption=yes"
13791 else
13792 eval "$as_acx_Woption=no"
13793 fi
13794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13795
13796 fi
13797 eval ac_res=\$$as_acx_Woption
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13799 $as_echo "$ac_res" >&6; }
13800 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
13801 c_warn="$c_warn${c_warn:+ }$real_option"
13802 fi
13803 done
13804 CFLAGS="$save_CFLAGS"
13805 ac_ext=c
13806 ac_cpp='$CPP $CPPFLAGS'
13807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13810
13811
13812 ac_ext=c
13813 ac_cpp='$CPP $CPPFLAGS'
13814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13817
13818 WARN_PEDANTIC=
13819 # Do the check with the no- prefix removed from the warning options
13820 # since gcc silently accepts any -Wno-* option on purpose
13821 if test "$GCC" = yes; then :
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
13823 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
13824 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
13825 $as_echo_n "(cached) " >&6
13826 else
13827 save_CFLAGS="$CFLAGS"
13828 CFLAGS="-pedantic -Wlong-long"
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13831
13832 int
13833 main ()
13834 {
13835
13836 ;
13837 return 0;
13838 }
13839 _ACEOF
13840 if ac_fn_c_try_compile "$LINENO"; then :
13841 acx_cv_prog_cc_pedantic__Wlong_long=yes
13842 else
13843 acx_cv_prog_cc_pedantic__Wlong_long=no
13844 fi
13845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13846 CFLAGS="$save_CFLAGS"
13847 fi
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
13849 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
13850 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
13851 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
13852 fi
13853
13854 fi
13855 ac_ext=c
13856 ac_cpp='$CPP $CPPFLAGS'
13857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13860
13861
13862
13863 # Only enable with --enable-werror-always until existing warnings are
13864 # corrected.
13865 ac_ext=c
13866 ac_cpp='$CPP $CPPFLAGS'
13867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13870
13871 WERROR=
13872 # Check whether --enable-werror-always was given.
13873 if test "${enable_werror_always+set}" = set; then :
13874 enableval=$enable_werror_always;
13875 else
13876 enable_werror_always=no
13877 fi
13878
13879 if test $enable_werror_always = yes; then :
13880 WERROR="$WERROR${WERROR:+ }-Werror"
13881 fi
13882
13883 ac_ext=c
13884 ac_cpp='$CPP $CPPFLAGS'
13885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13888
13889
13890
13891
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13893 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13894 # Check whether --enable-maintainer-mode was given.
13895 if test "${enable_maintainer_mode+set}" = set; then :
13896 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13897 else
13898 USE_MAINTAINER_MODE=no
13899 fi
13900
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13902 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13903 if test $USE_MAINTAINER_MODE = yes; then
13904 MAINTAINER_MODE_TRUE=
13905 MAINTAINER_MODE_FALSE='#'
13906 else
13907 MAINTAINER_MODE_TRUE='#'
13908 MAINTAINER_MODE_FALSE=
13909 fi
13910
13911 MAINT=$MAINTAINER_MODE_TRUE
13912
13913
13914 case ${build_alias} in
13915 "") build_noncanonical=${build} ;;
13916 *) build_noncanonical=${build_alias} ;;
13917 esac
13918
13919 case ${host_alias} in
13920 "") host_noncanonical=${build_noncanonical} ;;
13921 *) host_noncanonical=${host_alias} ;;
13922 esac
13923
13924 case ${target_alias} in
13925 "") target_noncanonical=${host_noncanonical} ;;
13926 *) target_noncanonical=${target_alias} ;;
13927 esac
13928
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
13930 $as_echo_n "checking whether to install libbfd... " >&6; }
13931 # Check whether --enable-install-libbfd was given.
13932 if test "${enable_install_libbfd+set}" = set; then :
13933 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
13934 else
13935 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
13936 install_libbfd_p=yes
13937 else
13938 install_libbfd_p=no
13939 fi
13940 fi
13941
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
13943 $as_echo "$install_libbfd_p" >&6; }
13944 if test $install_libbfd_p = yes; then
13945 INSTALL_LIBBFD_TRUE=
13946 INSTALL_LIBBFD_FALSE='#'
13947 else
13948 INSTALL_LIBBFD_TRUE='#'
13949 INSTALL_LIBBFD_FALSE=
13950 fi
13951
13952 # Need _noncanonical variables for this.
13953
13954
13955
13956
13957 # libbfd.a is a host library containing target dependent code
13958 bfdlibdir='$(libdir)'
13959 bfdincludedir='$(includedir)'
13960 if test "${host}" != "${target}"; then
13961 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
13962 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
13963 fi
13964
13965
13966
13967
13968
13969
13970 ac_ext=c
13971 ac_cpp='$CPP $CPPFLAGS'
13972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13975
13976 ac_libctf_warn_cflags=
13977 save_CFLAGS="$CFLAGS"
13978 for real_option in -Wall; do
13979 # Do the check with the no- prefix removed since gcc silently
13980 # accepts any -Wno-* option on purpose
13981 case $real_option in
13982 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
13983 *) option=$real_option ;;
13984 esac
13985 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
13986
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
13988 $as_echo_n "checking whether $CC supports $option... " >&6; }
13989 if eval \${$as_acx_Woption+:} false; then :
13990 $as_echo_n "(cached) " >&6
13991 else
13992 CFLAGS="$option"
13993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h. */
13995
13996 int
13997 main ()
13998 {
13999
14000 ;
14001 return 0;
14002 }
14003 _ACEOF
14004 if ac_fn_c_try_compile "$LINENO"; then :
14005 eval "$as_acx_Woption=yes"
14006 else
14007 eval "$as_acx_Woption=no"
14008 fi
14009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14010
14011 fi
14012 eval ac_res=\$$as_acx_Woption
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14014 $as_echo "$ac_res" >&6; }
14015 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
14016 ac_libctf_warn_cflags="$ac_libctf_warn_cflags${ac_libctf_warn_cflags:+ }$real_option"
14017 fi
14018 done
14019 CFLAGS="$save_CFLAGS"
14020 ac_ext=c
14021 ac_cpp='$CPP $CPPFLAGS'
14022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14025
14026
14027
14028
14029
14030
14031 for ac_header in $ac_header_list
14032 do :
14033 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14034 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14035 "
14036 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14037 cat >>confdefs.h <<_ACEOF
14038 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14039 _ACEOF
14040
14041 fi
14042
14043 done
14044
14045
14046
14047
14048
14049
14050
14051
14052 for ac_func in getpagesize
14053 do :
14054 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14055 if test "x$ac_cv_func_getpagesize" = xyes; then :
14056 cat >>confdefs.h <<_ACEOF
14057 #define HAVE_GETPAGESIZE 1
14058 _ACEOF
14059
14060 fi
14061 done
14062
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14064 $as_echo_n "checking for working mmap... " >&6; }
14065 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14066 $as_echo_n "(cached) " >&6
14067 else
14068 if test "$cross_compiling" = yes; then :
14069 ac_cv_func_mmap_fixed_mapped=no
14070 else
14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072 /* end confdefs.h. */
14073 $ac_includes_default
14074 /* malloc might have been renamed as rpl_malloc. */
14075 #undef malloc
14076
14077 /* Thanks to Mike Haertel and Jim Avera for this test.
14078 Here is a matrix of mmap possibilities:
14079 mmap private not fixed
14080 mmap private fixed at somewhere currently unmapped
14081 mmap private fixed at somewhere already mapped
14082 mmap shared not fixed
14083 mmap shared fixed at somewhere currently unmapped
14084 mmap shared fixed at somewhere already mapped
14085 For private mappings, we should verify that changes cannot be read()
14086 back from the file, nor mmap's back from the file at a different
14087 address. (There have been systems where private was not correctly
14088 implemented like the infamous i386 svr4.0, and systems where the
14089 VM page cache was not coherent with the file system buffer cache
14090 like early versions of FreeBSD and possibly contemporary NetBSD.)
14091 For shared mappings, we should conversely verify that changes get
14092 propagated back to all the places they're supposed to be.
14093
14094 Grep wants private fixed already mapped.
14095 The main things grep needs to know about mmap are:
14096 * does it exist and is it safe to write into the mmap'd area
14097 * how to use it (BSD variants) */
14098
14099 #include <fcntl.h>
14100 #include <sys/mman.h>
14101
14102 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14103 char *malloc ();
14104 #endif
14105
14106 /* This mess was copied from the GNU getpagesize.h. */
14107 #ifndef HAVE_GETPAGESIZE
14108 # ifdef _SC_PAGESIZE
14109 # define getpagesize() sysconf(_SC_PAGESIZE)
14110 # else /* no _SC_PAGESIZE */
14111 # ifdef HAVE_SYS_PARAM_H
14112 # include <sys/param.h>
14113 # ifdef EXEC_PAGESIZE
14114 # define getpagesize() EXEC_PAGESIZE
14115 # else /* no EXEC_PAGESIZE */
14116 # ifdef NBPG
14117 # define getpagesize() NBPG * CLSIZE
14118 # ifndef CLSIZE
14119 # define CLSIZE 1
14120 # endif /* no CLSIZE */
14121 # else /* no NBPG */
14122 # ifdef NBPC
14123 # define getpagesize() NBPC
14124 # else /* no NBPC */
14125 # ifdef PAGESIZE
14126 # define getpagesize() PAGESIZE
14127 # endif /* PAGESIZE */
14128 # endif /* no NBPC */
14129 # endif /* no NBPG */
14130 # endif /* no EXEC_PAGESIZE */
14131 # else /* no HAVE_SYS_PARAM_H */
14132 # define getpagesize() 8192 /* punt totally */
14133 # endif /* no HAVE_SYS_PARAM_H */
14134 # endif /* no _SC_PAGESIZE */
14135
14136 #endif /* no HAVE_GETPAGESIZE */
14137
14138 int
14139 main ()
14140 {
14141 char *data, *data2, *data3;
14142 const char *cdata2;
14143 int i, pagesize;
14144 int fd, fd2;
14145
14146 pagesize = getpagesize ();
14147
14148 /* First, make a file with some known garbage in it. */
14149 data = (char *) malloc (pagesize);
14150 if (!data)
14151 return 1;
14152 for (i = 0; i < pagesize; ++i)
14153 *(data + i) = rand ();
14154 umask (0);
14155 fd = creat ("conftest.mmap", 0600);
14156 if (fd < 0)
14157 return 2;
14158 if (write (fd, data, pagesize) != pagesize)
14159 return 3;
14160 close (fd);
14161
14162 /* Next, check that the tail of a page is zero-filled. File must have
14163 non-zero length, otherwise we risk SIGBUS for entire page. */
14164 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14165 if (fd2 < 0)
14166 return 4;
14167 cdata2 = "";
14168 if (write (fd2, cdata2, 1) != 1)
14169 return 5;
14170 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14171 if (data2 == MAP_FAILED)
14172 return 6;
14173 for (i = 0; i < pagesize; ++i)
14174 if (*(data2 + i))
14175 return 7;
14176 close (fd2);
14177 if (munmap (data2, pagesize))
14178 return 8;
14179
14180 /* Next, try to mmap the file at a fixed address which already has
14181 something else allocated at it. If we can, also make sure that
14182 we see the same garbage. */
14183 fd = open ("conftest.mmap", O_RDWR);
14184 if (fd < 0)
14185 return 9;
14186 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14187 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14188 return 10;
14189 for (i = 0; i < pagesize; ++i)
14190 if (*(data + i) != *(data2 + i))
14191 return 11;
14192
14193 /* Finally, make sure that changes to the mapped area do not
14194 percolate back to the file as seen by read(). (This is a bug on
14195 some variants of i386 svr4.0.) */
14196 for (i = 0; i < pagesize; ++i)
14197 *(data2 + i) = *(data2 + i) + 1;
14198 data3 = (char *) malloc (pagesize);
14199 if (!data3)
14200 return 12;
14201 if (read (fd, data3, pagesize) != pagesize)
14202 return 13;
14203 for (i = 0; i < pagesize; ++i)
14204 if (*(data + i) != *(data3 + i))
14205 return 14;
14206 close (fd);
14207 return 0;
14208 }
14209 _ACEOF
14210 if ac_fn_c_try_run "$LINENO"; then :
14211 ac_cv_func_mmap_fixed_mapped=yes
14212 else
14213 ac_cv_func_mmap_fixed_mapped=no
14214 fi
14215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14216 conftest.$ac_objext conftest.beam conftest.$ac_ext
14217 fi
14218
14219 fi
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14221 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14222 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14223
14224 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14225
14226 fi
14227 rm -f conftest.mmap conftest.txt
14228
14229 # Needed for BFD capability checks.
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
14231 $as_echo_n "checking for library containing dlsym... " >&6; }
14232 if ${ac_cv_search_dlsym+:} false; then :
14233 $as_echo_n "(cached) " >&6
14234 else
14235 ac_func_search_save_LIBS=$LIBS
14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237 /* end confdefs.h. */
14238
14239 /* Override any GCC internal prototype to avoid an error.
14240 Use char because int might match the return type of a GCC
14241 builtin and then its argument prototype would still apply. */
14242 #ifdef __cplusplus
14243 extern "C"
14244 #endif
14245 char dlsym ();
14246 int
14247 main ()
14248 {
14249 return dlsym ();
14250 ;
14251 return 0;
14252 }
14253 _ACEOF
14254 for ac_lib in '' dl; do
14255 if test -z "$ac_lib"; then
14256 ac_res="none required"
14257 else
14258 ac_res=-l$ac_lib
14259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14260 fi
14261 if ac_fn_c_try_link "$LINENO"; then :
14262 ac_cv_search_dlsym=$ac_res
14263 fi
14264 rm -f core conftest.err conftest.$ac_objext \
14265 conftest$ac_exeext
14266 if ${ac_cv_search_dlsym+:} false; then :
14267 break
14268 fi
14269 done
14270 if ${ac_cv_search_dlsym+:} false; then :
14271
14272 else
14273 ac_cv_search_dlsym=no
14274 fi
14275 rm conftest.$ac_ext
14276 LIBS=$ac_func_search_save_LIBS
14277 fi
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
14279 $as_echo "$ac_cv_search_dlsym" >&6; }
14280 ac_res=$ac_cv_search_dlsym
14281 if test "$ac_res" != no; then :
14282 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14283
14284 fi
14285
14286
14287 # Use the system's zlib library.
14288 zlibdir="-L\$(top_builddir)/../zlib"
14289 zlibinc="-I\$(top_srcdir)/../zlib"
14290
14291 # Check whether --with-system-zlib was given.
14292 if test "${with_system_zlib+set}" = set; then :
14293 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14294 zlibdir=
14295 zlibinc=
14296 fi
14297
14298 fi
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14311 if test -n "$ac_tool_prefix"; then
14312 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14313 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14315 $as_echo_n "checking for $ac_word... " >&6; }
14316 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14317 $as_echo_n "(cached) " >&6
14318 else
14319 case $PKG_CONFIG in
14320 [\\/]* | ?:[\\/]*)
14321 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14322 ;;
14323 *)
14324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14325 for as_dir in $PATH
14326 do
14327 IFS=$as_save_IFS
14328 test -z "$as_dir" && as_dir=.
14329 for ac_exec_ext in '' $ac_executable_extensions; do
14330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14331 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14333 break 2
14334 fi
14335 done
14336 done
14337 IFS=$as_save_IFS
14338
14339 ;;
14340 esac
14341 fi
14342 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14343 if test -n "$PKG_CONFIG"; then
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14345 $as_echo "$PKG_CONFIG" >&6; }
14346 else
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14348 $as_echo "no" >&6; }
14349 fi
14350
14351
14352 fi
14353 if test -z "$ac_cv_path_PKG_CONFIG"; then
14354 ac_pt_PKG_CONFIG=$PKG_CONFIG
14355 # Extract the first word of "pkg-config", so it can be a program name with args.
14356 set dummy pkg-config; ac_word=$2
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14358 $as_echo_n "checking for $ac_word... " >&6; }
14359 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14360 $as_echo_n "(cached) " >&6
14361 else
14362 case $ac_pt_PKG_CONFIG in
14363 [\\/]* | ?:[\\/]*)
14364 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14365 ;;
14366 *)
14367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14368 for as_dir in $PATH
14369 do
14370 IFS=$as_save_IFS
14371 test -z "$as_dir" && as_dir=.
14372 for ac_exec_ext in '' $ac_executable_extensions; do
14373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14374 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14376 break 2
14377 fi
14378 done
14379 done
14380 IFS=$as_save_IFS
14381
14382 ;;
14383 esac
14384 fi
14385 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14386 if test -n "$ac_pt_PKG_CONFIG"; then
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14388 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14389 else
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14391 $as_echo "no" >&6; }
14392 fi
14393
14394 if test "x$ac_pt_PKG_CONFIG" = x; then
14395 PKG_CONFIG=""
14396 else
14397 case $cross_compiling:$ac_tool_warned in
14398 yes:)
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14401 ac_tool_warned=yes ;;
14402 esac
14403 PKG_CONFIG=$ac_pt_PKG_CONFIG
14404 fi
14405 else
14406 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14407 fi
14408
14409 fi
14410 if test -n "$PKG_CONFIG"; then
14411 _pkg_min_version=0.9.0
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14413 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14414 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14416 $as_echo "yes" >&6; }
14417 else
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419 $as_echo "no" >&6; }
14420 PKG_CONFIG=""
14421 fi
14422 fi
14423
14424
14425 # Check whether --with-zstd was given.
14426 if test "${with_zstd+set}" = set; then :
14427 withval=$with_zstd;
14428 else
14429 with_zstd=auto
14430 fi
14431
14432
14433 if test "$with_zstd" != no; then :
14434
14435 pkg_failed=no
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
14437 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
14438
14439 if test -n "$ZSTD_CFLAGS"; then
14440 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
14441 elif test -n "$PKG_CONFIG"; then
14442 if test -n "$PKG_CONFIG" && \
14443 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
14444 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
14445 ac_status=$?
14446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14447 test $ac_status = 0; }; then
14448 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
14449 test "x$?" != "x0" && pkg_failed=yes
14450 else
14451 pkg_failed=yes
14452 fi
14453 else
14454 pkg_failed=untried
14455 fi
14456 if test -n "$ZSTD_LIBS"; then
14457 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
14458 elif test -n "$PKG_CONFIG"; then
14459 if test -n "$PKG_CONFIG" && \
14460 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
14461 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
14462 ac_status=$?
14463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14464 test $ac_status = 0; }; then
14465 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
14466 test "x$?" != "x0" && pkg_failed=yes
14467 else
14468 pkg_failed=yes
14469 fi
14470 else
14471 pkg_failed=untried
14472 fi
14473
14474 if test $pkg_failed = no; then
14475 pkg_save_LDFLAGS="$LDFLAGS"
14476 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
14477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478 /* end confdefs.h. */
14479
14480 int
14481 main ()
14482 {
14483
14484 ;
14485 return 0;
14486 }
14487 _ACEOF
14488 if ac_fn_c_try_link "$LINENO"; then :
14489
14490 else
14491 pkg_failed=yes
14492 fi
14493 rm -f core conftest.err conftest.$ac_objext \
14494 conftest$ac_exeext conftest.$ac_ext
14495 LDFLAGS=$pkg_save_LDFLAGS
14496 fi
14497
14498
14499
14500 if test $pkg_failed = yes; then
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14502 $as_echo "no" >&6; }
14503
14504 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14505 _pkg_short_errors_supported=yes
14506 else
14507 _pkg_short_errors_supported=no
14508 fi
14509 if test $_pkg_short_errors_supported = yes; then
14510 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
14511 else
14512 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
14513 fi
14514 # Put the nasty error message in config.log where it belongs
14515 echo "$ZSTD_PKG_ERRORS" >&5
14516
14517
14518 if test "$with_zstd" = yes; then
14519 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
14520 fi
14521
14522 elif test $pkg_failed = untried; then
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14524 $as_echo "no" >&6; }
14525
14526 if test "$with_zstd" = yes; then
14527 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
14528 fi
14529
14530 else
14531 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
14532 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14534 $as_echo "yes" >&6; }
14535
14536
14537 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
14538
14539
14540 fi
14541
14542 fi
14543
14544
14545 # Check whether --enable-libctf-hash-debugging was given.
14546 if test "${enable_libctf_hash_debugging+set}" = set; then :
14547 enableval=$enable_libctf_hash_debugging;
14548 case "$enableval" in
14549 yes|no) ;;
14550 *) as_fn_error $? "Argument to enable/disable libctf-hash-debugging must be yes or no" "$LINENO" 5 ;;
14551 esac
14552
14553 else
14554 enable_libctf_hash_debugging=no
14555 fi
14556
14557
14558 if test "${enable_libctf_hash_debugging}" = yes; then
14559
14560 $as_echo "#define ENABLE_LIBCTF_HASH_DEBUGGING 1" >>confdefs.h
14561
14562 fi
14563 if test "${enable_libctf_hash_debugging}" = yes; then
14564 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE=
14565 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE='#'
14566 else
14567 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE='#'
14568 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE=
14569 fi
14570
14571
14572 # Similar to GDB_AC_CHECK_BFD.
14573 OLD_CFLAGS=$CFLAGS
14574 OLD_LDFLAGS=$LDFLAGS
14575 OLD_LIBS=$LIBS
14576 OLD_CC=$CC
14577 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14578 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14579 # always want our bfd.
14580 CC="./libtool --quiet --mode=link $OLD_CC"
14581 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14582 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
14583 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
14584 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14585 LIBS="-lbfd -liberty -lz $ZSTD_LIBS $intl $LIBS"
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14587 $as_echo_n "checking for ELF support in BFD... " >&6; }
14588 if ${ac_cv_libctf_bfd_elf+:} false; then :
14589 $as_echo_n "(cached) " >&6
14590 else
14591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592 /* end confdefs.h. */
14593 #include <stdlib.h>
14594 #include <string.h>
14595 #include "bfd.h"
14596 #include "elf-bfd.h"
14597 int
14598 main ()
14599 {
14600 (void) bfd_section_from_elf_index (NULL, 0);
14601 return 0;
14602 ;
14603 return 0;
14604 }
14605 _ACEOF
14606 if ac_fn_c_try_link "$LINENO"; then :
14607 ac_cv_libctf_bfd_elf=yes
14608 else
14609 ac_cv_libctf_bfd_elf=no
14610 fi
14611 rm -f core conftest.err conftest.$ac_objext \
14612 conftest$ac_exeext conftest.$ac_ext
14613 fi
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_bfd_elf" >&5
14615 $as_echo "$ac_cv_libctf_bfd_elf" >&6; }
14616 CFLAGS=$OLD_CFLAGS
14617 LDFLAGS=$OLD_LDFLAGS
14618 LIBS=$OLD_LIBS
14619 CC=$OLD_CC
14620
14621 if test $ac_cv_libctf_bfd_elf = yes; then
14622
14623 $as_echo "#define HAVE_BFD_ELF 1" >>confdefs.h
14624
14625 fi
14626
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14628 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14629 if ${ac_cv_c_bigendian+:} false; then :
14630 $as_echo_n "(cached) " >&6
14631 else
14632 ac_cv_c_bigendian=unknown
14633 # See if we're dealing with a universal compiler.
14634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14635 /* end confdefs.h. */
14636 #ifndef __APPLE_CC__
14637 not a universal capable compiler
14638 #endif
14639 typedef int dummy;
14640
14641 _ACEOF
14642 if ac_fn_c_try_compile "$LINENO"; then :
14643
14644 # Check for potential -arch flags. It is not universal unless
14645 # there are at least two -arch flags with different values.
14646 ac_arch=
14647 ac_prev=
14648 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14649 if test -n "$ac_prev"; then
14650 case $ac_word in
14651 i?86 | x86_64 | ppc | ppc64)
14652 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14653 ac_arch=$ac_word
14654 else
14655 ac_cv_c_bigendian=universal
14656 break
14657 fi
14658 ;;
14659 esac
14660 ac_prev=
14661 elif test "x$ac_word" = "x-arch"; then
14662 ac_prev=arch
14663 fi
14664 done
14665 fi
14666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14667 if test $ac_cv_c_bigendian = unknown; then
14668 # See if sys/param.h defines the BYTE_ORDER macro.
14669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h. */
14671 #include <sys/types.h>
14672 #include <sys/param.h>
14673
14674 int
14675 main ()
14676 {
14677 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14678 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14679 && LITTLE_ENDIAN)
14680 bogus endian macros
14681 #endif
14682
14683 ;
14684 return 0;
14685 }
14686 _ACEOF
14687 if ac_fn_c_try_compile "$LINENO"; then :
14688 # It does; now see whether it defined to BIG_ENDIAN or not.
14689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14690 /* end confdefs.h. */
14691 #include <sys/types.h>
14692 #include <sys/param.h>
14693
14694 int
14695 main ()
14696 {
14697 #if BYTE_ORDER != BIG_ENDIAN
14698 not big endian
14699 #endif
14700
14701 ;
14702 return 0;
14703 }
14704 _ACEOF
14705 if ac_fn_c_try_compile "$LINENO"; then :
14706 ac_cv_c_bigendian=yes
14707 else
14708 ac_cv_c_bigendian=no
14709 fi
14710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14711 fi
14712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713 fi
14714 if test $ac_cv_c_bigendian = unknown; then
14715 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717 /* end confdefs.h. */
14718 #include <limits.h>
14719
14720 int
14721 main ()
14722 {
14723 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14724 bogus endian macros
14725 #endif
14726
14727 ;
14728 return 0;
14729 }
14730 _ACEOF
14731 if ac_fn_c_try_compile "$LINENO"; then :
14732 # It does; now see whether it defined to _BIG_ENDIAN or not.
14733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734 /* end confdefs.h. */
14735 #include <limits.h>
14736
14737 int
14738 main ()
14739 {
14740 #ifndef _BIG_ENDIAN
14741 not big endian
14742 #endif
14743
14744 ;
14745 return 0;
14746 }
14747 _ACEOF
14748 if ac_fn_c_try_compile "$LINENO"; then :
14749 ac_cv_c_bigendian=yes
14750 else
14751 ac_cv_c_bigendian=no
14752 fi
14753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14754 fi
14755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14756 fi
14757 if test $ac_cv_c_bigendian = unknown; then
14758 # Compile a test program.
14759 if test "$cross_compiling" = yes; then :
14760 # Try to guess by grepping values from an object file.
14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14763 short int ascii_mm[] =
14764 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14765 short int ascii_ii[] =
14766 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14767 int use_ascii (int i) {
14768 return ascii_mm[i] + ascii_ii[i];
14769 }
14770 short int ebcdic_ii[] =
14771 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14772 short int ebcdic_mm[] =
14773 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14774 int use_ebcdic (int i) {
14775 return ebcdic_mm[i] + ebcdic_ii[i];
14776 }
14777 extern int foo;
14778
14779 int
14780 main ()
14781 {
14782 return use_ascii (foo) == use_ebcdic (foo);
14783 ;
14784 return 0;
14785 }
14786 _ACEOF
14787 if ac_fn_c_try_compile "$LINENO"; then :
14788 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14789 ac_cv_c_bigendian=yes
14790 fi
14791 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14792 if test "$ac_cv_c_bigendian" = unknown; then
14793 ac_cv_c_bigendian=no
14794 else
14795 # finding both strings is unlikely to happen, but who knows?
14796 ac_cv_c_bigendian=unknown
14797 fi
14798 fi
14799 fi
14800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14801 else
14802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14803 /* end confdefs.h. */
14804 $ac_includes_default
14805 int
14806 main ()
14807 {
14808
14809 /* Are we little or big endian? From Harbison&Steele. */
14810 union
14811 {
14812 long int l;
14813 char c[sizeof (long int)];
14814 } u;
14815 u.l = 1;
14816 return u.c[sizeof (long int) - 1] == 1;
14817
14818 ;
14819 return 0;
14820 }
14821 _ACEOF
14822 if ac_fn_c_try_run "$LINENO"; then :
14823 ac_cv_c_bigendian=no
14824 else
14825 ac_cv_c_bigendian=yes
14826 fi
14827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14828 conftest.$ac_objext conftest.beam conftest.$ac_ext
14829 fi
14830
14831 fi
14832 fi
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14834 $as_echo "$ac_cv_c_bigendian" >&6; }
14835 case $ac_cv_c_bigendian in #(
14836 yes)
14837 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14838 ;; #(
14839 no)
14840 ;; #(
14841 universal)
14842
14843 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14844
14845 ;; #(
14846 *)
14847 as_fn_error $? "unknown endianness
14848 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14849 esac
14850
14851 for ac_header in byteswap.h endian.h
14852 do :
14853 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14854 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14855 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14856 cat >>confdefs.h <<_ACEOF
14857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14858 _ACEOF
14859
14860 fi
14861
14862 done
14863
14864 for ac_func in pread
14865 do :
14866 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
14867 if test "x$ac_cv_func_pread" = xyes; then :
14868 cat >>confdefs.h <<_ACEOF
14869 #define HAVE_PREAD 1
14870 _ACEOF
14871
14872 fi
14873 done
14874
14875
14876 ac_fn_c_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
14877 "
14878 if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
14879 ac_have_decl=1
14880 else
14881 ac_have_decl=0
14882 fi
14883
14884 cat >>confdefs.h <<_ACEOF
14885 #define HAVE_DECL_BSWAP_16 $ac_have_decl
14886 _ACEOF
14887 ac_fn_c_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
14888 "
14889 if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
14890 ac_have_decl=1
14891 else
14892 ac_have_decl=0
14893 fi
14894
14895 cat >>confdefs.h <<_ACEOF
14896 #define HAVE_DECL_BSWAP_32 $ac_have_decl
14897 _ACEOF
14898 ac_fn_c_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
14899 "
14900 if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
14901 ac_have_decl=1
14902 else
14903 ac_have_decl=0
14904 fi
14905
14906 cat >>confdefs.h <<_ACEOF
14907 #define HAVE_DECL_BSWAP_64 $ac_have_decl
14908 _ACEOF
14909
14910 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14911 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
14912 ac_have_decl=1
14913 else
14914 ac_have_decl=0
14915 fi
14916
14917 cat >>confdefs.h <<_ACEOF
14918 #define HAVE_DECL_ASPRINTF $ac_have_decl
14919 _ACEOF
14920 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
14921 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
14922 ac_have_decl=1
14923 else
14924 ac_have_decl=0
14925 fi
14926
14927 cat >>confdefs.h <<_ACEOF
14928 #define HAVE_DECL_VASPRINTF $ac_have_decl
14929 _ACEOF
14930 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14931 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
14932 ac_have_decl=1
14933 else
14934 ac_have_decl=0
14935 fi
14936
14937 cat >>confdefs.h <<_ACEOF
14938 #define HAVE_DECL_STPCPY $ac_have_decl
14939 _ACEOF
14940
14941
14942
14943
14944
14945 for ac_func in $ac_func_list
14946 do :
14947 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14948 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14949 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14950 cat >>confdefs.h <<_ACEOF
14951 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14952 _ACEOF
14953
14954 fi
14955 done
14956
14957
14958
14959
14960 if test $ac_cv_func_qsort_r = yes; then
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qsort_r signature" >&5
14962 $as_echo_n "checking for qsort_r signature... " >&6; }
14963 if ${ac_cv_libctf_qsort_r_signature+:} false; then :
14964 $as_echo_n "(cached) " >&6
14965 else
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14968 #undef qsort_r
14969 #include <stdlib.h>
14970 void qsort_r (void *, size_t, size_t,
14971 int (*) (void const *, void const *,
14972 void *),
14973 void *);
14974 void (*p) (void *, size_t, size_t,
14975 int (*) (void const *, void const *,
14976 void *),
14977 void *) = qsort_r;
14978
14979 int
14980 main ()
14981 {
14982
14983 ;
14984 return 0;
14985 }
14986 _ACEOF
14987 if ac_fn_c_try_link "$LINENO"; then :
14988 ac_cv_libctf_qsort_r_signature=GNU
14989 else
14990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991 /* end confdefs.h. */
14992 #undef qsort_r
14993 #include <stdlib.h>
14994 void qsort_r (void *, size_t, size_t, void *,
14995 int (*) (void *,
14996 void const *,
14997 void const *));
14998 void (*p) (void *, size_t, size_t, void *,
14999 int (*) (void *, void const *,
15000 void const *)) = qsort_r;
15001
15002 int
15003 main ()
15004 {
15005
15006 ;
15007 return 0;
15008 }
15009 _ACEOF
15010 if ac_fn_c_try_link "$LINENO"; then :
15011 ac_cv_libctf_qsort_r_signature=BSD
15012 else
15013 ac_cv_libctf_qsort_r_signature=unknown
15014 fi
15015 rm -f core conftest.err conftest.$ac_objext \
15016 conftest$ac_exeext conftest.$ac_ext
15017 fi
15018 rm -f core conftest.err conftest.$ac_objext \
15019 conftest$ac_exeext conftest.$ac_ext
15020 fi
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_qsort_r_signature" >&5
15022 $as_echo "$ac_cv_libctf_qsort_r_signature" >&6; }
15023 fi
15024
15025 case x$ac_cv_libctf_qsort_r_signature in
15026 xGNU)
15027 $as_echo "#define HAVE_QSORT_R_ARG_LAST 1" >>confdefs.h
15028 ;;
15029 xBSD)
15030 $as_echo "#define HAVE_QSORT_R_COMPAR_LAST 1" >>confdefs.h
15031 ;;
15032 *) ac_cv_libctf_qsort_r_signature=unknown;;
15033 esac
15034
15035 if test "${ac_cv_libctf_qsort_r_signature}" = unknown; then
15036 NEED_CTF_QSORT_R_TRUE=
15037 NEED_CTF_QSORT_R_FALSE='#'
15038 else
15039 NEED_CTF_QSORT_R_TRUE='#'
15040 NEED_CTF_QSORT_R_FALSE=
15041 fi
15042
15043
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
15045 $as_echo_n "checking for O_CLOEXEC... " >&6; }
15046 if ${ac_cv_libctf_macro_O_CLOEXEC+:} false; then :
15047 $as_echo_n "(cached) " >&6
15048 else
15049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15050 /* end confdefs.h. */
15051 #include <fcntl.h>
15052 #ifndef O_CLOEXEC
15053 choke me;
15054 #endif
15055
15056 int
15057 main ()
15058 {
15059 return O_CLOEXEC;
15060 ;
15061 return 0;
15062 }
15063 _ACEOF
15064 if ac_fn_c_try_link "$LINENO"; then :
15065 ac_cv_libctf_macro_O_CLOEXEC=yes
15066 else
15067 ac_cv_libctf_macro_O_CLOEXEC=no
15068 fi
15069 rm -f core conftest.err conftest.$ac_objext \
15070 conftest$ac_exeext conftest.$ac_ext
15071 fi
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_macro_O_CLOEXEC" >&5
15073 $as_echo "$ac_cv_libctf_macro_O_CLOEXEC" >&6; }
15074
15075 if test $ac_cv_libctf_macro_O_CLOEXEC = yes; then
15076
15077 $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
15078
15079 fi
15080
15081 build_info=
15082 makeinfo_too_old=
15083 for ac_prog in makeinfo
15084 do
15085 # Extract the first word of "$ac_prog", so it can be a program name with args.
15086 set dummy $ac_prog; ac_word=$2
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15088 $as_echo_n "checking for $ac_word... " >&6; }
15089 if ${ac_cv_prog_MAKEINFO+:} false; then :
15090 $as_echo_n "(cached) " >&6
15091 else
15092 if test -n "$MAKEINFO"; then
15093 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
15094 else
15095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15096 for as_dir in $PATH
15097 do
15098 IFS=$as_save_IFS
15099 test -z "$as_dir" && as_dir=.
15100 for ac_exec_ext in '' $ac_executable_extensions; do
15101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15102 ac_cv_prog_MAKEINFO="$ac_prog"
15103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15104 break 2
15105 fi
15106 done
15107 done
15108 IFS=$as_save_IFS
15109
15110 fi
15111 fi
15112 MAKEINFO=$ac_cv_prog_MAKEINFO
15113 if test -n "$MAKEINFO"; then
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
15115 $as_echo "$MAKEINFO" >&6; }
15116 else
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15118 $as_echo "no" >&6; }
15119 fi
15120
15121
15122 test -n "$MAKEINFO" && break
15123 done
15124 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
15125
15126 case " $build_configdirs " in
15127 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
15128 esac
15129
15130 # We require texinfo to be 6.3 or later, for a working synindex
15131 # and validatemenus: otherwise we fall back to /bin/true.
15132 if ${MAKEINFO} --version \
15133 | egrep 'texinfo[^0-9]*(6\.[3-9]|[7-9][0-9])' >/dev/null 2>&1; then
15134 build_info=yes
15135 else
15136 build_info=
15137 makeinfo_too_old=t
15138 fi
15139
15140 if test -n "$makeinfo_too_old"; then
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
15142 *** Makeinfo is too old. Info documentation will not be built." >&5
15143 $as_echo "$as_me: WARNING:
15144 *** Makeinfo is too old. Info documentation will not be built." >&2;}
15145 fi
15146
15147 if test "${build_info}" = yes; then
15148 BUILD_INFO_TRUE=
15149 BUILD_INFO_FALSE='#'
15150 else
15151 BUILD_INFO_TRUE='#'
15152 BUILD_INFO_FALSE=
15153 fi
15154
15155
15156 CTF_LIBADD="-L`pwd`/../libiberty -liberty"
15157 SHARED_LDFLAGS=
15158
15159 # Horrible hacks to build DLLs on Windows and a shared library elsewhere.
15160 if test "$enable_shared" = "yes"; then
15161 # When building a shared libctf, link against the pic version of libiberty
15162 # so that apps that use libctf won't need libiberty just to satisfy any
15163 # libctf references. We can't do that if a pic libiberty is unavailable
15164 # since including non-pic # code would insert text relocations into libctf.
15165 # Note that linking against libbfd as we do here, which is itself linked
15166 # against libiberty, may not satisfy all the libctf libiberty references
15167 # since libbfd may not pull in the entirety of libiberty.
15168 # Also, jam libintl into the right place in all of this: after libiberty,
15169 # which uses it, but before -lcygwin, which it uses.
15170 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
15171 if test -n "$x"; then
15172 CTF_LIBADD="-L`pwd`/../libiberty/pic -liberty"
15173 fi
15174 fi
15175
15176 CTF_LIBADD="$CTF_LIBADD $LIBINTL"
15177
15178 if test "$enable_shared" = "yes"; then
15179 case "${host}" in
15180 # More hacks to build DLLs on Windows.
15181 *-*-cygwin*)
15182 SHARED_LDFLAGS="-no-undefined"
15183 CTF_LIBADD="$CTF_LIBADD -lcygwin"
15184 ;;
15185 esac
15186 fi
15187
15188
15189
15190 # Extract the first word of "expect", so it can be a program name with args.
15191 set dummy expect; ac_word=$2
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15193 $as_echo_n "checking for $ac_word... " >&6; }
15194 if ${ac_cv_path_EXPECT+:} false; then :
15195 $as_echo_n "(cached) " >&6
15196 else
15197 case $EXPECT in
15198 [\\/]* | ?:[\\/]*)
15199 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
15200 ;;
15201 *)
15202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15203 for as_dir in $PATH
15204 do
15205 IFS=$as_save_IFS
15206 test -z "$as_dir" && as_dir=.
15207 for ac_exec_ext in '' $ac_executable_extensions; do
15208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15209 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
15210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15211 break 2
15212 fi
15213 done
15214 done
15215 IFS=$as_save_IFS
15216
15217 ;;
15218 esac
15219 fi
15220 EXPECT=$ac_cv_path_EXPECT
15221 if test -n "$EXPECT"; then
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
15223 $as_echo "$EXPECT" >&6; }
15224 else
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15226 $as_echo "no" >&6; }
15227 fi
15228
15229
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5
15231 $as_echo_n "checking for Tcl supporting try/catch... " >&6; }
15232 if ${ac_cv_libctf_tcl_try+:} false; then :
15233 $as_echo_n "(cached) " >&6
15234 else
15235 ac_cv_libctf_tcl_try=`if test -z $EXPECT; then echo no; else $EXPECT << EOF
15236 if [llength [info commands try]] then { puts yes } else { puts no }
15237 EOF
15238 fi`
15239
15240 fi
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5
15242 $as_echo "$ac_cv_libctf_tcl_try" >&6; }
15243 if test "${ac_cv_libctf_tcl_try}" = yes; then
15244 TCL_TRY_TRUE=
15245 TCL_TRY_FALSE='#'
15246 else
15247 TCL_TRY_TRUE='#'
15248 TCL_TRY_FALSE=
15249 fi
15250
15251
15252 # Use a version script, if possible, or an -export-symbols-regex otherwise.
15253 decommented_version_script=
15254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker versioning flags" >&5
15255 $as_echo_n "checking for linker versioning flags... " >&6; }
15256 if ${ac_cv_libctf_version_script+:} false; then :
15257 $as_echo_n "(cached) " >&6
15258 else
15259 echo 'FOO { global: mai*; local: ctf_fo*; };' > conftest.ver
15260 old_LDFLAGS="$LDFLAGS"
15261 old_CFLAGS="$CFLAGS"
15262 LDFLAGS="$LDFLAGS -shared -Wl,--version-script=conftest.ver"
15263 CFLAGS="$CFLAGS -fPIC"
15264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15265 /* end confdefs.h. */
15266 int ctf_foo (void) { return 0; }
15267 int main (void) { return ctf_foo(); }
15268 _ACEOF
15269 if ac_fn_c_try_link "$LINENO"; then :
15270 ac_cv_libctf_version_script="-Wl,--version-script='$srcdir/libctf.ver'"
15271 fi
15272 rm -f core conftest.err conftest.$ac_objext \
15273 conftest$ac_exeext conftest.$ac_ext
15274 LDFLAGS="$old_LDFLAGS"
15275
15276 if test -z "$ac_cv_libctf_version_script"; then
15277 LDFLAGS="$LDFLAGS -shared -Wl,-B,local -Wl,-z,gnu-version-script=conftest.ver"
15278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279 /* end confdefs.h. */
15280 int ctf_foo (void) { return 0; }
15281 int main (void) { return ctf_foo(); }
15282 _ACEOF
15283 if ac_fn_c_try_link "$LINENO"; then :
15284 ac_cv_libctf_version_script="-Wl,-B,local -Wl,-z,gnu-version-script"
15285 decommented_version_script=t
15286 fi
15287 rm -f core conftest.err conftest.$ac_objext \
15288 conftest$ac_exeext conftest.$ac_ext
15289 LDFLAGS="$old_LDFLAGS"
15290 fi
15291 CFLAGS="$old_CFLAGS"
15292
15293 if test -z "$ac_cv_libctf_version_script"; then
15294 ac_cv_libctf_version_script='-export-symbols-regex ctf_.*'
15295 fi
15296 rm -f conftest.ver
15297 fi
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_version_script" >&5
15299 $as_echo "$ac_cv_libctf_version_script" >&6; }
15300 if test -n "$decommented_version_script"; then
15301 # Solaris's version scripts use shell-style comments rather than the C-style
15302 # used by GNU ld. Use cpp to strip the comments out. (cpp exists under this
15303 # name on all platforms that support ld -z gnu-version-script.)
15304 # Also ensure that no symbols exist in the version script for libctf-nobfd.so
15305 # that do not exist in the shared library itself, since some linkers add such
15306 # symbols with type NOTYPE.
15307 /lib/cpp < $srcdir/libctf.ver > libctf-decommented.ver
15308 grep -v 'libctf only' $srcdir/libctf.ver | /lib/cpp > libctf-nobfd-decommented.ver
15309 VERSION_FLAGS="$ac_cv_libctf_version_script='libctf-decommented.ver'"
15310 VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script='libctf-nobfd-decommented.ver'"
15311 else
15312 VERSION_FLAGS="$ac_cv_libctf_version_script"
15313 VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script"
15314 fi
15315
15316
15317
15318 ac_config_files="$ac_config_files Makefile"
15319
15320 ac_config_headers="$ac_config_headers config.h"
15321
15322 cat >confcache <<\_ACEOF
15323 # This file is a shell script that caches the results of configure
15324 # tests run on this system so they can be shared between configure
15325 # scripts and configure runs, see configure's option --config-cache.
15326 # It is not useful on other systems. If it contains results you don't
15327 # want to keep, you may remove or edit it.
15328 #
15329 # config.status only pays attention to the cache file if you give it
15330 # the --recheck option to rerun configure.
15331 #
15332 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15333 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15334 # following values.
15335
15336 _ACEOF
15337
15338 # The following way of writing the cache mishandles newlines in values,
15339 # but we know of no workaround that is simple, portable, and efficient.
15340 # So, we kill variables containing newlines.
15341 # Ultrix sh set writes to stderr and can't be redirected directly,
15342 # and sets the high bit in the cache file unless we assign to the vars.
15343 (
15344 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15345 eval ac_val=\$$ac_var
15346 case $ac_val in #(
15347 *${as_nl}*)
15348 case $ac_var in #(
15349 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15350 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15351 esac
15352 case $ac_var in #(
15353 _ | IFS | as_nl) ;; #(
15354 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15355 *) { eval $ac_var=; unset $ac_var;} ;;
15356 esac ;;
15357 esac
15358 done
15359
15360 (set) 2>&1 |
15361 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15362 *${as_nl}ac_space=\ *)
15363 # `set' does not quote correctly, so add quotes: double-quote
15364 # substitution turns \\\\ into \\, and sed turns \\ into \.
15365 sed -n \
15366 "s/'/'\\\\''/g;
15367 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15368 ;; #(
15369 *)
15370 # `set' quotes correctly as required by POSIX, so do not add quotes.
15371 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15372 ;;
15373 esac |
15374 sort
15375 ) |
15376 sed '
15377 /^ac_cv_env_/b end
15378 t clear
15379 :clear
15380 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15381 t end
15382 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15383 :end' >>confcache
15384 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15385 if test -w "$cache_file"; then
15386 if test "x$cache_file" != "x/dev/null"; then
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15388 $as_echo "$as_me: updating cache $cache_file" >&6;}
15389 if test ! -f "$cache_file" || test -h "$cache_file"; then
15390 cat confcache >"$cache_file"
15391 else
15392 case $cache_file in #(
15393 */* | ?:*)
15394 mv -f confcache "$cache_file"$$ &&
15395 mv -f "$cache_file"$$ "$cache_file" ;; #(
15396 *)
15397 mv -f confcache "$cache_file" ;;
15398 esac
15399 fi
15400 fi
15401 else
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15403 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15404 fi
15405 fi
15406 rm -f confcache
15407
15408 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15409 # Let make expand exec_prefix.
15410 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15411
15412 DEFS=-DHAVE_CONFIG_H
15413
15414 ac_libobjs=
15415 ac_ltlibobjs=
15416 U=
15417 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15418 # 1. Remove the extension, and $U if already installed.
15419 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15420 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15421 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15422 # will be set to the directory where LIBOBJS objects are built.
15423 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15424 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15425 done
15426 LIBOBJS=$ac_libobjs
15427
15428 LTLIBOBJS=$ac_ltlibobjs
15429
15430
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15432 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15433 if test -n "$am_sleep_pid"; then
15434 # Hide warnings about reused PIDs.
15435 wait $am_sleep_pid 2>/dev/null
15436 fi
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15438 $as_echo "done" >&6; }
15439 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15440 as_fn_error $? "conditional \"AMDEP\" was never defined.
15441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15442 fi
15443 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15444 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15446 fi
15447 if test -n "$EXEEXT"; then
15448 am__EXEEXT_TRUE=
15449 am__EXEEXT_FALSE='#'
15450 else
15451 am__EXEEXT_TRUE='#'
15452 am__EXEEXT_FALSE=
15453 fi
15454
15455 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15456 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15457 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15458 fi
15459 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
15460 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
15461 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15462 fi
15463 if test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_TRUE}" && test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_FALSE}"; then
15464 as_fn_error $? "conditional \"ENABLE_LIBCTF_HASH_DEBUGGING\" was never defined.
15465 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15466 fi
15467
15468 if test -z "${NEED_CTF_QSORT_R_TRUE}" && test -z "${NEED_CTF_QSORT_R_FALSE}"; then
15469 as_fn_error $? "conditional \"NEED_CTF_QSORT_R\" was never defined.
15470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15471 fi
15472 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
15473 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
15474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15475 fi
15476 if test -z "${TCL_TRY_TRUE}" && test -z "${TCL_TRY_FALSE}"; then
15477 as_fn_error $? "conditional \"TCL_TRY\" was never defined.
15478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15479 fi
15480
15481 : "${CONFIG_STATUS=./config.status}"
15482 ac_write_fail=0
15483 ac_clean_files_save=$ac_clean_files
15484 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15486 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15487 as_write_fail=0
15488 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15489 #! $SHELL
15490 # Generated by $as_me.
15491 # Run this file to recreate the current configuration.
15492 # Compiler output produced by configure, useful for debugging
15493 # configure, is in config.log if it exists.
15494
15495 debug=false
15496 ac_cs_recheck=false
15497 ac_cs_silent=false
15498
15499 SHELL=\${CONFIG_SHELL-$SHELL}
15500 export SHELL
15501 _ASEOF
15502 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15503 ## -------------------- ##
15504 ## M4sh Initialization. ##
15505 ## -------------------- ##
15506
15507 # Be more Bourne compatible
15508 DUALCASE=1; export DUALCASE # for MKS sh
15509 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15510 emulate sh
15511 NULLCMD=:
15512 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15513 # is contrary to our usage. Disable this feature.
15514 alias -g '${1+"$@"}'='"$@"'
15515 setopt NO_GLOB_SUBST
15516 else
15517 case `(set -o) 2>/dev/null` in #(
15518 *posix*) :
15519 set -o posix ;; #(
15520 *) :
15521 ;;
15522 esac
15523 fi
15524
15525
15526 as_nl='
15527 '
15528 export as_nl
15529 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15530 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15531 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15532 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15533 # Prefer a ksh shell builtin over an external printf program on Solaris,
15534 # but without wasting forks for bash or zsh.
15535 if test -z "$BASH_VERSION$ZSH_VERSION" \
15536 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15537 as_echo='print -r --'
15538 as_echo_n='print -rn --'
15539 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15540 as_echo='printf %s\n'
15541 as_echo_n='printf %s'
15542 else
15543 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15544 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15545 as_echo_n='/usr/ucb/echo -n'
15546 else
15547 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15548 as_echo_n_body='eval
15549 arg=$1;
15550 case $arg in #(
15551 *"$as_nl"*)
15552 expr "X$arg" : "X\\(.*\\)$as_nl";
15553 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15554 esac;
15555 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15556 '
15557 export as_echo_n_body
15558 as_echo_n='sh -c $as_echo_n_body as_echo'
15559 fi
15560 export as_echo_body
15561 as_echo='sh -c $as_echo_body as_echo'
15562 fi
15563
15564 # The user is always right.
15565 if test "${PATH_SEPARATOR+set}" != set; then
15566 PATH_SEPARATOR=:
15567 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15568 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15569 PATH_SEPARATOR=';'
15570 }
15571 fi
15572
15573
15574 # IFS
15575 # We need space, tab and new line, in precisely that order. Quoting is
15576 # there to prevent editors from complaining about space-tab.
15577 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15578 # splitting by setting IFS to empty value.)
15579 IFS=" "" $as_nl"
15580
15581 # Find who we are. Look in the path if we contain no directory separator.
15582 as_myself=
15583 case $0 in #((
15584 *[\\/]* ) as_myself=$0 ;;
15585 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15586 for as_dir in $PATH
15587 do
15588 IFS=$as_save_IFS
15589 test -z "$as_dir" && as_dir=.
15590 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15591 done
15592 IFS=$as_save_IFS
15593
15594 ;;
15595 esac
15596 # We did not find ourselves, most probably we were run as `sh COMMAND'
15597 # in which case we are not to be found in the path.
15598 if test "x$as_myself" = x; then
15599 as_myself=$0
15600 fi
15601 if test ! -f "$as_myself"; then
15602 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15603 exit 1
15604 fi
15605
15606 # Unset variables that we do not need and which cause bugs (e.g. in
15607 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15608 # suppresses any "Segmentation fault" message there. '((' could
15609 # trigger a bug in pdksh 5.2.14.
15610 for as_var in BASH_ENV ENV MAIL MAILPATH
15611 do eval test x\${$as_var+set} = xset \
15612 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15613 done
15614 PS1='$ '
15615 PS2='> '
15616 PS4='+ '
15617
15618 # NLS nuisances.
15619 LC_ALL=C
15620 export LC_ALL
15621 LANGUAGE=C
15622 export LANGUAGE
15623
15624 # CDPATH.
15625 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15626
15627
15628 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15629 # ----------------------------------------
15630 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15631 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15632 # script with STATUS, using 1 if that was 0.
15633 as_fn_error ()
15634 {
15635 as_status=$1; test $as_status -eq 0 && as_status=1
15636 if test "$4"; then
15637 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15638 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15639 fi
15640 $as_echo "$as_me: error: $2" >&2
15641 as_fn_exit $as_status
15642 } # as_fn_error
15643
15644
15645 # as_fn_set_status STATUS
15646 # -----------------------
15647 # Set $? to STATUS, without forking.
15648 as_fn_set_status ()
15649 {
15650 return $1
15651 } # as_fn_set_status
15652
15653 # as_fn_exit STATUS
15654 # -----------------
15655 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15656 as_fn_exit ()
15657 {
15658 set +e
15659 as_fn_set_status $1
15660 exit $1
15661 } # as_fn_exit
15662
15663 # as_fn_unset VAR
15664 # ---------------
15665 # Portably unset VAR.
15666 as_fn_unset ()
15667 {
15668 { eval $1=; unset $1;}
15669 }
15670 as_unset=as_fn_unset
15671 # as_fn_append VAR VALUE
15672 # ----------------------
15673 # Append the text in VALUE to the end of the definition contained in VAR. Take
15674 # advantage of any shell optimizations that allow amortized linear growth over
15675 # repeated appends, instead of the typical quadratic growth present in naive
15676 # implementations.
15677 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15678 eval 'as_fn_append ()
15679 {
15680 eval $1+=\$2
15681 }'
15682 else
15683 as_fn_append ()
15684 {
15685 eval $1=\$$1\$2
15686 }
15687 fi # as_fn_append
15688
15689 # as_fn_arith ARG...
15690 # ------------------
15691 # Perform arithmetic evaluation on the ARGs, and store the result in the
15692 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15693 # must be portable across $(()) and expr.
15694 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15695 eval 'as_fn_arith ()
15696 {
15697 as_val=$(( $* ))
15698 }'
15699 else
15700 as_fn_arith ()
15701 {
15702 as_val=`expr "$@" || test $? -eq 1`
15703 }
15704 fi # as_fn_arith
15705
15706
15707 if expr a : '\(a\)' >/dev/null 2>&1 &&
15708 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15709 as_expr=expr
15710 else
15711 as_expr=false
15712 fi
15713
15714 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15715 as_basename=basename
15716 else
15717 as_basename=false
15718 fi
15719
15720 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15721 as_dirname=dirname
15722 else
15723 as_dirname=false
15724 fi
15725
15726 as_me=`$as_basename -- "$0" ||
15727 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15728 X"$0" : 'X\(//\)$' \| \
15729 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15730 $as_echo X/"$0" |
15731 sed '/^.*\/\([^/][^/]*\)\/*$/{
15732 s//\1/
15733 q
15734 }
15735 /^X\/\(\/\/\)$/{
15736 s//\1/
15737 q
15738 }
15739 /^X\/\(\/\).*/{
15740 s//\1/
15741 q
15742 }
15743 s/.*/./; q'`
15744
15745 # Avoid depending upon Character Ranges.
15746 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15747 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15748 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15749 as_cr_digits='0123456789'
15750 as_cr_alnum=$as_cr_Letters$as_cr_digits
15751
15752 ECHO_C= ECHO_N= ECHO_T=
15753 case `echo -n x` in #(((((
15754 -n*)
15755 case `echo 'xy\c'` in
15756 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15757 xy) ECHO_C='\c';;
15758 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15759 ECHO_T=' ';;
15760 esac;;
15761 *)
15762 ECHO_N='-n';;
15763 esac
15764
15765 rm -f conf$$ conf$$.exe conf$$.file
15766 if test -d conf$$.dir; then
15767 rm -f conf$$.dir/conf$$.file
15768 else
15769 rm -f conf$$.dir
15770 mkdir conf$$.dir 2>/dev/null
15771 fi
15772 if (echo >conf$$.file) 2>/dev/null; then
15773 if ln -s conf$$.file conf$$ 2>/dev/null; then
15774 as_ln_s='ln -s'
15775 # ... but there are two gotchas:
15776 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15777 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15778 # In both cases, we have to default to `cp -pR'.
15779 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15780 as_ln_s='cp -pR'
15781 elif ln conf$$.file conf$$ 2>/dev/null; then
15782 as_ln_s=ln
15783 else
15784 as_ln_s='cp -pR'
15785 fi
15786 else
15787 as_ln_s='cp -pR'
15788 fi
15789 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15790 rmdir conf$$.dir 2>/dev/null
15791
15792
15793 # as_fn_mkdir_p
15794 # -------------
15795 # Create "$as_dir" as a directory, including parents if necessary.
15796 as_fn_mkdir_p ()
15797 {
15798
15799 case $as_dir in #(
15800 -*) as_dir=./$as_dir;;
15801 esac
15802 test -d "$as_dir" || eval $as_mkdir_p || {
15803 as_dirs=
15804 while :; do
15805 case $as_dir in #(
15806 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15807 *) as_qdir=$as_dir;;
15808 esac
15809 as_dirs="'$as_qdir' $as_dirs"
15810 as_dir=`$as_dirname -- "$as_dir" ||
15811 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15812 X"$as_dir" : 'X\(//\)[^/]' \| \
15813 X"$as_dir" : 'X\(//\)$' \| \
15814 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15815 $as_echo X"$as_dir" |
15816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15817 s//\1/
15818 q
15819 }
15820 /^X\(\/\/\)[^/].*/{
15821 s//\1/
15822 q
15823 }
15824 /^X\(\/\/\)$/{
15825 s//\1/
15826 q
15827 }
15828 /^X\(\/\).*/{
15829 s//\1/
15830 q
15831 }
15832 s/.*/./; q'`
15833 test -d "$as_dir" && break
15834 done
15835 test -z "$as_dirs" || eval "mkdir $as_dirs"
15836 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15837
15838
15839 } # as_fn_mkdir_p
15840 if mkdir -p . 2>/dev/null; then
15841 as_mkdir_p='mkdir -p "$as_dir"'
15842 else
15843 test -d ./-p && rmdir ./-p
15844 as_mkdir_p=false
15845 fi
15846
15847
15848 # as_fn_executable_p FILE
15849 # -----------------------
15850 # Test if FILE is an executable regular file.
15851 as_fn_executable_p ()
15852 {
15853 test -f "$1" && test -x "$1"
15854 } # as_fn_executable_p
15855 as_test_x='test -x'
15856 as_executable_p=as_fn_executable_p
15857
15858 # Sed expression to map a string onto a valid CPP name.
15859 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15860
15861 # Sed expression to map a string onto a valid variable name.
15862 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15863
15864
15865 exec 6>&1
15866 ## ----------------------------------- ##
15867 ## Main body of $CONFIG_STATUS script. ##
15868 ## ----------------------------------- ##
15869 _ASEOF
15870 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15871
15872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15873 # Save the log message, to keep $0 and so on meaningful, and to
15874 # report actual input values of CONFIG_FILES etc. instead of their
15875 # values after options handling.
15876 ac_log="
15877 This file was extended by libctf $as_me 1.2.0, which was
15878 generated by GNU Autoconf 2.69. Invocation command line was
15879
15880 CONFIG_FILES = $CONFIG_FILES
15881 CONFIG_HEADERS = $CONFIG_HEADERS
15882 CONFIG_LINKS = $CONFIG_LINKS
15883 CONFIG_COMMANDS = $CONFIG_COMMANDS
15884 $ $0 $@
15885
15886 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15887 "
15888
15889 _ACEOF
15890
15891 case $ac_config_files in *"
15892 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15893 esac
15894
15895 case $ac_config_headers in *"
15896 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15897 esac
15898
15899
15900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15901 # Files that config.status was made for.
15902 config_files="$ac_config_files"
15903 config_headers="$ac_config_headers"
15904 config_commands="$ac_config_commands"
15905
15906 _ACEOF
15907
15908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15909 ac_cs_usage="\
15910 \`$as_me' instantiates files and other configuration actions
15911 from templates according to the current configuration. Unless the files
15912 and actions are specified as TAGs, all are instantiated by default.
15913
15914 Usage: $0 [OPTION]... [TAG]...
15915
15916 -h, --help print this help, then exit
15917 -V, --version print version number and configuration settings, then exit
15918 --config print configuration, then exit
15919 -q, --quiet, --silent
15920 do not print progress messages
15921 -d, --debug don't remove temporary files
15922 --recheck update $as_me by reconfiguring in the same conditions
15923 --file=FILE[:TEMPLATE]
15924 instantiate the configuration file FILE
15925 --header=FILE[:TEMPLATE]
15926 instantiate the configuration header FILE
15927
15928 Configuration files:
15929 $config_files
15930
15931 Configuration headers:
15932 $config_headers
15933
15934 Configuration commands:
15935 $config_commands
15936
15937 Report bugs to the package provider."
15938
15939 _ACEOF
15940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15941 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15942 ac_cs_version="\\
15943 libctf config.status 1.2.0
15944 configured by $0, generated by GNU Autoconf 2.69,
15945 with options \\"\$ac_cs_config\\"
15946
15947 Copyright (C) 2012 Free Software Foundation, Inc.
15948 This config.status script is free software; the Free Software Foundation
15949 gives unlimited permission to copy, distribute and modify it."
15950
15951 ac_pwd='$ac_pwd'
15952 srcdir='$srcdir'
15953 INSTALL='$INSTALL'
15954 MKDIR_P='$MKDIR_P'
15955 AWK='$AWK'
15956 test -n "\$AWK" || AWK=awk
15957 _ACEOF
15958
15959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15960 # The default lists apply if the user does not specify any file.
15961 ac_need_defaults=:
15962 while test $# != 0
15963 do
15964 case $1 in
15965 --*=?*)
15966 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15967 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15968 ac_shift=:
15969 ;;
15970 --*=)
15971 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15972 ac_optarg=
15973 ac_shift=:
15974 ;;
15975 *)
15976 ac_option=$1
15977 ac_optarg=$2
15978 ac_shift=shift
15979 ;;
15980 esac
15981
15982 case $ac_option in
15983 # Handling of the options.
15984 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15985 ac_cs_recheck=: ;;
15986 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15987 $as_echo "$ac_cs_version"; exit ;;
15988 --config | --confi | --conf | --con | --co | --c )
15989 $as_echo "$ac_cs_config"; exit ;;
15990 --debug | --debu | --deb | --de | --d | -d )
15991 debug=: ;;
15992 --file | --fil | --fi | --f )
15993 $ac_shift
15994 case $ac_optarg in
15995 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15996 '') as_fn_error $? "missing file argument" ;;
15997 esac
15998 as_fn_append CONFIG_FILES " '$ac_optarg'"
15999 ac_need_defaults=false;;
16000 --header | --heade | --head | --hea )
16001 $ac_shift
16002 case $ac_optarg in
16003 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16004 esac
16005 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16006 ac_need_defaults=false;;
16007 --he | --h)
16008 # Conflict between --help and --header
16009 as_fn_error $? "ambiguous option: \`$1'
16010 Try \`$0 --help' for more information.";;
16011 --help | --hel | -h )
16012 $as_echo "$ac_cs_usage"; exit ;;
16013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16014 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16015 ac_cs_silent=: ;;
16016
16017 # This is an error.
16018 -*) as_fn_error $? "unrecognized option: \`$1'
16019 Try \`$0 --help' for more information." ;;
16020
16021 *) as_fn_append ac_config_targets " $1"
16022 ac_need_defaults=false ;;
16023
16024 esac
16025 shift
16026 done
16027
16028 ac_configure_extra_args=
16029
16030 if $ac_cs_silent; then
16031 exec 6>/dev/null
16032 ac_configure_extra_args="$ac_configure_extra_args --silent"
16033 fi
16034
16035 _ACEOF
16036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16037 if \$ac_cs_recheck; then
16038 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16039 shift
16040 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16041 CONFIG_SHELL='$SHELL'
16042 export CONFIG_SHELL
16043 exec "\$@"
16044 fi
16045
16046 _ACEOF
16047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16048 exec 5>>config.log
16049 {
16050 echo
16051 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16052 ## Running $as_me. ##
16053 _ASBOX
16054 $as_echo "$ac_log"
16055 } >&5
16056
16057 _ACEOF
16058 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16059 #
16060 # INIT-COMMANDS
16061 #
16062 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16063
16064
16065 # The HP-UX ksh and POSIX shell print the target directory to stdout
16066 # if CDPATH is set.
16067 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16068
16069 sed_quote_subst='$sed_quote_subst'
16070 double_quote_subst='$double_quote_subst'
16071 delay_variable_subst='$delay_variable_subst'
16072 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16073 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16074 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16075 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16076 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16077 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16078 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16079 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16080 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16081 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16082 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16083 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16084 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16085 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16086 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16087 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16088 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16089 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16090 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16091 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16092 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16093 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16094 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16095 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16096 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16097 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16098 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16099 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16100 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16101 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16102 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16103 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16104 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16105 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16106 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16107 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16108 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16109 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16110 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16111 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16112 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16113 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16114 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16115 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16116 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16117 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16118 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16119 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16120 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"`'
16121 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16122 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16123 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16124 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16125 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16126 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16127 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16128 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16129 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16130 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16131 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16132 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16133 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16134 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16135 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16136 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16137 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16138 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16139 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16140 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16141 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16142 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16143 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16144 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16145 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16146 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16147 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16148 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16149 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16150 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16151 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16152 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16153 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16154 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16155 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16156 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16157 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16158 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16159 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16160 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16161 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16162 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16163 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16164 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16165 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16166 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16167 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16168 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16169 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16170 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16171 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16172 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16173 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16174 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16175 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16176 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16177 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16178 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16179 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16180 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16181 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16182 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16183 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16184 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16185 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16186 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16187 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16188 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16189 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16190 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16191 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16192
16193 LTCC='$LTCC'
16194 LTCFLAGS='$LTCFLAGS'
16195 compiler='$compiler_DEFAULT'
16196
16197 # A function that is used when there is no print builtin or printf.
16198 func_fallback_echo ()
16199 {
16200 eval 'cat <<_LTECHO_EOF
16201 \$1
16202 _LTECHO_EOF'
16203 }
16204
16205 # Quote evaled strings.
16206 for var in SHELL \
16207 ECHO \
16208 SED \
16209 GREP \
16210 EGREP \
16211 FGREP \
16212 LD \
16213 NM \
16214 LN_S \
16215 lt_SP2NL \
16216 lt_NL2SP \
16217 reload_flag \
16218 OBJDUMP \
16219 deplibs_check_method \
16220 file_magic_cmd \
16221 AR \
16222 AR_FLAGS \
16223 STRIP \
16224 RANLIB \
16225 CC \
16226 CFLAGS \
16227 compiler \
16228 lt_cv_sys_global_symbol_pipe \
16229 lt_cv_sys_global_symbol_to_cdecl \
16230 lt_cv_sys_global_symbol_to_c_name_address \
16231 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16232 lt_prog_compiler_no_builtin_flag \
16233 lt_prog_compiler_wl \
16234 lt_prog_compiler_pic \
16235 lt_prog_compiler_static \
16236 lt_cv_prog_compiler_c_o \
16237 need_locks \
16238 DSYMUTIL \
16239 NMEDIT \
16240 LIPO \
16241 OTOOL \
16242 OTOOL64 \
16243 shrext_cmds \
16244 export_dynamic_flag_spec \
16245 whole_archive_flag_spec \
16246 compiler_needs_object \
16247 with_gnu_ld \
16248 allow_undefined_flag \
16249 no_undefined_flag \
16250 hardcode_libdir_flag_spec \
16251 hardcode_libdir_flag_spec_ld \
16252 hardcode_libdir_separator \
16253 fix_srcfile_path \
16254 exclude_expsyms \
16255 include_expsyms \
16256 file_list_spec \
16257 variables_saved_for_relink \
16258 libname_spec \
16259 library_names_spec \
16260 soname_spec \
16261 install_override_mode \
16262 finish_eval \
16263 old_striplib \
16264 striplib; do
16265 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16266 *[\\\\\\\`\\"\\\$]*)
16267 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16268 ;;
16269 *)
16270 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16271 ;;
16272 esac
16273 done
16274
16275 # Double-quote double-evaled strings.
16276 for var in reload_cmds \
16277 old_postinstall_cmds \
16278 old_postuninstall_cmds \
16279 old_archive_cmds \
16280 extract_expsyms_cmds \
16281 old_archive_from_new_cmds \
16282 old_archive_from_expsyms_cmds \
16283 archive_cmds \
16284 archive_expsym_cmds \
16285 module_cmds \
16286 module_expsym_cmds \
16287 export_symbols_cmds \
16288 prelink_cmds \
16289 postinstall_cmds \
16290 postuninstall_cmds \
16291 finish_cmds \
16292 sys_lib_search_path_spec \
16293 sys_lib_dlsearch_path_spec; do
16294 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16295 *[\\\\\\\`\\"\\\$]*)
16296 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16297 ;;
16298 *)
16299 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16300 ;;
16301 esac
16302 done
16303
16304 ac_aux_dir='$ac_aux_dir'
16305 xsi_shell='$xsi_shell'
16306 lt_shell_append='$lt_shell_append'
16307
16308 # See if we are running on zsh, and set the options which allow our
16309 # commands through without removal of \ escapes INIT.
16310 if test -n "\${ZSH_VERSION+set}" ; then
16311 setopt NO_GLOB_SUBST
16312 fi
16313
16314
16315 PACKAGE='$PACKAGE'
16316 VERSION='$VERSION'
16317 TIMESTAMP='$TIMESTAMP'
16318 RM='$RM'
16319 ofile='$ofile'
16320
16321 ac_aux_dir='$ac_aux_dir'
16322
16323
16324
16325 _ACEOF
16326
16327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16328
16329 # Handling of arguments.
16330 for ac_config_target in $ac_config_targets
16331 do
16332 case $ac_config_target in
16333 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16334 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16335 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16336 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16337
16338 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16339 esac
16340 done
16341
16342
16343 # If the user did not use the arguments to specify the items to instantiate,
16344 # then the envvar interface is used. Set only those that are not.
16345 # We use the long form for the default assignment because of an extremely
16346 # bizarre bug on SunOS 4.1.3.
16347 if $ac_need_defaults; then
16348 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16349 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16350 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16351 fi
16352
16353 # Have a temporary directory for convenience. Make it in the build tree
16354 # simply because there is no reason against having it here, and in addition,
16355 # creating and moving files from /tmp can sometimes cause problems.
16356 # Hook for its removal unless debugging.
16357 # Note that there is a small window in which the directory will not be cleaned:
16358 # after its creation but before its name has been assigned to `$tmp'.
16359 $debug ||
16360 {
16361 tmp= ac_tmp=
16362 trap 'exit_status=$?
16363 : "${ac_tmp:=$tmp}"
16364 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16365 ' 0
16366 trap 'as_fn_exit 1' 1 2 13 15
16367 }
16368 # Create a (secure) tmp directory for tmp files.
16369
16370 {
16371 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16372 test -d "$tmp"
16373 } ||
16374 {
16375 tmp=./conf$$-$RANDOM
16376 (umask 077 && mkdir "$tmp")
16377 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16378 ac_tmp=$tmp
16379
16380 # Set up the scripts for CONFIG_FILES section.
16381 # No need to generate them if there are no CONFIG_FILES.
16382 # This happens for instance with `./config.status config.h'.
16383 if test -n "$CONFIG_FILES"; then
16384
16385
16386 ac_cr=`echo X | tr X '\015'`
16387 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16388 # But we know of no other shell where ac_cr would be empty at this
16389 # point, so we can use a bashism as a fallback.
16390 if test "x$ac_cr" = x; then
16391 eval ac_cr=\$\'\\r\'
16392 fi
16393 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16394 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16395 ac_cs_awk_cr='\\r'
16396 else
16397 ac_cs_awk_cr=$ac_cr
16398 fi
16399
16400 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16401 _ACEOF
16402
16403
16404 {
16405 echo "cat >conf$$subs.awk <<_ACEOF" &&
16406 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16407 echo "_ACEOF"
16408 } >conf$$subs.sh ||
16409 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16410 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16411 ac_delim='%!_!# '
16412 for ac_last_try in false false false false false :; do
16413 . ./conf$$subs.sh ||
16414 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16415
16416 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16417 if test $ac_delim_n = $ac_delim_num; then
16418 break
16419 elif $ac_last_try; then
16420 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16421 else
16422 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16423 fi
16424 done
16425 rm -f conf$$subs.sh
16426
16427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16428 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16429 _ACEOF
16430 sed -n '
16431 h
16432 s/^/S["/; s/!.*/"]=/
16433 p
16434 g
16435 s/^[^!]*!//
16436 :repl
16437 t repl
16438 s/'"$ac_delim"'$//
16439 t delim
16440 :nl
16441 h
16442 s/\(.\{148\}\)..*/\1/
16443 t more1
16444 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16445 p
16446 n
16447 b repl
16448 :more1
16449 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16450 p
16451 g
16452 s/.\{148\}//
16453 t nl
16454 :delim
16455 h
16456 s/\(.\{148\}\)..*/\1/
16457 t more2
16458 s/["\\]/\\&/g; s/^/"/; s/$/"/
16459 p
16460 b
16461 :more2
16462 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16463 p
16464 g
16465 s/.\{148\}//
16466 t delim
16467 ' <conf$$subs.awk | sed '
16468 /^[^""]/{
16469 N
16470 s/\n//
16471 }
16472 ' >>$CONFIG_STATUS || ac_write_fail=1
16473 rm -f conf$$subs.awk
16474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16475 _ACAWK
16476 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16477 for (key in S) S_is_set[key] = 1
16478 FS = "\a"
16479
16480 }
16481 {
16482 line = $ 0
16483 nfields = split(line, field, "@")
16484 substed = 0
16485 len = length(field[1])
16486 for (i = 2; i < nfields; i++) {
16487 key = field[i]
16488 keylen = length(key)
16489 if (S_is_set[key]) {
16490 value = S[key]
16491 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16492 len += length(value) + length(field[++i])
16493 substed = 1
16494 } else
16495 len += 1 + keylen
16496 }
16497
16498 print line
16499 }
16500
16501 _ACAWK
16502 _ACEOF
16503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16504 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16505 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16506 else
16507 cat
16508 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16509 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16510 _ACEOF
16511
16512 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16513 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16514 # trailing colons and then remove the whole line if VPATH becomes empty
16515 # (actually we leave an empty line to preserve line numbers).
16516 if test "x$srcdir" = x.; then
16517 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16518 h
16519 s///
16520 s/^/:/
16521 s/[ ]*$/:/
16522 s/:\$(srcdir):/:/g
16523 s/:\${srcdir}:/:/g
16524 s/:@srcdir@:/:/g
16525 s/^:*//
16526 s/:*$//
16527 x
16528 s/\(=[ ]*\).*/\1/
16529 G
16530 s/\n//
16531 s/^[^=]*=[ ]*$//
16532 }'
16533 fi
16534
16535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16536 fi # test -n "$CONFIG_FILES"
16537
16538 # Set up the scripts for CONFIG_HEADERS section.
16539 # No need to generate them if there are no CONFIG_HEADERS.
16540 # This happens for instance with `./config.status Makefile'.
16541 if test -n "$CONFIG_HEADERS"; then
16542 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16543 BEGIN {
16544 _ACEOF
16545
16546 # Transform confdefs.h into an awk script `defines.awk', embedded as
16547 # here-document in config.status, that substitutes the proper values into
16548 # config.h.in to produce config.h.
16549
16550 # Create a delimiter string that does not exist in confdefs.h, to ease
16551 # handling of long lines.
16552 ac_delim='%!_!# '
16553 for ac_last_try in false false :; do
16554 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16555 if test -z "$ac_tt"; then
16556 break
16557 elif $ac_last_try; then
16558 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16559 else
16560 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16561 fi
16562 done
16563
16564 # For the awk script, D is an array of macro values keyed by name,
16565 # likewise P contains macro parameters if any. Preserve backslash
16566 # newline sequences.
16567
16568 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16569 sed -n '
16570 s/.\{148\}/&'"$ac_delim"'/g
16571 t rset
16572 :rset
16573 s/^[ ]*#[ ]*define[ ][ ]*/ /
16574 t def
16575 d
16576 :def
16577 s/\\$//
16578 t bsnl
16579 s/["\\]/\\&/g
16580 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16581 D["\1"]=" \3"/p
16582 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16583 d
16584 :bsnl
16585 s/["\\]/\\&/g
16586 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16587 D["\1"]=" \3\\\\\\n"\\/p
16588 t cont
16589 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16590 t cont
16591 d
16592 :cont
16593 n
16594 s/.\{148\}/&'"$ac_delim"'/g
16595 t clear
16596 :clear
16597 s/\\$//
16598 t bsnlc
16599 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16600 d
16601 :bsnlc
16602 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16603 b cont
16604 ' <confdefs.h | sed '
16605 s/'"$ac_delim"'/"\\\
16606 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16607
16608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16609 for (key in D) D_is_set[key] = 1
16610 FS = "\a"
16611 }
16612 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16613 line = \$ 0
16614 split(line, arg, " ")
16615 if (arg[1] == "#") {
16616 defundef = arg[2]
16617 mac1 = arg[3]
16618 } else {
16619 defundef = substr(arg[1], 2)
16620 mac1 = arg[2]
16621 }
16622 split(mac1, mac2, "(") #)
16623 macro = mac2[1]
16624 prefix = substr(line, 1, index(line, defundef) - 1)
16625 if (D_is_set[macro]) {
16626 # Preserve the white space surrounding the "#".
16627 print prefix "define", macro P[macro] D[macro]
16628 next
16629 } else {
16630 # Replace #undef with comments. This is necessary, for example,
16631 # in the case of _POSIX_SOURCE, which is predefined and required
16632 # on some systems where configure will not decide to define it.
16633 if (defundef == "undef") {
16634 print "/*", prefix defundef, macro, "*/"
16635 next
16636 }
16637 }
16638 }
16639 { print }
16640 _ACAWK
16641 _ACEOF
16642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16643 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16644 fi # test -n "$CONFIG_HEADERS"
16645
16646
16647 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16648 shift
16649 for ac_tag
16650 do
16651 case $ac_tag in
16652 :[FHLC]) ac_mode=$ac_tag; continue;;
16653 esac
16654 case $ac_mode$ac_tag in
16655 :[FHL]*:*);;
16656 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16657 :[FH]-) ac_tag=-:-;;
16658 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16659 esac
16660 ac_save_IFS=$IFS
16661 IFS=:
16662 set x $ac_tag
16663 IFS=$ac_save_IFS
16664 shift
16665 ac_file=$1
16666 shift
16667
16668 case $ac_mode in
16669 :L) ac_source=$1;;
16670 :[FH])
16671 ac_file_inputs=
16672 for ac_f
16673 do
16674 case $ac_f in
16675 -) ac_f="$ac_tmp/stdin";;
16676 *) # Look for the file first in the build tree, then in the source tree
16677 # (if the path is not absolute). The absolute path cannot be DOS-style,
16678 # because $ac_f cannot contain `:'.
16679 test -f "$ac_f" ||
16680 case $ac_f in
16681 [\\/$]*) false;;
16682 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16683 esac ||
16684 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16685 esac
16686 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16687 as_fn_append ac_file_inputs " '$ac_f'"
16688 done
16689
16690 # Let's still pretend it is `configure' which instantiates (i.e., don't
16691 # use $as_me), people would be surprised to read:
16692 # /* config.h. Generated by config.status. */
16693 configure_input='Generated from '`
16694 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16695 `' by configure.'
16696 if test x"$ac_file" != x-; then
16697 configure_input="$ac_file. $configure_input"
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16699 $as_echo "$as_me: creating $ac_file" >&6;}
16700 fi
16701 # Neutralize special characters interpreted by sed in replacement strings.
16702 case $configure_input in #(
16703 *\&* | *\|* | *\\* )
16704 ac_sed_conf_input=`$as_echo "$configure_input" |
16705 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16706 *) ac_sed_conf_input=$configure_input;;
16707 esac
16708
16709 case $ac_tag in
16710 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16711 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16712 esac
16713 ;;
16714 esac
16715
16716 ac_dir=`$as_dirname -- "$ac_file" ||
16717 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16718 X"$ac_file" : 'X\(//\)[^/]' \| \
16719 X"$ac_file" : 'X\(//\)$' \| \
16720 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16721 $as_echo X"$ac_file" |
16722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16723 s//\1/
16724 q
16725 }
16726 /^X\(\/\/\)[^/].*/{
16727 s//\1/
16728 q
16729 }
16730 /^X\(\/\/\)$/{
16731 s//\1/
16732 q
16733 }
16734 /^X\(\/\).*/{
16735 s//\1/
16736 q
16737 }
16738 s/.*/./; q'`
16739 as_dir="$ac_dir"; as_fn_mkdir_p
16740 ac_builddir=.
16741
16742 case "$ac_dir" in
16743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16744 *)
16745 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16746 # A ".." for each directory in $ac_dir_suffix.
16747 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16748 case $ac_top_builddir_sub in
16749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16751 esac ;;
16752 esac
16753 ac_abs_top_builddir=$ac_pwd
16754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16755 # for backward compatibility:
16756 ac_top_builddir=$ac_top_build_prefix
16757
16758 case $srcdir in
16759 .) # We are building in place.
16760 ac_srcdir=.
16761 ac_top_srcdir=$ac_top_builddir_sub
16762 ac_abs_top_srcdir=$ac_pwd ;;
16763 [\\/]* | ?:[\\/]* ) # Absolute name.
16764 ac_srcdir=$srcdir$ac_dir_suffix;
16765 ac_top_srcdir=$srcdir
16766 ac_abs_top_srcdir=$srcdir ;;
16767 *) # Relative name.
16768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16769 ac_top_srcdir=$ac_top_build_prefix$srcdir
16770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16771 esac
16772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16773
16774
16775 case $ac_mode in
16776 :F)
16777 #
16778 # CONFIG_FILE
16779 #
16780
16781 case $INSTALL in
16782 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16783 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16784 esac
16785 ac_MKDIR_P=$MKDIR_P
16786 case $MKDIR_P in
16787 [\\/$]* | ?:[\\/]* ) ;;
16788 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16789 esac
16790 _ACEOF
16791
16792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16793 # If the template does not know about datarootdir, expand it.
16794 # FIXME: This hack should be removed a few years after 2.60.
16795 ac_datarootdir_hack=; ac_datarootdir_seen=
16796 ac_sed_dataroot='
16797 /datarootdir/ {
16798 p
16799 q
16800 }
16801 /@datadir@/p
16802 /@docdir@/p
16803 /@infodir@/p
16804 /@localedir@/p
16805 /@mandir@/p'
16806 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16807 *datarootdir*) ac_datarootdir_seen=yes;;
16808 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16810 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16811 _ACEOF
16812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16813 ac_datarootdir_hack='
16814 s&@datadir@&$datadir&g
16815 s&@docdir@&$docdir&g
16816 s&@infodir@&$infodir&g
16817 s&@localedir@&$localedir&g
16818 s&@mandir@&$mandir&g
16819 s&\\\${datarootdir}&$datarootdir&g' ;;
16820 esac
16821 _ACEOF
16822
16823 # Neutralize VPATH when `$srcdir' = `.'.
16824 # Shell code in configure.ac might set extrasub.
16825 # FIXME: do we really want to maintain this feature?
16826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16827 ac_sed_extra="$ac_vpsub
16828 $extrasub
16829 _ACEOF
16830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16831 :t
16832 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16833 s|@configure_input@|$ac_sed_conf_input|;t t
16834 s&@top_builddir@&$ac_top_builddir_sub&;t t
16835 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16836 s&@srcdir@&$ac_srcdir&;t t
16837 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16838 s&@top_srcdir@&$ac_top_srcdir&;t t
16839 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16840 s&@builddir@&$ac_builddir&;t t
16841 s&@abs_builddir@&$ac_abs_builddir&;t t
16842 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16843 s&@INSTALL@&$ac_INSTALL&;t t
16844 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16845 $ac_datarootdir_hack
16846 "
16847 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16848 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16849
16850 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16851 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16852 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16853 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16855 which seems to be undefined. Please make sure it is defined" >&5
16856 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16857 which seems to be undefined. Please make sure it is defined" >&2;}
16858
16859 rm -f "$ac_tmp/stdin"
16860 case $ac_file in
16861 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16862 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16863 esac \
16864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16865 ;;
16866 :H)
16867 #
16868 # CONFIG_HEADER
16869 #
16870 if test x"$ac_file" != x-; then
16871 {
16872 $as_echo "/* $configure_input */" \
16873 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16874 } >"$ac_tmp/config.h" \
16875 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16876 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16878 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16879 else
16880 rm -f "$ac_file"
16881 mv "$ac_tmp/config.h" "$ac_file" \
16882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16883 fi
16884 else
16885 $as_echo "/* $configure_input */" \
16886 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16887 || as_fn_error $? "could not create -" "$LINENO" 5
16888 fi
16889 # Compute "$ac_file"'s index in $config_headers.
16890 _am_arg="$ac_file"
16891 _am_stamp_count=1
16892 for _am_header in $config_headers :; do
16893 case $_am_header in
16894 $_am_arg | $_am_arg:* )
16895 break ;;
16896 * )
16897 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16898 esac
16899 done
16900 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16901 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16902 X"$_am_arg" : 'X\(//\)[^/]' \| \
16903 X"$_am_arg" : 'X\(//\)$' \| \
16904 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16905 $as_echo X"$_am_arg" |
16906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16907 s//\1/
16908 q
16909 }
16910 /^X\(\/\/\)[^/].*/{
16911 s//\1/
16912 q
16913 }
16914 /^X\(\/\/\)$/{
16915 s//\1/
16916 q
16917 }
16918 /^X\(\/\).*/{
16919 s//\1/
16920 q
16921 }
16922 s/.*/./; q'`/stamp-h$_am_stamp_count
16923 ;;
16924
16925 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16926 $as_echo "$as_me: executing $ac_file commands" >&6;}
16927 ;;
16928 esac
16929
16930
16931 case $ac_file$ac_mode in
16932 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16933 # Older Autoconf quotes --file arguments for eval, but not when files
16934 # are listed without --file. Let's play safe and only enable the eval
16935 # if we detect the quoting.
16936 case $CONFIG_FILES in
16937 *\'*) eval set x "$CONFIG_FILES" ;;
16938 *) set x $CONFIG_FILES ;;
16939 esac
16940 shift
16941 for mf
16942 do
16943 # Strip MF so we end up with the name of the file.
16944 mf=`echo "$mf" | sed -e 's/:.*$//'`
16945 # Check whether this is an Automake generated Makefile or not.
16946 # We used to match only the files named 'Makefile.in', but
16947 # some people rename them; so instead we look at the file content.
16948 # Grep'ing the first line is not enough: some people post-process
16949 # each Makefile.in and add a new line on top of each file to say so.
16950 # Grep'ing the whole file is not good either: AIX grep has a line
16951 # limit of 2048, but all sed's we know have understand at least 4000.
16952 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16953 dirpart=`$as_dirname -- "$mf" ||
16954 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16955 X"$mf" : 'X\(//\)[^/]' \| \
16956 X"$mf" : 'X\(//\)$' \| \
16957 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16958 $as_echo X"$mf" |
16959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16960 s//\1/
16961 q
16962 }
16963 /^X\(\/\/\)[^/].*/{
16964 s//\1/
16965 q
16966 }
16967 /^X\(\/\/\)$/{
16968 s//\1/
16969 q
16970 }
16971 /^X\(\/\).*/{
16972 s//\1/
16973 q
16974 }
16975 s/.*/./; q'`
16976 else
16977 continue
16978 fi
16979 # Extract the definition of DEPDIR, am__include, and am__quote
16980 # from the Makefile without running 'make'.
16981 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16982 test -z "$DEPDIR" && continue
16983 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16984 test -z "$am__include" && continue
16985 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16986 # Find all dependency output files, they are included files with
16987 # $(DEPDIR) in their names. We invoke sed twice because it is the
16988 # simplest approach to changing $(DEPDIR) to its actual value in the
16989 # expansion.
16990 for file in `sed -n "
16991 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16992 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16993 # Make sure the directory exists.
16994 test -f "$dirpart/$file" && continue
16995 fdir=`$as_dirname -- "$file" ||
16996 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16997 X"$file" : 'X\(//\)[^/]' \| \
16998 X"$file" : 'X\(//\)$' \| \
16999 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17000 $as_echo X"$file" |
17001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17002 s//\1/
17003 q
17004 }
17005 /^X\(\/\/\)[^/].*/{
17006 s//\1/
17007 q
17008 }
17009 /^X\(\/\/\)$/{
17010 s//\1/
17011 q
17012 }
17013 /^X\(\/\).*/{
17014 s//\1/
17015 q
17016 }
17017 s/.*/./; q'`
17018 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17019 # echo "creating $dirpart/$file"
17020 echo '# dummy' > "$dirpart/$file"
17021 done
17022 done
17023 }
17024 ;;
17025 "libtool":C)
17026
17027 # See if we are running on zsh, and set the options which allow our
17028 # commands through without removal of \ escapes.
17029 if test -n "${ZSH_VERSION+set}" ; then
17030 setopt NO_GLOB_SUBST
17031 fi
17032
17033 cfgfile="${ofile}T"
17034 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17035 $RM "$cfgfile"
17036
17037 cat <<_LT_EOF >> "$cfgfile"
17038 #! $SHELL
17039
17040 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17041 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17042 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17043 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17044 #
17045 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17046 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17047 # Written by Gordon Matzigkeit, 1996
17048 #
17049 # This file is part of GNU Libtool.
17050 #
17051 # GNU Libtool is free software; you can redistribute it and/or
17052 # modify it under the terms of the GNU General Public License as
17053 # published by the Free Software Foundation; either version 2 of
17054 # the License, or (at your option) any later version.
17055 #
17056 # As a special exception to the GNU General Public License,
17057 # if you distribute this file as part of a program or library that
17058 # is built using GNU Libtool, you may include this file under the
17059 # same distribution terms that you use for the rest of that program.
17060 #
17061 # GNU Libtool is distributed in the hope that it will be useful,
17062 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17063 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17064 # GNU General Public License for more details.
17065 #
17066 # You should have received a copy of the GNU General Public License
17067 # along with GNU Libtool; see the file COPYING. If not, a copy
17068 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17069 # obtained by writing to the Free Software Foundation, Inc.,
17070 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17071
17072
17073 # The names of the tagged configurations supported by this script.
17074 available_tags=""
17075
17076 # ### BEGIN LIBTOOL CONFIG
17077
17078 # Whether or not to build shared libraries.
17079 build_libtool_libs=$enable_shared
17080
17081 # Which release of libtool.m4 was used?
17082 macro_version=$macro_version
17083 macro_revision=$macro_revision
17084
17085 # Whether or not to build static libraries.
17086 build_old_libs=$enable_static
17087
17088 # What type of objects to build.
17089 pic_mode=$pic_mode
17090
17091 # Whether or not to optimize for fast installation.
17092 fast_install=$enable_fast_install
17093
17094 # Shell to use when invoking shell scripts.
17095 SHELL=$lt_SHELL
17096
17097 # An echo program that protects backslashes.
17098 ECHO=$lt_ECHO
17099
17100 # The host system.
17101 host_alias=$host_alias
17102 host=$host
17103 host_os=$host_os
17104
17105 # The build system.
17106 build_alias=$build_alias
17107 build=$build
17108 build_os=$build_os
17109
17110 # A sed program that does not truncate output.
17111 SED=$lt_SED
17112
17113 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17114 Xsed="\$SED -e 1s/^X//"
17115
17116 # A grep program that handles long lines.
17117 GREP=$lt_GREP
17118
17119 # An ERE matcher.
17120 EGREP=$lt_EGREP
17121
17122 # A literal string matcher.
17123 FGREP=$lt_FGREP
17124
17125 # A BSD- or MS-compatible name lister.
17126 NM=$lt_NM
17127
17128 # Whether we need soft or hard links.
17129 LN_S=$lt_LN_S
17130
17131 # What is the maximum length of a command?
17132 max_cmd_len=$max_cmd_len
17133
17134 # Object file suffix (normally "o").
17135 objext=$ac_objext
17136
17137 # Executable file suffix (normally "").
17138 exeext=$exeext
17139
17140 # whether the shell understands "unset".
17141 lt_unset=$lt_unset
17142
17143 # turn spaces into newlines.
17144 SP2NL=$lt_lt_SP2NL
17145
17146 # turn newlines into spaces.
17147 NL2SP=$lt_lt_NL2SP
17148
17149 # An object symbol dumper.
17150 OBJDUMP=$lt_OBJDUMP
17151
17152 # Method to check whether dependent libraries are shared objects.
17153 deplibs_check_method=$lt_deplibs_check_method
17154
17155 # Command to use when deplibs_check_method == "file_magic".
17156 file_magic_cmd=$lt_file_magic_cmd
17157
17158 # The archiver.
17159 AR=$lt_AR
17160 AR_FLAGS=$lt_AR_FLAGS
17161
17162 # A symbol stripping program.
17163 STRIP=$lt_STRIP
17164
17165 # Commands used to install an old-style archive.
17166 RANLIB=$lt_RANLIB
17167 old_postinstall_cmds=$lt_old_postinstall_cmds
17168 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17169
17170 # Whether to use a lock for old archive extraction.
17171 lock_old_archive_extraction=$lock_old_archive_extraction
17172
17173 # A C compiler.
17174 LTCC=$lt_CC
17175
17176 # LTCC compiler flags.
17177 LTCFLAGS=$lt_CFLAGS
17178
17179 # Take the output of nm and produce a listing of raw symbols and C names.
17180 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17181
17182 # Transform the output of nm in a proper C declaration.
17183 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17184
17185 # Transform the output of nm in a C name address pair.
17186 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17187
17188 # Transform the output of nm in a C name address pair when lib prefix is needed.
17189 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17190
17191 # The name of the directory that contains temporary libtool files.
17192 objdir=$objdir
17193
17194 # Used to examine libraries when file_magic_cmd begins with "file".
17195 MAGIC_CMD=$MAGIC_CMD
17196
17197 # Must we lock files when doing compilation?
17198 need_locks=$lt_need_locks
17199
17200 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17201 DSYMUTIL=$lt_DSYMUTIL
17202
17203 # Tool to change global to local symbols on Mac OS X.
17204 NMEDIT=$lt_NMEDIT
17205
17206 # Tool to manipulate fat objects and archives on Mac OS X.
17207 LIPO=$lt_LIPO
17208
17209 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17210 OTOOL=$lt_OTOOL
17211
17212 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17213 OTOOL64=$lt_OTOOL64
17214
17215 # Old archive suffix (normally "a").
17216 libext=$libext
17217
17218 # Shared library suffix (normally ".so").
17219 shrext_cmds=$lt_shrext_cmds
17220
17221 # The commands to extract the exported symbol list from a shared archive.
17222 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17223
17224 # Variables whose values should be saved in libtool wrapper scripts and
17225 # restored at link time.
17226 variables_saved_for_relink=$lt_variables_saved_for_relink
17227
17228 # Do we need the "lib" prefix for modules?
17229 need_lib_prefix=$need_lib_prefix
17230
17231 # Do we need a version for libraries?
17232 need_version=$need_version
17233
17234 # Library versioning type.
17235 version_type=$version_type
17236
17237 # Shared library runtime path variable.
17238 runpath_var=$runpath_var
17239
17240 # Shared library path variable.
17241 shlibpath_var=$shlibpath_var
17242
17243 # Is shlibpath searched before the hard-coded library search path?
17244 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17245
17246 # Format of library name prefix.
17247 libname_spec=$lt_libname_spec
17248
17249 # List of archive names. First name is the real one, the rest are links.
17250 # The last name is the one that the linker finds with -lNAME
17251 library_names_spec=$lt_library_names_spec
17252
17253 # The coded name of the library, if different from the real name.
17254 soname_spec=$lt_soname_spec
17255
17256 # Permission mode override for installation of shared libraries.
17257 install_override_mode=$lt_install_override_mode
17258
17259 # Command to use after installation of a shared archive.
17260 postinstall_cmds=$lt_postinstall_cmds
17261
17262 # Command to use after uninstallation of a shared archive.
17263 postuninstall_cmds=$lt_postuninstall_cmds
17264
17265 # Commands used to finish a libtool library installation in a directory.
17266 finish_cmds=$lt_finish_cmds
17267
17268 # As "finish_cmds", except a single script fragment to be evaled but
17269 # not shown.
17270 finish_eval=$lt_finish_eval
17271
17272 # Whether we should hardcode library paths into libraries.
17273 hardcode_into_libs=$hardcode_into_libs
17274
17275 # Compile-time system search path for libraries.
17276 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17277
17278 # Run-time system search path for libraries.
17279 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17280
17281 # Whether dlopen is supported.
17282 dlopen_support=$enable_dlopen
17283
17284 # Whether dlopen of programs is supported.
17285 dlopen_self=$enable_dlopen_self
17286
17287 # Whether dlopen of statically linked programs is supported.
17288 dlopen_self_static=$enable_dlopen_self_static
17289
17290 # Commands to strip libraries.
17291 old_striplib=$lt_old_striplib
17292 striplib=$lt_striplib
17293
17294
17295 # The linker used to build libraries.
17296 LD=$lt_LD
17297
17298 # How to create reloadable object files.
17299 reload_flag=$lt_reload_flag
17300 reload_cmds=$lt_reload_cmds
17301
17302 # Commands used to build an old-style archive.
17303 old_archive_cmds=$lt_old_archive_cmds
17304
17305 # A language specific compiler.
17306 CC=$lt_compiler
17307
17308 # Is the compiler the GNU compiler?
17309 with_gcc=$GCC
17310
17311 # Compiler flag to turn off builtin functions.
17312 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17313
17314 # How to pass a linker flag through the compiler.
17315 wl=$lt_lt_prog_compiler_wl
17316
17317 # Additional compiler flags for building library objects.
17318 pic_flag=$lt_lt_prog_compiler_pic
17319
17320 # Compiler flag to prevent dynamic linking.
17321 link_static_flag=$lt_lt_prog_compiler_static
17322
17323 # Does compiler simultaneously support -c and -o options?
17324 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17325
17326 # Whether or not to add -lc for building shared libraries.
17327 build_libtool_need_lc=$archive_cmds_need_lc
17328
17329 # Whether or not to disallow shared libs when runtime libs are static.
17330 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17331
17332 # Compiler flag to allow reflexive dlopens.
17333 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17334
17335 # Compiler flag to generate shared objects directly from archives.
17336 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17337
17338 # Whether the compiler copes with passing no objects directly.
17339 compiler_needs_object=$lt_compiler_needs_object
17340
17341 # Create an old-style archive from a shared archive.
17342 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17343
17344 # Create a temporary old-style archive to link instead of a shared archive.
17345 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17346
17347 # Commands used to build a shared archive.
17348 archive_cmds=$lt_archive_cmds
17349 archive_expsym_cmds=$lt_archive_expsym_cmds
17350
17351 # Commands used to build a loadable module if different from building
17352 # a shared archive.
17353 module_cmds=$lt_module_cmds
17354 module_expsym_cmds=$lt_module_expsym_cmds
17355
17356 # Whether we are building with GNU ld or not.
17357 with_gnu_ld=$lt_with_gnu_ld
17358
17359 # Flag that allows shared libraries with undefined symbols to be built.
17360 allow_undefined_flag=$lt_allow_undefined_flag
17361
17362 # Flag that enforces no undefined symbols.
17363 no_undefined_flag=$lt_no_undefined_flag
17364
17365 # Flag to hardcode \$libdir into a binary during linking.
17366 # This must work even if \$libdir does not exist
17367 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17368
17369 # If ld is used when linking, flag to hardcode \$libdir into a binary
17370 # during linking. This must work even if \$libdir does not exist.
17371 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17372
17373 # Whether we need a single "-rpath" flag with a separated argument.
17374 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17375
17376 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17377 # DIR into the resulting binary.
17378 hardcode_direct=$hardcode_direct
17379
17380 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17381 # DIR into the resulting binary and the resulting library dependency is
17382 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17383 # library is relocated.
17384 hardcode_direct_absolute=$hardcode_direct_absolute
17385
17386 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17387 # into the resulting binary.
17388 hardcode_minus_L=$hardcode_minus_L
17389
17390 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17391 # into the resulting binary.
17392 hardcode_shlibpath_var=$hardcode_shlibpath_var
17393
17394 # Set to "yes" if building a shared library automatically hardcodes DIR
17395 # into the library and all subsequent libraries and executables linked
17396 # against it.
17397 hardcode_automatic=$hardcode_automatic
17398
17399 # Set to yes if linker adds runtime paths of dependent libraries
17400 # to runtime path list.
17401 inherit_rpath=$inherit_rpath
17402
17403 # Whether libtool must link a program against all its dependency libraries.
17404 link_all_deplibs=$link_all_deplibs
17405
17406 # Fix the shell variable \$srcfile for the compiler.
17407 fix_srcfile_path=$lt_fix_srcfile_path
17408
17409 # Set to "yes" if exported symbols are required.
17410 always_export_symbols=$always_export_symbols
17411
17412 # The commands to list exported symbols.
17413 export_symbols_cmds=$lt_export_symbols_cmds
17414
17415 # Symbols that should not be listed in the preloaded symbols.
17416 exclude_expsyms=$lt_exclude_expsyms
17417
17418 # Symbols that must always be exported.
17419 include_expsyms=$lt_include_expsyms
17420
17421 # Commands necessary for linking programs (against libraries) with templates.
17422 prelink_cmds=$lt_prelink_cmds
17423
17424 # Specify filename containing input files.
17425 file_list_spec=$lt_file_list_spec
17426
17427 # How to hardcode a shared library path into an executable.
17428 hardcode_action=$hardcode_action
17429
17430 # ### END LIBTOOL CONFIG
17431
17432 _LT_EOF
17433
17434 case $host_os in
17435 aix3*)
17436 cat <<\_LT_EOF >> "$cfgfile"
17437 # AIX sometimes has problems with the GCC collect2 program. For some
17438 # reason, if we set the COLLECT_NAMES environment variable, the problems
17439 # vanish in a puff of smoke.
17440 if test "X${COLLECT_NAMES+set}" != Xset; then
17441 COLLECT_NAMES=
17442 export COLLECT_NAMES
17443 fi
17444 _LT_EOF
17445 ;;
17446 esac
17447
17448
17449 ltmain="$ac_aux_dir/ltmain.sh"
17450
17451
17452 # We use sed instead of cat because bash on DJGPP gets confused if
17453 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17454 # text mode, it properly converts lines to CR/LF. This bash problem
17455 # is reportedly fixed, but why not run on old versions too?
17456 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17457 || (rm -f "$cfgfile"; exit 1)
17458
17459 case $xsi_shell in
17460 yes)
17461 cat << \_LT_EOF >> "$cfgfile"
17462
17463 # func_dirname file append nondir_replacement
17464 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17465 # otherwise set result to NONDIR_REPLACEMENT.
17466 func_dirname ()
17467 {
17468 case ${1} in
17469 */*) func_dirname_result="${1%/*}${2}" ;;
17470 * ) func_dirname_result="${3}" ;;
17471 esac
17472 }
17473
17474 # func_basename file
17475 func_basename ()
17476 {
17477 func_basename_result="${1##*/}"
17478 }
17479
17480 # func_dirname_and_basename file append nondir_replacement
17481 # perform func_basename and func_dirname in a single function
17482 # call:
17483 # dirname: Compute the dirname of FILE. If nonempty,
17484 # add APPEND to the result, otherwise set result
17485 # to NONDIR_REPLACEMENT.
17486 # value returned in "$func_dirname_result"
17487 # basename: Compute filename of FILE.
17488 # value retuned in "$func_basename_result"
17489 # Implementation must be kept synchronized with func_dirname
17490 # and func_basename. For efficiency, we do not delegate to
17491 # those functions but instead duplicate the functionality here.
17492 func_dirname_and_basename ()
17493 {
17494 case ${1} in
17495 */*) func_dirname_result="${1%/*}${2}" ;;
17496 * ) func_dirname_result="${3}" ;;
17497 esac
17498 func_basename_result="${1##*/}"
17499 }
17500
17501 # func_stripname prefix suffix name
17502 # strip PREFIX and SUFFIX off of NAME.
17503 # PREFIX and SUFFIX must not contain globbing or regex special
17504 # characters, hashes, percent signs, but SUFFIX may contain a leading
17505 # dot (in which case that matches only a dot).
17506 func_stripname ()
17507 {
17508 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17509 # positional parameters, so assign one to ordinary parameter first.
17510 func_stripname_result=${3}
17511 func_stripname_result=${func_stripname_result#"${1}"}
17512 func_stripname_result=${func_stripname_result%"${2}"}
17513 }
17514
17515 # func_opt_split
17516 func_opt_split ()
17517 {
17518 func_opt_split_opt=${1%%=*}
17519 func_opt_split_arg=${1#*=}
17520 }
17521
17522 # func_lo2o object
17523 func_lo2o ()
17524 {
17525 case ${1} in
17526 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17527 *) func_lo2o_result=${1} ;;
17528 esac
17529 }
17530
17531 # func_xform libobj-or-source
17532 func_xform ()
17533 {
17534 func_xform_result=${1%.*}.lo
17535 }
17536
17537 # func_arith arithmetic-term...
17538 func_arith ()
17539 {
17540 func_arith_result=$(( $* ))
17541 }
17542
17543 # func_len string
17544 # STRING may not start with a hyphen.
17545 func_len ()
17546 {
17547 func_len_result=${#1}
17548 }
17549
17550 _LT_EOF
17551 ;;
17552 *) # Bourne compatible functions.
17553 cat << \_LT_EOF >> "$cfgfile"
17554
17555 # func_dirname file append nondir_replacement
17556 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17557 # otherwise set result to NONDIR_REPLACEMENT.
17558 func_dirname ()
17559 {
17560 # Extract subdirectory from the argument.
17561 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17562 if test "X$func_dirname_result" = "X${1}"; then
17563 func_dirname_result="${3}"
17564 else
17565 func_dirname_result="$func_dirname_result${2}"
17566 fi
17567 }
17568
17569 # func_basename file
17570 func_basename ()
17571 {
17572 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17573 }
17574
17575
17576 # func_stripname prefix suffix name
17577 # strip PREFIX and SUFFIX off of NAME.
17578 # PREFIX and SUFFIX must not contain globbing or regex special
17579 # characters, hashes, percent signs, but SUFFIX may contain a leading
17580 # dot (in which case that matches only a dot).
17581 # func_strip_suffix prefix name
17582 func_stripname ()
17583 {
17584 case ${2} in
17585 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17586 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17587 esac
17588 }
17589
17590 # sed scripts:
17591 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17592 my_sed_long_arg='1s/^-[^=]*=//'
17593
17594 # func_opt_split
17595 func_opt_split ()
17596 {
17597 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17598 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17599 }
17600
17601 # func_lo2o object
17602 func_lo2o ()
17603 {
17604 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17605 }
17606
17607 # func_xform libobj-or-source
17608 func_xform ()
17609 {
17610 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17611 }
17612
17613 # func_arith arithmetic-term...
17614 func_arith ()
17615 {
17616 func_arith_result=`expr "$@"`
17617 }
17618
17619 # func_len string
17620 # STRING may not start with a hyphen.
17621 func_len ()
17622 {
17623 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17624 }
17625
17626 _LT_EOF
17627 esac
17628
17629 case $lt_shell_append in
17630 yes)
17631 cat << \_LT_EOF >> "$cfgfile"
17632
17633 # func_append var value
17634 # Append VALUE to the end of shell variable VAR.
17635 func_append ()
17636 {
17637 eval "$1+=\$2"
17638 }
17639 _LT_EOF
17640 ;;
17641 *)
17642 cat << \_LT_EOF >> "$cfgfile"
17643
17644 # func_append var value
17645 # Append VALUE to the end of shell variable VAR.
17646 func_append ()
17647 {
17648 eval "$1=\$$1\$2"
17649 }
17650
17651 _LT_EOF
17652 ;;
17653 esac
17654
17655
17656 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17657 || (rm -f "$cfgfile"; exit 1)
17658
17659 mv -f "$cfgfile" "$ofile" ||
17660 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17661 chmod +x "$ofile"
17662
17663 ;;
17664
17665 esac
17666 done # for ac_tag
17667
17668
17669 as_fn_exit 0
17670 _ACEOF
17671 ac_clean_files=$ac_clean_files_save
17672
17673 test $ac_write_fail = 0 ||
17674 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17675
17676
17677 # configure is writing to config.log, and then calls config.status.
17678 # config.status does its own redirection, appending to config.log.
17679 # Unfortunately, on DOS this fails, as config.log is still kept open
17680 # by configure, so config.status won't be able to write to it; its
17681 # output is simply discarded. So we exec the FD to /dev/null,
17682 # effectively closing config.log, so it can be properly (re)opened and
17683 # appended to by config.status. When coming back to configure, we
17684 # need to make the FD available again.
17685 if test "$no_create" != yes; then
17686 ac_cs_success=:
17687 ac_config_status_args=
17688 test "$silent" = yes &&
17689 ac_config_status_args="$ac_config_status_args --quiet"
17690 exec 5>/dev/null
17691 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17692 exec 5>>config.log
17693 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17694 # would make configure fail if this is the last instruction.
17695 $ac_cs_success || as_fn_exit 1
17696 fi
17697 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17699 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17700 fi
17701
17702
17703
17704 touch config.status.tmp
17705 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
17706 sed '/as_fn_exit 0/i \
17707 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
17708 touch --reference=Makefile Makefile.tmp \
17709 mv Makefile.tmp Makefile \
17710 ' config.status > config.status.tmp
17711 touch --reference=config.status config.status.tmp
17712 mv config.status.tmp config.status
17713 chmod +x config.status
17714 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
17715 touch --reference=Makefile Makefile.tmp
17716 mv Makefile.tmp Makefile
17717 else
17718 rm -f config.status.tmp
17719 fi