configure revision 1.1.1.2 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 (at] 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 zlibinc
652 zlibdir
653 ac_libctf_warn_cflags
654 bfdincludedir
655 bfdlibdir
656 target_noncanonical
657 host_noncanonical
658 INSTALL_LIBBFD_FALSE
659 INSTALL_LIBBFD_TRUE
660 MAINT
661 MAINTAINER_MODE_FALSE
662 MAINTAINER_MODE_TRUE
663 WERROR
664 WARN_PEDANTIC
665 c_warn
666 warn
667 OTOOL64
668 OTOOL
669 LIPO
670 NMEDIT
671 DSYMUTIL
672 OBJDUMP
673 LN_S
674 NM
675 ac_ct_DUMPBIN
676 DUMPBIN
677 LD
678 FGREP
679 SED
680 LIBTOOL
681 CATOBJEXT
682 GENCAT
683 INSTOBJEXT
684 DATADIRNAME
685 CATALOGS
686 POSUB
687 GMSGFMT
688 XGETTEXT
689 INCINTL
690 LIBINTL_DEP
691 LIBINTL
692 USE_NLS
693 ac_ct_AR
694 AR
695 RANLIB
696 AM_BACKSLASH
697 AM_DEFAULT_VERBOSITY
698 AM_DEFAULT_V
699 AM_V
700 am__fastdepCC_FALSE
701 am__fastdepCC_TRUE
702 CCDEPMODE
703 am__nodep
704 AMDEPBACKSLASH
705 AMDEP_FALSE
706 AMDEP_TRUE
707 am__quote
708 am__include
709 DEPDIR
710 am__untar
711 am__tar
712 AMTAR
713 am__leading_dot
714 SET_MAKE
715 AWK
716 mkdir_p
717 MKDIR_P
718 INSTALL_STRIP_PROGRAM
719 STRIP
720 install_sh
721 MAKEINFO
722 AUTOHEADER
723 AUTOMAKE
724 AUTOCONF
725 ACLOCAL
726 VERSION
727 PACKAGE
728 CYGPATH_W
729 am__isrc
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 EGREP
734 GREP
735 CPP
736 OBJEXT
737 EXEEXT
738 ac_ct_CC
739 CPPFLAGS
740 LDFLAGS
741 CFLAGS
742 CC
743 target_os
744 target_vendor
745 target_cpu
746 target
747 host_os
748 host_vendor
749 host_cpu
750 host
751 build_os
752 build_vendor
753 build_cpu
754 build
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL'
793 ac_subst_files=''
794 ac_user_opts='
795 enable_option_checking
796 enable_dependency_tracking
797 enable_silent_rules
798 enable_shared
799 enable_static
800 with_pic
801 enable_fast_install
802 with_gnu_ld
803 enable_libtool_lock
804 enable_largefile
805 enable_werror_always
806 enable_maintainer_mode
807 enable_install_libbfd
808 with_system_zlib
809 enable_libctf_hash_debugging
810 '
811 ac_precious_vars='build_alias
812 host_alias
813 target_alias
814 CC
815 CFLAGS
816 LDFLAGS
817 LIBS
818 CPPFLAGS
819 CPP'
820
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
843
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
869
870 ac_prev=
871 ac_dashdash=
872 for ac_option
873 do
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
877 ac_prev=
878 continue
879 fi
880
881 case $ac_option in
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *=) ac_optarg= ;;
884 *) ac_optarg=yes ;;
885 esac
886
887 # Accept the important Cygnus configure options, so we can diagnose typos.
888
889 case $ac_dashdash$ac_option in
890 --)
891 ac_dashdash=yes ;;
892
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
897
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
902
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
909
910 --config-cache | -C)
911 cache_file=config.cache ;;
912
913 -datadir | --datadir | --datadi | --datad)
914 ac_prev=datadir ;;
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
917
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
924
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=no ;;
940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
950
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=\$ac_optarg ;;
966
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
975
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
978 with_gas=yes ;;
979
980 -help | --help | --hel | --he | -h)
981 ac_init_help=long ;;
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
986
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
991
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 ac_prev=htmldir ;;
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 | --ht=*)
996 htmldir=$ac_optarg ;;
997
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1004
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 ac_prev=infodir ;;
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1009
1010 -libdir | --libdir | --libdi | --libd)
1011 ac_prev=libdir ;;
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1014
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1021
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1026
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1033
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 ac_prev=mandir ;;
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1038
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1041 with_fp=no ;;
1042
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1045 no_create=yes ;;
1046
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 no_recursion=yes ;;
1050
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1059
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 ac_prev=prefix ;;
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1064
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1071
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1078
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1095
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 ac_prev=pdfdir ;;
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1100
1101 -psdir | --psdir | --psdi | --psd | --ps)
1102 ac_prev=psdir ;;
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 psdir=$ac_optarg ;;
1105
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 silent=yes ;;
1109
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1115
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1126
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1131
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1136
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1143
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1148
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1151
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1154
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1170
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1186
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1190
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1197
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1204
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1207 ;;
1208
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215 esac
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1218
1219 *)
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1225 ;;
1226
1227 esac
1228 done
1229
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1233 fi
1234
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 esac
1241 fi
1242
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir
1248 do
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1251 case $ac_val in
1252 */ )
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1255 esac
1256 # Be sure to have absolute directory names.
1257 case $ac_val in
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 esac
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 done
1263
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1267 build=$build_alias
1268 host=$host_alias
1269 target=$target_alias
1270
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1277 fi
1278 fi
1279
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283 test "$silent" = yes && exec 6>/dev/null
1284
1285
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1292
1293
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1310 q
1311 }
1312 /^X\(\/\/\)$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\).*/{
1317 s//\1/
1318 q
1319 }
1320 s/.*/./; q'`
1321 srcdir=$ac_confdir
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 srcdir=..
1324 fi
1325 else
1326 ac_srcdir_defaulted=no
1327 fi
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1331 fi
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1339 fi
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1352
1353 #
1354 # Report the --help message.
1355 #
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360 \`configure' configures libctf 1.2.0 to adapt to many kinds of systems.
1361
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1366
1367 Defaults for the options are specified in brackets.
1368
1369 Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1385
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1390
1391 For better control, use the options below.
1392
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/libctf]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413 _ACEOF
1414
1415 cat <<\_ACEOF
1416
1417 Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421
1422 System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 --target=TARGET configure for building compilers for TARGET [HOST]
1426 _ACEOF
1427 fi
1428
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of libctf 1.2.0:";;
1432 esac
1433 cat <<\_ACEOF
1434
1435 Optional Features:
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-dependency-tracking
1440 do not reject slow dependency extractors
1441 --disable-dependency-tracking
1442 speeds up one-time build
1443 --enable-silent-rules less verbose build output (undo: "make V=1")
1444 --disable-silent-rules verbose build output (undo: "make V=0")
1445 --enable-shared[=PKGS] build shared libraries [default=no]
1446 --enable-static[=PKGS] build static libraries [default=yes]
1447 --enable-fast-install[=PKGS]
1448 optimize for fast installation [default=yes]
1449 --disable-libtool-lock avoid locking (might break parallel builds)
1450 --disable-largefile omit support for large files
1451 --enable-werror-always enable -Werror despite compiler version
1452 --enable-maintainer-mode
1453 enable make rules and dependencies not useful (and
1454 sometimes confusing) to the casual installer
1455 --enable-install-libbfd controls installation of libbfd and related headers
1456 --enable-libctf-hash-debugging
1457 Enable expensive debugging of CTF deduplication type
1458 hashing [default=no]
1459
1460 Optional Packages:
1461 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1462 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1463 --with-pic try to use only PIC/non-PIC objects [default=use
1464 both]
1465 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1466 --with-system-zlib use installed libz
1467
1468 Some influential environment variables:
1469 CC C compiler command
1470 CFLAGS C compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
1473 LIBS libraries to pass to the linker, e.g. -l<library>
1474 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
1476 CPP C preprocessor
1477
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1480
1481 Report bugs to the package provider.
1482 _ACEOF
1483 ac_status=$?
1484 fi
1485
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" ||
1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491 continue
1492 ac_builddir=.
1493
1494 case "$ac_dir" in
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *)
1497 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 esac ;;
1504 esac
1505 ac_abs_top_builddir=$ac_pwd
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir=$ac_top_build_prefix
1509
1510 case $srcdir in
1511 .) # We are building in place.
1512 ac_srcdir=.
1513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
1516 ac_srcdir=$srcdir$ac_dir_suffix;
1517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1519 *) # Relative name.
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 esac
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525
1526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for guested configure.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1534 else
1535 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 fi || ac_status=$?
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1538 done
1539 fi
1540
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1543 cat <<\_ACEOF
1544 libctf configure 1.2.0
1545 generated by GNU Autoconf 2.69
1546
1547 Copyright (C) 2012 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1550 _ACEOF
1551 exit
1552 fi
1553
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1557
1558 # ac_fn_c_try_compile LINENO
1559 # --------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_compile ()
1562 {
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext
1565 if { { ac_try="$ac_compile"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1578 fi
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext; then :
1584 ac_retval=0
1585 else
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1588
1589 ac_retval=1
1590 fi
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1593
1594 } # ac_fn_c_try_compile
1595
1596 # ac_fn_c_try_cpp LINENO
1597 # ----------------------
1598 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_cpp ()
1600 {
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if { { ac_try="$ac_cpp conftest.$ac_ext"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } > conftest.i && {
1618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 }; then :
1621 ac_retval=0
1622 else
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=1
1627 fi
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1630
1631 } # ac_fn_c_try_cpp
1632
1633 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1634 # -------------------------------------------------------
1635 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1636 # the include files in INCLUDES and setting the cache variable VAR
1637 # accordingly.
1638 ac_fn_c_check_header_mongrel ()
1639 {
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 if eval \${$3+:} false; then :
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 $as_echo_n "checking for $2... " >&6; }
1644 if eval \${$3+:} false; then :
1645 $as_echo_n "(cached) " >&6
1646 fi
1647 eval ac_res=\$$3
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 $as_echo "$ac_res" >&6; }
1650 else
1651 # Is the header compilable?
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1653 $as_echo_n "checking $2 usability... " >&6; }
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1656 $4
1657 #include <$2>
1658 _ACEOF
1659 if ac_fn_c_try_compile "$LINENO"; then :
1660 ac_header_compiler=yes
1661 else
1662 ac_header_compiler=no
1663 fi
1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1666 $as_echo "$ac_header_compiler" >&6; }
1667
1668 # Is the header present?
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1670 $as_echo_n "checking $2 presence... " >&6; }
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1673 #include <$2>
1674 _ACEOF
1675 if ac_fn_c_try_cpp "$LINENO"; then :
1676 ac_header_preproc=yes
1677 else
1678 ac_header_preproc=no
1679 fi
1680 rm -f conftest.err conftest.i conftest.$ac_ext
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1682 $as_echo "$ac_header_preproc" >&6; }
1683
1684 # So? What about this header?
1685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1686 yes:no: )
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1688 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1690 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1691 ;;
1692 no:yes:* )
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1694 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1696 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1698 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1700 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1702 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1703 ;;
1704 esac
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1706 $as_echo_n "checking for $2... " >&6; }
1707 if eval \${$3+:} false; then :
1708 $as_echo_n "(cached) " >&6
1709 else
1710 eval "$3=\$ac_header_compiler"
1711 fi
1712 eval ac_res=\$$3
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1715 fi
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717
1718 } # ac_fn_c_check_header_mongrel
1719
1720 # ac_fn_c_try_run LINENO
1721 # ----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1723 # that executables *can* be run.
1724 ac_fn_c_try_run ()
1725 {
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_link"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>&5
1735 ac_status=$?
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1738 { { case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_try") 2>&5
1745 ac_status=$?
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; }; }; then :
1748 ac_retval=0
1749 else
1750 $as_echo "$as_me: program exited with status $ac_status" >&5
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=$ac_status
1755 fi
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1759
1760 } # ac_fn_c_try_run
1761
1762 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists and can be compiled using the include files in
1765 # INCLUDES, setting the cache variable VAR accordingly.
1766 ac_fn_c_check_header_compile ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1773 else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 $4
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 eval "$3=yes"
1781 else
1782 eval "$3=no"
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 fi
1786 eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790
1791 } # ac_fn_c_check_header_compile
1792
1793 # ac_fn_c_try_link LINENO
1794 # -----------------------
1795 # Try to link conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_link ()
1797 {
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext conftest$ac_exeext
1800 if { { ac_try="$ac_link"
1801 case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_link") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1813 fi
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest$ac_exeext && {
1819 test "$cross_compiling" = yes ||
1820 test -x conftest$ac_exeext
1821 }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1826
1827 ac_retval=1
1828 fi
1829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1831 # interfere with the next link command; also delete a directory that is
1832 # left behind by Apple's compiler. We do this before executing the actions.
1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1836
1837 } # ac_fn_c_try_link
1838
1839 # ac_fn_c_check_func LINENO FUNC VAR
1840 # ----------------------------------
1841 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1842 ac_fn_c_check_func ()
1843 {
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1846 $as_echo_n "checking for $2... " >&6; }
1847 if eval \${$3+:} false; then :
1848 $as_echo_n "(cached) " >&6
1849 else
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1852 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1854 #define $2 innocuous_$2
1855
1856 /* System header to define __stub macros and hopefully few prototypes,
1857 which can conflict with char $2 (); below.
1858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1859 <limits.h> exists even on freestanding compilers. */
1860
1861 #ifdef __STDC__
1862 # include <limits.h>
1863 #else
1864 # include <assert.h>
1865 #endif
1866
1867 #undef $2
1868
1869 /* Override any GCC internal prototype to avoid an error.
1870 Use char because int might match the return type of a GCC
1871 builtin and then its argument prototype would still apply. */
1872 #ifdef __cplusplus
1873 extern "C"
1874 #endif
1875 char $2 ();
1876 /* The GNU C library defines this for functions which it implements
1877 to always fail with ENOSYS. Some functions are actually named
1878 something starting with __ and the normal name is an alias. */
1879 #if defined __stub_$2 || defined __stub___$2
1880 choke me
1881 #endif
1882
1883 int
1884 main ()
1885 {
1886 return $2 ();
1887 ;
1888 return 0;
1889 }
1890 _ACEOF
1891 if ac_fn_c_try_link "$LINENO"; then :
1892 eval "$3=yes"
1893 else
1894 eval "$3=no"
1895 fi
1896 rm -f core conftest.err conftest.$ac_objext \
1897 conftest$ac_exeext conftest.$ac_ext
1898 fi
1899 eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1901 $as_echo "$ac_res" >&6; }
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903
1904 } # ac_fn_c_check_func
1905
1906 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1907 # ---------------------------------------------
1908 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1909 # accordingly.
1910 ac_fn_c_check_decl ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 as_decl_name=`echo $2|sed 's/ *(.*//'`
1914 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1916 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1917 if eval \${$3+:} false; then :
1918 $as_echo_n "(cached) " >&6
1919 else
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1922 $4
1923 int
1924 main ()
1925 {
1926 #ifndef $as_decl_name
1927 #ifdef __cplusplus
1928 (void) $as_decl_use;
1929 #else
1930 (void) $as_decl_name;
1931 #endif
1932 #endif
1933
1934 ;
1935 return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939 eval "$3=yes"
1940 else
1941 eval "$3=no"
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 fi
1945 eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949
1950 } # ac_fn_c_check_decl
1951 cat >config.log <<_ACEOF
1952 This file contains any messages produced by compilers while
1953 running configure, to aid debugging if configure makes a mistake.
1954
1955 It was created by libctf $as_me 1.2.0, which was
1956 generated by GNU Autoconf 2.69. Invocation command line was
1957
1958 $ $0 $@
1959
1960 _ACEOF
1961 exec 5>>config.log
1962 {
1963 cat <<_ASUNAME
1964 ## --------- ##
1965 ## Platform. ##
1966 ## --------- ##
1967
1968 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1969 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1970 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1971 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1972 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1973
1974 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1975 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1976
1977 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1978 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1979 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1980 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1981 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1982 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1983 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1984
1985 _ASUNAME
1986
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1989 do
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 $as_echo "PATH: $as_dir"
1993 done
1994 IFS=$as_save_IFS
1995
1996 } >&5
1997
1998 cat >&5 <<_ACEOF
1999
2000
2001 ## ----------- ##
2002 ## Core tests. ##
2003 ## ----------- ##
2004
2005 _ACEOF
2006
2007
2008 # Keep a trace of the command line.
2009 # Strip out --no-create and --no-recursion so they do not pile up.
2010 # Strip out --silent because we don't want to record it for future runs.
2011 # Also quote any args containing shell meta-characters.
2012 # Make two passes to allow for proper duplicate-argument suppression.
2013 ac_configure_args=
2014 ac_configure_args0=
2015 ac_configure_args1=
2016 ac_must_keep_next=false
2017 for ac_pass in 1 2
2018 do
2019 for ac_arg
2020 do
2021 case $ac_arg in
2022 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2024 | -silent | --silent | --silen | --sile | --sil)
2025 continue ;;
2026 *\'*)
2027 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2028 esac
2029 case $ac_pass in
2030 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2031 2)
2032 as_fn_append ac_configure_args1 " '$ac_arg'"
2033 if test $ac_must_keep_next = true; then
2034 ac_must_keep_next=false # Got value, back to normal.
2035 else
2036 case $ac_arg in
2037 *=* | --config-cache | -C | -disable-* | --disable-* \
2038 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2039 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2040 | -with-* | --with-* | -without-* | --without-* | --x)
2041 case "$ac_configure_args0 " in
2042 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2043 esac
2044 ;;
2045 -* ) ac_must_keep_next=true ;;
2046 esac
2047 fi
2048 as_fn_append ac_configure_args " '$ac_arg'"
2049 ;;
2050 esac
2051 done
2052 done
2053 { ac_configure_args0=; unset ac_configure_args0;}
2054 { ac_configure_args1=; unset ac_configure_args1;}
2055
2056 # When interrupted or exit'd, cleanup temporary files, and complete
2057 # config.log. We remove comments because anyway the quotes in there
2058 # would cause problems or look ugly.
2059 # WARNING: Use '\'' to represent an apostrophe within the trap.
2060 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2061 trap 'exit_status=$?
2062 # Save into config.log some information that might help in debugging.
2063 {
2064 echo
2065
2066 $as_echo "## ---------------- ##
2067 ## Cache variables. ##
2068 ## ---------------- ##"
2069 echo
2070 # The following way of writing the cache mishandles newlines in values,
2071 (
2072 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2073 eval ac_val=\$$ac_var
2074 case $ac_val in #(
2075 *${as_nl}*)
2076 case $ac_var in #(
2077 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2078 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2079 esac
2080 case $ac_var in #(
2081 _ | IFS | as_nl) ;; #(
2082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2083 *) { eval $ac_var=; unset $ac_var;} ;;
2084 esac ;;
2085 esac
2086 done
2087 (set) 2>&1 |
2088 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2089 *${as_nl}ac_space=\ *)
2090 sed -n \
2091 "s/'\''/'\''\\\\'\'''\''/g;
2092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2093 ;; #(
2094 *)
2095 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2096 ;;
2097 esac |
2098 sort
2099 )
2100 echo
2101
2102 $as_echo "## ----------------- ##
2103 ## Output variables. ##
2104 ## ----------------- ##"
2105 echo
2106 for ac_var in $ac_subst_vars
2107 do
2108 eval ac_val=\$$ac_var
2109 case $ac_val in
2110 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111 esac
2112 $as_echo "$ac_var='\''$ac_val'\''"
2113 done | sort
2114 echo
2115
2116 if test -n "$ac_subst_files"; then
2117 $as_echo "## ------------------- ##
2118 ## File substitutions. ##
2119 ## ------------------- ##"
2120 echo
2121 for ac_var in $ac_subst_files
2122 do
2123 eval ac_val=\$$ac_var
2124 case $ac_val in
2125 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2126 esac
2127 $as_echo "$ac_var='\''$ac_val'\''"
2128 done | sort
2129 echo
2130 fi
2131
2132 if test -s confdefs.h; then
2133 $as_echo "## ----------- ##
2134 ## confdefs.h. ##
2135 ## ----------- ##"
2136 echo
2137 cat confdefs.h
2138 echo
2139 fi
2140 test "$ac_signal" != 0 &&
2141 $as_echo "$as_me: caught signal $ac_signal"
2142 $as_echo "$as_me: exit $exit_status"
2143 } >&5
2144 rm -f core *.core core.conftest.* &&
2145 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2146 exit $exit_status
2147 ' 0
2148 for ac_signal in 1 2 13 15; do
2149 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2150 done
2151 ac_signal=0
2152
2153 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2154 rm -f -r conftest* confdefs.h
2155
2156 $as_echo "/* confdefs.h */" > confdefs.h
2157
2158 # Predefined preprocessor variables.
2159
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_NAME "$PACKAGE_NAME"
2162 _ACEOF
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2166 _ACEOF
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2170 _ACEOF
2171
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_STRING "$PACKAGE_STRING"
2174 _ACEOF
2175
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2178 _ACEOF
2179
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_URL "$PACKAGE_URL"
2182 _ACEOF
2183
2184
2185 # Let the site file select an alternate cache file if it wants to.
2186 # Prefer an explicitly selected file to automatically selected ones.
2187 ac_site_file1=NONE
2188 ac_site_file2=NONE
2189 if test -n "$CONFIG_SITE"; then
2190 # We do not want a PATH search for config.site.
2191 case $CONFIG_SITE in #((
2192 -*) ac_site_file1=./$CONFIG_SITE;;
2193 */*) ac_site_file1=$CONFIG_SITE;;
2194 *) ac_site_file1=./$CONFIG_SITE;;
2195 esac
2196 elif test "x$prefix" != xNONE; then
2197 ac_site_file1=$prefix/share/config.site
2198 ac_site_file2=$prefix/etc/config.site
2199 else
2200 ac_site_file1=$ac_default_prefix/share/config.site
2201 ac_site_file2=$ac_default_prefix/etc/config.site
2202 fi
2203 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2204 do
2205 test "x$ac_site_file" = xNONE && continue
2206 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2208 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2209 sed 's/^/| /' "$ac_site_file" >&5
2210 . "$ac_site_file" \
2211 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2213 as_fn_error $? "failed to load site script $ac_site_file
2214 See \`config.log' for more details" "$LINENO" 5; }
2215 fi
2216 done
2217
2218 if test -r "$cache_file"; then
2219 # Some versions of bash will fail to source /dev/null (special files
2220 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2221 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2223 $as_echo "$as_me: loading cache $cache_file" >&6;}
2224 case $cache_file in
2225 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2226 *) . "./$cache_file";;
2227 esac
2228 fi
2229 else
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2231 $as_echo "$as_me: creating cache $cache_file" >&6;}
2232 >$cache_file
2233 fi
2234
2235 as_fn_append ac_header_list " stdlib.h"
2236 as_fn_append ac_header_list " unistd.h"
2237 as_fn_append ac_header_list " sys/param.h"
2238 as_fn_append ac_func_list " qsort_r"
2239 # Check that the precious variables saved in the cache have kept the same
2240 # value.
2241 ac_cache_corrupted=false
2242 for ac_var in $ac_precious_vars; do
2243 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2244 eval ac_new_set=\$ac_env_${ac_var}_set
2245 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2246 eval ac_new_val=\$ac_env_${ac_var}_value
2247 case $ac_old_set,$ac_new_set in
2248 set,)
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2250 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2251 ac_cache_corrupted=: ;;
2252 ,set)
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2254 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2255 ac_cache_corrupted=: ;;
2256 ,);;
2257 *)
2258 if test "x$ac_old_val" != "x$ac_new_val"; then
2259 # differences in whitespace do not lead to failure.
2260 ac_old_val_w=`echo x $ac_old_val`
2261 ac_new_val_w=`echo x $ac_new_val`
2262 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2264 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2265 ac_cache_corrupted=:
2266 else
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2268 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2269 eval $ac_var=\$ac_old_val
2270 fi
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2272 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2274 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2275 fi;;
2276 esac
2277 # Pass precious variables to config.status.
2278 if test "$ac_new_set" = set; then
2279 case $ac_new_val in
2280 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2281 *) ac_arg=$ac_var=$ac_new_val ;;
2282 esac
2283 case " $ac_configure_args " in
2284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2285 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2286 esac
2287 fi
2288 done
2289 if $ac_cache_corrupted; then
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2293 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2294 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2295 fi
2296 ## -------------------- ##
2297 ## Main body of script. ##
2298 ## -------------------- ##
2299
2300 ac_ext=c
2301 ac_cpp='$CPP $CPPFLAGS'
2302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2305
2306
2307
2308
2309
2310
2311 ac_aux_dir=
2312 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2313 if test -f "$ac_dir/install-sh"; then
2314 ac_aux_dir=$ac_dir
2315 ac_install_sh="$ac_aux_dir/install-sh -c"
2316 break
2317 elif test -f "$ac_dir/install.sh"; then
2318 ac_aux_dir=$ac_dir
2319 ac_install_sh="$ac_aux_dir/install.sh -c"
2320 break
2321 elif test -f "$ac_dir/shtool"; then
2322 ac_aux_dir=$ac_dir
2323 ac_install_sh="$ac_aux_dir/shtool install -c"
2324 break
2325 fi
2326 done
2327 if test -z "$ac_aux_dir"; then
2328 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2329 fi
2330
2331 # These three variables are undocumented and unsupported,
2332 # and are intended to be withdrawn in a future Autoconf release.
2333 # They can cause serious problems if a builder's source tree is in a directory
2334 # whose full name contains unusual characters.
2335 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2336 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2337 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2338
2339
2340 # Make sure we can run config.sub.
2341 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2342 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2343
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2345 $as_echo_n "checking build system type... " >&6; }
2346 if ${ac_cv_build+:} false; then :
2347 $as_echo_n "(cached) " >&6
2348 else
2349 ac_build_alias=$build_alias
2350 test "x$ac_build_alias" = x &&
2351 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2352 test "x$ac_build_alias" = x &&
2353 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2354 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2355 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2356
2357 fi
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2359 $as_echo "$ac_cv_build" >&6; }
2360 case $ac_cv_build in
2361 *-*-*) ;;
2362 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2363 esac
2364 build=$ac_cv_build
2365 ac_save_IFS=$IFS; IFS='-'
2366 set x $ac_cv_build
2367 shift
2368 build_cpu=$1
2369 build_vendor=$2
2370 shift; shift
2371 # Remember, the first character of IFS is used to create $*,
2372 # except with old shells:
2373 build_os=$*
2374 IFS=$ac_save_IFS
2375 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2376
2377
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2379 $as_echo_n "checking host system type... " >&6; }
2380 if ${ac_cv_host+:} false; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 if test "x$host_alias" = x; then
2384 ac_cv_host=$ac_cv_build
2385 else
2386 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2387 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2388 fi
2389
2390 fi
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2392 $as_echo "$ac_cv_host" >&6; }
2393 case $ac_cv_host in
2394 *-*-*) ;;
2395 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2396 esac
2397 host=$ac_cv_host
2398 ac_save_IFS=$IFS; IFS='-'
2399 set x $ac_cv_host
2400 shift
2401 host_cpu=$1
2402 host_vendor=$2
2403 shift; shift
2404 # Remember, the first character of IFS is used to create $*,
2405 # except with old shells:
2406 host_os=$*
2407 IFS=$ac_save_IFS
2408 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2409
2410
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2412 $as_echo_n "checking target system type... " >&6; }
2413 if ${ac_cv_target+:} false; then :
2414 $as_echo_n "(cached) " >&6
2415 else
2416 if test "x$target_alias" = x; then
2417 ac_cv_target=$ac_cv_host
2418 else
2419 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2420 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2421 fi
2422
2423 fi
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2425 $as_echo "$ac_cv_target" >&6; }
2426 case $ac_cv_target in
2427 *-*-*) ;;
2428 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2429 esac
2430 target=$ac_cv_target
2431 ac_save_IFS=$IFS; IFS='-'
2432 set x $ac_cv_target
2433 shift
2434 target_cpu=$1
2435 target_vendor=$2
2436 shift; shift
2437 # Remember, the first character of IFS is used to create $*,
2438 # except with old shells:
2439 target_os=$*
2440 IFS=$ac_save_IFS
2441 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2442
2443
2444 # The aliases save the names the user supplied, while $host etc.
2445 # will get canonicalized.
2446 test -n "$target_alias" &&
2447 test "$program_prefix$program_suffix$program_transform_name" = \
2448 NONENONEs,x,x, &&
2449 program_prefix=${target_alias}-
2450 # Expand $ac_aux_dir to an absolute path.
2451 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2452
2453 ac_ext=c
2454 ac_cpp='$CPP $CPPFLAGS'
2455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2458 if test -n "$ac_tool_prefix"; then
2459 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2460 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2462 $as_echo_n "checking for $ac_word... " >&6; }
2463 if ${ac_cv_prog_CC+:} false; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC="$CC" # Let the user override the test.
2468 else
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
2475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2476 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 break 2
2479 fi
2480 done
2481 done
2482 IFS=$as_save_IFS
2483
2484 fi
2485 fi
2486 CC=$ac_cv_prog_CC
2487 if test -n "$CC"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2489 $as_echo "$CC" >&6; }
2490 else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492 $as_echo "no" >&6; }
2493 fi
2494
2495
2496 fi
2497 if test -z "$ac_cv_prog_CC"; then
2498 ac_ct_CC=$CC
2499 # Extract the first word of "gcc", so it can be a program name with args.
2500 set dummy gcc; ac_word=$2
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2502 $as_echo_n "checking for $ac_word... " >&6; }
2503 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 if test -n "$ac_ct_CC"; then
2507 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2508 else
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 for as_dir in $PATH
2511 do
2512 IFS=$as_save_IFS
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2516 ac_cv_prog_ac_ct_CC="gcc"
2517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 break 2
2519 fi
2520 done
2521 done
2522 IFS=$as_save_IFS
2523
2524 fi
2525 fi
2526 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2527 if test -n "$ac_ct_CC"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2529 $as_echo "$ac_ct_CC" >&6; }
2530 else
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2532 $as_echo "no" >&6; }
2533 fi
2534
2535 if test "x$ac_ct_CC" = x; then
2536 CC=""
2537 else
2538 case $cross_compiling:$ac_tool_warned in
2539 yes:)
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2542 ac_tool_warned=yes ;;
2543 esac
2544 CC=$ac_ct_CC
2545 fi
2546 else
2547 CC="$ac_cv_prog_CC"
2548 fi
2549
2550 if test -z "$CC"; then
2551 if test -n "$ac_tool_prefix"; then
2552 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2553 set dummy ${ac_tool_prefix}cc; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if ${ac_cv_prog_CC+:} false; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 if test -n "$CC"; then
2560 ac_cv_prog_CC="$CC" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569 ac_cv_prog_CC="${ac_tool_prefix}cc"
2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 break 2
2572 fi
2573 done
2574 done
2575 IFS=$as_save_IFS
2576
2577 fi
2578 fi
2579 CC=$ac_cv_prog_CC
2580 if test -n "$CC"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2582 $as_echo "$CC" >&6; }
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2586 fi
2587
2588
2589 fi
2590 fi
2591 if test -z "$CC"; then
2592 # Extract the first word of "cc", so it can be a program name with args.
2593 set dummy cc; ac_word=$2
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2595 $as_echo_n "checking for $ac_word... " >&6; }
2596 if ${ac_cv_prog_CC+:} false; then :
2597 $as_echo_n "(cached) " >&6
2598 else
2599 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
2601 else
2602 ac_prog_rejected=no
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2605 do
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2611 ac_prog_rejected=yes
2612 continue
2613 fi
2614 ac_cv_prog_CC="cc"
2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2617 fi
2618 done
2619 done
2620 IFS=$as_save_IFS
2621
2622 if test $ac_prog_rejected = yes; then
2623 # We found a bogon in the path, so make sure we never use it.
2624 set dummy $ac_cv_prog_CC
2625 shift
2626 if test $# != 0; then
2627 # We chose a different compiler from the bogus one.
2628 # However, it has the same basename, so the bogon will be chosen
2629 # first if we set CC to just the basename; use the full file name.
2630 shift
2631 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2632 fi
2633 fi
2634 fi
2635 fi
2636 CC=$ac_cv_prog_CC
2637 if test -n "$CC"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2639 $as_echo "$CC" >&6; }
2640 else
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642 $as_echo "no" >&6; }
2643 fi
2644
2645
2646 fi
2647 if test -z "$CC"; then
2648 if test -n "$ac_tool_prefix"; then
2649 for ac_prog in cl.exe
2650 do
2651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if ${ac_cv_prog_CC+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 if test -n "$CC"; then
2659 ac_cv_prog_CC="$CC" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2671 fi
2672 done
2673 done
2674 IFS=$as_save_IFS
2675
2676 fi
2677 fi
2678 CC=$ac_cv_prog_CC
2679 if test -n "$CC"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2681 $as_echo "$CC" >&6; }
2682 else
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2685 fi
2686
2687
2688 test -n "$CC" && break
2689 done
2690 fi
2691 if test -z "$CC"; then
2692 ac_ct_CC=$CC
2693 for ac_prog in cl.exe
2694 do
2695 # Extract the first word of "$ac_prog", so it can be a program name with args.
2696 set dummy $ac_prog; ac_word=$2
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698 $as_echo_n "checking for $ac_word... " >&6; }
2699 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2700 $as_echo_n "(cached) " >&6
2701 else
2702 if test -n "$ac_ct_CC"; then
2703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2712 ac_cv_prog_ac_ct_CC="$ac_prog"
2713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 break 2
2715 fi
2716 done
2717 done
2718 IFS=$as_save_IFS
2719
2720 fi
2721 fi
2722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2723 if test -n "$ac_ct_CC"; then
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2725 $as_echo "$ac_ct_CC" >&6; }
2726 else
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 $as_echo "no" >&6; }
2729 fi
2730
2731
2732 test -n "$ac_ct_CC" && break
2733 done
2734
2735 if test "x$ac_ct_CC" = x; then
2736 CC=""
2737 else
2738 case $cross_compiling:$ac_tool_warned in
2739 yes:)
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2742 ac_tool_warned=yes ;;
2743 esac
2744 CC=$ac_ct_CC
2745 fi
2746 fi
2747
2748 fi
2749
2750
2751 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2753 as_fn_error $? "no acceptable C compiler found in \$PATH
2754 See \`config.log' for more details" "$LINENO" 5; }
2755
2756 # Provide some information about the compiler.
2757 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2758 set X $ac_compile
2759 ac_compiler=$2
2760 for ac_option in --version -v -V -qversion; do
2761 { { ac_try="$ac_compiler $ac_option >&5"
2762 case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2765 esac
2766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2767 $as_echo "$ac_try_echo"; } >&5
2768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2769 ac_status=$?
2770 if test -s conftest.err; then
2771 sed '10a\
2772 ... rest of stderr output deleted ...
2773 10q' conftest.err >conftest.er1
2774 cat conftest.er1 >&5
2775 fi
2776 rm -f conftest.er1 conftest.err
2777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2778 test $ac_status = 0; }
2779 done
2780
2781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2782 /* end confdefs.h. */
2783
2784 int
2785 main ()
2786 {
2787
2788 ;
2789 return 0;
2790 }
2791 _ACEOF
2792 ac_clean_files_save=$ac_clean_files
2793 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2794 # Try to create an executable without -o first, disregard a.out.
2795 # It will help us diagnose broken compilers, and finding out an intuition
2796 # of exeext.
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2798 $as_echo_n "checking whether the C compiler works... " >&6; }
2799 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2800
2801 # The possible output files:
2802 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2803
2804 ac_rmfiles=
2805 for ac_file in $ac_files
2806 do
2807 case $ac_file in
2808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2809 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2810 esac
2811 done
2812 rm -f $ac_rmfiles
2813
2814 if { { ac_try="$ac_link_default"
2815 case "(($ac_try" in
2816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817 *) ac_try_echo=$ac_try;;
2818 esac
2819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2820 $as_echo "$ac_try_echo"; } >&5
2821 (eval "$ac_link_default") 2>&5
2822 ac_status=$?
2823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2824 test $ac_status = 0; }; then :
2825 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2826 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2827 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2828 # so that the user can short-circuit this test for compilers unknown to
2829 # Autoconf.
2830 for ac_file in $ac_files ''
2831 do
2832 test -f "$ac_file" || continue
2833 case $ac_file in
2834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2835 ;;
2836 [ab].out )
2837 # We found the default executable, but exeext='' is most
2838 # certainly right.
2839 break;;
2840 *.* )
2841 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2842 then :; else
2843 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2844 fi
2845 # We set ac_cv_exeext here because the later test for it is not
2846 # safe: cross compilers may not add the suffix if given an `-o'
2847 # argument, so we may need to know it at that point already.
2848 # Even if this section looks crufty: it has the advantage of
2849 # actually working.
2850 break;;
2851 * )
2852 break;;
2853 esac
2854 done
2855 test "$ac_cv_exeext" = no && ac_cv_exeext=
2856
2857 else
2858 ac_file=''
2859 fi
2860 if test -z "$ac_file"; then :
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2862 $as_echo "no" >&6; }
2863 $as_echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2865
2866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2868 as_fn_error 77 "C compiler cannot create executables
2869 See \`config.log' for more details" "$LINENO" 5; }
2870 else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2872 $as_echo "yes" >&6; }
2873 fi
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2875 $as_echo_n "checking for C compiler default output file name... " >&6; }
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2877 $as_echo "$ac_file" >&6; }
2878 ac_exeext=$ac_cv_exeext
2879
2880 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2881 ac_clean_files=$ac_clean_files_save
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2883 $as_echo_n "checking for suffix of executables... " >&6; }
2884 if { { ac_try="$ac_link"
2885 case "(($ac_try" in
2886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887 *) ac_try_echo=$ac_try;;
2888 esac
2889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2890 $as_echo "$ac_try_echo"; } >&5
2891 (eval "$ac_link") 2>&5
2892 ac_status=$?
2893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2894 test $ac_status = 0; }; then :
2895 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2896 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2897 # work properly (i.e., refer to `conftest.exe'), while it won't with
2898 # `rm'.
2899 for ac_file in conftest.exe conftest conftest.*; do
2900 test -f "$ac_file" || continue
2901 case $ac_file in
2902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2903 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2904 break;;
2905 * ) break;;
2906 esac
2907 done
2908 else
2909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2911 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2912 See \`config.log' for more details" "$LINENO" 5; }
2913 fi
2914 rm -f conftest conftest$ac_cv_exeext
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2916 $as_echo "$ac_cv_exeext" >&6; }
2917
2918 rm -f conftest.$ac_ext
2919 EXEEXT=$ac_cv_exeext
2920 ac_exeext=$EXEEXT
2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922 /* end confdefs.h. */
2923 #include <stdio.h>
2924 int
2925 main ()
2926 {
2927 FILE *f = fopen ("conftest.out", "w");
2928 return ferror (f) || fclose (f) != 0;
2929
2930 ;
2931 return 0;
2932 }
2933 _ACEOF
2934 ac_clean_files="$ac_clean_files conftest.out"
2935 # Check that the compiler produces executables we can run. If not, either
2936 # the compiler is broken, or we cross compile.
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2938 $as_echo_n "checking whether we are cross compiling... " >&6; }
2939 if test "$cross_compiling" != yes; then
2940 { { ac_try="$ac_link"
2941 case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944 esac
2945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2946 $as_echo "$ac_try_echo"; } >&5
2947 (eval "$ac_link") 2>&5
2948 ac_status=$?
2949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2950 test $ac_status = 0; }
2951 if { ac_try='./conftest$ac_cv_exeext'
2952 { { case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955 esac
2956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2957 $as_echo "$ac_try_echo"; } >&5
2958 (eval "$ac_try") 2>&5
2959 ac_status=$?
2960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2961 test $ac_status = 0; }; }; then
2962 cross_compiling=no
2963 else
2964 if test "$cross_compiling" = maybe; then
2965 cross_compiling=yes
2966 else
2967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969 as_fn_error $? "cannot run C compiled programs.
2970 If you meant to cross compile, use \`--host'.
2971 See \`config.log' for more details" "$LINENO" 5; }
2972 fi
2973 fi
2974 fi
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2976 $as_echo "$cross_compiling" >&6; }
2977
2978 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2979 ac_clean_files=$ac_clean_files_save
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2981 $as_echo_n "checking for suffix of object files... " >&6; }
2982 if ${ac_cv_objext+:} false; then :
2983 $as_echo_n "(cached) " >&6
2984 else
2985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986 /* end confdefs.h. */
2987
2988 int
2989 main ()
2990 {
2991
2992 ;
2993 return 0;
2994 }
2995 _ACEOF
2996 rm -f conftest.o conftest.obj
2997 if { { ac_try="$ac_compile"
2998 case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001 esac
3002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3003 $as_echo "$ac_try_echo"; } >&5
3004 (eval "$ac_compile") 2>&5
3005 ac_status=$?
3006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007 test $ac_status = 0; }; then :
3008 for ac_file in conftest.o conftest.obj conftest.*; do
3009 test -f "$ac_file" || continue;
3010 case $ac_file in
3011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3012 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3013 break;;
3014 esac
3015 done
3016 else
3017 $as_echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3019
3020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022 as_fn_error $? "cannot compute suffix of object files: cannot compile
3023 See \`config.log' for more details" "$LINENO" 5; }
3024 fi
3025 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3026 fi
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3028 $as_echo "$ac_cv_objext" >&6; }
3029 OBJEXT=$ac_cv_objext
3030 ac_objext=$OBJEXT
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3032 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3033 if ${ac_cv_c_compiler_gnu+:} false; then :
3034 $as_echo_n "(cached) " >&6
3035 else
3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3037 /* end confdefs.h. */
3038
3039 int
3040 main ()
3041 {
3042 #ifndef __GNUC__
3043 choke me
3044 #endif
3045
3046 ;
3047 return 0;
3048 }
3049 _ACEOF
3050 if ac_fn_c_try_compile "$LINENO"; then :
3051 ac_compiler_gnu=yes
3052 else
3053 ac_compiler_gnu=no
3054 fi
3055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3057
3058 fi
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3060 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3061 if test $ac_compiler_gnu = yes; then
3062 GCC=yes
3063 else
3064 GCC=
3065 fi
3066 ac_test_CFLAGS=${CFLAGS+set}
3067 ac_save_CFLAGS=$CFLAGS
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3069 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3070 if ${ac_cv_prog_cc_g+:} false; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 ac_save_c_werror_flag=$ac_c_werror_flag
3074 ac_c_werror_flag=yes
3075 ac_cv_prog_cc_g=no
3076 CFLAGS="-g"
3077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078 /* end confdefs.h. */
3079
3080 int
3081 main ()
3082 {
3083
3084 ;
3085 return 0;
3086 }
3087 _ACEOF
3088 if ac_fn_c_try_compile "$LINENO"; then :
3089 ac_cv_prog_cc_g=yes
3090 else
3091 CFLAGS=""
3092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3093 /* end confdefs.h. */
3094
3095 int
3096 main ()
3097 {
3098
3099 ;
3100 return 0;
3101 }
3102 _ACEOF
3103 if ac_fn_c_try_compile "$LINENO"; then :
3104
3105 else
3106 ac_c_werror_flag=$ac_save_c_werror_flag
3107 CFLAGS="-g"
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3110
3111 int
3112 main ()
3113 {
3114
3115 ;
3116 return 0;
3117 }
3118 _ACEOF
3119 if ac_fn_c_try_compile "$LINENO"; then :
3120 ac_cv_prog_cc_g=yes
3121 fi
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3123 fi
3124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125 fi
3126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127 ac_c_werror_flag=$ac_save_c_werror_flag
3128 fi
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3130 $as_echo "$ac_cv_prog_cc_g" >&6; }
3131 if test "$ac_test_CFLAGS" = set; then
3132 CFLAGS=$ac_save_CFLAGS
3133 elif test $ac_cv_prog_cc_g = yes; then
3134 if test "$GCC" = yes; then
3135 CFLAGS="-g -O2"
3136 else
3137 CFLAGS="-g"
3138 fi
3139 else
3140 if test "$GCC" = yes; then
3141 CFLAGS="-O2"
3142 else
3143 CFLAGS=
3144 fi
3145 fi
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3147 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3148 if ${ac_cv_prog_cc_c89+:} false; then :
3149 $as_echo_n "(cached) " >&6
3150 else
3151 ac_cv_prog_cc_c89=no
3152 ac_save_CC=$CC
3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3155 #include <stdarg.h>
3156 #include <stdio.h>
3157 struct stat;
3158 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3159 struct buf { int x; };
3160 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3161 static char *e (p, i)
3162 char **p;
3163 int i;
3164 {
3165 return p[i];
3166 }
3167 static char *f (char * (*g) (char **, int), char **p, ...)
3168 {
3169 char *s;
3170 va_list v;
3171 va_start (v,p);
3172 s = g (p, va_arg (v,int));
3173 va_end (v);
3174 return s;
3175 }
3176
3177 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3178 function prototypes and stuff, but not '\xHH' hex character constants.
3179 These don't provoke an error unfortunately, instead are silently treated
3180 as 'x'. The following induces an error, until -std is added to get
3181 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3182 array size at least. It's necessary to write '\x00'==0 to get something
3183 that's true only with -std. */
3184 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3185
3186 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3187 inside strings and character constants. */
3188 #define FOO(x) 'x'
3189 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3190
3191 int test (int i, double x);
3192 struct s1 {int (*f) (int a);};
3193 struct s2 {int (*f) (double a);};
3194 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3195 int argc;
3196 char **argv;
3197 int
3198 main ()
3199 {
3200 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3201 ;
3202 return 0;
3203 }
3204 _ACEOF
3205 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3206 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3207 do
3208 CC="$ac_save_CC $ac_arg"
3209 if ac_fn_c_try_compile "$LINENO"; then :
3210 ac_cv_prog_cc_c89=$ac_arg
3211 fi
3212 rm -f core conftest.err conftest.$ac_objext
3213 test "x$ac_cv_prog_cc_c89" != "xno" && break
3214 done
3215 rm -f conftest.$ac_ext
3216 CC=$ac_save_CC
3217
3218 fi
3219 # AC_CACHE_VAL
3220 case "x$ac_cv_prog_cc_c89" in
3221 x)
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3223 $as_echo "none needed" >&6; } ;;
3224 xno)
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3226 $as_echo "unsupported" >&6; } ;;
3227 *)
3228 CC="$CC $ac_cv_prog_cc_c89"
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3230 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3231 esac
3232 if test "x$ac_cv_prog_cc_c89" != xno; then :
3233
3234 fi
3235
3236 ac_ext=c
3237 ac_cpp='$CPP $CPPFLAGS'
3238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241
3242 ac_ext=c
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3248 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3249 if ${am_cv_prog_cc_c_o+:} false; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3254
3255 int
3256 main ()
3257 {
3258
3259 ;
3260 return 0;
3261 }
3262 _ACEOF
3263 # Make sure it works both with $CC and with simple cc.
3264 # Following AC_PROG_CC_C_O, we do the test twice because some
3265 # compilers refuse to overwrite an existing .o file with -o,
3266 # though they will create one.
3267 am_cv_prog_cc_c_o=yes
3268 for am_i in 1 2; do
3269 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3270 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } \
3274 && test -f conftest2.$ac_objext; then
3275 : OK
3276 else
3277 am_cv_prog_cc_c_o=no
3278 break
3279 fi
3280 done
3281 rm -f core conftest*
3282 unset am_i
3283 fi
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3285 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3286 if test "$am_cv_prog_cc_c_o" != yes; then
3287 # Losing compiler, so override with the script.
3288 # FIXME: It is wrong to rewrite CC.
3289 # But if we don't then we get into trouble of one sort or another.
3290 # A longer-term fix would be to have automake use am__CC in this case,
3291 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3292 CC="$am_aux_dir/compile $CC"
3293 fi
3294 ac_ext=c
3295 ac_cpp='$CPP $CPPFLAGS'
3296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3299
3300
3301
3302 ac_ext=c
3303 ac_cpp='$CPP $CPPFLAGS'
3304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3308 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3309 # On Suns, sometimes $CPP names a directory.
3310 if test -n "$CPP" && test -d "$CPP"; then
3311 CPP=
3312 fi
3313 if test -z "$CPP"; then
3314 if ${ac_cv_prog_CPP+:} false; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 # Double quotes because CPP needs to be expanded
3318 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3319 do
3320 ac_preproc_ok=false
3321 for ac_c_preproc_warn_flag in '' yes
3322 do
3323 # Use a header file that comes with gcc, so configuring glibc
3324 # with a fresh cross-compiler works.
3325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3326 # <limits.h> exists even on freestanding compilers.
3327 # On the NeXT, cc -E runs the code through the compiler's parser,
3328 # not just through cpp. "Syntax error" is here to catch this case.
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3331 #ifdef __STDC__
3332 # include <limits.h>
3333 #else
3334 # include <assert.h>
3335 #endif
3336 Syntax error
3337 _ACEOF
3338 if ac_fn_c_try_cpp "$LINENO"; then :
3339
3340 else
3341 # Broken: fails on valid input.
3342 continue
3343 fi
3344 rm -f conftest.err conftest.i conftest.$ac_ext
3345
3346 # OK, works on sane cases. Now check whether nonexistent headers
3347 # can be detected and how.
3348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h. */
3350 #include <ac_nonexistent.h>
3351 _ACEOF
3352 if ac_fn_c_try_cpp "$LINENO"; then :
3353 # Broken: success on invalid input.
3354 continue
3355 else
3356 # Passes both tests.
3357 ac_preproc_ok=:
3358 break
3359 fi
3360 rm -f conftest.err conftest.i conftest.$ac_ext
3361
3362 done
3363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3364 rm -f conftest.i conftest.err conftest.$ac_ext
3365 if $ac_preproc_ok; then :
3366 break
3367 fi
3368
3369 done
3370 ac_cv_prog_CPP=$CPP
3371
3372 fi
3373 CPP=$ac_cv_prog_CPP
3374 else
3375 ac_cv_prog_CPP=$CPP
3376 fi
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3378 $as_echo "$CPP" >&6; }
3379 ac_preproc_ok=false
3380 for ac_c_preproc_warn_flag in '' yes
3381 do
3382 # Use a header file that comes with gcc, so configuring glibc
3383 # with a fresh cross-compiler works.
3384 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3385 # <limits.h> exists even on freestanding compilers.
3386 # On the NeXT, cc -E runs the code through the compiler's parser,
3387 # not just through cpp. "Syntax error" is here to catch this case.
3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h. */
3390 #ifdef __STDC__
3391 # include <limits.h>
3392 #else
3393 # include <assert.h>
3394 #endif
3395 Syntax error
3396 _ACEOF
3397 if ac_fn_c_try_cpp "$LINENO"; then :
3398
3399 else
3400 # Broken: fails on valid input.
3401 continue
3402 fi
3403 rm -f conftest.err conftest.i conftest.$ac_ext
3404
3405 # OK, works on sane cases. Now check whether nonexistent headers
3406 # can be detected and how.
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3409 #include <ac_nonexistent.h>
3410 _ACEOF
3411 if ac_fn_c_try_cpp "$LINENO"; then :
3412 # Broken: success on invalid input.
3413 continue
3414 else
3415 # Passes both tests.
3416 ac_preproc_ok=:
3417 break
3418 fi
3419 rm -f conftest.err conftest.i conftest.$ac_ext
3420
3421 done
3422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3423 rm -f conftest.i conftest.err conftest.$ac_ext
3424 if $ac_preproc_ok; then :
3425
3426 else
3427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3429 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3430 See \`config.log' for more details" "$LINENO" 5; }
3431 fi
3432
3433 ac_ext=c
3434 ac_cpp='$CPP $CPPFLAGS'
3435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438
3439
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3441 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3442 if ${ac_cv_path_GREP+:} false; then :
3443 $as_echo_n "(cached) " >&6
3444 else
3445 if test -z "$GREP"; then
3446 ac_path_GREP_found=false
3447 # Loop through the user's path and test for each of PROGNAME-LIST
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3450 do
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
3453 for ac_prog in grep ggrep; do
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3456 as_fn_executable_p "$ac_path_GREP" || continue
3457 # Check for GNU ac_path_GREP and select it if it is found.
3458 # Check for GNU $ac_path_GREP
3459 case `"$ac_path_GREP" --version 2>&1` in
3460 *GNU*)
3461 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3462 *)
3463 ac_count=0
3464 $as_echo_n 0123456789 >"conftest.in"
3465 while :
3466 do
3467 cat "conftest.in" "conftest.in" >"conftest.tmp"
3468 mv "conftest.tmp" "conftest.in"
3469 cp "conftest.in" "conftest.nl"
3470 $as_echo 'GREP' >> "conftest.nl"
3471 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3472 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3473 as_fn_arith $ac_count + 1 && ac_count=$as_val
3474 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3475 # Best one so far, save it but keep looking for a better one
3476 ac_cv_path_GREP="$ac_path_GREP"
3477 ac_path_GREP_max=$ac_count
3478 fi
3479 # 10*(2^10) chars as input seems more than enough
3480 test $ac_count -gt 10 && break
3481 done
3482 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3483 esac
3484
3485 $ac_path_GREP_found && break 3
3486 done
3487 done
3488 done
3489 IFS=$as_save_IFS
3490 if test -z "$ac_cv_path_GREP"; then
3491 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3492 fi
3493 else
3494 ac_cv_path_GREP=$GREP
3495 fi
3496
3497 fi
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3499 $as_echo "$ac_cv_path_GREP" >&6; }
3500 GREP="$ac_cv_path_GREP"
3501
3502
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3504 $as_echo_n "checking for egrep... " >&6; }
3505 if ${ac_cv_path_EGREP+:} false; then :
3506 $as_echo_n "(cached) " >&6
3507 else
3508 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3509 then ac_cv_path_EGREP="$GREP -E"
3510 else
3511 if test -z "$EGREP"; then
3512 ac_path_EGREP_found=false
3513 # Loop through the user's path and test for each of PROGNAME-LIST
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3516 do
3517 IFS=$as_save_IFS
3518 test -z "$as_dir" && as_dir=.
3519 for ac_prog in egrep; do
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3522 as_fn_executable_p "$ac_path_EGREP" || continue
3523 # Check for GNU ac_path_EGREP and select it if it is found.
3524 # Check for GNU $ac_path_EGREP
3525 case `"$ac_path_EGREP" --version 2>&1` in
3526 *GNU*)
3527 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3528 *)
3529 ac_count=0
3530 $as_echo_n 0123456789 >"conftest.in"
3531 while :
3532 do
3533 cat "conftest.in" "conftest.in" >"conftest.tmp"
3534 mv "conftest.tmp" "conftest.in"
3535 cp "conftest.in" "conftest.nl"
3536 $as_echo 'EGREP' >> "conftest.nl"
3537 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3539 as_fn_arith $ac_count + 1 && ac_count=$as_val
3540 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3541 # Best one so far, save it but keep looking for a better one
3542 ac_cv_path_EGREP="$ac_path_EGREP"
3543 ac_path_EGREP_max=$ac_count
3544 fi
3545 # 10*(2^10) chars as input seems more than enough
3546 test $ac_count -gt 10 && break
3547 done
3548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3549 esac
3550
3551 $ac_path_EGREP_found && break 3
3552 done
3553 done
3554 done
3555 IFS=$as_save_IFS
3556 if test -z "$ac_cv_path_EGREP"; then
3557 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3558 fi
3559 else
3560 ac_cv_path_EGREP=$EGREP
3561 fi
3562
3563 fi
3564 fi
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3566 $as_echo "$ac_cv_path_EGREP" >&6; }
3567 EGREP="$ac_cv_path_EGREP"
3568
3569
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3571 $as_echo_n "checking for ANSI C header files... " >&6; }
3572 if ${ac_cv_header_stdc+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3577 #include <stdlib.h>
3578 #include <stdarg.h>
3579 #include <string.h>
3580 #include <float.h>
3581
3582 int
3583 main ()
3584 {
3585
3586 ;
3587 return 0;
3588 }
3589 _ACEOF
3590 if ac_fn_c_try_compile "$LINENO"; then :
3591 ac_cv_header_stdc=yes
3592 else
3593 ac_cv_header_stdc=no
3594 fi
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596
3597 if test $ac_cv_header_stdc = yes; then
3598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3601 #include <string.h>
3602
3603 _ACEOF
3604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3605 $EGREP "memchr" >/dev/null 2>&1; then :
3606
3607 else
3608 ac_cv_header_stdc=no
3609 fi
3610 rm -f conftest*
3611
3612 fi
3613
3614 if test $ac_cv_header_stdc = yes; then
3615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3618 #include <stdlib.h>
3619
3620 _ACEOF
3621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3622 $EGREP "free" >/dev/null 2>&1; then :
3623
3624 else
3625 ac_cv_header_stdc=no
3626 fi
3627 rm -f conftest*
3628
3629 fi
3630
3631 if test $ac_cv_header_stdc = yes; then
3632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3633 if test "$cross_compiling" = yes; then :
3634 :
3635 else
3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h. */
3638 #include <ctype.h>
3639 #include <stdlib.h>
3640 #if ((' ' & 0x0FF) == 0x020)
3641 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3642 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3643 #else
3644 # define ISLOWER(c) \
3645 (('a' <= (c) && (c) <= 'i') \
3646 || ('j' <= (c) && (c) <= 'r') \
3647 || ('s' <= (c) && (c) <= 'z'))
3648 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3649 #endif
3650
3651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3652 int
3653 main ()
3654 {
3655 int i;
3656 for (i = 0; i < 256; i++)
3657 if (XOR (islower (i), ISLOWER (i))
3658 || toupper (i) != TOUPPER (i))
3659 return 2;
3660 return 0;
3661 }
3662 _ACEOF
3663 if ac_fn_c_try_run "$LINENO"; then :
3664
3665 else
3666 ac_cv_header_stdc=no
3667 fi
3668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3669 conftest.$ac_objext conftest.beam conftest.$ac_ext
3670 fi
3671
3672 fi
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3675 $as_echo "$ac_cv_header_stdc" >&6; }
3676 if test $ac_cv_header_stdc = yes; then
3677
3678 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3679
3680 fi
3681
3682 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3683 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3684 inttypes.h stdint.h unistd.h
3685 do :
3686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3687 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3688 "
3689 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3690 cat >>confdefs.h <<_ACEOF
3691 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3692 _ACEOF
3693
3694 fi
3695
3696 done
3697
3698
3699
3700 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3701 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3702 MINIX=yes
3703 else
3704 MINIX=
3705 fi
3706
3707
3708 if test "$MINIX" = yes; then
3709
3710 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3711
3712
3713 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3714
3715
3716 $as_echo "#define _MINIX 1" >>confdefs.h
3717
3718 fi
3719
3720
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3722 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3723 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3728
3729 # define __EXTENSIONS__ 1
3730 $ac_includes_default
3731 int
3732 main ()
3733 {
3734
3735 ;
3736 return 0;
3737 }
3738 _ACEOF
3739 if ac_fn_c_try_compile "$LINENO"; then :
3740 ac_cv_safe_to_define___extensions__=yes
3741 else
3742 ac_cv_safe_to_define___extensions__=no
3743 fi
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 fi
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3747 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3748 test $ac_cv_safe_to_define___extensions__ = yes &&
3749 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3750
3751 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3752
3753 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3754
3755 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3756
3757 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3758
3759
3760 am__api_version='1.15'
3761
3762 # Find a good install program. We prefer a C program (faster),
3763 # so one script is as good as another. But avoid the broken or
3764 # incompatible versions:
3765 # SysV /etc/install, /usr/sbin/install
3766 # SunOS /usr/etc/install
3767 # IRIX /sbin/install
3768 # AIX /bin/install
3769 # AmigaOS /C/install, which installs bootblocks on floppy discs
3770 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3771 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3772 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3773 # OS/2's system install, which has a completely different semantic
3774 # ./install, which can be erroneously created by make from ./install.sh.
3775 # Reject install programs that cannot install multiple files.
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3777 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3778 if test -z "$INSTALL"; then
3779 if ${ac_cv_path_install+:} false; then :
3780 $as_echo_n "(cached) " >&6
3781 else
3782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 for as_dir in $PATH
3784 do
3785 IFS=$as_save_IFS
3786 test -z "$as_dir" && as_dir=.
3787 # Account for people who put trailing slashes in PATH elements.
3788 case $as_dir/ in #((
3789 ./ | .// | /[cC]/* | \
3790 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3791 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3792 /usr/ucb/* ) ;;
3793 *)
3794 # OSF1 and SCO ODT 3.0 have their own names for install.
3795 # Don't use installbsd from OSF since it installs stuff as root
3796 # by default.
3797 for ac_prog in ginstall scoinst install; do
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3800 if test $ac_prog = install &&
3801 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3802 # AIX install. It has an incompatible calling convention.
3803 :
3804 elif test $ac_prog = install &&
3805 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3806 # program-specific install script used by HP pwplus--don't use.
3807 :
3808 else
3809 rm -rf conftest.one conftest.two conftest.dir
3810 echo one > conftest.one
3811 echo two > conftest.two
3812 mkdir conftest.dir
3813 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3814 test -s conftest.one && test -s conftest.two &&
3815 test -s conftest.dir/conftest.one &&
3816 test -s conftest.dir/conftest.two
3817 then
3818 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3819 break 3
3820 fi
3821 fi
3822 fi
3823 done
3824 done
3825 ;;
3826 esac
3827
3828 done
3829 IFS=$as_save_IFS
3830
3831 rm -rf conftest.one conftest.two conftest.dir
3832
3833 fi
3834 if test "${ac_cv_path_install+set}" = set; then
3835 INSTALL=$ac_cv_path_install
3836 else
3837 # As a last resort, use the slow shell script. Don't cache a
3838 # value for INSTALL within a source directory, because that will
3839 # break other packages using the cache if that directory is
3840 # removed, or if the value is a relative name.
3841 INSTALL=$ac_install_sh
3842 fi
3843 fi
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3845 $as_echo "$INSTALL" >&6; }
3846
3847 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3848 # It thinks the first close brace ends the variable substitution.
3849 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3850
3851 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3852
3853 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3854
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3856 $as_echo_n "checking whether build environment is sane... " >&6; }
3857 # Reject unsafe characters in $srcdir or the absolute working directory
3858 # name. Accept space and tab only in the latter.
3859 am_lf='
3860 '
3861 case `pwd` in
3862 *[\\\"\#\$\&\'\`$am_lf]*)
3863 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3864 esac
3865 case $srcdir in
3866 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3867 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3868 esac
3869
3870 # Do 'set' in a subshell so we don't clobber the current shell's
3871 # arguments. Must try -L first in case configure is actually a
3872 # symlink; some systems play weird games with the mod time of symlinks
3873 # (eg FreeBSD returns the mod time of the symlink's containing
3874 # directory).
3875 if (
3876 am_has_slept=no
3877 for am_try in 1 2; do
3878 echo "timestamp, slept: $am_has_slept" > conftest.file
3879 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3880 if test "$*" = "X"; then
3881 # -L didn't work.
3882 set X `ls -t "$srcdir/configure" conftest.file`
3883 fi
3884 if test "$*" != "X $srcdir/configure conftest.file" \
3885 && test "$*" != "X conftest.file $srcdir/configure"; then
3886
3887 # If neither matched, then we have a broken ls. This can happen
3888 # if, for instance, CONFIG_SHELL is bash and it inherits a
3889 # broken ls alias from the environment. This has actually
3890 # happened. Such a system could not be considered "sane".
3891 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3892 alias in your environment" "$LINENO" 5
3893 fi
3894 if test "$2" = conftest.file || test $am_try -eq 2; then
3895 break
3896 fi
3897 # Just in case.
3898 sleep 1
3899 am_has_slept=yes
3900 done
3901 test "$2" = conftest.file
3902 )
3903 then
3904 # Ok.
3905 :
3906 else
3907 as_fn_error $? "newly created file is older than distributed files!
3908 Check your system clock" "$LINENO" 5
3909 fi
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3911 $as_echo "yes" >&6; }
3912 # If we didn't sleep, we still need to ensure time stamps of config.status and
3913 # generated files are strictly newer.
3914 am_sleep_pid=
3915 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3916 ( sleep 1 ) &
3917 am_sleep_pid=$!
3918 fi
3919
3920 rm -f conftest.file
3921
3922 test "$program_prefix" != NONE &&
3923 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3924 # Use a double $ so make ignores it.
3925 test "$program_suffix" != NONE &&
3926 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3927 # Double any \ or $.
3928 # By default was `s,x,x', remove it if useless.
3929 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3930 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3931
3932 if test x"${MISSING+set}" != xset; then
3933 case $am_aux_dir in
3934 *\ * | *\ *)
3935 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3936 *)
3937 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3938 esac
3939 fi
3940 # Use eval to expand $SHELL
3941 if eval "$MISSING --is-lightweight"; then
3942 am_missing_run="$MISSING "
3943 else
3944 am_missing_run=
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3946 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3947 fi
3948
3949 if test x"${install_sh+set}" != xset; then
3950 case $am_aux_dir in
3951 *\ * | *\ *)
3952 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3953 *)
3954 install_sh="\${SHELL} $am_aux_dir/install-sh"
3955 esac
3956 fi
3957
3958 # Installed binaries are usually stripped using 'strip' when the user
3959 # run "make install-strip". However 'strip' might not be the right
3960 # tool to use in cross-compilation environments, therefore Automake
3961 # will honor the 'STRIP' environment variable to overrule this program.
3962 if test "$cross_compiling" != no; then
3963 if test -n "$ac_tool_prefix"; then
3964 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3965 set dummy ${ac_tool_prefix}strip; ac_word=$2
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967 $as_echo_n "checking for $ac_word... " >&6; }
3968 if ${ac_cv_prog_STRIP+:} false; then :
3969 $as_echo_n "(cached) " >&6
3970 else
3971 if test -n "$STRIP"; then
3972 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3973 else
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3976 do
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3983 break 2
3984 fi
3985 done
3986 done
3987 IFS=$as_save_IFS
3988
3989 fi
3990 fi
3991 STRIP=$ac_cv_prog_STRIP
3992 if test -n "$STRIP"; then
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3994 $as_echo "$STRIP" >&6; }
3995 else
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
3998 fi
3999
4000
4001 fi
4002 if test -z "$ac_cv_prog_STRIP"; then
4003 ac_ct_STRIP=$STRIP
4004 # Extract the first word of "strip", so it can be a program name with args.
4005 set dummy strip; ac_word=$2
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4009 $as_echo_n "(cached) " >&6
4010 else
4011 if test -n "$ac_ct_STRIP"; then
4012 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4016 do
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_prog_ac_ct_STRIP="strip"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 break 2
4024 fi
4025 done
4026 done
4027 IFS=$as_save_IFS
4028
4029 fi
4030 fi
4031 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4032 if test -n "$ac_ct_STRIP"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4034 $as_echo "$ac_ct_STRIP" >&6; }
4035 else
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4038 fi
4039
4040 if test "x$ac_ct_STRIP" = x; then
4041 STRIP=":"
4042 else
4043 case $cross_compiling:$ac_tool_warned in
4044 yes:)
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4047 ac_tool_warned=yes ;;
4048 esac
4049 STRIP=$ac_ct_STRIP
4050 fi
4051 else
4052 STRIP="$ac_cv_prog_STRIP"
4053 fi
4054
4055 fi
4056 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4057
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4059 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4060 if test -z "$MKDIR_P"; then
4061 if ${ac_cv_path_mkdir+:} false; then :
4062 $as_echo_n "(cached) " >&6
4063 else
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4066 do
4067 IFS=$as_save_IFS
4068 test -z "$as_dir" && as_dir=.
4069 for ac_prog in mkdir gmkdir; do
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4072 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4073 'mkdir (GNU coreutils) '* | \
4074 'mkdir (coreutils) '* | \
4075 'mkdir (fileutils) '4.1*)
4076 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4077 break 3;;
4078 esac
4079 done
4080 done
4081 done
4082 IFS=$as_save_IFS
4083
4084 fi
4085
4086 test -d ./--version && rmdir ./--version
4087 if test "${ac_cv_path_mkdir+set}" = set; then
4088 MKDIR_P="$ac_cv_path_mkdir -p"
4089 else
4090 # As a last resort, use the slow shell script. Don't cache a
4091 # value for MKDIR_P within a source directory, because that will
4092 # break other packages using the cache if that directory is
4093 # removed, or if the value is a relative name.
4094 MKDIR_P="$ac_install_sh -d"
4095 fi
4096 fi
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4098 $as_echo "$MKDIR_P" >&6; }
4099
4100 for ac_prog in gawk mawk nawk awk
4101 do
4102 # Extract the first word of "$ac_prog", so it can be a program name with args.
4103 set dummy $ac_prog; ac_word=$2
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4105 $as_echo_n "checking for $ac_word... " >&6; }
4106 if ${ac_cv_prog_AWK+:} false; then :
4107 $as_echo_n "(cached) " >&6
4108 else
4109 if test -n "$AWK"; then
4110 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4111 else
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 for as_dir in $PATH
4114 do
4115 IFS=$as_save_IFS
4116 test -z "$as_dir" && as_dir=.
4117 for ac_exec_ext in '' $ac_executable_extensions; do
4118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4119 ac_cv_prog_AWK="$ac_prog"
4120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4121 break 2
4122 fi
4123 done
4124 done
4125 IFS=$as_save_IFS
4126
4127 fi
4128 fi
4129 AWK=$ac_cv_prog_AWK
4130 if test -n "$AWK"; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4132 $as_echo "$AWK" >&6; }
4133 else
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 $as_echo "no" >&6; }
4136 fi
4137
4138
4139 test -n "$AWK" && break
4140 done
4141
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4143 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4144 set x ${MAKE-make}
4145 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4146 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4147 $as_echo_n "(cached) " >&6
4148 else
4149 cat >conftest.make <<\_ACEOF
4150 SHELL = /bin/sh
4151 all:
4152 @echo '@@@%%%=$(MAKE)=@@@%%%'
4153 _ACEOF
4154 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4155 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4156 *@@@%%%=?*=@@@%%%*)
4157 eval ac_cv_prog_make_${ac_make}_set=yes;;
4158 *)
4159 eval ac_cv_prog_make_${ac_make}_set=no;;
4160 esac
4161 rm -f conftest.make
4162 fi
4163 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4165 $as_echo "yes" >&6; }
4166 SET_MAKE=
4167 else
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 $as_echo "no" >&6; }
4170 SET_MAKE="MAKE=${MAKE-make}"
4171 fi
4172
4173 rm -rf .tst 2>/dev/null
4174 mkdir .tst 2>/dev/null
4175 if test -d .tst; then
4176 am__leading_dot=.
4177 else
4178 am__leading_dot=_
4179 fi
4180 rmdir .tst 2>/dev/null
4181
4182 DEPDIR="${am__leading_dot}deps"
4183
4184 ac_config_commands="$ac_config_commands depfiles"
4185
4186
4187 am_make=${MAKE-make}
4188 cat > confinc << 'END'
4189 am__doit:
4190 @echo this is the am__doit target
4191 .PHONY: am__doit
4192 END
4193 # If we don't find an include directive, just comment out the code.
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4195 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4196 am__include="#"
4197 am__quote=
4198 _am_result=none
4199 # First try GNU make style include.
4200 echo "include confinc" > confmf
4201 # Ignore all kinds of additional output from 'make'.
4202 case `$am_make -s -f confmf 2> /dev/null` in #(
4203 *the\ am__doit\ target*)
4204 am__include=include
4205 am__quote=
4206 _am_result=GNU
4207 ;;
4208 esac
4209 # Now try BSD make style include.
4210 if test "$am__include" = "#"; then
4211 echo '.include "confinc"' > confmf
4212 case `$am_make -s -f confmf 2> /dev/null` in #(
4213 *the\ am__doit\ target*)
4214 am__include=.include
4215 am__quote="\""
4216 _am_result=BSD
4217 ;;
4218 esac
4219 fi
4220
4221
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4223 $as_echo "$_am_result" >&6; }
4224 rm -f confinc confmf
4225
4226 # Check whether --enable-dependency-tracking was given.
4227 if test "${enable_dependency_tracking+set}" = set; then :
4228 enableval=$enable_dependency_tracking;
4229 fi
4230
4231 if test "x$enable_dependency_tracking" != xno; then
4232 am_depcomp="$ac_aux_dir/depcomp"
4233 AMDEPBACKSLASH='\'
4234 am__nodep='_no'
4235 fi
4236 if test "x$enable_dependency_tracking" != xno; then
4237 AMDEP_TRUE=
4238 AMDEP_FALSE='#'
4239 else
4240 AMDEP_TRUE='#'
4241 AMDEP_FALSE=
4242 fi
4243
4244
4245 # Check whether --enable-silent-rules was given.
4246 if test "${enable_silent_rules+set}" = set; then :
4247 enableval=$enable_silent_rules;
4248 fi
4249
4250 case $enable_silent_rules in # (((
4251 yes) AM_DEFAULT_VERBOSITY=0;;
4252 no) AM_DEFAULT_VERBOSITY=1;;
4253 *) AM_DEFAULT_VERBOSITY=1;;
4254 esac
4255 am_make=${MAKE-make}
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4257 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4258 if ${am_cv_make_support_nested_variables+:} false; then :
4259 $as_echo_n "(cached) " >&6
4260 else
4261 if $as_echo 'TRUE=$(BAR$(V))
4262 BAR0=false
4263 BAR1=true
4264 V=1
4265 am__doit:
4266 @$(TRUE)
4267 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4268 am_cv_make_support_nested_variables=yes
4269 else
4270 am_cv_make_support_nested_variables=no
4271 fi
4272 fi
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4274 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4275 if test $am_cv_make_support_nested_variables = yes; then
4276 AM_V='$(V)'
4277 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4278 else
4279 AM_V=$AM_DEFAULT_VERBOSITY
4280 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4281 fi
4282 AM_BACKSLASH='\'
4283
4284 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4285 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4286 # is not polluted with repeated "-I."
4287 am__isrc=' -I$(srcdir)'
4288 # test to see if srcdir already configured
4289 if test -f $srcdir/config.status; then
4290 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4291 fi
4292 fi
4293
4294 # test whether we have cygpath
4295 if test -z "$CYGPATH_W"; then
4296 if (cygpath --version) >/dev/null 2>/dev/null; then
4297 CYGPATH_W='cygpath -w'
4298 else
4299 CYGPATH_W=echo
4300 fi
4301 fi
4302
4303
4304 # Define the identity of the package.
4305 PACKAGE='libctf'
4306 VERSION='1.2.0'
4307
4308
4309 cat >>confdefs.h <<_ACEOF
4310 #define PACKAGE "$PACKAGE"
4311 _ACEOF
4312
4313
4314 cat >>confdefs.h <<_ACEOF
4315 #define VERSION "$VERSION"
4316 _ACEOF
4317
4318 # Some tools Automake needs.
4319
4320 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4321
4322
4323 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4324
4325
4326 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4327
4328
4329 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4330
4331
4332 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4333
4334 # For better backward compatibility. To be removed once Automake 1.9.x
4335 # dies out for good. For more background, see:
4336 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4337 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4338 mkdir_p='$(MKDIR_P)'
4339
4340 # We need awk for the "check" target (and possibly the TAP driver). The
4341 # system "awk" is bad on some platforms.
4342 # Always define AMTAR for backward compatibility. Yes, it's still used
4343 # in the wild :-( We should find a proper way to deprecate it ...
4344 AMTAR='$${TAR-tar}'
4345
4346
4347 # We'll loop over all known methods to create a tar archive until one works.
4348 _am_tools='gnutar pax cpio none'
4349
4350 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4351
4352
4353
4354
4355
4356 depcc="$CC" am_compiler_list=
4357
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4359 $as_echo_n "checking dependency style of $depcc... " >&6; }
4360 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4361 $as_echo_n "(cached) " >&6
4362 else
4363 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4364 # We make a subdir and do the tests there. Otherwise we can end up
4365 # making bogus files that we don't know about and never remove. For
4366 # instance it was reported that on HP-UX the gcc test will end up
4367 # making a dummy file named 'D' -- because '-MD' means "put the output
4368 # in D".
4369 rm -rf conftest.dir
4370 mkdir conftest.dir
4371 # Copy depcomp to subdir because otherwise we won't find it if we're
4372 # using a relative directory.
4373 cp "$am_depcomp" conftest.dir
4374 cd conftest.dir
4375 # We will build objects and dependencies in a subdirectory because
4376 # it helps to detect inapplicable dependency modes. For instance
4377 # both Tru64's cc and ICC support -MD to output dependencies as a
4378 # side effect of compilation, but ICC will put the dependencies in
4379 # the current directory while Tru64 will put them in the object
4380 # directory.
4381 mkdir sub
4382
4383 am_cv_CC_dependencies_compiler_type=none
4384 if test "$am_compiler_list" = ""; then
4385 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4386 fi
4387 am__universal=false
4388 case " $depcc " in #(
4389 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4390 esac
4391
4392 for depmode in $am_compiler_list; do
4393 # Setup a source with many dependencies, because some compilers
4394 # like to wrap large dependency lists on column 80 (with \), and
4395 # we should not choose a depcomp mode which is confused by this.
4396 #
4397 # We need to recreate these files for each test, as the compiler may
4398 # overwrite some of them when testing with obscure command lines.
4399 # This happens at least with the AIX C compiler.
4400 : > sub/conftest.c
4401 for i in 1 2 3 4 5 6; do
4402 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4403 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4404 # Solaris 10 /bin/sh.
4405 echo '/* dummy */' > sub/conftst$i.h
4406 done
4407 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4408
4409 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4410 # mode. It turns out that the SunPro C++ compiler does not properly
4411 # handle '-M -o', and we need to detect this. Also, some Intel
4412 # versions had trouble with output in subdirs.
4413 am__obj=sub/conftest.${OBJEXT-o}
4414 am__minus_obj="-o $am__obj"
4415 case $depmode in
4416 gcc)
4417 # This depmode causes a compiler race in universal mode.
4418 test "$am__universal" = false || continue
4419 ;;
4420 nosideeffect)
4421 # After this tag, mechanisms are not by side-effect, so they'll
4422 # only be used when explicitly requested.
4423 if test "x$enable_dependency_tracking" = xyes; then
4424 continue
4425 else
4426 break
4427 fi
4428 ;;
4429 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4430 # This compiler won't grok '-c -o', but also, the minuso test has
4431 # not run yet. These depmodes are late enough in the game, and
4432 # so weak that their functioning should not be impacted.
4433 am__obj=conftest.${OBJEXT-o}
4434 am__minus_obj=
4435 ;;
4436 none) break ;;
4437 esac
4438 if depmode=$depmode \
4439 source=sub/conftest.c object=$am__obj \
4440 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4441 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4442 >/dev/null 2>conftest.err &&
4443 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4444 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4445 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4446 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4447 # icc doesn't choke on unknown options, it will just issue warnings
4448 # or remarks (even with -Werror). So we grep stderr for any message
4449 # that says an option was ignored or not supported.
4450 # When given -MP, icc 7.0 and 7.1 complain thusly:
4451 # icc: Command line warning: ignoring option '-M'; no argument required
4452 # The diagnosis changed in icc 8.0:
4453 # icc: Command line remark: option '-MP' not supported
4454 if (grep 'ignoring option' conftest.err ||
4455 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4456 am_cv_CC_dependencies_compiler_type=$depmode
4457 break
4458 fi
4459 fi
4460 done
4461
4462 cd ..
4463 rm -rf conftest.dir
4464 else
4465 am_cv_CC_dependencies_compiler_type=none
4466 fi
4467
4468 fi
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4470 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4471 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4472
4473 if
4474 test "x$enable_dependency_tracking" != xno \
4475 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4476 am__fastdepCC_TRUE=
4477 am__fastdepCC_FALSE='#'
4478 else
4479 am__fastdepCC_TRUE='#'
4480 am__fastdepCC_FALSE=
4481 fi
4482
4483
4484
4485 # POSIX will say in a future version that running "rm -f" with no argument
4486 # is OK; and we want to be able to make that assumption in our Makefile
4487 # recipes. So use an aggressive probe to check that the usage we want is
4488 # actually supported "in the wild" to an acceptable degree.
4489 # See automake bug#10828.
4490 # To make any issue more visible, cause the running configure to be aborted
4491 # by default if the 'rm' program in use doesn't match our expectations; the
4492 # user can still override this though.
4493 if rm -f && rm -fr && rm -rf; then : OK; else
4494 cat >&2 <<'END'
4495 Oops!
4496
4497 Your 'rm' program seems unable to run without file operands specified
4498 on the command line, even when the '-f' option is present. This is contrary
4499 to the behaviour of most rm programs out there, and not conforming with
4500 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4501
4502 Please tell bug-automake@gnu.org about your system, including the value
4503 of your $PATH and any error possibly output before this message. This
4504 can help us improve future automake versions.
4505
4506 END
4507 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4508 echo 'Configuration will proceed anyway, since you have set the' >&2
4509 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4510 echo >&2
4511 else
4512 cat >&2 <<'END'
4513 Aborting the configuration process, to ensure you take notice of the issue.
4514
4515 You can download and install GNU coreutils to get an 'rm' implementation
4516 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4517
4518 If you want to complete the configuration process using your problematic
4519 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4520 to "yes", and re-run configure.
4521
4522 END
4523 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4524 fi
4525 fi
4526
4527 # Check whether --enable-silent-rules was given.
4528 if test "${enable_silent_rules+set}" = set; then :
4529 enableval=$enable_silent_rules;
4530 fi
4531
4532 case $enable_silent_rules in # (((
4533 yes) AM_DEFAULT_VERBOSITY=0;;
4534 no) AM_DEFAULT_VERBOSITY=1;;
4535 *) AM_DEFAULT_VERBOSITY=0;;
4536 esac
4537 am_make=${MAKE-make}
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4539 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4540 if ${am_cv_make_support_nested_variables+:} false; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 if $as_echo 'TRUE=$(BAR$(V))
4544 BAR0=false
4545 BAR1=true
4546 V=1
4547 am__doit:
4548 @$(TRUE)
4549 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4550 am_cv_make_support_nested_variables=yes
4551 else
4552 am_cv_make_support_nested_variables=no
4553 fi
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4556 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4557 if test $am_cv_make_support_nested_variables = yes; then
4558 AM_V='$(V)'
4559 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4560 else
4561 AM_V=$AM_DEFAULT_VERBOSITY
4562 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4563 fi
4564 AM_BACKSLASH='\'
4565
4566
4567 # Checks for programs.
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4569 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4570 set x ${MAKE-make}
4571 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4572 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 cat >conftest.make <<\_ACEOF
4576 SHELL = /bin/sh
4577 all:
4578 @echo '@@@%%%=$(MAKE)=@@@%%%'
4579 _ACEOF
4580 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4581 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4582 *@@@%%%=?*=@@@%%%*)
4583 eval ac_cv_prog_make_${ac_make}_set=yes;;
4584 *)
4585 eval ac_cv_prog_make_${ac_make}_set=no;;
4586 esac
4587 rm -f conftest.make
4588 fi
4589 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4591 $as_echo "yes" >&6; }
4592 SET_MAKE=
4593 else
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4596 SET_MAKE="MAKE=${MAKE-make}"
4597 fi
4598
4599 ac_ext=c
4600 ac_cpp='$CPP $CPPFLAGS'
4601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604 if test -n "$ac_tool_prefix"; then
4605 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4606 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608 $as_echo_n "checking for $ac_word... " >&6; }
4609 if ${ac_cv_prog_CC+:} false; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 if test -n "$CC"; then
4613 ac_cv_prog_CC="$CC" # Let the user override the test.
4614 else
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4617 do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4622 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
4625 fi
4626 done
4627 done
4628 IFS=$as_save_IFS
4629
4630 fi
4631 fi
4632 CC=$ac_cv_prog_CC
4633 if test -n "$CC"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4635 $as_echo "$CC" >&6; }
4636 else
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 $as_echo "no" >&6; }
4639 fi
4640
4641
4642 fi
4643 if test -z "$ac_cv_prog_CC"; then
4644 ac_ct_CC=$CC
4645 # Extract the first word of "gcc", so it can be a program name with args.
4646 set dummy gcc; ac_word=$2
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648 $as_echo_n "checking for $ac_word... " >&6; }
4649 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 if test -n "$ac_ct_CC"; then
4653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4654 else
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH
4657 do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4662 ac_cv_prog_ac_ct_CC="gcc"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4665 fi
4666 done
4667 done
4668 IFS=$as_save_IFS
4669
4670 fi
4671 fi
4672 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4673 if test -n "$ac_ct_CC"; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4675 $as_echo "$ac_ct_CC" >&6; }
4676 else
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4679 fi
4680
4681 if test "x$ac_ct_CC" = x; then
4682 CC=""
4683 else
4684 case $cross_compiling:$ac_tool_warned in
4685 yes:)
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4688 ac_tool_warned=yes ;;
4689 esac
4690 CC=$ac_ct_CC
4691 fi
4692 else
4693 CC="$ac_cv_prog_CC"
4694 fi
4695
4696 if test -z "$CC"; then
4697 if test -n "$ac_tool_prefix"; then
4698 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4699 set dummy ${ac_tool_prefix}cc; ac_word=$2
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4701 $as_echo_n "checking for $ac_word... " >&6; }
4702 if ${ac_cv_prog_CC+:} false; then :
4703 $as_echo_n "(cached) " >&6
4704 else
4705 if test -n "$CC"; then
4706 ac_cv_prog_CC="$CC" # Let the user override the test.
4707 else
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 for as_dir in $PATH
4710 do
4711 IFS=$as_save_IFS
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4715 ac_cv_prog_CC="${ac_tool_prefix}cc"
4716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 break 2
4718 fi
4719 done
4720 done
4721 IFS=$as_save_IFS
4722
4723 fi
4724 fi
4725 CC=$ac_cv_prog_CC
4726 if test -n "$CC"; then
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4728 $as_echo "$CC" >&6; }
4729 else
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4731 $as_echo "no" >&6; }
4732 fi
4733
4734
4735 fi
4736 fi
4737 if test -z "$CC"; then
4738 # Extract the first word of "cc", so it can be a program name with args.
4739 set dummy cc; ac_word=$2
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4741 $as_echo_n "checking for $ac_word... " >&6; }
4742 if ${ac_cv_prog_CC+:} false; then :
4743 $as_echo_n "(cached) " >&6
4744 else
4745 if test -n "$CC"; then
4746 ac_cv_prog_CC="$CC" # Let the user override the test.
4747 else
4748 ac_prog_rejected=no
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4757 ac_prog_rejected=yes
4758 continue
4759 fi
4760 ac_cv_prog_CC="cc"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4763 fi
4764 done
4765 done
4766 IFS=$as_save_IFS
4767
4768 if test $ac_prog_rejected = yes; then
4769 # We found a bogon in the path, so make sure we never use it.
4770 set dummy $ac_cv_prog_CC
4771 shift
4772 if test $# != 0; then
4773 # We chose a different compiler from the bogus one.
4774 # However, it has the same basename, so the bogon will be chosen
4775 # first if we set CC to just the basename; use the full file name.
4776 shift
4777 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4778 fi
4779 fi
4780 fi
4781 fi
4782 CC=$ac_cv_prog_CC
4783 if test -n "$CC"; then
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4785 $as_echo "$CC" >&6; }
4786 else
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788 $as_echo "no" >&6; }
4789 fi
4790
4791
4792 fi
4793 if test -z "$CC"; then
4794 if test -n "$ac_tool_prefix"; then
4795 for ac_prog in cl.exe
4796 do
4797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800 $as_echo_n "checking for $ac_word... " >&6; }
4801 if ${ac_cv_prog_CC+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 if test -n "$CC"; then
4805 ac_cv_prog_CC="$CC" # Let the user override the test.
4806 else
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4809 do
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4817 fi
4818 done
4819 done
4820 IFS=$as_save_IFS
4821
4822 fi
4823 fi
4824 CC=$ac_cv_prog_CC
4825 if test -n "$CC"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4827 $as_echo "$CC" >&6; }
4828 else
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4831 fi
4832
4833
4834 test -n "$CC" && break
4835 done
4836 fi
4837 if test -z "$CC"; then
4838 ac_ct_CC=$CC
4839 for ac_prog in cl.exe
4840 do
4841 # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy $ac_prog; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4848 if test -n "$ac_ct_CC"; then
4849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4853 do
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4858 ac_cv_prog_ac_ct_CC="$ac_prog"
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 break 2
4861 fi
4862 done
4863 done
4864 IFS=$as_save_IFS
4865
4866 fi
4867 fi
4868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4869 if test -n "$ac_ct_CC"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4871 $as_echo "$ac_ct_CC" >&6; }
4872 else
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4875 fi
4876
4877
4878 test -n "$ac_ct_CC" && break
4879 done
4880
4881 if test "x$ac_ct_CC" = x; then
4882 CC=""
4883 else
4884 case $cross_compiling:$ac_tool_warned in
4885 yes:)
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888 ac_tool_warned=yes ;;
4889 esac
4890 CC=$ac_ct_CC
4891 fi
4892 fi
4893
4894 fi
4895
4896
4897 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4899 as_fn_error $? "no acceptable C compiler found in \$PATH
4900 See \`config.log' for more details" "$LINENO" 5; }
4901
4902 # Provide some information about the compiler.
4903 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4904 set X $ac_compile
4905 ac_compiler=$2
4906 for ac_option in --version -v -V -qversion; do
4907 { { ac_try="$ac_compiler $ac_option >&5"
4908 case "(($ac_try" in
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4911 esac
4912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4913 $as_echo "$ac_try_echo"; } >&5
4914 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4915 ac_status=$?
4916 if test -s conftest.err; then
4917 sed '10a\
4918 ... rest of stderr output deleted ...
4919 10q' conftest.err >conftest.er1
4920 cat conftest.er1 >&5
4921 fi
4922 rm -f conftest.er1 conftest.err
4923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4924 test $ac_status = 0; }
4925 done
4926
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4928 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4929 if ${ac_cv_c_compiler_gnu+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934
4935 int
4936 main ()
4937 {
4938 #ifndef __GNUC__
4939 choke me
4940 #endif
4941
4942 ;
4943 return 0;
4944 }
4945 _ACEOF
4946 if ac_fn_c_try_compile "$LINENO"; then :
4947 ac_compiler_gnu=yes
4948 else
4949 ac_compiler_gnu=no
4950 fi
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4952 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4953
4954 fi
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4956 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4957 if test $ac_compiler_gnu = yes; then
4958 GCC=yes
4959 else
4960 GCC=
4961 fi
4962 ac_test_CFLAGS=${CFLAGS+set}
4963 ac_save_CFLAGS=$CFLAGS
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4965 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4966 if ${ac_cv_prog_cc_g+:} false; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 ac_save_c_werror_flag=$ac_c_werror_flag
4970 ac_c_werror_flag=yes
4971 ac_cv_prog_cc_g=no
4972 CFLAGS="-g"
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4975
4976 int
4977 main ()
4978 {
4979
4980 ;
4981 return 0;
4982 }
4983 _ACEOF
4984 if ac_fn_c_try_compile "$LINENO"; then :
4985 ac_cv_prog_cc_g=yes
4986 else
4987 CFLAGS=""
4988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4989 /* end confdefs.h. */
4990
4991 int
4992 main ()
4993 {
4994
4995 ;
4996 return 0;
4997 }
4998 _ACEOF
4999 if ac_fn_c_try_compile "$LINENO"; then :
5000
5001 else
5002 ac_c_werror_flag=$ac_save_c_werror_flag
5003 CFLAGS="-g"
5004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5005 /* end confdefs.h. */
5006
5007 int
5008 main ()
5009 {
5010
5011 ;
5012 return 0;
5013 }
5014 _ACEOF
5015 if ac_fn_c_try_compile "$LINENO"; then :
5016 ac_cv_prog_cc_g=yes
5017 fi
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 fi
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 fi
5022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023 ac_c_werror_flag=$ac_save_c_werror_flag
5024 fi
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5026 $as_echo "$ac_cv_prog_cc_g" >&6; }
5027 if test "$ac_test_CFLAGS" = set; then
5028 CFLAGS=$ac_save_CFLAGS
5029 elif test $ac_cv_prog_cc_g = yes; then
5030 if test "$GCC" = yes; then
5031 CFLAGS="-g -O2"
5032 else
5033 CFLAGS="-g"
5034 fi
5035 else
5036 if test "$GCC" = yes; then
5037 CFLAGS="-O2"
5038 else
5039 CFLAGS=
5040 fi
5041 fi
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5043 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5044 if ${ac_cv_prog_cc_c89+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 ac_cv_prog_cc_c89=no
5048 ac_save_CC=$CC
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5051 #include <stdarg.h>
5052 #include <stdio.h>
5053 struct stat;
5054 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5055 struct buf { int x; };
5056 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5057 static char *e (p, i)
5058 char **p;
5059 int i;
5060 {
5061 return p[i];
5062 }
5063 static char *f (char * (*g) (char **, int), char **p, ...)
5064 {
5065 char *s;
5066 va_list v;
5067 va_start (v,p);
5068 s = g (p, va_arg (v,int));
5069 va_end (v);
5070 return s;
5071 }
5072
5073 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5074 function prototypes and stuff, but not '\xHH' hex character constants.
5075 These don't provoke an error unfortunately, instead are silently treated
5076 as 'x'. The following induces an error, until -std is added to get
5077 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5078 array size at least. It's necessary to write '\x00'==0 to get something
5079 that's true only with -std. */
5080 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5081
5082 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5083 inside strings and character constants. */
5084 #define FOO(x) 'x'
5085 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5086
5087 int test (int i, double x);
5088 struct s1 {int (*f) (int a);};
5089 struct s2 {int (*f) (double a);};
5090 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5091 int argc;
5092 char **argv;
5093 int
5094 main ()
5095 {
5096 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5097 ;
5098 return 0;
5099 }
5100 _ACEOF
5101 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5102 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5103 do
5104 CC="$ac_save_CC $ac_arg"
5105 if ac_fn_c_try_compile "$LINENO"; then :
5106 ac_cv_prog_cc_c89=$ac_arg
5107 fi
5108 rm -f core conftest.err conftest.$ac_objext
5109 test "x$ac_cv_prog_cc_c89" != "xno" && break
5110 done
5111 rm -f conftest.$ac_ext
5112 CC=$ac_save_CC
5113
5114 fi
5115 # AC_CACHE_VAL
5116 case "x$ac_cv_prog_cc_c89" in
5117 x)
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5119 $as_echo "none needed" >&6; } ;;
5120 xno)
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5122 $as_echo "unsupported" >&6; } ;;
5123 *)
5124 CC="$CC $ac_cv_prog_cc_c89"
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5126 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5127 esac
5128 if test "x$ac_cv_prog_cc_c89" != xno; then :
5129
5130 fi
5131
5132 ac_ext=c
5133 ac_cpp='$CPP $CPPFLAGS'
5134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5137
5138 ac_ext=c
5139 ac_cpp='$CPP $CPPFLAGS'
5140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5144 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5145 if ${am_cv_prog_cc_c_o+:} false; then :
5146 $as_echo_n "(cached) " >&6
5147 else
5148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149 /* end confdefs.h. */
5150
5151 int
5152 main ()
5153 {
5154
5155 ;
5156 return 0;
5157 }
5158 _ACEOF
5159 # Make sure it works both with $CC and with simple cc.
5160 # Following AC_PROG_CC_C_O, we do the test twice because some
5161 # compilers refuse to overwrite an existing .o file with -o,
5162 # though they will create one.
5163 am_cv_prog_cc_c_o=yes
5164 for am_i in 1 2; do
5165 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5166 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5167 ac_status=$?
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } \
5170 && test -f conftest2.$ac_objext; then
5171 : OK
5172 else
5173 am_cv_prog_cc_c_o=no
5174 break
5175 fi
5176 done
5177 rm -f core conftest*
5178 unset am_i
5179 fi
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5181 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5182 if test "$am_cv_prog_cc_c_o" != yes; then
5183 # Losing compiler, so override with the script.
5184 # FIXME: It is wrong to rewrite CC.
5185 # But if we don't then we get into trouble of one sort or another.
5186 # A longer-term fix would be to have automake use am__CC in this case,
5187 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5188 CC="$am_aux_dir/compile $CC"
5189 fi
5190 ac_ext=c
5191 ac_cpp='$CPP $CPPFLAGS'
5192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5195
5196
5197 if test -n "$ac_tool_prefix"; then
5198 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5199 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_prog_RANLIB+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 if test -n "$RANLIB"; then
5206 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5210 do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5215 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5218 fi
5219 done
5220 done
5221 IFS=$as_save_IFS
5222
5223 fi
5224 fi
5225 RANLIB=$ac_cv_prog_RANLIB
5226 if test -n "$RANLIB"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5228 $as_echo "$RANLIB" >&6; }
5229 else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5232 fi
5233
5234
5235 fi
5236 if test -z "$ac_cv_prog_RANLIB"; then
5237 ac_ct_RANLIB=$RANLIB
5238 # Extract the first word of "ranlib", so it can be a program name with args.
5239 set dummy ranlib; ac_word=$2
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 if test -n "$ac_ct_RANLIB"; then
5246 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255 ac_cv_prog_ac_ct_RANLIB="ranlib"
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5258 fi
5259 done
5260 done
5261 IFS=$as_save_IFS
5262
5263 fi
5264 fi
5265 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5266 if test -n "$ac_ct_RANLIB"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5268 $as_echo "$ac_ct_RANLIB" >&6; }
5269 else
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5272 fi
5273
5274 if test "x$ac_ct_RANLIB" = x; then
5275 RANLIB=":"
5276 else
5277 case $cross_compiling:$ac_tool_warned in
5278 yes:)
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5281 ac_tool_warned=yes ;;
5282 esac
5283 RANLIB=$ac_ct_RANLIB
5284 fi
5285 else
5286 RANLIB="$ac_cv_prog_RANLIB"
5287 fi
5288
5289 if test -n "$ac_tool_prefix"; then
5290 for ac_prog in ar lib "link -lib"
5291 do
5292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5293 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if ${ac_cv_prog_AR+:} false; then :
5297 $as_echo_n "(cached) " >&6
5298 else
5299 if test -n "$AR"; then
5300 ac_cv_prog_AR="$AR" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5304 do
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5309 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5312 fi
5313 done
5314 done
5315 IFS=$as_save_IFS
5316
5317 fi
5318 fi
5319 AR=$ac_cv_prog_AR
5320 if test -n "$AR"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5322 $as_echo "$AR" >&6; }
5323 else
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5326 fi
5327
5328
5329 test -n "$AR" && break
5330 done
5331 fi
5332 if test -z "$AR"; then
5333 ac_ct_AR=$AR
5334 for ac_prog in ar lib "link -lib"
5335 do
5336 # Extract the first word of "$ac_prog", so it can be a program name with args.
5337 set dummy $ac_prog; ac_word=$2
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339 $as_echo_n "checking for $ac_word... " >&6; }
5340 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5341 $as_echo_n "(cached) " >&6
5342 else
5343 if test -n "$ac_ct_AR"; then
5344 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5345 else
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH
5348 do
5349 IFS=$as_save_IFS
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353 ac_cv_prog_ac_ct_AR="$ac_prog"
5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 break 2
5356 fi
5357 done
5358 done
5359 IFS=$as_save_IFS
5360
5361 fi
5362 fi
5363 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5364 if test -n "$ac_ct_AR"; then
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5366 $as_echo "$ac_ct_AR" >&6; }
5367 else
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5370 fi
5371
5372
5373 test -n "$ac_ct_AR" && break
5374 done
5375
5376 if test "x$ac_ct_AR" = x; then
5377 AR="false"
5378 else
5379 case $cross_compiling:$ac_tool_warned in
5380 yes:)
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5383 ac_tool_warned=yes ;;
5384 esac
5385 AR=$ac_ct_AR
5386 fi
5387 fi
5388
5389 : ${AR=ar}
5390
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5392 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5393 if ${am_cv_ar_interface+:} false; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 ac_ext=c
5397 ac_cpp='$CPP $CPPFLAGS'
5398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5401
5402 am_cv_ar_interface=ar
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405 int some_variable = 0;
5406 _ACEOF
5407 if ac_fn_c_try_compile "$LINENO"; then :
5408 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5410 (eval $am_ar_try) 2>&5
5411 ac_status=$?
5412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5413 test $ac_status = 0; }
5414 if test "$ac_status" -eq 0; then
5415 am_cv_ar_interface=ar
5416 else
5417 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5419 (eval $am_ar_try) 2>&5
5420 ac_status=$?
5421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5422 test $ac_status = 0; }
5423 if test "$ac_status" -eq 0; then
5424 am_cv_ar_interface=lib
5425 else
5426 am_cv_ar_interface=unknown
5427 fi
5428 fi
5429 rm -f conftest.lib libconftest.a
5430
5431 fi
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5433 ac_ext=c
5434 ac_cpp='$CPP $CPPFLAGS'
5435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5438
5439 fi
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5441 $as_echo "$am_cv_ar_interface" >&6; }
5442
5443 case $am_cv_ar_interface in
5444 ar)
5445 ;;
5446 lib)
5447 # Microsoft lib, so override with the ar-lib wrapper script.
5448 # FIXME: It is wrong to rewrite AR.
5449 # But if we don't then we get into trouble of one sort or another.
5450 # A longer-term fix would be to have automake use am__AR in this case,
5451 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5452 # similar.
5453 AR="$am_aux_dir/ar-lib $AR"
5454 ;;
5455 unknown)
5456 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5457 ;;
5458 esac
5459
5460 # If we haven't got the data from the intl directory,
5461 # assume NLS is disabled.
5462 USE_NLS=no
5463 LIBINTL=
5464 LIBINTL_DEP=
5465 INCINTL=
5466 XGETTEXT=
5467 GMSGFMT=
5468 POSUB=
5469
5470 if test -f ../intl/config.intl; then
5471 . ../intl/config.intl
5472 fi
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5474 $as_echo_n "checking whether NLS is requested... " >&6; }
5475 if test x"$USE_NLS" != xyes; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5480 $as_echo "yes" >&6; }
5481
5482 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5483
5484
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5486 $as_echo_n "checking for catalogs to be installed... " >&6; }
5487 # Look for .po and .gmo files in the source directory.
5488 CATALOGS=
5489 XLINGUAS=
5490 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5491 # If there aren't any .gmo files the shell will give us the
5492 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5493 # weeded out.
5494 case "$cat" in *\**)
5495 continue;;
5496 esac
5497 # The quadruple backslash is collapsed to a double backslash
5498 # by the backticks, then collapsed again by the double quotes,
5499 # leaving us with one backslash in the sed expression (right
5500 # before the dot that mustn't act as a wildcard).
5501 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5502 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5503 # The user is allowed to set LINGUAS to a list of languages to
5504 # install catalogs for. If it's empty that means "all of them."
5505 if test "x$LINGUAS" = x; then
5506 CATALOGS="$CATALOGS $cat"
5507 XLINGUAS="$XLINGUAS $lang"
5508 else
5509 case "$LINGUAS" in *$lang*)
5510 CATALOGS="$CATALOGS $cat"
5511 XLINGUAS="$XLINGUAS $lang"
5512 ;;
5513 esac
5514 fi
5515 done
5516 LINGUAS="$XLINGUAS"
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5518 $as_echo "$LINGUAS" >&6; }
5519
5520
5521 DATADIRNAME=share
5522
5523 INSTOBJEXT=.mo
5524
5525 GENCAT=gencat
5526
5527 CATOBJEXT=.gmo
5528
5529 fi
5530
5531 # Check whether --enable-shared was given.
5532 if test "${enable_shared+set}" = set; then :
5533 enableval=$enable_shared; p=${PACKAGE-default}
5534 case $enableval in
5535 yes) enable_shared=yes ;;
5536 no) enable_shared=no ;;
5537 *)
5538 enable_shared=no
5539 # Look at the argument we got. We use all the common list separators.
5540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5541 for pkg in $enableval; do
5542 IFS="$lt_save_ifs"
5543 if test "X$pkg" = "X$p"; then
5544 enable_shared=yes
5545 fi
5546 done
5547 IFS="$lt_save_ifs"
5548 ;;
5549 esac
5550 else
5551 enable_shared=no
5552 fi
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563 case `pwd` in
5564 *\ * | *\ *)
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5566 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5567 esac
5568
5569
5570
5571 macro_version='2.2.7a'
5572 macro_revision='1.3134'
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586 ltmain="$ac_aux_dir/ltmain.sh"
5587
5588 # Backslashify metacharacters that are still active within
5589 # double-quoted strings.
5590 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5591
5592 # Same as above, but do not quote variable references.
5593 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5594
5595 # Sed substitution to delay expansion of an escaped shell variable in a
5596 # double_quote_subst'ed string.
5597 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5598
5599 # Sed substitution to delay expansion of an escaped single quote.
5600 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5601
5602 # Sed substitution to avoid accidental globbing in evaled expressions
5603 no_glob_subst='s/\*/\\\*/g'
5604
5605 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5606 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5607 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5608
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5610 $as_echo_n "checking how to print strings... " >&6; }
5611 # Test print first, because it will be a builtin if present.
5612 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5613 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5614 ECHO='print -r --'
5615 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5616 ECHO='printf %s\n'
5617 else
5618 # Use this function as a fallback that always works.
5619 func_fallback_echo ()
5620 {
5621 eval 'cat <<_LTECHO_EOF
5622 $1
5623 _LTECHO_EOF'
5624 }
5625 ECHO='func_fallback_echo'
5626 fi
5627
5628 # func_echo_all arg...
5629 # Invoke $ECHO with all args, space-separated.
5630 func_echo_all ()
5631 {
5632 $ECHO ""
5633 }
5634
5635 case "$ECHO" in
5636 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5637 $as_echo "printf" >&6; } ;;
5638 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5639 $as_echo "print -r" >&6; } ;;
5640 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5641 $as_echo "cat" >&6; } ;;
5642 esac
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5658 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5659 if ${ac_cv_path_SED+:} false; then :
5660 $as_echo_n "(cached) " >&6
5661 else
5662 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5663 for ac_i in 1 2 3 4 5 6 7; do
5664 ac_script="$ac_script$as_nl$ac_script"
5665 done
5666 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5667 { ac_script=; unset ac_script;}
5668 if test -z "$SED"; then
5669 ac_path_SED_found=false
5670 # Loop through the user's path and test for each of PROGNAME-LIST
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5673 do
5674 IFS=$as_save_IFS
5675 test -z "$as_dir" && as_dir=.
5676 for ac_prog in sed gsed; do
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5679 as_fn_executable_p "$ac_path_SED" || continue
5680 # Check for GNU ac_path_SED and select it if it is found.
5681 # Check for GNU $ac_path_SED
5682 case `"$ac_path_SED" --version 2>&1` in
5683 *GNU*)
5684 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5685 *)
5686 ac_count=0
5687 $as_echo_n 0123456789 >"conftest.in"
5688 while :
5689 do
5690 cat "conftest.in" "conftest.in" >"conftest.tmp"
5691 mv "conftest.tmp" "conftest.in"
5692 cp "conftest.in" "conftest.nl"
5693 $as_echo '' >> "conftest.nl"
5694 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5696 as_fn_arith $ac_count + 1 && ac_count=$as_val
5697 if test $ac_count -gt ${ac_path_SED_max-0}; then
5698 # Best one so far, save it but keep looking for a better one
5699 ac_cv_path_SED="$ac_path_SED"
5700 ac_path_SED_max=$ac_count
5701 fi
5702 # 10*(2^10) chars as input seems more than enough
5703 test $ac_count -gt 10 && break
5704 done
5705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5706 esac
5707
5708 $ac_path_SED_found && break 3
5709 done
5710 done
5711 done
5712 IFS=$as_save_IFS
5713 if test -z "$ac_cv_path_SED"; then
5714 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5715 fi
5716 else
5717 ac_cv_path_SED=$SED
5718 fi
5719
5720 fi
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5722 $as_echo "$ac_cv_path_SED" >&6; }
5723 SED="$ac_cv_path_SED"
5724 rm -f conftest.sed
5725
5726 test -z "$SED" && SED=sed
5727 Xsed="$SED -e 1s/^X//"
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5740 $as_echo_n "checking for fgrep... " >&6; }
5741 if ${ac_cv_path_FGREP+:} false; then :
5742 $as_echo_n "(cached) " >&6
5743 else
5744 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5745 then ac_cv_path_FGREP="$GREP -F"
5746 else
5747 if test -z "$FGREP"; then
5748 ac_path_FGREP_found=false
5749 # Loop through the user's path and test for each of PROGNAME-LIST
5750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5752 do
5753 IFS=$as_save_IFS
5754 test -z "$as_dir" && as_dir=.
5755 for ac_prog in fgrep; do
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5758 as_fn_executable_p "$ac_path_FGREP" || continue
5759 # Check for GNU ac_path_FGREP and select it if it is found.
5760 # Check for GNU $ac_path_FGREP
5761 case `"$ac_path_FGREP" --version 2>&1` in
5762 *GNU*)
5763 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5764 *)
5765 ac_count=0
5766 $as_echo_n 0123456789 >"conftest.in"
5767 while :
5768 do
5769 cat "conftest.in" "conftest.in" >"conftest.tmp"
5770 mv "conftest.tmp" "conftest.in"
5771 cp "conftest.in" "conftest.nl"
5772 $as_echo 'FGREP' >> "conftest.nl"
5773 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5774 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5775 as_fn_arith $ac_count + 1 && ac_count=$as_val
5776 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5777 # Best one so far, save it but keep looking for a better one
5778 ac_cv_path_FGREP="$ac_path_FGREP"
5779 ac_path_FGREP_max=$ac_count
5780 fi
5781 # 10*(2^10) chars as input seems more than enough
5782 test $ac_count -gt 10 && break
5783 done
5784 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5785 esac
5786
5787 $ac_path_FGREP_found && break 3
5788 done
5789 done
5790 done
5791 IFS=$as_save_IFS
5792 if test -z "$ac_cv_path_FGREP"; then
5793 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5794 fi
5795 else
5796 ac_cv_path_FGREP=$FGREP
5797 fi
5798
5799 fi
5800 fi
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5802 $as_echo "$ac_cv_path_FGREP" >&6; }
5803 FGREP="$ac_cv_path_FGREP"
5804
5805
5806 test -z "$GREP" && GREP=grep
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826 # Check whether --with-gnu-ld was given.
5827 if test "${with_gnu_ld+set}" = set; then :
5828 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5829 else
5830 with_gnu_ld=no
5831 fi
5832
5833 ac_prog=ld
5834 if test "$GCC" = yes; then
5835 # Check if gcc -print-prog-name=ld gives a path.
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5837 $as_echo_n "checking for ld used by $CC... " >&6; }
5838 case $host in
5839 *-*-mingw*)
5840 # gcc leaves a trailing carriage return which upsets mingw
5841 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5842 *)
5843 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5844 esac
5845 case $ac_prog in
5846 # Accept absolute paths.
5847 [\\/]* | ?:[\\/]*)
5848 re_direlt='/[^/][^/]*/\.\./'
5849 # Canonicalize the pathname of ld
5850 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5851 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5852 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5853 done
5854 test -z "$LD" && LD="$ac_prog"
5855 ;;
5856 "")
5857 # If it fails, then pretend we aren't using GCC.
5858 ac_prog=ld
5859 ;;
5860 *)
5861 # If it is relative, then search for the first ld in PATH.
5862 with_gnu_ld=unknown
5863 ;;
5864 esac
5865 elif test "$with_gnu_ld" = yes; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5867 $as_echo_n "checking for GNU ld... " >&6; }
5868 else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5870 $as_echo_n "checking for non-GNU ld... " >&6; }
5871 fi
5872 if ${lt_cv_path_LD+:} false; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 if test -z "$LD"; then
5876 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5877 for ac_dir in $PATH; do
5878 IFS="$lt_save_ifs"
5879 test -z "$ac_dir" && ac_dir=.
5880 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5881 lt_cv_path_LD="$ac_dir/$ac_prog"
5882 # Check to see if the program is GNU ld. I'd rather use --version,
5883 # but apparently some variants of GNU ld only accept -v.
5884 # Break only if it was the GNU/non-GNU ld that we prefer.
5885 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5886 *GNU* | *'with BFD'*)
5887 test "$with_gnu_ld" != no && break
5888 ;;
5889 *)
5890 test "$with_gnu_ld" != yes && break
5891 ;;
5892 esac
5893 fi
5894 done
5895 IFS="$lt_save_ifs"
5896 else
5897 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5898 fi
5899 fi
5900
5901 LD="$lt_cv_path_LD"
5902 if test -n "$LD"; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5904 $as_echo "$LD" >&6; }
5905 else
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907 $as_echo "no" >&6; }
5908 fi
5909 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5911 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5912 if ${lt_cv_prog_gnu_ld+:} false; then :
5913 $as_echo_n "(cached) " >&6
5914 else
5915 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5916 case `$LD -v 2>&1 </dev/null` in
5917 *GNU* | *'with BFD'*)
5918 lt_cv_prog_gnu_ld=yes
5919 ;;
5920 *)
5921 lt_cv_prog_gnu_ld=no
5922 ;;
5923 esac
5924 fi
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5926 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5927 with_gnu_ld=$lt_cv_prog_gnu_ld
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5938 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5939 if ${lt_cv_path_NM+:} false; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 if test -n "$NM"; then
5943 # Let the user override the nm to test.
5944 lt_nm_to_check="$NM"
5945 else
5946 lt_nm_to_check="${ac_tool_prefix}nm"
5947 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5948 lt_nm_to_check="$lt_nm_to_check nm"
5949 fi
5950 fi
5951 for lt_tmp_nm in "$lt_nm_to_check"; do
5952 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5953 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5954 IFS="$lt_save_ifs"
5955 test -z "$ac_dir" && ac_dir=.
5956 # Strip out any user-provided options from the nm to test twice,
5957 # the first time to test to see if nm (rather than its options) has
5958 # an explicit path, the second time to yield a file which can be
5959 # nm'ed itself.
5960 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5961 case "$tmp_nm_path" in
5962 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5963 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5964 esac
5965 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5966 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5967 # Check to see if the nm accepts a BSD-compat flag.
5968 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5969 # nm: unknown option "B" ignored
5970 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5971 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5972 break
5973 ;;
5974 *)
5975 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5976 *$tmp_nm*)
5977 lt_cv_path_NM="$tmp_nm -p"
5978 break
5979 ;;
5980 *)
5981 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5982 continue # so that we can try to find one that supports BSD flags
5983 ;;
5984 esac
5985 ;;
5986 esac
5987 fi
5988 done
5989 IFS="$lt_save_ifs"
5990 done
5991 : ${lt_cv_path_NM=no}
5992 fi
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5994 $as_echo "$lt_cv_path_NM" >&6; }
5995 if test "$lt_cv_path_NM" != "no"; then
5996 NM="$lt_cv_path_NM"
5997 else
5998 # Didn't find any BSD compatible name lister, look for dumpbin.
5999 if test -n "$DUMPBIN"; then :
6000 # Let the user override the test.
6001 else
6002 if test -n "$ac_tool_prefix"; then
6003 for ac_prog in dumpbin "link -dump"
6004 do
6005 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if ${ac_cv_prog_DUMPBIN+:} false; then :
6010 $as_echo_n "(cached) " >&6
6011 else
6012 if test -n "$DUMPBIN"; then
6013 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6014 else
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6017 do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
6020 for ac_exec_ext in '' $ac_executable_extensions; do
6021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 break 2
6025 fi
6026 done
6027 done
6028 IFS=$as_save_IFS
6029
6030 fi
6031 fi
6032 DUMPBIN=$ac_cv_prog_DUMPBIN
6033 if test -n "$DUMPBIN"; then
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6035 $as_echo "$DUMPBIN" >&6; }
6036 else
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6039 fi
6040
6041
6042 test -n "$DUMPBIN" && break
6043 done
6044 fi
6045 if test -z "$DUMPBIN"; then
6046 ac_ct_DUMPBIN=$DUMPBIN
6047 for ac_prog in dumpbin "link -dump"
6048 do
6049 # Extract the first word of "$ac_prog", so it can be a program name with args.
6050 set dummy $ac_prog; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6054 $as_echo_n "(cached) " >&6
6055 else
6056 if test -n "$ac_ct_DUMPBIN"; then
6057 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062 IFS=$as_save_IFS
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 break 2
6069 fi
6070 done
6071 done
6072 IFS=$as_save_IFS
6073
6074 fi
6075 fi
6076 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6077 if test -n "$ac_ct_DUMPBIN"; then
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6079 $as_echo "$ac_ct_DUMPBIN" >&6; }
6080 else
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6083 fi
6084
6085
6086 test -n "$ac_ct_DUMPBIN" && break
6087 done
6088
6089 if test "x$ac_ct_DUMPBIN" = x; then
6090 DUMPBIN=":"
6091 else
6092 case $cross_compiling:$ac_tool_warned in
6093 yes:)
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096 ac_tool_warned=yes ;;
6097 esac
6098 DUMPBIN=$ac_ct_DUMPBIN
6099 fi
6100 fi
6101
6102 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6103 *COFF*)
6104 DUMPBIN="$DUMPBIN -symbols"
6105 ;;
6106 *)
6107 DUMPBIN=:
6108 ;;
6109 esac
6110 fi
6111
6112 if test "$DUMPBIN" != ":"; then
6113 NM="$DUMPBIN"
6114 fi
6115 fi
6116 test -z "$NM" && NM=nm
6117
6118
6119
6120
6121
6122
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6124 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6125 if ${lt_cv_nm_interface+:} false; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128 lt_cv_nm_interface="BSD nm"
6129 echo "int some_variable = 0;" > conftest.$ac_ext
6130 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6131 (eval "$ac_compile" 2>conftest.err)
6132 cat conftest.err >&5
6133 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6134 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6135 cat conftest.err >&5
6136 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6137 cat conftest.out >&5
6138 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6139 lt_cv_nm_interface="MS dumpbin"
6140 fi
6141 rm -f conftest*
6142 fi
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6144 $as_echo "$lt_cv_nm_interface" >&6; }
6145
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6147 $as_echo_n "checking whether ln -s works... " >&6; }
6148 LN_S=$as_ln_s
6149 if test "$LN_S" = "ln -s"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6151 $as_echo "yes" >&6; }
6152 else
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6154 $as_echo "no, using $LN_S" >&6; }
6155 fi
6156
6157 # find the maximum length of command line arguments
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6159 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6160 if ${lt_cv_sys_max_cmd_len+:} false; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 i=0
6164 teststring="ABCD"
6165
6166 case $build_os in
6167 msdosdjgpp*)
6168 # On DJGPP, this test can blow up pretty badly due to problems in libc
6169 # (any single argument exceeding 2000 bytes causes a buffer overrun
6170 # during glob expansion). Even if it were fixed, the result of this
6171 # check would be larger than it should be.
6172 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6173 ;;
6174
6175 gnu*)
6176 # Under GNU Hurd, this test is not required because there is
6177 # no limit to the length of command line arguments.
6178 # Libtool will interpret -1 as no limit whatsoever
6179 lt_cv_sys_max_cmd_len=-1;
6180 ;;
6181
6182 cygwin* | mingw* | cegcc*)
6183 # On Win9x/ME, this test blows up -- it succeeds, but takes
6184 # about 5 minutes as the teststring grows exponentially.
6185 # Worse, since 9x/ME are not pre-emptively multitasking,
6186 # you end up with a "frozen" computer, even though with patience
6187 # the test eventually succeeds (with a max line length of 256k).
6188 # Instead, let's just punt: use the minimum linelength reported by
6189 # all of the supported platforms: 8192 (on NT/2K/XP).
6190 lt_cv_sys_max_cmd_len=8192;
6191 ;;
6192
6193 mint*)
6194 # On MiNT this can take a long time and run out of memory.
6195 lt_cv_sys_max_cmd_len=8192;
6196 ;;
6197
6198 amigaos*)
6199 # On AmigaOS with pdksh, this test takes hours, literally.
6200 # So we just punt and use a minimum line length of 8192.
6201 lt_cv_sys_max_cmd_len=8192;
6202 ;;
6203
6204 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6205 # This has been around since 386BSD, at least. Likely further.
6206 if test -x /sbin/sysctl; then
6207 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6208 elif test -x /usr/sbin/sysctl; then
6209 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6210 else
6211 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6212 fi
6213 # And add a safety zone
6214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6216 ;;
6217
6218 interix*)
6219 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6220 lt_cv_sys_max_cmd_len=196608
6221 ;;
6222
6223 osf*)
6224 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6225 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6226 # nice to cause kernel panics so lets avoid the loop below.
6227 # First set a reasonable default.
6228 lt_cv_sys_max_cmd_len=16384
6229 #
6230 if test -x /sbin/sysconfig; then
6231 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6232 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6233 esac
6234 fi
6235 ;;
6236 sco3.2v5*)
6237 lt_cv_sys_max_cmd_len=102400
6238 ;;
6239 sysv5* | sco5v6* | sysv4.2uw2*)
6240 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6241 if test -n "$kargmax"; then
6242 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6243 else
6244 lt_cv_sys_max_cmd_len=32768
6245 fi
6246 ;;
6247 *)
6248 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6249 if test -n "$lt_cv_sys_max_cmd_len"; then
6250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6251 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6252 else
6253 # Make teststring a little bigger before we do anything with it.
6254 # a 1K string should be a reasonable start.
6255 for i in 1 2 3 4 5 6 7 8 ; do
6256 teststring=$teststring$teststring
6257 done
6258 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6259 # If test is not a shell built-in, we'll probably end up computing a
6260 # maximum length that is only half of the actual maximum length, but
6261 # we can't tell.
6262 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6263 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6264 test $i != 17 # 1/2 MB should be enough
6265 do
6266 i=`expr $i + 1`
6267 teststring=$teststring$teststring
6268 done
6269 # Only check the string length outside the loop.
6270 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6271 teststring=
6272 # Add a significant safety factor because C++ compilers can tack on
6273 # massive amounts of additional arguments before passing them to the
6274 # linker. It appears as though 1/2 is a usable value.
6275 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6276 fi
6277 ;;
6278 esac
6279
6280 fi
6281
6282 if test -n $lt_cv_sys_max_cmd_len ; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6284 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6285 else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6287 $as_echo "none" >&6; }
6288 fi
6289 max_cmd_len=$lt_cv_sys_max_cmd_len
6290
6291
6292
6293
6294
6295
6296 : ${CP="cp -f"}
6297 : ${MV="mv -f"}
6298 : ${RM="rm -f"}
6299
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6301 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6302 # Try some XSI features
6303 xsi_shell=no
6304 ( _lt_dummy="a/b/c"
6305 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6306 = c,a/b,, \
6307 && eval 'test $(( 1 + 1 )) -eq 2 \
6308 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6309 && xsi_shell=yes
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6311 $as_echo "$xsi_shell" >&6; }
6312
6313
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6315 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6316 lt_shell_append=no
6317 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6318 >/dev/null 2>&1 \
6319 && lt_shell_append=yes
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6321 $as_echo "$lt_shell_append" >&6; }
6322
6323
6324 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6325 lt_unset=unset
6326 else
6327 lt_unset=false
6328 fi
6329
6330
6331
6332
6333
6334 # test EBCDIC or ASCII
6335 case `echo X|tr X '\101'` in
6336 A) # ASCII based system
6337 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6338 lt_SP2NL='tr \040 \012'
6339 lt_NL2SP='tr \015\012 \040\040'
6340 ;;
6341 *) # EBCDIC based system
6342 lt_SP2NL='tr \100 \n'
6343 lt_NL2SP='tr \r\n \100\100'
6344 ;;
6345 esac
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6356 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6357 if ${lt_cv_ld_reload_flag+:} false; then :
6358 $as_echo_n "(cached) " >&6
6359 else
6360 lt_cv_ld_reload_flag='-r'
6361 fi
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6363 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6364 reload_flag=$lt_cv_ld_reload_flag
6365 case $reload_flag in
6366 "" | " "*) ;;
6367 *) reload_flag=" $reload_flag" ;;
6368 esac
6369 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6370 case $host_os in
6371 darwin*)
6372 if test "$GCC" = yes; then
6373 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6374 else
6375 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6376 fi
6377 ;;
6378 esac
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388 if test -n "$ac_tool_prefix"; then
6389 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6390 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6392 $as_echo_n "checking for $ac_word... " >&6; }
6393 if ${ac_cv_prog_OBJDUMP+:} false; then :
6394 $as_echo_n "(cached) " >&6
6395 else
6396 if test -n "$OBJDUMP"; then
6397 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6398 else
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 for as_dir in $PATH
6401 do
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6406 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 break 2
6409 fi
6410 done
6411 done
6412 IFS=$as_save_IFS
6413
6414 fi
6415 fi
6416 OBJDUMP=$ac_cv_prog_OBJDUMP
6417 if test -n "$OBJDUMP"; then
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6419 $as_echo "$OBJDUMP" >&6; }
6420 else
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6422 $as_echo "no" >&6; }
6423 fi
6424
6425
6426 fi
6427 if test -z "$ac_cv_prog_OBJDUMP"; then
6428 ac_ct_OBJDUMP=$OBJDUMP
6429 # Extract the first word of "objdump", so it can be a program name with args.
6430 set dummy objdump; ac_word=$2
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 $as_echo_n "checking for $ac_word... " >&6; }
6433 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6434 $as_echo_n "(cached) " >&6
6435 else
6436 if test -n "$ac_ct_OBJDUMP"; then
6437 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6438 else
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 for as_dir in $PATH
6441 do
6442 IFS=$as_save_IFS
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6446 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 break 2
6449 fi
6450 done
6451 done
6452 IFS=$as_save_IFS
6453
6454 fi
6455 fi
6456 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6457 if test -n "$ac_ct_OBJDUMP"; then
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6459 $as_echo "$ac_ct_OBJDUMP" >&6; }
6460 else
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6463 fi
6464
6465 if test "x$ac_ct_OBJDUMP" = x; then
6466 OBJDUMP="false"
6467 else
6468 case $cross_compiling:$ac_tool_warned in
6469 yes:)
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6472 ac_tool_warned=yes ;;
6473 esac
6474 OBJDUMP=$ac_ct_OBJDUMP
6475 fi
6476 else
6477 OBJDUMP="$ac_cv_prog_OBJDUMP"
6478 fi
6479
6480 test -z "$OBJDUMP" && OBJDUMP=objdump
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6491 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6492 if ${lt_cv_deplibs_check_method+:} false; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 lt_cv_file_magic_cmd='$MAGIC_CMD'
6496 lt_cv_file_magic_test_file=
6497 lt_cv_deplibs_check_method='unknown'
6498 # Need to set the preceding variable on all platforms that support
6499 # interlibrary dependencies.
6500 # 'none' -- dependencies not supported.
6501 # `unknown' -- same as none, but documents that we really don't know.
6502 # 'pass_all' -- all dependencies passed with no checks.
6503 # 'test_compile' -- check by making test program.
6504 # 'file_magic [[regex]]' -- check by looking for files in library path
6505 # which responds to the $file_magic_cmd with a given extended regex.
6506 # If you have `file' or equivalent on your system and you're not sure
6507 # whether `pass_all' will *always* work, you probably want this one.
6508
6509 case $host_os in
6510 aix[4-9]*)
6511 lt_cv_deplibs_check_method=pass_all
6512 ;;
6513
6514 beos*)
6515 lt_cv_deplibs_check_method=pass_all
6516 ;;
6517
6518 bsdi[45]*)
6519 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6520 lt_cv_file_magic_cmd='/usr/bin/file -L'
6521 lt_cv_file_magic_test_file=/shlib/libc.so
6522 ;;
6523
6524 cygwin*)
6525 # func_win32_libid is a shell function defined in ltmain.sh
6526 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6527 lt_cv_file_magic_cmd='func_win32_libid'
6528 ;;
6529
6530 mingw* | pw32*)
6531 # Base MSYS/MinGW do not provide the 'file' command needed by
6532 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6533 # unless we find 'file', for example because we are cross-compiling.
6534 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6535 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6536 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6537 lt_cv_file_magic_cmd='func_win32_libid'
6538 else
6539 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6540 lt_cv_file_magic_cmd='$OBJDUMP -f'
6541 fi
6542 ;;
6543
6544 cegcc*)
6545 # use the weaker test based on 'objdump'. See mingw*.
6546 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6547 lt_cv_file_magic_cmd='$OBJDUMP -f'
6548 ;;
6549
6550 darwin* | rhapsody*)
6551 lt_cv_deplibs_check_method=pass_all
6552 ;;
6553
6554 freebsd* | dragonfly*)
6555 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6556 case $host_cpu in
6557 i*86 )
6558 # Not sure whether the presence of OpenBSD here was a mistake.
6559 # Let's accept both of them until this is cleared up.
6560 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6561 lt_cv_file_magic_cmd=/usr/bin/file
6562 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6563 ;;
6564 esac
6565 else
6566 lt_cv_deplibs_check_method=pass_all
6567 fi
6568 ;;
6569
6570 gnu*)
6571 lt_cv_deplibs_check_method=pass_all
6572 ;;
6573
6574 haiku*)
6575 lt_cv_deplibs_check_method=pass_all
6576 ;;
6577
6578 hpux10.20* | hpux11*)
6579 lt_cv_file_magic_cmd=/usr/bin/file
6580 case $host_cpu in
6581 ia64*)
6582 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6583 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6584 ;;
6585 hppa*64*)
6586 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]'
6587 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6588 ;;
6589 *)
6590 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6591 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6592 ;;
6593 esac
6594 ;;
6595
6596 interix[3-9]*)
6597 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6599 ;;
6600
6601 irix5* | irix6* | nonstopux*)
6602 case $LD in
6603 *-32|*"-32 ") libmagic=32-bit;;
6604 *-n32|*"-n32 ") libmagic=N32;;
6605 *-64|*"-64 ") libmagic=64-bit;;
6606 *) libmagic=never-match;;
6607 esac
6608 lt_cv_deplibs_check_method=pass_all
6609 ;;
6610
6611 # This must be Linux ELF.
6612 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6613 lt_cv_deplibs_check_method=pass_all
6614 ;;
6615
6616 netbsd*)
6617 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6619 else
6620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6621 fi
6622 ;;
6623
6624 newos6*)
6625 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6626 lt_cv_file_magic_cmd=/usr/bin/file
6627 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6628 ;;
6629
6630 *nto* | *qnx*)
6631 lt_cv_deplibs_check_method=pass_all
6632 ;;
6633
6634 openbsd*)
6635 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6637 else
6638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6639 fi
6640 ;;
6641
6642 osf3* | osf4* | osf5*)
6643 lt_cv_deplibs_check_method=pass_all
6644 ;;
6645
6646 rdos*)
6647 lt_cv_deplibs_check_method=pass_all
6648 ;;
6649
6650 solaris*)
6651 lt_cv_deplibs_check_method=pass_all
6652 ;;
6653
6654 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6655 lt_cv_deplibs_check_method=pass_all
6656 ;;
6657
6658 sysv4 | sysv4.3*)
6659 case $host_vendor in
6660 motorola)
6661 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]'
6662 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6663 ;;
6664 ncr)
6665 lt_cv_deplibs_check_method=pass_all
6666 ;;
6667 sequent)
6668 lt_cv_file_magic_cmd='/bin/file'
6669 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6670 ;;
6671 sni)
6672 lt_cv_file_magic_cmd='/bin/file'
6673 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6674 lt_cv_file_magic_test_file=/lib/libc.so
6675 ;;
6676 siemens)
6677 lt_cv_deplibs_check_method=pass_all
6678 ;;
6679 pc)
6680 lt_cv_deplibs_check_method=pass_all
6681 ;;
6682 esac
6683 ;;
6684
6685 tpf*)
6686 lt_cv_deplibs_check_method=pass_all
6687 ;;
6688 esac
6689
6690 fi
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6692 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6693 file_magic_cmd=$lt_cv_file_magic_cmd
6694 deplibs_check_method=$lt_cv_deplibs_check_method
6695 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708 plugin_option=
6709 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6710 for plugin in $plugin_names; do
6711 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6712 if test x$plugin_so = x$plugin; then
6713 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6714 fi
6715 if test x$plugin_so != x$plugin; then
6716 plugin_option="--plugin $plugin_so"
6717 break
6718 fi
6719 done
6720
6721 if test -n "$ac_tool_prefix"; then
6722 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6723 set dummy ${ac_tool_prefix}ar; ac_word=$2
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 $as_echo_n "checking for $ac_word... " >&6; }
6726 if ${ac_cv_prog_AR+:} false; then :
6727 $as_echo_n "(cached) " >&6
6728 else
6729 if test -n "$AR"; then
6730 ac_cv_prog_AR="$AR" # Let the user override the test.
6731 else
6732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 for as_dir in $PATH
6734 do
6735 IFS=$as_save_IFS
6736 test -z "$as_dir" && as_dir=.
6737 for ac_exec_ext in '' $ac_executable_extensions; do
6738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6739 ac_cv_prog_AR="${ac_tool_prefix}ar"
6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 break 2
6742 fi
6743 done
6744 done
6745 IFS=$as_save_IFS
6746
6747 fi
6748 fi
6749 AR=$ac_cv_prog_AR
6750 if test -n "$AR"; then
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6752 $as_echo "$AR" >&6; }
6753 else
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 $as_echo "no" >&6; }
6756 fi
6757
6758
6759 fi
6760 if test -z "$ac_cv_prog_AR"; then
6761 ac_ct_AR=$AR
6762 # Extract the first word of "ar", so it can be a program name with args.
6763 set dummy ar; ac_word=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6767 $as_echo_n "(cached) " >&6
6768 else
6769 if test -n "$ac_ct_AR"; then
6770 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6771 else
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 for as_dir in $PATH
6774 do
6775 IFS=$as_save_IFS
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6779 ac_cv_prog_ac_ct_AR="ar"
6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6781 break 2
6782 fi
6783 done
6784 done
6785 IFS=$as_save_IFS
6786
6787 fi
6788 fi
6789 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6790 if test -n "$ac_ct_AR"; then
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6792 $as_echo "$ac_ct_AR" >&6; }
6793 else
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 $as_echo "no" >&6; }
6796 fi
6797
6798 if test "x$ac_ct_AR" = x; then
6799 AR="false"
6800 else
6801 case $cross_compiling:$ac_tool_warned in
6802 yes:)
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6804 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6805 ac_tool_warned=yes ;;
6806 esac
6807 AR=$ac_ct_AR
6808 fi
6809 else
6810 AR="$ac_cv_prog_AR"
6811 fi
6812
6813 test -z "$AR" && AR=ar
6814 if test -n "$plugin_option"; then
6815 if $AR --help 2>&1 | grep -q "\--plugin"; then
6816 touch conftest.c
6817 $AR $plugin_option rc conftest.a conftest.c
6818 if test "$?" != 0; then
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6820 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6821 else
6822 AR="$AR $plugin_option"
6823 fi
6824 rm -f conftest.*
6825 fi
6826 fi
6827 test -z "$AR_FLAGS" && AR_FLAGS=cru
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839 if test -n "$ac_tool_prefix"; then
6840 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6841 set dummy ${ac_tool_prefix}strip; ac_word=$2
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843 $as_echo_n "checking for $ac_word... " >&6; }
6844 if ${ac_cv_prog_STRIP+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6847 if test -n "$STRIP"; then
6848 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6849 else
6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851 for as_dir in $PATH
6852 do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861 done
6862 done
6863 IFS=$as_save_IFS
6864
6865 fi
6866 fi
6867 STRIP=$ac_cv_prog_STRIP
6868 if test -n "$STRIP"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6870 $as_echo "$STRIP" >&6; }
6871 else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873 $as_echo "no" >&6; }
6874 fi
6875
6876
6877 fi
6878 if test -z "$ac_cv_prog_STRIP"; then
6879 ac_ct_STRIP=$STRIP
6880 # Extract the first word of "strip", so it can be a program name with args.
6881 set dummy strip; ac_word=$2
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883 $as_echo_n "checking for $ac_word... " >&6; }
6884 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 if test -n "$ac_ct_STRIP"; then
6888 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6889 else
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891 for as_dir in $PATH
6892 do
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6897 ac_cv_prog_ac_ct_STRIP="strip"
6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6900 fi
6901 done
6902 done
6903 IFS=$as_save_IFS
6904
6905 fi
6906 fi
6907 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6908 if test -n "$ac_ct_STRIP"; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6910 $as_echo "$ac_ct_STRIP" >&6; }
6911 else
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913 $as_echo "no" >&6; }
6914 fi
6915
6916 if test "x$ac_ct_STRIP" = x; then
6917 STRIP=":"
6918 else
6919 case $cross_compiling:$ac_tool_warned in
6920 yes:)
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6923 ac_tool_warned=yes ;;
6924 esac
6925 STRIP=$ac_ct_STRIP
6926 fi
6927 else
6928 STRIP="$ac_cv_prog_STRIP"
6929 fi
6930
6931 test -z "$STRIP" && STRIP=:
6932
6933
6934
6935
6936
6937
6938 if test -n "$ac_tool_prefix"; then
6939 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6940 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if ${ac_cv_prog_RANLIB+:} false; then :
6944 $as_echo_n "(cached) " >&6
6945 else
6946 if test -n "$RANLIB"; then
6947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6948 else
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6956 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960 done
6961 done
6962 IFS=$as_save_IFS
6963
6964 fi
6965 fi
6966 RANLIB=$ac_cv_prog_RANLIB
6967 if test -n "$RANLIB"; then
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6969 $as_echo "$RANLIB" >&6; }
6970 else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6973 fi
6974
6975
6976 fi
6977 if test -z "$ac_cv_prog_RANLIB"; then
6978 ac_ct_RANLIB=$RANLIB
6979 # Extract the first word of "ranlib", so it can be a program name with args.
6980 set dummy ranlib; ac_word=$2
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6982 $as_echo_n "checking for $ac_word... " >&6; }
6983 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6984 $as_echo_n "(cached) " >&6
6985 else
6986 if test -n "$ac_ct_RANLIB"; then
6987 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6991 do
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996 ac_cv_prog_ac_ct_RANLIB="ranlib"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
6999 fi
7000 done
7001 done
7002 IFS=$as_save_IFS
7003
7004 fi
7005 fi
7006 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7007 if test -n "$ac_ct_RANLIB"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7009 $as_echo "$ac_ct_RANLIB" >&6; }
7010 else
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7012 $as_echo "no" >&6; }
7013 fi
7014
7015 if test "x$ac_ct_RANLIB" = x; then
7016 RANLIB=":"
7017 else
7018 case $cross_compiling:$ac_tool_warned in
7019 yes:)
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7022 ac_tool_warned=yes ;;
7023 esac
7024 RANLIB=$ac_ct_RANLIB
7025 fi
7026 else
7027 RANLIB="$ac_cv_prog_RANLIB"
7028 fi
7029
7030 test -z "$RANLIB" && RANLIB=:
7031 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7032 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7033 RANLIB="$RANLIB $plugin_option"
7034 fi
7035 fi
7036
7037
7038
7039
7040
7041
7042 # Determine commands to create old-style static archives.
7043 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7044 old_postinstall_cmds='chmod 644 $oldlib'
7045 old_postuninstall_cmds=
7046
7047 if test -n "$RANLIB"; then
7048 case $host_os in
7049 openbsd*)
7050 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7051 ;;
7052 *)
7053 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7054 ;;
7055 esac
7056 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7057 fi
7058
7059 case $host_os in
7060 darwin*)
7061 lock_old_archive_extraction=yes ;;
7062 *)
7063 lock_old_archive_extraction=no ;;
7064 esac
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104 # If no C compiler was specified, use CC.
7105 LTCC=${LTCC-"$CC"}
7106
7107 # If no C compiler flags were specified, use CFLAGS.
7108 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7109
7110 # Allow CC to be a program name with arguments.
7111 compiler=$CC
7112
7113
7114 # Check for command to grab the raw symbol name followed by C symbol from nm.
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7116 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7117 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120
7121 # These are sane defaults that work on at least a few old systems.
7122 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7123
7124 # Character class describing NM global symbol codes.
7125 symcode='[BCDEGRST]'
7126
7127 # Regexp to match symbols that can be accessed directly from C.
7128 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7129
7130 # Define system-specific variables.
7131 case $host_os in
7132 aix*)
7133 symcode='[BCDT]'
7134 ;;
7135 cygwin* | mingw* | pw32* | cegcc*)
7136 symcode='[ABCDGISTW]'
7137 ;;
7138 hpux*)
7139 if test "$host_cpu" = ia64; then
7140 symcode='[ABCDEGRST]'
7141 fi
7142 ;;
7143 irix* | nonstopux*)
7144 symcode='[BCDEGRST]'
7145 ;;
7146 osf*)
7147 symcode='[BCDEGQRST]'
7148 ;;
7149 solaris*)
7150 symcode='[BCDRT]'
7151 ;;
7152 sco3.2v5*)
7153 symcode='[DT]'
7154 ;;
7155 sysv4.2uw2*)
7156 symcode='[DT]'
7157 ;;
7158 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7159 symcode='[ABDT]'
7160 ;;
7161 sysv4)
7162 symcode='[DFNSTU]'
7163 ;;
7164 esac
7165
7166 # If we're using GNU nm, then use its standard symbol codes.
7167 case `$NM -V 2>&1` in
7168 *GNU* | *'with BFD'*)
7169 symcode='[ABCDGIRSTW]' ;;
7170 esac
7171
7172 # Transform an extracted symbol line into a proper C declaration.
7173 # Some systems (esp. on ia64) link data and code symbols differently,
7174 # so use this general approach.
7175 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7176
7177 # Transform an extracted symbol line into symbol name and symbol address
7178 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7179 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'"
7180
7181 # Handle CRLF in mingw tool chain
7182 opt_cr=
7183 case $build_os in
7184 mingw*)
7185 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7186 ;;
7187 esac
7188
7189 # Try without a prefix underscore, then with it.
7190 for ac_symprfx in "" "_"; do
7191
7192 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7193 symxfrm="\\1 $ac_symprfx\\2 \\2"
7194
7195 # Write the raw and C identifiers.
7196 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7197 # Fake it for dumpbin and say T for any non-static function
7198 # and D for any global variable.
7199 # Also find C++ and __fastcall symbols from MSVC++,
7200 # which start with @ or ?.
7201 lt_cv_sys_global_symbol_pipe="$AWK '"\
7202 " {last_section=section; section=\$ 3};"\
7203 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7204 " \$ 0!~/External *\|/{next};"\
7205 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7206 " {if(hide[section]) next};"\
7207 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7208 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7209 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7210 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7211 " ' prfx=^$ac_symprfx"
7212 else
7213 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7214 fi
7215
7216 # Check to see that the pipe works correctly.
7217 pipe_works=no
7218
7219 rm -f conftest*
7220 cat > conftest.$ac_ext <<_LT_EOF
7221 #ifdef __cplusplus
7222 extern "C" {
7223 #endif
7224 char nm_test_var;
7225 void nm_test_func(void);
7226 void nm_test_func(void){}
7227 #ifdef __cplusplus
7228 }
7229 #endif
7230 int main(){nm_test_var='a';nm_test_func();return(0);}
7231 _LT_EOF
7232
7233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7234 (eval $ac_compile) 2>&5
7235 ac_status=$?
7236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7237 test $ac_status = 0; }; then
7238 # Now try to grab the symbols.
7239 nlist=conftest.nm
7240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7241 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7242 ac_status=$?
7243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7244 test $ac_status = 0; } && test -s "$nlist"; then
7245 # Try sorting and uniquifying the output.
7246 if sort "$nlist" | uniq > "$nlist"T; then
7247 mv -f "$nlist"T "$nlist"
7248 else
7249 rm -f "$nlist"T
7250 fi
7251
7252 # Make sure that we snagged all the symbols we need.
7253 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7254 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7255 cat <<_LT_EOF > conftest.$ac_ext
7256 #ifdef __cplusplus
7257 extern "C" {
7258 #endif
7259
7260 _LT_EOF
7261 # Now generate the symbol file.
7262 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7263
7264 cat <<_LT_EOF >> conftest.$ac_ext
7265
7266 /* The mapping between symbol names and symbols. */
7267 const struct {
7268 const char *name;
7269 void *address;
7270 }
7271 lt__PROGRAM__LTX_preloaded_symbols[] =
7272 {
7273 { "@PROGRAM@", (void *) 0 },
7274 _LT_EOF
7275 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7276 cat <<\_LT_EOF >> conftest.$ac_ext
7277 {0, (void *) 0}
7278 };
7279
7280 /* This works around a problem in FreeBSD linker */
7281 #ifdef FREEBSD_WORKAROUND
7282 static const void *lt_preloaded_setup() {
7283 return lt__PROGRAM__LTX_preloaded_symbols;
7284 }
7285 #endif
7286
7287 #ifdef __cplusplus
7288 }
7289 #endif
7290 _LT_EOF
7291 # Now try linking the two files.
7292 mv conftest.$ac_objext conftstm.$ac_objext
7293 lt_save_LIBS="$LIBS"
7294 lt_save_CFLAGS="$CFLAGS"
7295 LIBS="conftstm.$ac_objext"
7296 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7298 (eval $ac_link) 2>&5
7299 ac_status=$?
7300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7301 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7302 pipe_works=yes
7303 fi
7304 LIBS="$lt_save_LIBS"
7305 CFLAGS="$lt_save_CFLAGS"
7306 else
7307 echo "cannot find nm_test_func in $nlist" >&5
7308 fi
7309 else
7310 echo "cannot find nm_test_var in $nlist" >&5
7311 fi
7312 else
7313 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7314 fi
7315 else
7316 echo "$progname: failed program was:" >&5
7317 cat conftest.$ac_ext >&5
7318 fi
7319 rm -rf conftest* conftst*
7320
7321 # Do not use the global_symbol_pipe unless it works.
7322 if test "$pipe_works" = yes; then
7323 break
7324 else
7325 lt_cv_sys_global_symbol_pipe=
7326 fi
7327 done
7328
7329 fi
7330
7331 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7332 lt_cv_sys_global_symbol_to_cdecl=
7333 fi
7334 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7336 $as_echo "failed" >&6; }
7337 else
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7339 $as_echo "ok" >&6; }
7340 fi
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363 # Check whether --enable-libtool-lock was given.
7364 if test "${enable_libtool_lock+set}" = set; then :
7365 enableval=$enable_libtool_lock;
7366 fi
7367
7368 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7369
7370 # Some flags need to be propagated to the compiler or linker for good
7371 # libtool support.
7372 case $host in
7373 ia64-*-hpux*)
7374 # Find out which ABI we are using.
7375 echo 'int i;' > conftest.$ac_ext
7376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7377 (eval $ac_compile) 2>&5
7378 ac_status=$?
7379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7380 test $ac_status = 0; }; then
7381 case `/usr/bin/file conftest.$ac_objext` in
7382 *ELF-32*)
7383 HPUX_IA64_MODE="32"
7384 ;;
7385 *ELF-64*)
7386 HPUX_IA64_MODE="64"
7387 ;;
7388 esac
7389 fi
7390 rm -rf conftest*
7391 ;;
7392 *-*-irix6*)
7393 # Find out which ABI we are using.
7394 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7396 (eval $ac_compile) 2>&5
7397 ac_status=$?
7398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7399 test $ac_status = 0; }; then
7400 if test "$lt_cv_prog_gnu_ld" = yes; then
7401 case `/usr/bin/file conftest.$ac_objext` in
7402 *32-bit*)
7403 LD="${LD-ld} -melf32bsmip"
7404 ;;
7405 *N32*)
7406 LD="${LD-ld} -melf32bmipn32"
7407 ;;
7408 *64-bit*)
7409 LD="${LD-ld} -melf64bmip"
7410 ;;
7411 esac
7412 else
7413 case `/usr/bin/file conftest.$ac_objext` in
7414 *32-bit*)
7415 LD="${LD-ld} -32"
7416 ;;
7417 *N32*)
7418 LD="${LD-ld} -n32"
7419 ;;
7420 *64-bit*)
7421 LD="${LD-ld} -64"
7422 ;;
7423 esac
7424 fi
7425 fi
7426 rm -rf conftest*
7427 ;;
7428
7429 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7430 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7431 # Find out which ABI we are using.
7432 echo 'int i;' > conftest.$ac_ext
7433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7434 (eval $ac_compile) 2>&5
7435 ac_status=$?
7436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7437 test $ac_status = 0; }; then
7438 case `/usr/bin/file conftest.o` in
7439 *32-bit*)
7440 case $host in
7441 x86_64-*kfreebsd*-gnu)
7442 LD="${LD-ld} -m elf_i386_fbsd"
7443 ;;
7444 x86_64-*linux*)
7445 case `/usr/bin/file conftest.o` in
7446 *x86-64*)
7447 LD="${LD-ld} -m elf32_x86_64"
7448 ;;
7449 *)
7450 LD="${LD-ld} -m elf_i386"
7451 ;;
7452 esac
7453 ;;
7454 powerpc64le-*linux*)
7455 LD="${LD-ld} -m elf32lppclinux"
7456 ;;
7457 powerpc64-*linux*)
7458 LD="${LD-ld} -m elf32ppclinux"
7459 ;;
7460 s390x-*linux*)
7461 LD="${LD-ld} -m elf_s390"
7462 ;;
7463 sparc64-*linux*)
7464 LD="${LD-ld} -m elf32_sparc"
7465 ;;
7466 esac
7467 ;;
7468 *64-bit*)
7469 case $host in
7470 x86_64-*kfreebsd*-gnu)
7471 LD="${LD-ld} -m elf_x86_64_fbsd"
7472 ;;
7473 x86_64-*linux*)
7474 LD="${LD-ld} -m elf_x86_64"
7475 ;;
7476 powerpcle-*linux*)
7477 LD="${LD-ld} -m elf64lppc"
7478 ;;
7479 powerpc-*linux*)
7480 LD="${LD-ld} -m elf64ppc"
7481 ;;
7482 s390*-*linux*|s390*-*tpf*)
7483 LD="${LD-ld} -m elf64_s390"
7484 ;;
7485 sparc*-*linux*)
7486 LD="${LD-ld} -m elf64_sparc"
7487 ;;
7488 esac
7489 ;;
7490 esac
7491 fi
7492 rm -rf conftest*
7493 ;;
7494
7495 *-*-sco3.2v5*)
7496 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7497 SAVE_CFLAGS="$CFLAGS"
7498 CFLAGS="$CFLAGS -belf"
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7500 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7501 if ${lt_cv_cc_needs_belf+:} false; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7504 ac_ext=c
7505 ac_cpp='$CPP $CPPFLAGS'
7506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7509
7510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7511 /* end confdefs.h. */
7512
7513 int
7514 main ()
7515 {
7516
7517 ;
7518 return 0;
7519 }
7520 _ACEOF
7521 if ac_fn_c_try_link "$LINENO"; then :
7522 lt_cv_cc_needs_belf=yes
7523 else
7524 lt_cv_cc_needs_belf=no
7525 fi
7526 rm -f core conftest.err conftest.$ac_objext \
7527 conftest$ac_exeext conftest.$ac_ext
7528 ac_ext=c
7529 ac_cpp='$CPP $CPPFLAGS'
7530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7533
7534 fi
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7536 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7537 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7538 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7539 CFLAGS="$SAVE_CFLAGS"
7540 fi
7541 ;;
7542 sparc*-*solaris*)
7543 # Find out which ABI we are using.
7544 echo 'int i;' > conftest.$ac_ext
7545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7546 (eval $ac_compile) 2>&5
7547 ac_status=$?
7548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7549 test $ac_status = 0; }; then
7550 case `/usr/bin/file conftest.o` in
7551 *64-bit*)
7552 case $lt_cv_prog_gnu_ld in
7553 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7554 *)
7555 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7556 LD="${LD-ld} -64"
7557 fi
7558 ;;
7559 esac
7560 ;;
7561 esac
7562 fi
7563 rm -rf conftest*
7564 ;;
7565 esac
7566
7567 need_locks="$enable_libtool_lock"
7568
7569
7570 case $host_os in
7571 rhapsody* | darwin*)
7572 if test -n "$ac_tool_prefix"; then
7573 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7574 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 $as_echo_n "checking for $ac_word... " >&6; }
7577 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7578 $as_echo_n "(cached) " >&6
7579 else
7580 if test -n "$DSYMUTIL"; then
7581 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7582 else
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7585 do
7586 IFS=$as_save_IFS
7587 test -z "$as_dir" && as_dir=.
7588 for ac_exec_ext in '' $ac_executable_extensions; do
7589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 break 2
7593 fi
7594 done
7595 done
7596 IFS=$as_save_IFS
7597
7598 fi
7599 fi
7600 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7601 if test -n "$DSYMUTIL"; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7603 $as_echo "$DSYMUTIL" >&6; }
7604 else
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606 $as_echo "no" >&6; }
7607 fi
7608
7609
7610 fi
7611 if test -z "$ac_cv_prog_DSYMUTIL"; then
7612 ac_ct_DSYMUTIL=$DSYMUTIL
7613 # Extract the first word of "dsymutil", so it can be a program name with args.
7614 set dummy dsymutil; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 if test -n "$ac_ct_DSYMUTIL"; then
7621 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7622 else
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7625 do
7626 IFS=$as_save_IFS
7627 test -z "$as_dir" && as_dir=.
7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7630 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 break 2
7633 fi
7634 done
7635 done
7636 IFS=$as_save_IFS
7637
7638 fi
7639 fi
7640 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7641 if test -n "$ac_ct_DSYMUTIL"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7643 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7644 else
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7647 fi
7648
7649 if test "x$ac_ct_DSYMUTIL" = x; then
7650 DSYMUTIL=":"
7651 else
7652 case $cross_compiling:$ac_tool_warned in
7653 yes:)
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7656 ac_tool_warned=yes ;;
7657 esac
7658 DSYMUTIL=$ac_ct_DSYMUTIL
7659 fi
7660 else
7661 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7662 fi
7663
7664 if test -n "$ac_tool_prefix"; then
7665 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7666 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668 $as_echo_n "checking for $ac_word... " >&6; }
7669 if ${ac_cv_prog_NMEDIT+:} false; then :
7670 $as_echo_n "(cached) " >&6
7671 else
7672 if test -n "$NMEDIT"; then
7673 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7674 else
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7677 do
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7682 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 break 2
7685 fi
7686 done
7687 done
7688 IFS=$as_save_IFS
7689
7690 fi
7691 fi
7692 NMEDIT=$ac_cv_prog_NMEDIT
7693 if test -n "$NMEDIT"; then
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7695 $as_echo "$NMEDIT" >&6; }
7696 else
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7699 fi
7700
7701
7702 fi
7703 if test -z "$ac_cv_prog_NMEDIT"; then
7704 ac_ct_NMEDIT=$NMEDIT
7705 # Extract the first word of "nmedit", so it can be a program name with args.
7706 set dummy nmedit; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7710 $as_echo_n "(cached) " >&6
7711 else
7712 if test -n "$ac_ct_NMEDIT"; then
7713 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7725 fi
7726 done
7727 done
7728 IFS=$as_save_IFS
7729
7730 fi
7731 fi
7732 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7733 if test -n "$ac_ct_NMEDIT"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7735 $as_echo "$ac_ct_NMEDIT" >&6; }
7736 else
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7739 fi
7740
7741 if test "x$ac_ct_NMEDIT" = x; then
7742 NMEDIT=":"
7743 else
7744 case $cross_compiling:$ac_tool_warned in
7745 yes:)
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7748 ac_tool_warned=yes ;;
7749 esac
7750 NMEDIT=$ac_ct_NMEDIT
7751 fi
7752 else
7753 NMEDIT="$ac_cv_prog_NMEDIT"
7754 fi
7755
7756 if test -n "$ac_tool_prefix"; then
7757 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7758 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if ${ac_cv_prog_LIPO+:} false; then :
7762 $as_echo_n "(cached) " >&6
7763 else
7764 if test -n "$LIPO"; then
7765 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7769 do
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
7773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7777 fi
7778 done
7779 done
7780 IFS=$as_save_IFS
7781
7782 fi
7783 fi
7784 LIPO=$ac_cv_prog_LIPO
7785 if test -n "$LIPO"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7787 $as_echo "$LIPO" >&6; }
7788 else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7791 fi
7792
7793
7794 fi
7795 if test -z "$ac_cv_prog_LIPO"; then
7796 ac_ct_LIPO=$LIPO
7797 # Extract the first word of "lipo", so it can be a program name with args.
7798 set dummy lipo; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 if test -n "$ac_ct_LIPO"; then
7805 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7809 do
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814 ac_cv_prog_ac_ct_LIPO="lipo"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 break 2
7817 fi
7818 done
7819 done
7820 IFS=$as_save_IFS
7821
7822 fi
7823 fi
7824 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7825 if test -n "$ac_ct_LIPO"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7827 $as_echo "$ac_ct_LIPO" >&6; }
7828 else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832
7833 if test "x$ac_ct_LIPO" = x; then
7834 LIPO=":"
7835 else
7836 case $cross_compiling:$ac_tool_warned in
7837 yes:)
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7840 ac_tool_warned=yes ;;
7841 esac
7842 LIPO=$ac_ct_LIPO
7843 fi
7844 else
7845 LIPO="$ac_cv_prog_LIPO"
7846 fi
7847
7848 if test -n "$ac_tool_prefix"; then
7849 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7850 set dummy ${ac_tool_prefix}otool; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if ${ac_cv_prog_OTOOL+:} false; then :
7854 $as_echo_n "(cached) " >&6
7855 else
7856 if test -n "$OTOOL"; then
7857 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862 IFS=$as_save_IFS
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
7865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7866 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 break 2
7869 fi
7870 done
7871 done
7872 IFS=$as_save_IFS
7873
7874 fi
7875 fi
7876 OTOOL=$ac_cv_prog_OTOOL
7877 if test -n "$OTOOL"; then
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7879 $as_echo "$OTOOL" >&6; }
7880 else
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7883 fi
7884
7885
7886 fi
7887 if test -z "$ac_cv_prog_OTOOL"; then
7888 ac_ct_OTOOL=$OTOOL
7889 # Extract the first word of "otool", so it can be a program name with args.
7890 set dummy otool; ac_word=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 if test -n "$ac_ct_OTOOL"; then
7897 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7898 else
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 for as_dir in $PATH
7901 do
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
7905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906 ac_cv_prog_ac_ct_OTOOL="otool"
7907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 break 2
7909 fi
7910 done
7911 done
7912 IFS=$as_save_IFS
7913
7914 fi
7915 fi
7916 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7917 if test -n "$ac_ct_OTOOL"; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7919 $as_echo "$ac_ct_OTOOL" >&6; }
7920 else
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7923 fi
7924
7925 if test "x$ac_ct_OTOOL" = x; then
7926 OTOOL=":"
7927 else
7928 case $cross_compiling:$ac_tool_warned in
7929 yes:)
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7932 ac_tool_warned=yes ;;
7933 esac
7934 OTOOL=$ac_ct_OTOOL
7935 fi
7936 else
7937 OTOOL="$ac_cv_prog_OTOOL"
7938 fi
7939
7940 if test -n "$ac_tool_prefix"; then
7941 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7942 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944 $as_echo_n "checking for $ac_word... " >&6; }
7945 if ${ac_cv_prog_OTOOL64+:} false; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 if test -n "$OTOOL64"; then
7949 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7950 else
7951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952 for as_dir in $PATH
7953 do
7954 IFS=$as_save_IFS
7955 test -z "$as_dir" && as_dir=.
7956 for ac_exec_ext in '' $ac_executable_extensions; do
7957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7958 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960 break 2
7961 fi
7962 done
7963 done
7964 IFS=$as_save_IFS
7965
7966 fi
7967 fi
7968 OTOOL64=$ac_cv_prog_OTOOL64
7969 if test -n "$OTOOL64"; then
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7971 $as_echo "$OTOOL64" >&6; }
7972 else
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 $as_echo "no" >&6; }
7975 fi
7976
7977
7978 fi
7979 if test -z "$ac_cv_prog_OTOOL64"; then
7980 ac_ct_OTOOL64=$OTOOL64
7981 # Extract the first word of "otool64", so it can be a program name with args.
7982 set dummy otool64; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 if test -n "$ac_ct_OTOOL64"; then
7989 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7990 else
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7993 do
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998 ac_cv_prog_ac_ct_OTOOL64="otool64"
7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 break 2
8001 fi
8002 done
8003 done
8004 IFS=$as_save_IFS
8005
8006 fi
8007 fi
8008 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8009 if test -n "$ac_ct_OTOOL64"; then
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8011 $as_echo "$ac_ct_OTOOL64" >&6; }
8012 else
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8015 fi
8016
8017 if test "x$ac_ct_OTOOL64" = x; then
8018 OTOOL64=":"
8019 else
8020 case $cross_compiling:$ac_tool_warned in
8021 yes:)
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8024 ac_tool_warned=yes ;;
8025 esac
8026 OTOOL64=$ac_ct_OTOOL64
8027 fi
8028 else
8029 OTOOL64="$ac_cv_prog_OTOOL64"
8030 fi
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8059 $as_echo_n "checking for -single_module linker flag... " >&6; }
8060 if ${lt_cv_apple_cc_single_mod+:} false; then :
8061 $as_echo_n "(cached) " >&6
8062 else
8063 lt_cv_apple_cc_single_mod=no
8064 if test -z "${LT_MULTI_MODULE}"; then
8065 # By default we will add the -single_module flag. You can override
8066 # by either setting the environment variable LT_MULTI_MODULE
8067 # non-empty at configure time, or by adding -multi_module to the
8068 # link flags.
8069 rm -rf libconftest.dylib*
8070 echo "int foo(void){return 1;}" > conftest.c
8071 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8072 -dynamiclib -Wl,-single_module conftest.c" >&5
8073 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8074 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8075 _lt_result=$?
8076 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8077 lt_cv_apple_cc_single_mod=yes
8078 else
8079 cat conftest.err >&5
8080 fi
8081 rm -rf libconftest.dylib*
8082 rm -f conftest.*
8083 fi
8084 fi
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8086 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8088 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8089 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 lt_cv_ld_exported_symbols_list=no
8093 save_LDFLAGS=$LDFLAGS
8094 echo "_main" > conftest.sym
8095 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8098
8099 int
8100 main ()
8101 {
8102
8103 ;
8104 return 0;
8105 }
8106 _ACEOF
8107 if ac_fn_c_try_link "$LINENO"; then :
8108 lt_cv_ld_exported_symbols_list=yes
8109 else
8110 lt_cv_ld_exported_symbols_list=no
8111 fi
8112 rm -f core conftest.err conftest.$ac_objext \
8113 conftest$ac_exeext conftest.$ac_ext
8114 LDFLAGS="$save_LDFLAGS"
8115
8116 fi
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8118 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8120 $as_echo_n "checking for -force_load linker flag... " >&6; }
8121 if ${lt_cv_ld_force_load+:} false; then :
8122 $as_echo_n "(cached) " >&6
8123 else
8124 lt_cv_ld_force_load=no
8125 cat > conftest.c << _LT_EOF
8126 int forced_loaded() { return 2;}
8127 _LT_EOF
8128 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8129 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8130 echo "$AR cru libconftest.a conftest.o" >&5
8131 $AR cru libconftest.a conftest.o 2>&5
8132 cat > conftest.c << _LT_EOF
8133 int main() { return 0;}
8134 _LT_EOF
8135 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8136 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8137 _lt_result=$?
8138 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8139 lt_cv_ld_force_load=yes
8140 else
8141 cat conftest.err >&5
8142 fi
8143 rm -f conftest.err libconftest.a conftest conftest.c
8144 rm -rf conftest.dSYM
8145
8146 fi
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8148 $as_echo "$lt_cv_ld_force_load" >&6; }
8149 case $host_os in
8150 rhapsody* | darwin1.[012])
8151 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8152 darwin1.*)
8153 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8154 darwin*) # darwin 5.x on
8155 # if running on 10.5 or later, the deployment target defaults
8156 # to the OS version, if on x86, and 10.4, the deployment
8157 # target defaults to 10.4. Don't you love it?
8158 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8159 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8160 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8161 10.[012][,.]*)
8162 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8163 10.*)
8164 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8165 esac
8166 ;;
8167 esac
8168 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8169 _lt_dar_single_mod='$single_module'
8170 fi
8171 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8172 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8173 else
8174 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8175 fi
8176 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8177 _lt_dsymutil='~$DSYMUTIL $lib || :'
8178 else
8179 _lt_dsymutil=
8180 fi
8181 ;;
8182 esac
8183
8184 for ac_header in dlfcn.h
8185 do :
8186 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8187 "
8188 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8189 cat >>confdefs.h <<_ACEOF
8190 #define HAVE_DLFCN_H 1
8191 _ACEOF
8192
8193 fi
8194
8195 done
8196
8197
8198
8199
8200
8201 # Set options
8202
8203
8204
8205 enable_dlopen=no
8206
8207
8208 enable_win32_dll=no
8209
8210
8211
8212 # Check whether --enable-static was given.
8213 if test "${enable_static+set}" = set; then :
8214 enableval=$enable_static; p=${PACKAGE-default}
8215 case $enableval in
8216 yes) enable_static=yes ;;
8217 no) enable_static=no ;;
8218 *)
8219 enable_static=no
8220 # Look at the argument we got. We use all the common list separators.
8221 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8222 for pkg in $enableval; do
8223 IFS="$lt_save_ifs"
8224 if test "X$pkg" = "X$p"; then
8225 enable_static=yes
8226 fi
8227 done
8228 IFS="$lt_save_ifs"
8229 ;;
8230 esac
8231 else
8232 enable_static=yes
8233 fi
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244 # Check whether --with-pic was given.
8245 if test "${with_pic+set}" = set; then :
8246 withval=$with_pic; pic_mode="$withval"
8247 else
8248 pic_mode=default
8249 fi
8250
8251
8252 test -z "$pic_mode" && pic_mode=default
8253
8254
8255
8256
8257
8258
8259
8260 # Check whether --enable-fast-install was given.
8261 if test "${enable_fast_install+set}" = set; then :
8262 enableval=$enable_fast_install; p=${PACKAGE-default}
8263 case $enableval in
8264 yes) enable_fast_install=yes ;;
8265 no) enable_fast_install=no ;;
8266 *)
8267 enable_fast_install=no
8268 # Look at the argument we got. We use all the common list separators.
8269 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8270 for pkg in $enableval; do
8271 IFS="$lt_save_ifs"
8272 if test "X$pkg" = "X$p"; then
8273 enable_fast_install=yes
8274 fi
8275 done
8276 IFS="$lt_save_ifs"
8277 ;;
8278 esac
8279 else
8280 enable_fast_install=yes
8281 fi
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293 # This can be used to rebuild libtool when needed
8294 LIBTOOL_DEPS="$ltmain"
8295
8296 # Always use our own libtool.
8297 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324 test -z "$LN_S" && LN_S="ln -s"
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339 if test -n "${ZSH_VERSION+set}" ; then
8340 setopt NO_GLOB_SUBST
8341 fi
8342
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8344 $as_echo_n "checking for objdir... " >&6; }
8345 if ${lt_cv_objdir+:} false; then :
8346 $as_echo_n "(cached) " >&6
8347 else
8348 rm -f .libs 2>/dev/null
8349 mkdir .libs 2>/dev/null
8350 if test -d .libs; then
8351 lt_cv_objdir=.libs
8352 else
8353 # MS-DOS does not allow filenames that begin with a dot.
8354 lt_cv_objdir=_libs
8355 fi
8356 rmdir .libs 2>/dev/null
8357 fi
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8359 $as_echo "$lt_cv_objdir" >&6; }
8360 objdir=$lt_cv_objdir
8361
8362
8363
8364
8365
8366 cat >>confdefs.h <<_ACEOF
8367 #define LT_OBJDIR "$lt_cv_objdir/"
8368 _ACEOF
8369
8370
8371
8372
8373 case $host_os in
8374 aix3*)
8375 # AIX sometimes has problems with the GCC collect2 program. For some
8376 # reason, if we set the COLLECT_NAMES environment variable, the problems
8377 # vanish in a puff of smoke.
8378 if test "X${COLLECT_NAMES+set}" != Xset; then
8379 COLLECT_NAMES=
8380 export COLLECT_NAMES
8381 fi
8382 ;;
8383 esac
8384
8385 # Global variables:
8386 ofile=libtool
8387 can_build_shared=yes
8388
8389 # All known linkers require a `.a' archive for static linking (except MSVC,
8390 # which needs '.lib').
8391 libext=a
8392
8393 with_gnu_ld="$lt_cv_prog_gnu_ld"
8394
8395 old_CC="$CC"
8396 old_CFLAGS="$CFLAGS"
8397
8398 # Set sane defaults for various variables
8399 test -z "$CC" && CC=cc
8400 test -z "$LTCC" && LTCC=$CC
8401 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8402 test -z "$LD" && LD=ld
8403 test -z "$ac_objext" && ac_objext=o
8404
8405 for cc_temp in $compiler""; do
8406 case $cc_temp in
8407 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8408 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8409 \-*) ;;
8410 *) break;;
8411 esac
8412 done
8413 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8414
8415
8416 # Only perform the check for file, if the check method requires it
8417 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8418 case $deplibs_check_method in
8419 file_magic*)
8420 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8422 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8423 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8424 $as_echo_n "(cached) " >&6
8425 else
8426 case $MAGIC_CMD in
8427 [\\/*] | ?:[\\/]*)
8428 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8429 ;;
8430 *)
8431 lt_save_MAGIC_CMD="$MAGIC_CMD"
8432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8433 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8434 for ac_dir in $ac_dummy; do
8435 IFS="$lt_save_ifs"
8436 test -z "$ac_dir" && ac_dir=.
8437 if test -f $ac_dir/${ac_tool_prefix}file; then
8438 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8439 if test -n "$file_magic_test_file"; then
8440 case $deplibs_check_method in
8441 "file_magic "*)
8442 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8444 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8445 $EGREP "$file_magic_regex" > /dev/null; then
8446 :
8447 else
8448 cat <<_LT_EOF 1>&2
8449
8450 *** Warning: the command libtool uses to detect shared libraries,
8451 *** $file_magic_cmd, produces output that libtool cannot recognize.
8452 *** The result is that libtool may fail to recognize shared libraries
8453 *** as such. This will affect the creation of libtool libraries that
8454 *** depend on shared libraries, but programs linked with such libtool
8455 *** libraries will work regardless of this problem. Nevertheless, you
8456 *** may want to report the problem to your system manager and/or to
8457 *** bug-libtool@gnu.org
8458
8459 _LT_EOF
8460 fi ;;
8461 esac
8462 fi
8463 break
8464 fi
8465 done
8466 IFS="$lt_save_ifs"
8467 MAGIC_CMD="$lt_save_MAGIC_CMD"
8468 ;;
8469 esac
8470 fi
8471
8472 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8473 if test -n "$MAGIC_CMD"; then
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8475 $as_echo "$MAGIC_CMD" >&6; }
8476 else
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478 $as_echo "no" >&6; }
8479 fi
8480
8481
8482
8483
8484
8485 if test -z "$lt_cv_path_MAGIC_CMD"; then
8486 if test -n "$ac_tool_prefix"; then
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8488 $as_echo_n "checking for file... " >&6; }
8489 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 case $MAGIC_CMD in
8493 [\\/*] | ?:[\\/]*)
8494 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8495 ;;
8496 *)
8497 lt_save_MAGIC_CMD="$MAGIC_CMD"
8498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8499 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8500 for ac_dir in $ac_dummy; do
8501 IFS="$lt_save_ifs"
8502 test -z "$ac_dir" && ac_dir=.
8503 if test -f $ac_dir/file; then
8504 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8505 if test -n "$file_magic_test_file"; then
8506 case $deplibs_check_method in
8507 "file_magic "*)
8508 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8509 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8510 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8511 $EGREP "$file_magic_regex" > /dev/null; then
8512 :
8513 else
8514 cat <<_LT_EOF 1>&2
8515
8516 *** Warning: the command libtool uses to detect shared libraries,
8517 *** $file_magic_cmd, produces output that libtool cannot recognize.
8518 *** The result is that libtool may fail to recognize shared libraries
8519 *** as such. This will affect the creation of libtool libraries that
8520 *** depend on shared libraries, but programs linked with such libtool
8521 *** libraries will work regardless of this problem. Nevertheless, you
8522 *** may want to report the problem to your system manager and/or to
8523 *** bug-libtool@gnu.org
8524
8525 _LT_EOF
8526 fi ;;
8527 esac
8528 fi
8529 break
8530 fi
8531 done
8532 IFS="$lt_save_ifs"
8533 MAGIC_CMD="$lt_save_MAGIC_CMD"
8534 ;;
8535 esac
8536 fi
8537
8538 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8539 if test -n "$MAGIC_CMD"; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8541 $as_echo "$MAGIC_CMD" >&6; }
8542 else
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8545 fi
8546
8547
8548 else
8549 MAGIC_CMD=:
8550 fi
8551 fi
8552
8553 fi
8554 ;;
8555 esac
8556
8557 # Use C for the default configuration in the libtool script
8558
8559 lt_save_CC="$CC"
8560 ac_ext=c
8561 ac_cpp='$CPP $CPPFLAGS'
8562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8565
8566
8567 # Source file extension for C test sources.
8568 ac_ext=c
8569
8570 # Object file extension for compiled C test sources.
8571 objext=o
8572 objext=$objext
8573
8574 # Code to be used in simple compile tests
8575 lt_simple_compile_test_code="int some_variable = 0;"
8576
8577 # Code to be used in simple link tests
8578 lt_simple_link_test_code='int main(){return(0);}'
8579
8580
8581
8582
8583
8584
8585
8586 # If no C compiler was specified, use CC.
8587 LTCC=${LTCC-"$CC"}
8588
8589 # If no C compiler flags were specified, use CFLAGS.
8590 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8591
8592 # Allow CC to be a program name with arguments.
8593 compiler=$CC
8594
8595 # Save the default compiler, since it gets overwritten when the other
8596 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8597 compiler_DEFAULT=$CC
8598
8599 # save warnings/boilerplate of simple test code
8600 ac_outfile=conftest.$ac_objext
8601 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8602 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8603 _lt_compiler_boilerplate=`cat conftest.err`
8604 $RM conftest*
8605
8606 ac_outfile=conftest.$ac_objext
8607 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8608 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8609 _lt_linker_boilerplate=`cat conftest.err`
8610 $RM -r conftest*
8611
8612
8613 ## CAVEAT EMPTOR:
8614 ## There is no encapsulation within the following macros, do not change
8615 ## the running order or otherwise move them around unless you know exactly
8616 ## what you are doing...
8617 if test -n "$compiler"; then
8618
8619 lt_prog_compiler_no_builtin_flag=
8620
8621 if test "$GCC" = yes; then
8622 case $cc_basename in
8623 nvcc*)
8624 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8625 *)
8626 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8627 esac
8628
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8630 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8631 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8632 $as_echo_n "(cached) " >&6
8633 else
8634 lt_cv_prog_compiler_rtti_exceptions=no
8635 ac_outfile=conftest.$ac_objext
8636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8637 lt_compiler_flag="-fno-rtti -fno-exceptions"
8638 # Insert the option either (1) after the last *FLAGS variable, or
8639 # (2) before a word containing "conftest.", or (3) at the end.
8640 # Note that $ac_compile itself does not contain backslashes and begins
8641 # with a dollar sign (not a hyphen), so the echo should work correctly.
8642 # The option is referenced via a variable to avoid confusing sed.
8643 lt_compile=`echo "$ac_compile" | $SED \
8644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8646 -e 's:$: $lt_compiler_flag:'`
8647 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8648 (eval "$lt_compile" 2>conftest.err)
8649 ac_status=$?
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 if (exit $ac_status) && test -s "$ac_outfile"; then
8653 # The compiler can only warn and ignore the option if not recognized
8654 # So say no if there are warnings other than the usual output.
8655 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8657 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8658 lt_cv_prog_compiler_rtti_exceptions=yes
8659 fi
8660 fi
8661 $RM conftest*
8662
8663 fi
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8665 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8666
8667 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8668 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8669 else
8670 :
8671 fi
8672
8673 fi
8674
8675
8676
8677
8678
8679
8680 lt_prog_compiler_wl=
8681 lt_prog_compiler_pic=
8682 lt_prog_compiler_static=
8683
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8685 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8686
8687 if test "$GCC" = yes; then
8688 lt_prog_compiler_wl='-Wl,'
8689 lt_prog_compiler_static='-static'
8690
8691 case $host_os in
8692 aix*)
8693 # All AIX code is PIC.
8694 if test "$host_cpu" = ia64; then
8695 # AIX 5 now supports IA64 processor
8696 lt_prog_compiler_static='-Bstatic'
8697 fi
8698 lt_prog_compiler_pic='-fPIC'
8699 ;;
8700
8701 amigaos*)
8702 case $host_cpu in
8703 powerpc)
8704 # see comment about AmigaOS4 .so support
8705 lt_prog_compiler_pic='-fPIC'
8706 ;;
8707 m68k)
8708 # FIXME: we need at least 68020 code to build shared libraries, but
8709 # adding the `-m68020' flag to GCC prevents building anything better,
8710 # like `-m68040'.
8711 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8712 ;;
8713 esac
8714 ;;
8715
8716 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8717 # PIC is the default for these OSes.
8718 ;;
8719
8720 mingw* | cygwin* | pw32* | os2* | cegcc*)
8721 # This hack is so that the source file can tell whether it is being
8722 # built for inclusion in a dll (and should export symbols for example).
8723 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8724 # (--disable-auto-import) libraries
8725 lt_prog_compiler_pic='-DDLL_EXPORT'
8726 ;;
8727
8728 darwin* | rhapsody*)
8729 # PIC is the default on this platform
8730 # Common symbols not allowed in MH_DYLIB files
8731 lt_prog_compiler_pic='-fno-common'
8732 ;;
8733
8734 haiku*)
8735 # PIC is the default for Haiku.
8736 # The "-static" flag exists, but is broken.
8737 lt_prog_compiler_static=
8738 ;;
8739
8740 hpux*)
8741 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8742 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8743 # sets the default TLS model and affects inlining.
8744 case $host_cpu in
8745 hppa*64*)
8746 # +Z the default
8747 ;;
8748 *)
8749 lt_prog_compiler_pic='-fPIC'
8750 ;;
8751 esac
8752 ;;
8753
8754 interix[3-9]*)
8755 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8756 # Instead, we relocate shared libraries at runtime.
8757 ;;
8758
8759 msdosdjgpp*)
8760 # Just because we use GCC doesn't mean we suddenly get shared libraries
8761 # on systems that don't support them.
8762 lt_prog_compiler_can_build_shared=no
8763 enable_shared=no
8764 ;;
8765
8766 *nto* | *qnx*)
8767 # QNX uses GNU C++, but need to define -shared option too, otherwise
8768 # it will coredump.
8769 lt_prog_compiler_pic='-fPIC -shared'
8770 ;;
8771
8772 sysv4*MP*)
8773 if test -d /usr/nec; then
8774 lt_prog_compiler_pic=-Kconform_pic
8775 fi
8776 ;;
8777
8778 *)
8779 lt_prog_compiler_pic='-fPIC'
8780 ;;
8781 esac
8782
8783 case $cc_basename in
8784 nvcc*) # Cuda Compiler Driver 2.2
8785 lt_prog_compiler_wl='-Xlinker '
8786 lt_prog_compiler_pic='-Xcompiler -fPIC'
8787 ;;
8788 esac
8789 else
8790 # PORTME Check for flag to pass linker flags through the system compiler.
8791 case $host_os in
8792 aix*)
8793 lt_prog_compiler_wl='-Wl,'
8794 if test "$host_cpu" = ia64; then
8795 # AIX 5 now supports IA64 processor
8796 lt_prog_compiler_static='-Bstatic'
8797 else
8798 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8799 fi
8800 ;;
8801
8802 mingw* | cygwin* | pw32* | os2* | cegcc*)
8803 # This hack is so that the source file can tell whether it is being
8804 # built for inclusion in a dll (and should export symbols for example).
8805 lt_prog_compiler_pic='-DDLL_EXPORT'
8806 ;;
8807
8808 hpux9* | hpux10* | hpux11*)
8809 lt_prog_compiler_wl='-Wl,'
8810 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8811 # not for PA HP-UX.
8812 case $host_cpu in
8813 hppa*64*|ia64*)
8814 # +Z the default
8815 ;;
8816 *)
8817 lt_prog_compiler_pic='+Z'
8818 ;;
8819 esac
8820 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8821 lt_prog_compiler_static='${wl}-a ${wl}archive'
8822 ;;
8823
8824 irix5* | irix6* | nonstopux*)
8825 lt_prog_compiler_wl='-Wl,'
8826 # PIC (with -KPIC) is the default.
8827 lt_prog_compiler_static='-non_shared'
8828 ;;
8829
8830 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8831 case $cc_basename in
8832 # old Intel for x86_64 which still supported -KPIC.
8833 ecc*)
8834 lt_prog_compiler_wl='-Wl,'
8835 lt_prog_compiler_pic='-KPIC'
8836 lt_prog_compiler_static='-static'
8837 ;;
8838 # icc used to be incompatible with GCC.
8839 # ICC 10 doesn't accept -KPIC any more.
8840 icc* | ifort*)
8841 lt_prog_compiler_wl='-Wl,'
8842 lt_prog_compiler_pic='-fPIC'
8843 lt_prog_compiler_static='-static'
8844 ;;
8845 # Lahey Fortran 8.1.
8846 lf95*)
8847 lt_prog_compiler_wl='-Wl,'
8848 lt_prog_compiler_pic='--shared'
8849 lt_prog_compiler_static='--static'
8850 ;;
8851 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8852 # Portland Group compilers (*not* the Pentium gcc compiler,
8853 # which looks to be a dead project)
8854 lt_prog_compiler_wl='-Wl,'
8855 lt_prog_compiler_pic='-fpic'
8856 lt_prog_compiler_static='-Bstatic'
8857 ;;
8858 ccc*)
8859 lt_prog_compiler_wl='-Wl,'
8860 # All Alpha code is PIC.
8861 lt_prog_compiler_static='-non_shared'
8862 ;;
8863 xl* | bgxl* | bgf* | mpixl*)
8864 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8865 lt_prog_compiler_wl='-Wl,'
8866 lt_prog_compiler_pic='-qpic'
8867 lt_prog_compiler_static='-qstaticlink'
8868 ;;
8869 *)
8870 case `$CC -V 2>&1 | sed 5q` in
8871 *Sun\ F* | *Sun*Fortran*)
8872 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8873 lt_prog_compiler_pic='-KPIC'
8874 lt_prog_compiler_static='-Bstatic'
8875 lt_prog_compiler_wl=''
8876 ;;
8877 *Sun\ C*)
8878 # Sun C 5.9
8879 lt_prog_compiler_pic='-KPIC'
8880 lt_prog_compiler_static='-Bstatic'
8881 lt_prog_compiler_wl='-Wl,'
8882 ;;
8883 esac
8884 ;;
8885 esac
8886 ;;
8887
8888 newsos6)
8889 lt_prog_compiler_pic='-KPIC'
8890 lt_prog_compiler_static='-Bstatic'
8891 ;;
8892
8893 *nto* | *qnx*)
8894 # QNX uses GNU C++, but need to define -shared option too, otherwise
8895 # it will coredump.
8896 lt_prog_compiler_pic='-fPIC -shared'
8897 ;;
8898
8899 osf3* | osf4* | osf5*)
8900 lt_prog_compiler_wl='-Wl,'
8901 # All OSF/1 code is PIC.
8902 lt_prog_compiler_static='-non_shared'
8903 ;;
8904
8905 rdos*)
8906 lt_prog_compiler_static='-non_shared'
8907 ;;
8908
8909 solaris*)
8910 lt_prog_compiler_pic='-KPIC'
8911 lt_prog_compiler_static='-Bstatic'
8912 case $cc_basename in
8913 f77* | f90* | f95*)
8914 lt_prog_compiler_wl='-Qoption ld ';;
8915 *)
8916 lt_prog_compiler_wl='-Wl,';;
8917 esac
8918 ;;
8919
8920 sunos4*)
8921 lt_prog_compiler_wl='-Qoption ld '
8922 lt_prog_compiler_pic='-PIC'
8923 lt_prog_compiler_static='-Bstatic'
8924 ;;
8925
8926 sysv4 | sysv4.2uw2* | sysv4.3*)
8927 lt_prog_compiler_wl='-Wl,'
8928 lt_prog_compiler_pic='-KPIC'
8929 lt_prog_compiler_static='-Bstatic'
8930 ;;
8931
8932 sysv4*MP*)
8933 if test -d /usr/nec ;then
8934 lt_prog_compiler_pic='-Kconform_pic'
8935 lt_prog_compiler_static='-Bstatic'
8936 fi
8937 ;;
8938
8939 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8940 lt_prog_compiler_wl='-Wl,'
8941 lt_prog_compiler_pic='-KPIC'
8942 lt_prog_compiler_static='-Bstatic'
8943 ;;
8944
8945 unicos*)
8946 lt_prog_compiler_wl='-Wl,'
8947 lt_prog_compiler_can_build_shared=no
8948 ;;
8949
8950 uts4*)
8951 lt_prog_compiler_pic='-pic'
8952 lt_prog_compiler_static='-Bstatic'
8953 ;;
8954
8955 *)
8956 lt_prog_compiler_can_build_shared=no
8957 ;;
8958 esac
8959 fi
8960
8961 case $host_os in
8962 # For platforms which do not support PIC, -DPIC is meaningless:
8963 *djgpp*)
8964 lt_prog_compiler_pic=
8965 ;;
8966 *)
8967 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8968 ;;
8969 esac
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8971 $as_echo "$lt_prog_compiler_pic" >&6; }
8972
8973
8974
8975
8976
8977
8978 #
8979 # Check to make sure the PIC flag actually works.
8980 #
8981 if test -n "$lt_prog_compiler_pic"; then
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8983 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8984 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8985 $as_echo_n "(cached) " >&6
8986 else
8987 lt_cv_prog_compiler_pic_works=no
8988 ac_outfile=conftest.$ac_objext
8989 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8990 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8991 # Insert the option either (1) after the last *FLAGS variable, or
8992 # (2) before a word containing "conftest.", or (3) at the end.
8993 # Note that $ac_compile itself does not contain backslashes and begins
8994 # with a dollar sign (not a hyphen), so the echo should work correctly.
8995 # The option is referenced via a variable to avoid confusing sed.
8996 lt_compile=`echo "$ac_compile" | $SED \
8997 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8998 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8999 -e 's:$: $lt_compiler_flag:'`
9000 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9001 (eval "$lt_compile" 2>conftest.err)
9002 ac_status=$?
9003 cat conftest.err >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 if (exit $ac_status) && test -s "$ac_outfile"; then
9006 # The compiler can only warn and ignore the option if not recognized
9007 # So say no if there are warnings other than the usual output.
9008 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9009 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9010 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9011 lt_cv_prog_compiler_pic_works=yes
9012 fi
9013 fi
9014 $RM conftest*
9015
9016 fi
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9018 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9019
9020 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9021 case $lt_prog_compiler_pic in
9022 "" | " "*) ;;
9023 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9024 esac
9025 else
9026 lt_prog_compiler_pic=
9027 lt_prog_compiler_can_build_shared=no
9028 fi
9029
9030 fi
9031
9032
9033
9034
9035
9036
9037 #
9038 # Check to make sure the static flag actually works.
9039 #
9040 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9042 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9043 if ${lt_cv_prog_compiler_static_works+:} false; then :
9044 $as_echo_n "(cached) " >&6
9045 else
9046 lt_cv_prog_compiler_static_works=no
9047 save_LDFLAGS="$LDFLAGS"
9048 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9049 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9050 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9051 # The linker can only warn and ignore the option if not recognized
9052 # So say no if there are warnings
9053 if test -s conftest.err; then
9054 # Append any errors to the config.log.
9055 cat conftest.err 1>&5
9056 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9058 if diff conftest.exp conftest.er2 >/dev/null; then
9059 lt_cv_prog_compiler_static_works=yes
9060 fi
9061 else
9062 lt_cv_prog_compiler_static_works=yes
9063 fi
9064 fi
9065 $RM -r conftest*
9066 LDFLAGS="$save_LDFLAGS"
9067
9068 fi
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9070 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9071
9072 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9073 :
9074 else
9075 lt_prog_compiler_static=
9076 fi
9077
9078
9079
9080
9081
9082
9083
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9085 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9086 if ${lt_cv_prog_compiler_c_o+:} false; then :
9087 $as_echo_n "(cached) " >&6
9088 else
9089 lt_cv_prog_compiler_c_o=no
9090 $RM -r conftest 2>/dev/null
9091 mkdir conftest
9092 cd conftest
9093 mkdir out
9094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9095
9096 lt_compiler_flag="-o out/conftest2.$ac_objext"
9097 # Insert the option either (1) after the last *FLAGS variable, or
9098 # (2) before a word containing "conftest.", or (3) at the end.
9099 # Note that $ac_compile itself does not contain backslashes and begins
9100 # with a dollar sign (not a hyphen), so the echo should work correctly.
9101 lt_compile=`echo "$ac_compile" | $SED \
9102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9104 -e 's:$: $lt_compiler_flag:'`
9105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9106 (eval "$lt_compile" 2>out/conftest.err)
9107 ac_status=$?
9108 cat out/conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9111 then
9112 # The compiler can only warn and ignore the option if not recognized
9113 # So say no if there are warnings
9114 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9115 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9116 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9117 lt_cv_prog_compiler_c_o=yes
9118 fi
9119 fi
9120 chmod u+w . 2>&5
9121 $RM conftest*
9122 # SGI C++ compiler will create directory out/ii_files/ for
9123 # template instantiation
9124 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9125 $RM out/* && rmdir out
9126 cd ..
9127 $RM -r conftest
9128 $RM conftest*
9129
9130 fi
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9132 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9133
9134
9135
9136
9137
9138
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9140 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9141 if ${lt_cv_prog_compiler_c_o+:} false; then :
9142 $as_echo_n "(cached) " >&6
9143 else
9144 lt_cv_prog_compiler_c_o=no
9145 $RM -r conftest 2>/dev/null
9146 mkdir conftest
9147 cd conftest
9148 mkdir out
9149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9150
9151 lt_compiler_flag="-o out/conftest2.$ac_objext"
9152 # Insert the option either (1) after the last *FLAGS variable, or
9153 # (2) before a word containing "conftest.", or (3) at the end.
9154 # Note that $ac_compile itself does not contain backslashes and begins
9155 # with a dollar sign (not a hyphen), so the echo should work correctly.
9156 lt_compile=`echo "$ac_compile" | $SED \
9157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9159 -e 's:$: $lt_compiler_flag:'`
9160 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9161 (eval "$lt_compile" 2>out/conftest.err)
9162 ac_status=$?
9163 cat out/conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9166 then
9167 # The compiler can only warn and ignore the option if not recognized
9168 # So say no if there are warnings
9169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9170 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9171 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9172 lt_cv_prog_compiler_c_o=yes
9173 fi
9174 fi
9175 chmod u+w . 2>&5
9176 $RM conftest*
9177 # SGI C++ compiler will create directory out/ii_files/ for
9178 # template instantiation
9179 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9180 $RM out/* && rmdir out
9181 cd ..
9182 $RM -r conftest
9183 $RM conftest*
9184
9185 fi
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9187 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9188
9189
9190
9191
9192 hard_links="nottested"
9193 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9194 # do not overwrite the value of need_locks provided by the user
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9196 $as_echo_n "checking if we can lock with hard links... " >&6; }
9197 hard_links=yes
9198 $RM conftest*
9199 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9200 touch conftest.a
9201 ln conftest.a conftest.b 2>&5 || hard_links=no
9202 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9204 $as_echo "$hard_links" >&6; }
9205 if test "$hard_links" = no; then
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9207 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9208 need_locks=warn
9209 fi
9210 else
9211 need_locks=no
9212 fi
9213
9214
9215
9216
9217
9218
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9220 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9221
9222 runpath_var=
9223 allow_undefined_flag=
9224 always_export_symbols=no
9225 archive_cmds=
9226 archive_expsym_cmds=
9227 compiler_needs_object=no
9228 enable_shared_with_static_runtimes=no
9229 export_dynamic_flag_spec=
9230 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9231 hardcode_automatic=no
9232 hardcode_direct=no
9233 hardcode_direct_absolute=no
9234 hardcode_libdir_flag_spec=
9235 hardcode_libdir_flag_spec_ld=
9236 hardcode_libdir_separator=
9237 hardcode_minus_L=no
9238 hardcode_shlibpath_var=unsupported
9239 inherit_rpath=no
9240 link_all_deplibs=unknown
9241 module_cmds=
9242 module_expsym_cmds=
9243 old_archive_from_new_cmds=
9244 old_archive_from_expsyms_cmds=
9245 thread_safe_flag_spec=
9246 whole_archive_flag_spec=
9247 # include_expsyms should be a list of space-separated symbols to be *always*
9248 # included in the symbol list
9249 include_expsyms=
9250 # exclude_expsyms can be an extended regexp of symbols to exclude
9251 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9252 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9253 # as well as any symbol that contains `d'.
9254 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9255 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9256 # platforms (ab)use it in PIC code, but their linkers get confused if
9257 # the symbol is explicitly referenced. Since portable code cannot
9258 # rely on this symbol name, it's probably fine to never include it in
9259 # preloaded symbol tables.
9260 # Exclude shared library initialization/finalization symbols.
9261 extract_expsyms_cmds=
9262
9263 case $host_os in
9264 cygwin* | mingw* | pw32* | cegcc*)
9265 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9266 # When not using gcc, we currently assume that we are using
9267 # Microsoft Visual C++.
9268 if test "$GCC" != yes; then
9269 with_gnu_ld=no
9270 fi
9271 ;;
9272 interix*)
9273 # we just hope/assume this is gcc and not c89 (= MSVC++)
9274 with_gnu_ld=yes
9275 ;;
9276 openbsd*)
9277 with_gnu_ld=no
9278 ;;
9279 esac
9280
9281 ld_shlibs=yes
9282
9283 # On some targets, GNU ld is compatible enough with the native linker
9284 # that we're better off using the native interface for both.
9285 lt_use_gnu_ld_interface=no
9286 if test "$with_gnu_ld" = yes; then
9287 case $host_os in
9288 aix*)
9289 # The AIX port of GNU ld has always aspired to compatibility
9290 # with the native linker. However, as the warning in the GNU ld
9291 # block says, versions before 2.19.5* couldn't really create working
9292 # shared libraries, regardless of the interface used.
9293 case `$LD -v 2>&1` in
9294 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9295 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9296 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9297 *)
9298 lt_use_gnu_ld_interface=yes
9299 ;;
9300 esac
9301 ;;
9302 *)
9303 lt_use_gnu_ld_interface=yes
9304 ;;
9305 esac
9306 fi
9307
9308 if test "$lt_use_gnu_ld_interface" = yes; then
9309 # If archive_cmds runs LD, not CC, wlarc should be empty
9310 wlarc='${wl}'
9311
9312 # Set some defaults for GNU ld with shared library support. These
9313 # are reset later if shared libraries are not supported. Putting them
9314 # here allows them to be overridden if necessary.
9315 runpath_var=LD_RUN_PATH
9316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9317 export_dynamic_flag_spec='${wl}--export-dynamic'
9318 # ancient GNU ld didn't support --whole-archive et. al.
9319 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9320 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9321 else
9322 whole_archive_flag_spec=
9323 fi
9324 supports_anon_versioning=no
9325 case `$LD -v 2>&1` in
9326 *GNU\ gold*) supports_anon_versioning=yes ;;
9327 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9328 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9329 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9330 *\ 2.11.*) ;; # other 2.11 versions
9331 *) supports_anon_versioning=yes ;;
9332 esac
9333
9334 # See if GNU ld supports shared libraries.
9335 case $host_os in
9336 aix[3-9]*)
9337 # On AIX/PPC, the GNU linker is very broken
9338 if test "$host_cpu" != ia64; then
9339 ld_shlibs=no
9340 cat <<_LT_EOF 1>&2
9341
9342 *** Warning: the GNU linker, at least up to release 2.19, is reported
9343 *** to be unable to reliably create shared libraries on AIX.
9344 *** Therefore, libtool is disabling shared libraries support. If you
9345 *** really care for shared libraries, you may want to install binutils
9346 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9347 *** You will then need to restart the configuration process.
9348
9349 _LT_EOF
9350 fi
9351 ;;
9352
9353 amigaos*)
9354 case $host_cpu in
9355 powerpc)
9356 # see comment about AmigaOS4 .so support
9357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358 archive_expsym_cmds=''
9359 ;;
9360 m68k)
9361 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)'
9362 hardcode_libdir_flag_spec='-L$libdir'
9363 hardcode_minus_L=yes
9364 ;;
9365 esac
9366 ;;
9367
9368 beos*)
9369 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9370 allow_undefined_flag=unsupported
9371 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9372 # support --undefined. This deserves some investigation. FIXME
9373 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9374 else
9375 ld_shlibs=no
9376 fi
9377 ;;
9378
9379 cygwin* | mingw* | pw32* | cegcc*)
9380 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9381 # as there is no search path for DLLs.
9382 hardcode_libdir_flag_spec='-L$libdir'
9383 export_dynamic_flag_spec='${wl}--export-all-symbols'
9384 allow_undefined_flag=unsupported
9385 always_export_symbols=no
9386 enable_shared_with_static_runtimes=yes
9387 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9388
9389 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9390 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9391 # If the export-symbols file already is a .def file (1st line
9392 # is EXPORTS), use it as is; otherwise, prepend...
9393 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9394 cp $export_symbols $output_objdir/$soname.def;
9395 else
9396 echo EXPORTS > $output_objdir/$soname.def;
9397 cat $export_symbols >> $output_objdir/$soname.def;
9398 fi~
9399 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9400 else
9401 ld_shlibs=no
9402 fi
9403 ;;
9404
9405 haiku*)
9406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9407 link_all_deplibs=yes
9408 ;;
9409
9410 interix[3-9]*)
9411 hardcode_direct=no
9412 hardcode_shlibpath_var=no
9413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9414 export_dynamic_flag_spec='${wl}-E'
9415 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9416 # Instead, shared libraries are loaded at an image base (0x10000000 by
9417 # default) and relocated if they conflict, which is a slow very memory
9418 # consuming and fragmenting process. To avoid this, we pick a random,
9419 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9420 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9421 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9422 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'
9423 ;;
9424
9425 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9426 tmp_diet=no
9427 if test "$host_os" = linux-dietlibc; then
9428 case $cc_basename in
9429 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9430 esac
9431 fi
9432 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9433 && test "$tmp_diet" = no
9434 then
9435 tmp_addflag=' $pic_flag'
9436 tmp_sharedflag='-shared'
9437 case $cc_basename,$host_cpu in
9438 pgcc*) # Portland Group C compiler
9439 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'
9440 tmp_addflag=' $pic_flag'
9441 ;;
9442 pgf77* | pgf90* | pgf95* | pgfortran*)
9443 # Portland Group f77 and f90 compilers
9444 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'
9445 tmp_addflag=' $pic_flag -Mnomain' ;;
9446 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9447 tmp_addflag=' -i_dynamic' ;;
9448 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9449 tmp_addflag=' -i_dynamic -nofor_main' ;;
9450 ifc* | ifort*) # Intel Fortran compiler
9451 tmp_addflag=' -nofor_main' ;;
9452 lf95*) # Lahey Fortran 8.1
9453 whole_archive_flag_spec=
9454 tmp_sharedflag='--shared' ;;
9455 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9456 tmp_sharedflag='-qmkshrobj'
9457 tmp_addflag= ;;
9458 nvcc*) # Cuda Compiler Driver 2.2
9459 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'
9460 compiler_needs_object=yes
9461 ;;
9462 esac
9463 case `$CC -V 2>&1 | sed 5q` in
9464 *Sun\ C*) # Sun C 5.9
9465 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'
9466 compiler_needs_object=yes
9467 tmp_sharedflag='-G' ;;
9468 *Sun\ F*) # Sun Fortran 8.3
9469 tmp_sharedflag='-G' ;;
9470 esac
9471 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9472
9473 if test "x$supports_anon_versioning" = xyes; then
9474 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9475 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9476 echo "local: *; };" >> $output_objdir/$libname.ver~
9477 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9478 fi
9479
9480 case $cc_basename in
9481 xlf* | bgf* | bgxlf* | mpixlf*)
9482 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9483 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9484 hardcode_libdir_flag_spec=
9485 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9486 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9487 if test "x$supports_anon_versioning" = xyes; then
9488 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9489 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9490 echo "local: *; };" >> $output_objdir/$libname.ver~
9491 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9492 fi
9493 ;;
9494 esac
9495 else
9496 ld_shlibs=no
9497 fi
9498 ;;
9499
9500 netbsd*)
9501 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9502 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9503 wlarc=
9504 else
9505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9506 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9507 fi
9508 ;;
9509
9510 solaris*)
9511 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9512 ld_shlibs=no
9513 cat <<_LT_EOF 1>&2
9514
9515 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9516 *** create shared libraries on Solaris systems. Therefore, libtool
9517 *** is disabling shared libraries support. We urge you to upgrade GNU
9518 *** binutils to release 2.9.1 or newer. Another option is to modify
9519 *** your PATH or compiler configuration so that the native linker is
9520 *** used, and then restart.
9521
9522 _LT_EOF
9523 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9525 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9526 else
9527 ld_shlibs=no
9528 fi
9529 ;;
9530
9531 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9532 case `$LD -v 2>&1` in
9533 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9534 ld_shlibs=no
9535 cat <<_LT_EOF 1>&2
9536
9537 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9538 *** reliably create shared libraries on SCO systems. Therefore, libtool
9539 *** is disabling shared libraries support. We urge you to upgrade GNU
9540 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9541 *** your PATH or compiler configuration so that the native linker is
9542 *** used, and then restart.
9543
9544 _LT_EOF
9545 ;;
9546 *)
9547 # For security reasons, it is highly recommended that you always
9548 # use absolute paths for naming shared libraries, and exclude the
9549 # DT_RUNPATH tag from executables and libraries. But doing so
9550 # requires that you compile everything twice, which is a pain.
9551 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9552 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9554 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9555 else
9556 ld_shlibs=no
9557 fi
9558 ;;
9559 esac
9560 ;;
9561
9562 sunos4*)
9563 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9564 wlarc=
9565 hardcode_direct=yes
9566 hardcode_shlibpath_var=no
9567 ;;
9568
9569 *)
9570 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9572 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9573 else
9574 ld_shlibs=no
9575 fi
9576 ;;
9577 esac
9578
9579 if test "$ld_shlibs" = no; then
9580 runpath_var=
9581 hardcode_libdir_flag_spec=
9582 export_dynamic_flag_spec=
9583 whole_archive_flag_spec=
9584 fi
9585 else
9586 # PORTME fill in a description of your system's linker (not GNU ld)
9587 case $host_os in
9588 aix3*)
9589 allow_undefined_flag=unsupported
9590 always_export_symbols=yes
9591 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'
9592 # Note: this linker hardcodes the directories in LIBPATH if there
9593 # are no directories specified by -L.
9594 hardcode_minus_L=yes
9595 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9596 # Neither direct hardcoding nor static linking is supported with a
9597 # broken collect2.
9598 hardcode_direct=unsupported
9599 fi
9600 ;;
9601
9602 aix[4-9]*)
9603 if test "$host_cpu" = ia64; then
9604 # On IA64, the linker does run time linking by default, so we don't
9605 # have to do anything special.
9606 aix_use_runtimelinking=no
9607 exp_sym_flag='-Bexport'
9608 no_entry_flag=""
9609 else
9610 # If we're using GNU nm, then we don't want the "-C" option.
9611 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9612 # Also, AIX nm treats weak defined symbols like other global
9613 # defined symbols, whereas GNU nm marks them as "W".
9614 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9615 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'
9616 else
9617 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'
9618 fi
9619 aix_use_runtimelinking=no
9620
9621 # Test if we are trying to use run time linking or normal
9622 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9623 # need to do runtime linking.
9624 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9625 for ld_flag in $LDFLAGS; do
9626 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9627 aix_use_runtimelinking=yes
9628 break
9629 fi
9630 done
9631 ;;
9632 esac
9633
9634 exp_sym_flag='-bexport'
9635 no_entry_flag='-bnoentry'
9636 fi
9637
9638 # When large executables or shared objects are built, AIX ld can
9639 # have problems creating the table of contents. If linking a library
9640 # or program results in "error TOC overflow" add -mminimal-toc to
9641 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9642 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9643
9644 archive_cmds=''
9645 hardcode_direct=yes
9646 hardcode_direct_absolute=yes
9647 hardcode_libdir_separator=':'
9648 link_all_deplibs=yes
9649 file_list_spec='${wl}-f,'
9650
9651 if test "$GCC" = yes; then
9652 case $host_os in aix4.[012]|aix4.[012].*)
9653 # We only want to do this on AIX 4.2 and lower, the check
9654 # below for broken collect2 doesn't work under 4.3+
9655 collect2name=`${CC} -print-prog-name=collect2`
9656 if test -f "$collect2name" &&
9657 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9658 then
9659 # We have reworked collect2
9660 :
9661 else
9662 # We have old collect2
9663 hardcode_direct=unsupported
9664 # It fails to find uninstalled libraries when the uninstalled
9665 # path is not listed in the libpath. Setting hardcode_minus_L
9666 # to unsupported forces relinking
9667 hardcode_minus_L=yes
9668 hardcode_libdir_flag_spec='-L$libdir'
9669 hardcode_libdir_separator=
9670 fi
9671 ;;
9672 esac
9673 shared_flag='-shared'
9674 if test "$aix_use_runtimelinking" = yes; then
9675 shared_flag="$shared_flag "'${wl}-G'
9676 fi
9677 else
9678 # not using gcc
9679 if test "$host_cpu" = ia64; then
9680 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9681 # chokes on -Wl,-G. The following line is correct:
9682 shared_flag='-G'
9683 else
9684 if test "$aix_use_runtimelinking" = yes; then
9685 shared_flag='${wl}-G'
9686 else
9687 shared_flag='${wl}-bM:SRE'
9688 fi
9689 fi
9690 fi
9691
9692 export_dynamic_flag_spec='${wl}-bexpall'
9693 # It seems that -bexpall does not export symbols beginning with
9694 # underscore (_), so it is better to generate a list of symbols to export.
9695 always_export_symbols=yes
9696 if test "$aix_use_runtimelinking" = yes; then
9697 # Warning - without using the other runtime loading flags (-brtl),
9698 # -berok will link without error, but may produce a broken library.
9699 allow_undefined_flag='-berok'
9700 # Determine the default libpath from the value encoded in an
9701 # empty executable.
9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703 /* end confdefs.h. */
9704
9705 int
9706 main ()
9707 {
9708
9709 ;
9710 return 0;
9711 }
9712 _ACEOF
9713 if ac_fn_c_try_link "$LINENO"; then :
9714
9715 lt_aix_libpath_sed='
9716 /Import File Strings/,/^$/ {
9717 /^0/ {
9718 s/^0 *\(.*\)$/\1/
9719 p
9720 }
9721 }'
9722 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9723 # Check for a 64-bit object if we didn't find anything.
9724 if test -z "$aix_libpath"; then
9725 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9726 fi
9727 fi
9728 rm -f core conftest.err conftest.$ac_objext \
9729 conftest$ac_exeext conftest.$ac_ext
9730 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9731
9732 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9733 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"
9734 else
9735 if test "$host_cpu" = ia64; then
9736 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9737 allow_undefined_flag="-z nodefs"
9738 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"
9739 else
9740 # Determine the default libpath from the value encoded in an
9741 # empty executable.
9742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743 /* end confdefs.h. */
9744
9745 int
9746 main ()
9747 {
9748
9749 ;
9750 return 0;
9751 }
9752 _ACEOF
9753 if ac_fn_c_try_link "$LINENO"; then :
9754
9755 lt_aix_libpath_sed='
9756 /Import File Strings/,/^$/ {
9757 /^0/ {
9758 s/^0 *\(.*\)$/\1/
9759 p
9760 }
9761 }'
9762 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9763 # Check for a 64-bit object if we didn't find anything.
9764 if test -z "$aix_libpath"; then
9765 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9766 fi
9767 fi
9768 rm -f core conftest.err conftest.$ac_objext \
9769 conftest$ac_exeext conftest.$ac_ext
9770 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9771
9772 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9773 # Warning - without using the other run time loading flags,
9774 # -berok will link without error, but may produce a broken library.
9775 no_undefined_flag=' ${wl}-bernotok'
9776 allow_undefined_flag=' ${wl}-berok'
9777 if test "$with_gnu_ld" = yes; then
9778 # We only use this code for GNU lds that support --whole-archive.
9779 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9780 else
9781 # Exported symbols can be pulled into shared objects from archives
9782 whole_archive_flag_spec='$convenience'
9783 fi
9784 archive_cmds_need_lc=yes
9785 # This is similar to how AIX traditionally builds its shared libraries.
9786 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'
9787 fi
9788 fi
9789 ;;
9790
9791 amigaos*)
9792 case $host_cpu in
9793 powerpc)
9794 # see comment about AmigaOS4 .so support
9795 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9796 archive_expsym_cmds=''
9797 ;;
9798 m68k)
9799 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)'
9800 hardcode_libdir_flag_spec='-L$libdir'
9801 hardcode_minus_L=yes
9802 ;;
9803 esac
9804 ;;
9805
9806 bsdi[45]*)
9807 export_dynamic_flag_spec=-rdynamic
9808 ;;
9809
9810 cygwin* | mingw* | pw32* | cegcc*)
9811 # When not using gcc, we currently assume that we are using
9812 # Microsoft Visual C++.
9813 # hardcode_libdir_flag_spec is actually meaningless, as there is
9814 # no search path for DLLs.
9815 hardcode_libdir_flag_spec=' '
9816 allow_undefined_flag=unsupported
9817 # Tell ltmain to make .lib files, not .a files.
9818 libext=lib
9819 # Tell ltmain to make .dll files, not .so files.
9820 shrext_cmds=".dll"
9821 # FIXME: Setting linknames here is a bad hack.
9822 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9823 # The linker will automatically build a .lib file if we build a DLL.
9824 old_archive_from_new_cmds='true'
9825 # FIXME: Should let the user specify the lib program.
9826 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9827 fix_srcfile_path='`cygpath -w "$srcfile"`'
9828 enable_shared_with_static_runtimes=yes
9829 ;;
9830
9831 darwin* | rhapsody*)
9832
9833
9834 archive_cmds_need_lc=no
9835 hardcode_direct=no
9836 hardcode_automatic=yes
9837 hardcode_shlibpath_var=unsupported
9838 if test "$lt_cv_ld_force_load" = "yes"; then
9839 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\"`'
9840 else
9841 whole_archive_flag_spec=''
9842 fi
9843 link_all_deplibs=yes
9844 allow_undefined_flag="$_lt_dar_allow_undefined"
9845 case $cc_basename in
9846 ifort*) _lt_dar_can_shared=yes ;;
9847 *) _lt_dar_can_shared=$GCC ;;
9848 esac
9849 if test "$_lt_dar_can_shared" = "yes"; then
9850 output_verbose_link_cmd=func_echo_all
9851 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9852 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9853 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}"
9854 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}"
9855
9856 else
9857 ld_shlibs=no
9858 fi
9859
9860 ;;
9861
9862 dgux*)
9863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9864 hardcode_libdir_flag_spec='-L$libdir'
9865 hardcode_shlibpath_var=no
9866 ;;
9867
9868 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9869 # support. Future versions do this automatically, but an explicit c++rt0.o
9870 # does not break anything, and helps significantly (at the cost of a little
9871 # extra space).
9872 freebsd2.2*)
9873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9874 hardcode_libdir_flag_spec='-R$libdir'
9875 hardcode_direct=yes
9876 hardcode_shlibpath_var=no
9877 ;;
9878
9879 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9880 freebsd2.*)
9881 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9882 hardcode_direct=yes
9883 hardcode_minus_L=yes
9884 hardcode_shlibpath_var=no
9885 ;;
9886
9887 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9888 freebsd* | dragonfly*)
9889 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9890 hardcode_libdir_flag_spec='-R$libdir'
9891 hardcode_direct=yes
9892 hardcode_shlibpath_var=no
9893 ;;
9894
9895 hpux9*)
9896 if test "$GCC" = yes; then
9897 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'
9898 else
9899 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'
9900 fi
9901 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9902 hardcode_libdir_separator=:
9903 hardcode_direct=yes
9904
9905 # hardcode_minus_L: Not really in the search PATH,
9906 # but as the default location of the library.
9907 hardcode_minus_L=yes
9908 export_dynamic_flag_spec='${wl}-E'
9909 ;;
9910
9911 hpux10*)
9912 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9913 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9914 else
9915 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9916 fi
9917 if test "$with_gnu_ld" = no; then
9918 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9919 hardcode_libdir_flag_spec_ld='+b $libdir'
9920 hardcode_libdir_separator=:
9921 hardcode_direct=yes
9922 hardcode_direct_absolute=yes
9923 export_dynamic_flag_spec='${wl}-E'
9924 # hardcode_minus_L: Not really in the search PATH,
9925 # but as the default location of the library.
9926 hardcode_minus_L=yes
9927 fi
9928 ;;
9929
9930 hpux11*)
9931 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9932 case $host_cpu in
9933 hppa*64*)
9934 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9935 ;;
9936 ia64*)
9937 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9938 ;;
9939 *)
9940 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9941 ;;
9942 esac
9943 else
9944 case $host_cpu in
9945 hppa*64*)
9946 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9947 ;;
9948 ia64*)
9949 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9950 ;;
9951 *)
9952
9953 # Older versions of the 11.00 compiler do not understand -b yet
9954 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9956 $as_echo_n "checking if $CC understands -b... " >&6; }
9957 if ${lt_cv_prog_compiler__b+:} false; then :
9958 $as_echo_n "(cached) " >&6
9959 else
9960 lt_cv_prog_compiler__b=no
9961 save_LDFLAGS="$LDFLAGS"
9962 LDFLAGS="$LDFLAGS -b"
9963 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9964 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9965 # The linker can only warn and ignore the option if not recognized
9966 # So say no if there are warnings
9967 if test -s conftest.err; then
9968 # Append any errors to the config.log.
9969 cat conftest.err 1>&5
9970 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9972 if diff conftest.exp conftest.er2 >/dev/null; then
9973 lt_cv_prog_compiler__b=yes
9974 fi
9975 else
9976 lt_cv_prog_compiler__b=yes
9977 fi
9978 fi
9979 $RM -r conftest*
9980 LDFLAGS="$save_LDFLAGS"
9981
9982 fi
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9984 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9985
9986 if test x"$lt_cv_prog_compiler__b" = xyes; then
9987 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9988 else
9989 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9990 fi
9991
9992 ;;
9993 esac
9994 fi
9995 if test "$with_gnu_ld" = no; then
9996 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9997 hardcode_libdir_separator=:
9998
9999 case $host_cpu in
10000 hppa*64*|ia64*)
10001 hardcode_direct=no
10002 hardcode_shlibpath_var=no
10003 ;;
10004 *)
10005 hardcode_direct=yes
10006 hardcode_direct_absolute=yes
10007 export_dynamic_flag_spec='${wl}-E'
10008
10009 # hardcode_minus_L: Not really in the search PATH,
10010 # but as the default location of the library.
10011 hardcode_minus_L=yes
10012 ;;
10013 esac
10014 fi
10015 ;;
10016
10017 irix5* | irix6* | nonstopux*)
10018 if test "$GCC" = yes; then
10019 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'
10020 # Try to use the -exported_symbol ld option, if it does not
10021 # work, assume that -exports_file does not work either and
10022 # implicitly export all symbols.
10023 save_LDFLAGS="$LDFLAGS"
10024 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10026 /* end confdefs.h. */
10027 int foo(void) {}
10028 _ACEOF
10029 if ac_fn_c_try_link "$LINENO"; then :
10030 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'
10031
10032 fi
10033 rm -f core conftest.err conftest.$ac_objext \
10034 conftest$ac_exeext conftest.$ac_ext
10035 LDFLAGS="$save_LDFLAGS"
10036 else
10037 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'
10038 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'
10039 fi
10040 archive_cmds_need_lc='no'
10041 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10042 hardcode_libdir_separator=:
10043 inherit_rpath=yes
10044 link_all_deplibs=yes
10045 ;;
10046
10047 netbsd*)
10048 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10049 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10050 else
10051 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10052 fi
10053 hardcode_libdir_flag_spec='-R$libdir'
10054 hardcode_direct=yes
10055 hardcode_shlibpath_var=no
10056 ;;
10057
10058 newsos6)
10059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10060 hardcode_direct=yes
10061 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10062 hardcode_libdir_separator=:
10063 hardcode_shlibpath_var=no
10064 ;;
10065
10066 *nto* | *qnx*)
10067 ;;
10068
10069 openbsd*)
10070 if test -f /usr/libexec/ld.so; then
10071 hardcode_direct=yes
10072 hardcode_shlibpath_var=no
10073 hardcode_direct_absolute=yes
10074 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10075 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10076 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10077 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10078 export_dynamic_flag_spec='${wl}-E'
10079 else
10080 case $host_os in
10081 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10083 hardcode_libdir_flag_spec='-R$libdir'
10084 ;;
10085 *)
10086 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10088 ;;
10089 esac
10090 fi
10091 else
10092 ld_shlibs=no
10093 fi
10094 ;;
10095
10096 os2*)
10097 hardcode_libdir_flag_spec='-L$libdir'
10098 hardcode_minus_L=yes
10099 allow_undefined_flag=unsupported
10100 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'
10101 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10102 ;;
10103
10104 osf3*)
10105 if test "$GCC" = yes; then
10106 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10107 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'
10108 else
10109 allow_undefined_flag=' -expect_unresolved \*'
10110 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'
10111 fi
10112 archive_cmds_need_lc='no'
10113 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10114 hardcode_libdir_separator=:
10115 ;;
10116
10117 osf4* | osf5*) # as osf3* with the addition of -msym flag
10118 if test "$GCC" = yes; then
10119 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10120 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'
10121 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10122 else
10123 allow_undefined_flag=' -expect_unresolved \*'
10124 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'
10125 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~
10126 $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'
10127
10128 # Both c and cxx compiler support -rpath directly
10129 hardcode_libdir_flag_spec='-rpath $libdir'
10130 fi
10131 archive_cmds_need_lc='no'
10132 hardcode_libdir_separator=:
10133 ;;
10134
10135 solaris*)
10136 no_undefined_flag=' -z defs'
10137 if test "$GCC" = yes; then
10138 wlarc='${wl}'
10139 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10140 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10141 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10142 else
10143 case `$CC -V 2>&1` in
10144 *"Compilers 5.0"*)
10145 wlarc=''
10146 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10147 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10148 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10149 ;;
10150 *)
10151 wlarc='${wl}'
10152 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10153 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10154 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10155 ;;
10156 esac
10157 fi
10158 hardcode_libdir_flag_spec='-R$libdir'
10159 hardcode_shlibpath_var=no
10160 case $host_os in
10161 solaris2.[0-5] | solaris2.[0-5].*) ;;
10162 *)
10163 # The compiler driver will combine and reorder linker options,
10164 # but understands `-z linker_flag'. GCC discards it without `$wl',
10165 # but is careful enough not to reorder.
10166 # Supported since Solaris 2.6 (maybe 2.5.1?)
10167 if test "$GCC" = yes; then
10168 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10169 else
10170 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10171 fi
10172 ;;
10173 esac
10174 link_all_deplibs=yes
10175 ;;
10176
10177 sunos4*)
10178 if test "x$host_vendor" = xsequent; then
10179 # Use $CC to link under sequent, because it throws in some extra .o
10180 # files that make .init and .fini sections work.
10181 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10182 else
10183 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10184 fi
10185 hardcode_libdir_flag_spec='-L$libdir'
10186 hardcode_direct=yes
10187 hardcode_minus_L=yes
10188 hardcode_shlibpath_var=no
10189 ;;
10190
10191 sysv4)
10192 case $host_vendor in
10193 sni)
10194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10195 hardcode_direct=yes # is this really true???
10196 ;;
10197 siemens)
10198 ## LD is ld it makes a PLAMLIB
10199 ## CC just makes a GrossModule.
10200 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10201 reload_cmds='$CC -r -o $output$reload_objs'
10202 hardcode_direct=no
10203 ;;
10204 motorola)
10205 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10206 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10207 ;;
10208 esac
10209 runpath_var='LD_RUN_PATH'
10210 hardcode_shlibpath_var=no
10211 ;;
10212
10213 sysv4.3*)
10214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215 hardcode_shlibpath_var=no
10216 export_dynamic_flag_spec='-Bexport'
10217 ;;
10218
10219 sysv4*MP*)
10220 if test -d /usr/nec; then
10221 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10222 hardcode_shlibpath_var=no
10223 runpath_var=LD_RUN_PATH
10224 hardcode_runpath_var=yes
10225 ld_shlibs=yes
10226 fi
10227 ;;
10228
10229 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10230 no_undefined_flag='${wl}-z,text'
10231 archive_cmds_need_lc=no
10232 hardcode_shlibpath_var=no
10233 runpath_var='LD_RUN_PATH'
10234
10235 if test "$GCC" = yes; then
10236 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10238 else
10239 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10240 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10241 fi
10242 ;;
10243
10244 sysv5* | sco3.2v5* | sco5v6*)
10245 # Note: We can NOT use -z defs as we might desire, because we do not
10246 # link with -lc, and that would cause any symbols used from libc to
10247 # always be unresolved, which means just about no library would
10248 # ever link correctly. If we're not using GNU ld we use -z text
10249 # though, which does catch some bad symbols but isn't as heavy-handed
10250 # as -z defs.
10251 no_undefined_flag='${wl}-z,text'
10252 allow_undefined_flag='${wl}-z,nodefs'
10253 archive_cmds_need_lc=no
10254 hardcode_shlibpath_var=no
10255 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10256 hardcode_libdir_separator=':'
10257 link_all_deplibs=yes
10258 export_dynamic_flag_spec='${wl}-Bexport'
10259 runpath_var='LD_RUN_PATH'
10260
10261 if test "$GCC" = yes; then
10262 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 else
10265 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10267 fi
10268 ;;
10269
10270 uts4*)
10271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10272 hardcode_libdir_flag_spec='-L$libdir'
10273 hardcode_shlibpath_var=no
10274 ;;
10275
10276 *)
10277 ld_shlibs=no
10278 ;;
10279 esac
10280
10281 if test x$host_vendor = xsni; then
10282 case $host in
10283 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10284 export_dynamic_flag_spec='${wl}-Blargedynsym'
10285 ;;
10286 esac
10287 fi
10288 fi
10289
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10291 $as_echo "$ld_shlibs" >&6; }
10292 test "$ld_shlibs" = no && can_build_shared=no
10293
10294 with_gnu_ld=$with_gnu_ld
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310 #
10311 # Do we need to explicitly link libc?
10312 #
10313 case "x$archive_cmds_need_lc" in
10314 x|xyes)
10315 # Assume -lc should be added
10316 archive_cmds_need_lc=yes
10317
10318 if test "$enable_shared" = yes && test "$GCC" = yes; then
10319 case $archive_cmds in
10320 *'~'*)
10321 # FIXME: we may have to deal with multi-command sequences.
10322 ;;
10323 '$CC '*)
10324 # Test whether the compiler implicitly links with -lc since on some
10325 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10326 # to ld, don't add -lc before -lgcc.
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10328 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10329 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10330 $as_echo_n "(cached) " >&6
10331 else
10332 $RM conftest*
10333 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10334
10335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10336 (eval $ac_compile) 2>&5
10337 ac_status=$?
10338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10339 test $ac_status = 0; } 2>conftest.err; then
10340 soname=conftest
10341 lib=conftest
10342 libobjs=conftest.$ac_objext
10343 deplibs=
10344 wl=$lt_prog_compiler_wl
10345 pic_flag=$lt_prog_compiler_pic
10346 compiler_flags=-v
10347 linker_flags=-v
10348 verstring=
10349 output_objdir=.
10350 libname=conftest
10351 lt_save_allow_undefined_flag=$allow_undefined_flag
10352 allow_undefined_flag=
10353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10354 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10355 ac_status=$?
10356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10357 test $ac_status = 0; }
10358 then
10359 lt_cv_archive_cmds_need_lc=no
10360 else
10361 lt_cv_archive_cmds_need_lc=yes
10362 fi
10363 allow_undefined_flag=$lt_save_allow_undefined_flag
10364 else
10365 cat conftest.err 1>&5
10366 fi
10367 $RM conftest*
10368
10369 fi
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10371 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10372 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10373 ;;
10374 esac
10375 fi
10376 ;;
10377 esac
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10536 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10537
10538 if test "$GCC" = yes; then
10539 case $host_os in
10540 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10541 *) lt_awk_arg="/^libraries:/" ;;
10542 esac
10543 case $host_os in
10544 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10545 *) lt_sed_strip_eq="s,=/,/,g" ;;
10546 esac
10547 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10548 case $lt_search_path_spec in
10549 *\;*)
10550 # if the path contains ";" then we assume it to be the separator
10551 # otherwise default to the standard path separator (i.e. ":") - it is
10552 # assumed that no part of a normal pathname contains ";" but that should
10553 # okay in the real world where ";" in dirpaths is itself problematic.
10554 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10555 ;;
10556 *)
10557 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10558 ;;
10559 esac
10560 # Ok, now we have the path, separated by spaces, we can step through it
10561 # and add multilib dir if necessary.
10562 lt_tmp_lt_search_path_spec=
10563 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10564 for lt_sys_path in $lt_search_path_spec; do
10565 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10566 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10567 else
10568 test -d "$lt_sys_path" && \
10569 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10570 fi
10571 done
10572 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10573 BEGIN {RS=" "; FS="/|\n";} {
10574 lt_foo="";
10575 lt_count=0;
10576 for (lt_i = NF; lt_i > 0; lt_i--) {
10577 if ($lt_i != "" && $lt_i != ".") {
10578 if ($lt_i == "..") {
10579 lt_count++;
10580 } else {
10581 if (lt_count == 0) {
10582 lt_foo="/" $lt_i lt_foo;
10583 } else {
10584 lt_count--;
10585 }
10586 }
10587 }
10588 }
10589 if (lt_foo != "") { lt_freq[lt_foo]++; }
10590 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10591 }'`
10592 # AWK program above erroneously prepends '/' to C:/dos/paths
10593 # for these hosts.
10594 case $host_os in
10595 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10596 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10597 esac
10598 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10599 else
10600 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10601 fi
10602 library_names_spec=
10603 libname_spec='lib$name'
10604 soname_spec=
10605 shrext_cmds=".so"
10606 postinstall_cmds=
10607 postuninstall_cmds=
10608 finish_cmds=
10609 finish_eval=
10610 shlibpath_var=
10611 shlibpath_overrides_runpath=unknown
10612 version_type=none
10613 dynamic_linker="$host_os ld.so"
10614 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10615 need_lib_prefix=unknown
10616 hardcode_into_libs=no
10617
10618 # when you set need_version to no, make sure it does not cause -set_version
10619 # flags to be left without arguments
10620 need_version=unknown
10621
10622 case $host_os in
10623 aix3*)
10624 version_type=linux
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10626 shlibpath_var=LIBPATH
10627
10628 # AIX 3 has no versioning support, so we append a major version to the name.
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 ;;
10631
10632 aix[4-9]*)
10633 version_type=linux
10634 need_lib_prefix=no
10635 need_version=no
10636 hardcode_into_libs=yes
10637 if test "$host_cpu" = ia64; then
10638 # AIX 5 supports IA64
10639 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10640 shlibpath_var=LD_LIBRARY_PATH
10641 else
10642 # With GCC up to 2.95.x, collect2 would create an import file
10643 # for dependence libraries. The import file would start with
10644 # the line `#! .'. This would cause the generated library to
10645 # depend on `.', always an invalid library. This was fixed in
10646 # development snapshots of GCC prior to 3.0.
10647 case $host_os in
10648 aix4 | aix4.[01] | aix4.[01].*)
10649 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10650 echo ' yes '
10651 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10652 :
10653 else
10654 can_build_shared=no
10655 fi
10656 ;;
10657 esac
10658 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10659 # soname into executable. Probably we can add versioning support to
10660 # collect2, so additional links can be useful in future.
10661 if test "$aix_use_runtimelinking" = yes; then
10662 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10663 # instead of lib<name>.a to let people know that these are not
10664 # typical AIX shared libraries.
10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666 else
10667 # We preserve .a as extension for shared libraries through AIX4.2
10668 # and later when we are not doing run time linking.
10669 library_names_spec='${libname}${release}.a $libname.a'
10670 soname_spec='${libname}${release}${shared_ext}$major'
10671 fi
10672 shlibpath_var=LIBPATH
10673 fi
10674 ;;
10675
10676 amigaos*)
10677 case $host_cpu in
10678 powerpc)
10679 # Since July 2007 AmigaOS4 officially supports .so libraries.
10680 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682 ;;
10683 m68k)
10684 library_names_spec='$libname.ixlibrary $libname.a'
10685 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10686 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'
10687 ;;
10688 esac
10689 ;;
10690
10691 beos*)
10692 library_names_spec='${libname}${shared_ext}'
10693 dynamic_linker="$host_os ld.so"
10694 shlibpath_var=LIBRARY_PATH
10695 ;;
10696
10697 bsdi[45]*)
10698 version_type=linux
10699 need_version=no
10700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701 soname_spec='${libname}${release}${shared_ext}$major'
10702 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10703 shlibpath_var=LD_LIBRARY_PATH
10704 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10705 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10706 # the default ld.so.conf also contains /usr/contrib/lib and
10707 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10708 # libtool to hard-code these into programs
10709 ;;
10710
10711 cygwin* | mingw* | pw32* | cegcc*)
10712 version_type=windows
10713 shrext_cmds=".dll"
10714 need_version=no
10715 need_lib_prefix=no
10716
10717 case $GCC,$host_os in
10718 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10719 library_names_spec='$libname.dll.a'
10720 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10721 postinstall_cmds='base_file=`basename \${file}`~
10722 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10723 dldir=$destdir/`dirname \$dlpath`~
10724 test -d \$dldir || mkdir -p \$dldir~
10725 $install_prog $dir/$dlname \$dldir/$dlname~
10726 chmod a+x \$dldir/$dlname~
10727 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10728 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10729 fi'
10730 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10731 dlpath=$dir/\$dldll~
10732 $RM \$dlpath'
10733 shlibpath_overrides_runpath=yes
10734
10735 case $host_os in
10736 cygwin*)
10737 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10738 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10739
10740 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10741 ;;
10742 mingw* | cegcc*)
10743 # MinGW DLLs use traditional 'lib' prefix
10744 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10745 ;;
10746 pw32*)
10747 # pw32 DLLs use 'pw' prefix rather than 'lib'
10748 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10749 ;;
10750 esac
10751 ;;
10752
10753 *)
10754 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10755 ;;
10756 esac
10757 dynamic_linker='Win32 ld.exe'
10758 # FIXME: first we should search . and the directory the executable is in
10759 shlibpath_var=PATH
10760 ;;
10761
10762 darwin* | rhapsody*)
10763 dynamic_linker="$host_os dyld"
10764 version_type=darwin
10765 need_lib_prefix=no
10766 need_version=no
10767 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10768 soname_spec='${libname}${release}${major}$shared_ext'
10769 shlibpath_overrides_runpath=yes
10770 shlibpath_var=DYLD_LIBRARY_PATH
10771 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10772
10773 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10774 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10775 ;;
10776
10777 dgux*)
10778 version_type=linux
10779 need_lib_prefix=no
10780 need_version=no
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10782 soname_spec='${libname}${release}${shared_ext}$major'
10783 shlibpath_var=LD_LIBRARY_PATH
10784 ;;
10785
10786 freebsd* | dragonfly*)
10787 # DragonFly does not have aout. When/if they implement a new
10788 # versioning mechanism, adjust this.
10789 if test -x /usr/bin/objformat; then
10790 objformat=`/usr/bin/objformat`
10791 else
10792 case $host_os in
10793 freebsd[23].*) objformat=aout ;;
10794 *) objformat=elf ;;
10795 esac
10796 fi
10797 version_type=freebsd-$objformat
10798 case $version_type in
10799 freebsd-elf*)
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10801 need_version=no
10802 need_lib_prefix=no
10803 ;;
10804 freebsd-*)
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10806 need_version=yes
10807 ;;
10808 esac
10809 shlibpath_var=LD_LIBRARY_PATH
10810 case $host_os in
10811 freebsd2.*)
10812 shlibpath_overrides_runpath=yes
10813 ;;
10814 freebsd3.[01]* | freebsdelf3.[01]*)
10815 shlibpath_overrides_runpath=yes
10816 hardcode_into_libs=yes
10817 ;;
10818 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10819 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10820 shlibpath_overrides_runpath=no
10821 hardcode_into_libs=yes
10822 ;;
10823 *) # from 4.6 on, and DragonFly
10824 shlibpath_overrides_runpath=yes
10825 hardcode_into_libs=yes
10826 ;;
10827 esac
10828 ;;
10829
10830 haiku*)
10831 version_type=linux
10832 need_lib_prefix=no
10833 need_version=no
10834 dynamic_linker="$host_os runtime_loader"
10835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10836 soname_spec='${libname}${release}${shared_ext}$major'
10837 shlibpath_var=LIBRARY_PATH
10838 shlibpath_overrides_runpath=yes
10839 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10840 hardcode_into_libs=yes
10841 ;;
10842
10843 hpux9* | hpux10* | hpux11*)
10844 # Give a soname corresponding to the major version so that dld.sl refuses to
10845 # link against other versions.
10846 version_type=sunos
10847 need_lib_prefix=no
10848 need_version=no
10849 case $host_cpu in
10850 ia64*)
10851 shrext_cmds='.so'
10852 hardcode_into_libs=yes
10853 dynamic_linker="$host_os dld.so"
10854 shlibpath_var=LD_LIBRARY_PATH
10855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10857 soname_spec='${libname}${release}${shared_ext}$major'
10858 if test "X$HPUX_IA64_MODE" = X32; then
10859 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10860 else
10861 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10862 fi
10863 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10864 ;;
10865 hppa*64*)
10866 shrext_cmds='.sl'
10867 hardcode_into_libs=yes
10868 dynamic_linker="$host_os dld.sl"
10869 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10870 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872 soname_spec='${libname}${release}${shared_ext}$major'
10873 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10874 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10875 ;;
10876 *)
10877 shrext_cmds='.sl'
10878 dynamic_linker="$host_os dld.sl"
10879 shlibpath_var=SHLIB_PATH
10880 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10882 soname_spec='${libname}${release}${shared_ext}$major'
10883 ;;
10884 esac
10885 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10886 postinstall_cmds='chmod 555 $lib'
10887 # or fails outright, so override atomically:
10888 install_override_mode=555
10889 ;;
10890
10891 interix[3-9]*)
10892 version_type=linux
10893 need_lib_prefix=no
10894 need_version=no
10895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10896 soname_spec='${libname}${release}${shared_ext}$major'
10897 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10898 shlibpath_var=LD_LIBRARY_PATH
10899 shlibpath_overrides_runpath=no
10900 hardcode_into_libs=yes
10901 ;;
10902
10903 irix5* | irix6* | nonstopux*)
10904 case $host_os in
10905 nonstopux*) version_type=nonstopux ;;
10906 *)
10907 if test "$lt_cv_prog_gnu_ld" = yes; then
10908 version_type=linux
10909 else
10910 version_type=irix
10911 fi ;;
10912 esac
10913 need_lib_prefix=no
10914 need_version=no
10915 soname_spec='${libname}${release}${shared_ext}$major'
10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10917 case $host_os in
10918 irix5* | nonstopux*)
10919 libsuff= shlibsuff=
10920 ;;
10921 *)
10922 case $LD in # libtool.m4 will add one of these switches to LD
10923 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10924 libsuff= shlibsuff= libmagic=32-bit;;
10925 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10926 libsuff=32 shlibsuff=N32 libmagic=N32;;
10927 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10928 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10929 *) libsuff= shlibsuff= libmagic=never-match;;
10930 esac
10931 ;;
10932 esac
10933 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10934 shlibpath_overrides_runpath=no
10935 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10936 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10937 hardcode_into_libs=yes
10938 ;;
10939
10940 # No shared lib support for Linux oldld, aout, or coff.
10941 linux*oldld* | linux*aout* | linux*coff*)
10942 dynamic_linker=no
10943 ;;
10944
10945 # This must be Linux ELF.
10946 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10947 version_type=linux
10948 need_lib_prefix=no
10949 need_version=no
10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951 soname_spec='${libname}${release}${shared_ext}$major'
10952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10953 shlibpath_var=LD_LIBRARY_PATH
10954 shlibpath_overrides_runpath=no
10955
10956 # Some binutils ld are patched to set DT_RUNPATH
10957 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10958 $as_echo_n "(cached) " >&6
10959 else
10960 lt_cv_shlibpath_overrides_runpath=no
10961 save_LDFLAGS=$LDFLAGS
10962 save_libdir=$libdir
10963 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10964 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966 /* end confdefs.h. */
10967
10968 int
10969 main ()
10970 {
10971
10972 ;
10973 return 0;
10974 }
10975 _ACEOF
10976 if ac_fn_c_try_link "$LINENO"; then :
10977 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10978 lt_cv_shlibpath_overrides_runpath=yes
10979 fi
10980 fi
10981 rm -f core conftest.err conftest.$ac_objext \
10982 conftest$ac_exeext conftest.$ac_ext
10983 LDFLAGS=$save_LDFLAGS
10984 libdir=$save_libdir
10985
10986 fi
10987
10988 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10989
10990 # This implies no fast_install, which is unacceptable.
10991 # Some rework will be needed to allow for fast_install
10992 # before this can be enabled.
10993 hardcode_into_libs=yes
10994
10995 # Append ld.so.conf contents to the search path
10996 if test -f /etc/ld.so.conf; then
10997 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' ' '`
10998 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10999 fi
11000
11001 # We used to test for /lib/ld.so.1 and disable shared libraries on
11002 # powerpc, because MkLinux only supported shared libraries with the
11003 # GNU dynamic linker. Since this was broken with cross compilers,
11004 # most powerpc-linux boxes support dynamic linking these days and
11005 # people can always --disable-shared, the test was removed, and we
11006 # assume the GNU/Linux dynamic linker is in use.
11007 dynamic_linker='GNU/Linux ld.so'
11008 ;;
11009
11010 netbsd*)
11011 version_type=sunos
11012 need_lib_prefix=no
11013 need_version=no
11014 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11017 dynamic_linker='NetBSD (a.out) ld.so'
11018 else
11019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11020 soname_spec='${libname}${release}${shared_ext}$major'
11021 dynamic_linker='NetBSD ld.elf_so'
11022 fi
11023 shlibpath_var=LD_LIBRARY_PATH
11024 shlibpath_overrides_runpath=yes
11025 hardcode_into_libs=yes
11026 ;;
11027
11028 newsos6)
11029 version_type=linux
11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031 shlibpath_var=LD_LIBRARY_PATH
11032 shlibpath_overrides_runpath=yes
11033 ;;
11034
11035 *nto* | *qnx*)
11036 version_type=qnx
11037 need_lib_prefix=no
11038 need_version=no
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040 soname_spec='${libname}${release}${shared_ext}$major'
11041 shlibpath_var=LD_LIBRARY_PATH
11042 shlibpath_overrides_runpath=no
11043 hardcode_into_libs=yes
11044 dynamic_linker='ldqnx.so'
11045 ;;
11046
11047 openbsd*)
11048 version_type=sunos
11049 sys_lib_dlsearch_path_spec="/usr/lib"
11050 need_lib_prefix=no
11051 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11052 case $host_os in
11053 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11054 *) need_version=no ;;
11055 esac
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11060 case $host_os in
11061 openbsd2.[89] | openbsd2.[89].*)
11062 shlibpath_overrides_runpath=no
11063 ;;
11064 *)
11065 shlibpath_overrides_runpath=yes
11066 ;;
11067 esac
11068 else
11069 shlibpath_overrides_runpath=yes
11070 fi
11071 ;;
11072
11073 os2*)
11074 libname_spec='$name'
11075 shrext_cmds=".dll"
11076 need_lib_prefix=no
11077 library_names_spec='$libname${shared_ext} $libname.a'
11078 dynamic_linker='OS/2 ld.exe'
11079 shlibpath_var=LIBPATH
11080 ;;
11081
11082 osf3* | osf4* | osf5*)
11083 version_type=osf
11084 need_lib_prefix=no
11085 need_version=no
11086 soname_spec='${libname}${release}${shared_ext}$major'
11087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11088 shlibpath_var=LD_LIBRARY_PATH
11089 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11090 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11091 ;;
11092
11093 rdos*)
11094 dynamic_linker=no
11095 ;;
11096
11097 solaris*)
11098 version_type=linux
11099 need_lib_prefix=no
11100 need_version=no
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102 soname_spec='${libname}${release}${shared_ext}$major'
11103 shlibpath_var=LD_LIBRARY_PATH
11104 shlibpath_overrides_runpath=yes
11105 hardcode_into_libs=yes
11106 # ldd complains unless libraries are executable
11107 postinstall_cmds='chmod +x $lib'
11108 ;;
11109
11110 sunos4*)
11111 version_type=sunos
11112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11113 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 shlibpath_overrides_runpath=yes
11116 if test "$with_gnu_ld" = yes; then
11117 need_lib_prefix=no
11118 fi
11119 need_version=yes
11120 ;;
11121
11122 sysv4 | sysv4.3*)
11123 version_type=linux
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 case $host_vendor in
11128 sni)
11129 shlibpath_overrides_runpath=no
11130 need_lib_prefix=no
11131 runpath_var=LD_RUN_PATH
11132 ;;
11133 siemens)
11134 need_lib_prefix=no
11135 ;;
11136 motorola)
11137 need_lib_prefix=no
11138 need_version=no
11139 shlibpath_overrides_runpath=no
11140 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11141 ;;
11142 esac
11143 ;;
11144
11145 sysv4*MP*)
11146 if test -d /usr/nec ;then
11147 version_type=linux
11148 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11149 soname_spec='$libname${shared_ext}.$major'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 fi
11152 ;;
11153
11154 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11155 version_type=freebsd-elf
11156 need_lib_prefix=no
11157 need_version=no
11158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11159 soname_spec='${libname}${release}${shared_ext}$major'
11160 shlibpath_var=LD_LIBRARY_PATH
11161 shlibpath_overrides_runpath=yes
11162 hardcode_into_libs=yes
11163 if test "$with_gnu_ld" = yes; then
11164 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11165 else
11166 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11167 case $host_os in
11168 sco3.2v5*)
11169 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11170 ;;
11171 esac
11172 fi
11173 sys_lib_dlsearch_path_spec='/usr/lib'
11174 ;;
11175
11176 tpf*)
11177 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11178 version_type=linux
11179 need_lib_prefix=no
11180 need_version=no
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11182 shlibpath_var=LD_LIBRARY_PATH
11183 shlibpath_overrides_runpath=no
11184 hardcode_into_libs=yes
11185 ;;
11186
11187 uts4*)
11188 version_type=linux
11189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190 soname_spec='${libname}${release}${shared_ext}$major'
11191 shlibpath_var=LD_LIBRARY_PATH
11192 ;;
11193
11194 *)
11195 dynamic_linker=no
11196 ;;
11197 esac
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11199 $as_echo "$dynamic_linker" >&6; }
11200 test "$dynamic_linker" = no && can_build_shared=no
11201
11202 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11203 if test "$GCC" = yes; then
11204 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11205 fi
11206
11207 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11208 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11209 fi
11210 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11211 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11212 fi
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11306 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11307 hardcode_action=
11308 if test -n "$hardcode_libdir_flag_spec" ||
11309 test -n "$runpath_var" ||
11310 test "X$hardcode_automatic" = "Xyes" ; then
11311
11312 # We can hardcode non-existent directories.
11313 if test "$hardcode_direct" != no &&
11314 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11315 # have to relink, otherwise we might link with an installed library
11316 # when we should be linking with a yet-to-be-installed one
11317 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11318 test "$hardcode_minus_L" != no; then
11319 # Linking always hardcodes the temporary library directory.
11320 hardcode_action=relink
11321 else
11322 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11323 hardcode_action=immediate
11324 fi
11325 else
11326 # We cannot hardcode anything, or else we can only hardcode existing
11327 # directories.
11328 hardcode_action=unsupported
11329 fi
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11331 $as_echo "$hardcode_action" >&6; }
11332
11333 if test "$hardcode_action" = relink ||
11334 test "$inherit_rpath" = yes; then
11335 # Fast installation is not supported
11336 enable_fast_install=no
11337 elif test "$shlibpath_overrides_runpath" = yes ||
11338 test "$enable_shared" = no; then
11339 # Fast installation is not necessary
11340 enable_fast_install=needless
11341 fi
11342
11343
11344
11345
11346
11347
11348 if test "x$enable_dlopen" != xyes; then
11349 enable_dlopen=unknown
11350 enable_dlopen_self=unknown
11351 enable_dlopen_self_static=unknown
11352 else
11353 lt_cv_dlopen=no
11354 lt_cv_dlopen_libs=
11355
11356 case $host_os in
11357 beos*)
11358 lt_cv_dlopen="load_add_on"
11359 lt_cv_dlopen_libs=
11360 lt_cv_dlopen_self=yes
11361 ;;
11362
11363 mingw* | pw32* | cegcc*)
11364 lt_cv_dlopen="LoadLibrary"
11365 lt_cv_dlopen_libs=
11366 ;;
11367
11368 cygwin*)
11369 lt_cv_dlopen="dlopen"
11370 lt_cv_dlopen_libs=
11371 ;;
11372
11373 darwin*)
11374 # if libdl is installed we need to link against it
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11376 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11377 if ${ac_cv_lib_dl_dlopen+:} false; then :
11378 $as_echo_n "(cached) " >&6
11379 else
11380 ac_check_lib_save_LIBS=$LIBS
11381 LIBS="-ldl $LIBS"
11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11384
11385 /* Override any GCC internal prototype to avoid an error.
11386 Use char because int might match the return type of a GCC
11387 builtin and then its argument prototype would still apply. */
11388 #ifdef __cplusplus
11389 extern "C"
11390 #endif
11391 char dlopen ();
11392 int
11393 main ()
11394 {
11395 return dlopen ();
11396 ;
11397 return 0;
11398 }
11399 _ACEOF
11400 if ac_fn_c_try_link "$LINENO"; then :
11401 ac_cv_lib_dl_dlopen=yes
11402 else
11403 ac_cv_lib_dl_dlopen=no
11404 fi
11405 rm -f core conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext conftest.$ac_ext
11407 LIBS=$ac_check_lib_save_LIBS
11408 fi
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11410 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11411 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11413 else
11414
11415 lt_cv_dlopen="dyld"
11416 lt_cv_dlopen_libs=
11417 lt_cv_dlopen_self=yes
11418
11419 fi
11420
11421 ;;
11422
11423 *)
11424 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11425 if test "x$ac_cv_func_shl_load" = xyes; then :
11426 lt_cv_dlopen="shl_load"
11427 else
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11429 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11430 if ${ac_cv_lib_dld_shl_load+:} false; then :
11431 $as_echo_n "(cached) " >&6
11432 else
11433 ac_check_lib_save_LIBS=$LIBS
11434 LIBS="-ldld $LIBS"
11435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436 /* end confdefs.h. */
11437
11438 /* Override any GCC internal prototype to avoid an error.
11439 Use char because int might match the return type of a GCC
11440 builtin and then its argument prototype would still apply. */
11441 #ifdef __cplusplus
11442 extern "C"
11443 #endif
11444 char shl_load ();
11445 int
11446 main ()
11447 {
11448 return shl_load ();
11449 ;
11450 return 0;
11451 }
11452 _ACEOF
11453 if ac_fn_c_try_link "$LINENO"; then :
11454 ac_cv_lib_dld_shl_load=yes
11455 else
11456 ac_cv_lib_dld_shl_load=no
11457 fi
11458 rm -f core conftest.err conftest.$ac_objext \
11459 conftest$ac_exeext conftest.$ac_ext
11460 LIBS=$ac_check_lib_save_LIBS
11461 fi
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11463 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11464 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11465 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11466 else
11467 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11468 if test "x$ac_cv_func_dlopen" = xyes; then :
11469 lt_cv_dlopen="dlopen"
11470 else
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11472 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11473 if ${ac_cv_lib_dl_dlopen+:} false; then :
11474 $as_echo_n "(cached) " >&6
11475 else
11476 ac_check_lib_save_LIBS=$LIBS
11477 LIBS="-ldl $LIBS"
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h. */
11480
11481 /* Override any GCC internal prototype to avoid an error.
11482 Use char because int might match the return type of a GCC
11483 builtin and then its argument prototype would still apply. */
11484 #ifdef __cplusplus
11485 extern "C"
11486 #endif
11487 char dlopen ();
11488 int
11489 main ()
11490 {
11491 return dlopen ();
11492 ;
11493 return 0;
11494 }
11495 _ACEOF
11496 if ac_fn_c_try_link "$LINENO"; then :
11497 ac_cv_lib_dl_dlopen=yes
11498 else
11499 ac_cv_lib_dl_dlopen=no
11500 fi
11501 rm -f core conftest.err conftest.$ac_objext \
11502 conftest$ac_exeext conftest.$ac_ext
11503 LIBS=$ac_check_lib_save_LIBS
11504 fi
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11506 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11507 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11508 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11509 else
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11511 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11512 if ${ac_cv_lib_svld_dlopen+:} false; then :
11513 $as_echo_n "(cached) " >&6
11514 else
11515 ac_check_lib_save_LIBS=$LIBS
11516 LIBS="-lsvld $LIBS"
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11519
11520 /* Override any GCC internal prototype to avoid an error.
11521 Use char because int might match the return type of a GCC
11522 builtin and then its argument prototype would still apply. */
11523 #ifdef __cplusplus
11524 extern "C"
11525 #endif
11526 char dlopen ();
11527 int
11528 main ()
11529 {
11530 return dlopen ();
11531 ;
11532 return 0;
11533 }
11534 _ACEOF
11535 if ac_fn_c_try_link "$LINENO"; then :
11536 ac_cv_lib_svld_dlopen=yes
11537 else
11538 ac_cv_lib_svld_dlopen=no
11539 fi
11540 rm -f core conftest.err conftest.$ac_objext \
11541 conftest$ac_exeext conftest.$ac_ext
11542 LIBS=$ac_check_lib_save_LIBS
11543 fi
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11545 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11546 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11547 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11548 else
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11550 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11551 if ${ac_cv_lib_dld_dld_link+:} false; then :
11552 $as_echo_n "(cached) " >&6
11553 else
11554 ac_check_lib_save_LIBS=$LIBS
11555 LIBS="-ldld $LIBS"
11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557 /* end confdefs.h. */
11558
11559 /* Override any GCC internal prototype to avoid an error.
11560 Use char because int might match the return type of a GCC
11561 builtin and then its argument prototype would still apply. */
11562 #ifdef __cplusplus
11563 extern "C"
11564 #endif
11565 char dld_link ();
11566 int
11567 main ()
11568 {
11569 return dld_link ();
11570 ;
11571 return 0;
11572 }
11573 _ACEOF
11574 if ac_fn_c_try_link "$LINENO"; then :
11575 ac_cv_lib_dld_dld_link=yes
11576 else
11577 ac_cv_lib_dld_dld_link=no
11578 fi
11579 rm -f core conftest.err conftest.$ac_objext \
11580 conftest$ac_exeext conftest.$ac_ext
11581 LIBS=$ac_check_lib_save_LIBS
11582 fi
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11584 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11585 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11586 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11587 fi
11588
11589
11590 fi
11591
11592
11593 fi
11594
11595
11596 fi
11597
11598
11599 fi
11600
11601
11602 fi
11603
11604 ;;
11605 esac
11606
11607 if test "x$lt_cv_dlopen" != xno; then
11608 enable_dlopen=yes
11609 else
11610 enable_dlopen=no
11611 fi
11612
11613 case $lt_cv_dlopen in
11614 dlopen)
11615 save_CPPFLAGS="$CPPFLAGS"
11616 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11617
11618 save_LDFLAGS="$LDFLAGS"
11619 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11620
11621 save_LIBS="$LIBS"
11622 LIBS="$lt_cv_dlopen_libs $LIBS"
11623
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11625 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11626 if ${lt_cv_dlopen_self+:} false; then :
11627 $as_echo_n "(cached) " >&6
11628 else
11629 if test "$cross_compiling" = yes; then :
11630 lt_cv_dlopen_self=cross
11631 else
11632 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11633 lt_status=$lt_dlunknown
11634 cat > conftest.$ac_ext <<_LT_EOF
11635 #line 11635 "configure"
11636 #include "confdefs.h"
11637
11638 #if HAVE_DLFCN_H
11639 #include <dlfcn.h>
11640 #endif
11641
11642 #include <stdio.h>
11643
11644 #ifdef RTLD_GLOBAL
11645 # define LT_DLGLOBAL RTLD_GLOBAL
11646 #else
11647 # ifdef DL_GLOBAL
11648 # define LT_DLGLOBAL DL_GLOBAL
11649 # else
11650 # define LT_DLGLOBAL 0
11651 # endif
11652 #endif
11653
11654 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11655 find out it does not work in some platform. */
11656 #ifndef LT_DLLAZY_OR_NOW
11657 # ifdef RTLD_LAZY
11658 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11659 # else
11660 # ifdef DL_LAZY
11661 # define LT_DLLAZY_OR_NOW DL_LAZY
11662 # else
11663 # ifdef RTLD_NOW
11664 # define LT_DLLAZY_OR_NOW RTLD_NOW
11665 # else
11666 # ifdef DL_NOW
11667 # define LT_DLLAZY_OR_NOW DL_NOW
11668 # else
11669 # define LT_DLLAZY_OR_NOW 0
11670 # endif
11671 # endif
11672 # endif
11673 # endif
11674 #endif
11675
11676 /* When -fvisbility=hidden is used, assume the code has been annotated
11677 correspondingly for the symbols needed. */
11678 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11679 void fnord () __attribute__((visibility("default")));
11680 #endif
11681
11682 void fnord () { int i=42; }
11683 int main ()
11684 {
11685 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11686 int status = $lt_dlunknown;
11687
11688 if (self)
11689 {
11690 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11691 else
11692 {
11693 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11694 else puts (dlerror ());
11695 }
11696 /* dlclose (self); */
11697 }
11698 else
11699 puts (dlerror ());
11700
11701 return status;
11702 }
11703 _LT_EOF
11704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11705 (eval $ac_link) 2>&5
11706 ac_status=$?
11707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11708 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11709 (./conftest; exit; ) >&5 2>/dev/null
11710 lt_status=$?
11711 case x$lt_status in
11712 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11713 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11714 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11715 esac
11716 else :
11717 # compilation failed
11718 lt_cv_dlopen_self=no
11719 fi
11720 fi
11721 rm -fr conftest*
11722
11723
11724 fi
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11726 $as_echo "$lt_cv_dlopen_self" >&6; }
11727
11728 if test "x$lt_cv_dlopen_self" = xyes; then
11729 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11731 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11732 if ${lt_cv_dlopen_self_static+:} false; then :
11733 $as_echo_n "(cached) " >&6
11734 else
11735 if test "$cross_compiling" = yes; then :
11736 lt_cv_dlopen_self_static=cross
11737 else
11738 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11739 lt_status=$lt_dlunknown
11740 cat > conftest.$ac_ext <<_LT_EOF
11741 #line 11741 "configure"
11742 #include "confdefs.h"
11743
11744 #if HAVE_DLFCN_H
11745 #include <dlfcn.h>
11746 #endif
11747
11748 #include <stdio.h>
11749
11750 #ifdef RTLD_GLOBAL
11751 # define LT_DLGLOBAL RTLD_GLOBAL
11752 #else
11753 # ifdef DL_GLOBAL
11754 # define LT_DLGLOBAL DL_GLOBAL
11755 # else
11756 # define LT_DLGLOBAL 0
11757 # endif
11758 #endif
11759
11760 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11761 find out it does not work in some platform. */
11762 #ifndef LT_DLLAZY_OR_NOW
11763 # ifdef RTLD_LAZY
11764 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11765 # else
11766 # ifdef DL_LAZY
11767 # define LT_DLLAZY_OR_NOW DL_LAZY
11768 # else
11769 # ifdef RTLD_NOW
11770 # define LT_DLLAZY_OR_NOW RTLD_NOW
11771 # else
11772 # ifdef DL_NOW
11773 # define LT_DLLAZY_OR_NOW DL_NOW
11774 # else
11775 # define LT_DLLAZY_OR_NOW 0
11776 # endif
11777 # endif
11778 # endif
11779 # endif
11780 #endif
11781
11782 /* When -fvisbility=hidden is used, assume the code has been annotated
11783 correspondingly for the symbols needed. */
11784 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11785 void fnord () __attribute__((visibility("default")));
11786 #endif
11787
11788 void fnord () { int i=42; }
11789 int main ()
11790 {
11791 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11792 int status = $lt_dlunknown;
11793
11794 if (self)
11795 {
11796 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11797 else
11798 {
11799 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11800 else puts (dlerror ());
11801 }
11802 /* dlclose (self); */
11803 }
11804 else
11805 puts (dlerror ());
11806
11807 return status;
11808 }
11809 _LT_EOF
11810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11811 (eval $ac_link) 2>&5
11812 ac_status=$?
11813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11814 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11815 (./conftest; exit; ) >&5 2>/dev/null
11816 lt_status=$?
11817 case x$lt_status in
11818 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11819 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11820 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11821 esac
11822 else :
11823 # compilation failed
11824 lt_cv_dlopen_self_static=no
11825 fi
11826 fi
11827 rm -fr conftest*
11828
11829
11830 fi
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11832 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11833 fi
11834
11835 CPPFLAGS="$save_CPPFLAGS"
11836 LDFLAGS="$save_LDFLAGS"
11837 LIBS="$save_LIBS"
11838 ;;
11839 esac
11840
11841 case $lt_cv_dlopen_self in
11842 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11843 *) enable_dlopen_self=unknown ;;
11844 esac
11845
11846 case $lt_cv_dlopen_self_static in
11847 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11848 *) enable_dlopen_self_static=unknown ;;
11849 esac
11850 fi
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868 striplib=
11869 old_striplib=
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11871 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11872 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11873 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11874 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11876 $as_echo "yes" >&6; }
11877 else
11878 # FIXME - insert some real tests, host_os isn't really good enough
11879 case $host_os in
11880 darwin*)
11881 if test -n "$STRIP" ; then
11882 striplib="$STRIP -x"
11883 old_striplib="$STRIP -S"
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11885 $as_echo "yes" >&6; }
11886 else
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888 $as_echo "no" >&6; }
11889 fi
11890 ;;
11891 *)
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893 $as_echo "no" >&6; }
11894 ;;
11895 esac
11896 fi
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909 # Report which library types will actually be built
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11911 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11913 $as_echo "$can_build_shared" >&6; }
11914
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11916 $as_echo_n "checking whether to build shared libraries... " >&6; }
11917 test "$can_build_shared" = "no" && enable_shared=no
11918
11919 # On AIX, shared libraries and static libraries use the same namespace, and
11920 # are all built from PIC.
11921 case $host_os in
11922 aix3*)
11923 test "$enable_shared" = yes && enable_static=no
11924 if test -n "$RANLIB"; then
11925 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11926 postinstall_cmds='$RANLIB $lib'
11927 fi
11928 ;;
11929
11930 aix[4-9]*)
11931 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11932 test "$enable_shared" = yes && enable_static=no
11933 fi
11934 ;;
11935 esac
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11937 $as_echo "$enable_shared" >&6; }
11938
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11940 $as_echo_n "checking whether to build static libraries... " >&6; }
11941 # Make sure either enable_shared or enable_static is yes.
11942 test "$enable_shared" = yes || enable_static=yes
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11944 $as_echo "$enable_static" >&6; }
11945
11946
11947
11948
11949 fi
11950 ac_ext=c
11951 ac_cpp='$CPP $CPPFLAGS'
11952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11955
11956 CC="$lt_save_CC"
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970 ac_config_commands="$ac_config_commands libtool"
11971
11972
11973
11974
11975 # Only expand once:
11976
11977
11978 # Check whether --enable-largefile was given.
11979 if test "${enable_largefile+set}" = set; then :
11980 enableval=$enable_largefile;
11981 fi
11982
11983 if test "$enable_largefile" != no; then
11984
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11986 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11987 if ${ac_cv_sys_largefile_CC+:} false; then :
11988 $as_echo_n "(cached) " >&6
11989 else
11990 ac_cv_sys_largefile_CC=no
11991 if test "$GCC" != yes; then
11992 ac_save_CC=$CC
11993 while :; do
11994 # IRIX 6.2 and later do not support large files by default,
11995 # so use the C compiler's -n32 option if that helps.
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h. */
11998 #include <sys/types.h>
11999 /* Check that off_t can represent 2**63 - 1 correctly.
12000 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12001 since some C++ compilers masquerading as C compilers
12002 incorrectly reject 9223372036854775807. */
12003 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12004 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12005 && LARGE_OFF_T % 2147483647 == 1)
12006 ? 1 : -1];
12007 int
12008 main ()
12009 {
12010
12011 ;
12012 return 0;
12013 }
12014 _ACEOF
12015 if ac_fn_c_try_compile "$LINENO"; then :
12016 break
12017 fi
12018 rm -f core conftest.err conftest.$ac_objext
12019 CC="$CC -n32"
12020 if ac_fn_c_try_compile "$LINENO"; then :
12021 ac_cv_sys_largefile_CC=' -n32'; break
12022 fi
12023 rm -f core conftest.err conftest.$ac_objext
12024 break
12025 done
12026 CC=$ac_save_CC
12027 rm -f conftest.$ac_ext
12028 fi
12029 fi
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12031 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12032 if test "$ac_cv_sys_largefile_CC" != no; then
12033 CC=$CC$ac_cv_sys_largefile_CC
12034 fi
12035
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12037 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12038 if ${ac_cv_sys_file_offset_bits+:} false; then :
12039 $as_echo_n "(cached) " >&6
12040 else
12041 while :; do
12042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043 /* end confdefs.h. */
12044 #include <sys/types.h>
12045 /* Check that off_t can represent 2**63 - 1 correctly.
12046 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12047 since some C++ compilers masquerading as C compilers
12048 incorrectly reject 9223372036854775807. */
12049 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12050 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12051 && LARGE_OFF_T % 2147483647 == 1)
12052 ? 1 : -1];
12053 int
12054 main ()
12055 {
12056
12057 ;
12058 return 0;
12059 }
12060 _ACEOF
12061 if ac_fn_c_try_compile "$LINENO"; then :
12062 ac_cv_sys_file_offset_bits=no; break
12063 fi
12064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12066 /* end confdefs.h. */
12067 #define _FILE_OFFSET_BITS 64
12068 #include <sys/types.h>
12069 /* Check that off_t can represent 2**63 - 1 correctly.
12070 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12071 since some C++ compilers masquerading as C compilers
12072 incorrectly reject 9223372036854775807. */
12073 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12074 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12075 && LARGE_OFF_T % 2147483647 == 1)
12076 ? 1 : -1];
12077 int
12078 main ()
12079 {
12080
12081 ;
12082 return 0;
12083 }
12084 _ACEOF
12085 if ac_fn_c_try_compile "$LINENO"; then :
12086 ac_cv_sys_file_offset_bits=64; break
12087 fi
12088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12089 ac_cv_sys_file_offset_bits=unknown
12090 break
12091 done
12092 fi
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12094 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12095 case $ac_cv_sys_file_offset_bits in #(
12096 no | unknown) ;;
12097 *)
12098 cat >>confdefs.h <<_ACEOF
12099 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12100 _ACEOF
12101 ;;
12102 esac
12103 rm -rf conftest*
12104 if test $ac_cv_sys_file_offset_bits = unknown; then
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12106 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12107 if ${ac_cv_sys_large_files+:} false; then :
12108 $as_echo_n "(cached) " >&6
12109 else
12110 while :; do
12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112 /* end confdefs.h. */
12113 #include <sys/types.h>
12114 /* Check that off_t can represent 2**63 - 1 correctly.
12115 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12116 since some C++ compilers masquerading as C compilers
12117 incorrectly reject 9223372036854775807. */
12118 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12119 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12120 && LARGE_OFF_T % 2147483647 == 1)
12121 ? 1 : -1];
12122 int
12123 main ()
12124 {
12125
12126 ;
12127 return 0;
12128 }
12129 _ACEOF
12130 if ac_fn_c_try_compile "$LINENO"; then :
12131 ac_cv_sys_large_files=no; break
12132 fi
12133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12136 #define _LARGE_FILES 1
12137 #include <sys/types.h>
12138 /* Check that off_t can represent 2**63 - 1 correctly.
12139 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12140 since some C++ compilers masquerading as C compilers
12141 incorrectly reject 9223372036854775807. */
12142 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12143 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12144 && LARGE_OFF_T % 2147483647 == 1)
12145 ? 1 : -1];
12146 int
12147 main ()
12148 {
12149
12150 ;
12151 return 0;
12152 }
12153 _ACEOF
12154 if ac_fn_c_try_compile "$LINENO"; then :
12155 ac_cv_sys_large_files=1; break
12156 fi
12157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12158 ac_cv_sys_large_files=unknown
12159 break
12160 done
12161 fi
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12163 $as_echo "$ac_cv_sys_large_files" >&6; }
12164 case $ac_cv_sys_large_files in #(
12165 no | unknown) ;;
12166 *)
12167 cat >>confdefs.h <<_ACEOF
12168 #define _LARGE_FILES $ac_cv_sys_large_files
12169 _ACEOF
12170 ;;
12171 esac
12172 rm -rf conftest*
12173 fi
12174
12175
12176 fi
12177
12178 : ${CONFIG_LT=./config.lt}
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
12180 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
12181 as_write_fail=0
12182 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
12183 #! $SHELL
12184 # Generated by $as_me.
12185 # Run this file to recreate a libtool stub with the current configuration.
12186 SHELL=\${CONFIG_SHELL-$SHELL}
12187 export SHELL
12188 _ASEOF
12189 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
12190 ## -------------------- ##
12191 ## M4sh Initialization. ##
12192 ## -------------------- ##
12193
12194 # Be more Bourne compatible
12195 DUALCASE=1; export DUALCASE # for MKS sh
12196 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12197 emulate sh
12198 NULLCMD=:
12199 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12200 # is contrary to our usage. Disable this feature.
12201 alias -g '${1+"$@"}'='"$@"'
12202 setopt NO_GLOB_SUBST
12203 else
12204 case `(set -o) 2>/dev/null` in #(
12205 *posix*) :
12206 set -o posix ;; #(
12207 *) :
12208 ;;
12209 esac
12210 fi
12211
12212
12213 as_nl='
12214 '
12215 export as_nl
12216 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12217 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12218 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12219 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12220 # Prefer a ksh shell builtin over an external printf program on Solaris,
12221 # but without wasting forks for bash or zsh.
12222 if test -z "$BASH_VERSION$ZSH_VERSION" \
12223 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12224 as_echo='print -r --'
12225 as_echo_n='print -rn --'
12226 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12227 as_echo='printf %s\n'
12228 as_echo_n='printf %s'
12229 else
12230 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12231 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12232 as_echo_n='/usr/ucb/echo -n'
12233 else
12234 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12235 as_echo_n_body='eval
12236 arg=$1;
12237 case $arg in #(
12238 *"$as_nl"*)
12239 expr "X$arg" : "X\\(.*\\)$as_nl";
12240 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12241 esac;
12242 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12243 '
12244 export as_echo_n_body
12245 as_echo_n='sh -c $as_echo_n_body as_echo'
12246 fi
12247 export as_echo_body
12248 as_echo='sh -c $as_echo_body as_echo'
12249 fi
12250
12251 # The user is always right.
12252 if test "${PATH_SEPARATOR+set}" != set; then
12253 PATH_SEPARATOR=:
12254 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12255 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12256 PATH_SEPARATOR=';'
12257 }
12258 fi
12259
12260
12261 # IFS
12262 # We need space, tab and new line, in precisely that order. Quoting is
12263 # there to prevent editors from complaining about space-tab.
12264 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12265 # splitting by setting IFS to empty value.)
12266 IFS=" "" $as_nl"
12267
12268 # Find who we are. Look in the path if we contain no directory separator.
12269 as_myself=
12270 case $0 in #((
12271 *[\\/]* ) as_myself=$0 ;;
12272 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273 for as_dir in $PATH
12274 do
12275 IFS=$as_save_IFS
12276 test -z "$as_dir" && as_dir=.
12277 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12278 done
12279 IFS=$as_save_IFS
12280
12281 ;;
12282 esac
12283 # We did not find ourselves, most probably we were run as `sh COMMAND'
12284 # in which case we are not to be found in the path.
12285 if test "x$as_myself" = x; then
12286 as_myself=$0
12287 fi
12288 if test ! -f "$as_myself"; then
12289 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12290 exit 1
12291 fi
12292
12293 # Unset variables that we do not need and which cause bugs (e.g. in
12294 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12295 # suppresses any "Segmentation fault" message there. '((' could
12296 # trigger a bug in pdksh 5.2.14.
12297 for as_var in BASH_ENV ENV MAIL MAILPATH
12298 do eval test x\${$as_var+set} = xset \
12299 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12300 done
12301 PS1='$ '
12302 PS2='> '
12303 PS4='+ '
12304
12305 # NLS nuisances.
12306 LC_ALL=C
12307 export LC_ALL
12308 LANGUAGE=C
12309 export LANGUAGE
12310
12311 # CDPATH.
12312 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12313
12314
12315 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12316 # ----------------------------------------
12317 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12318 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12319 # script with STATUS, using 1 if that was 0.
12320 as_fn_error ()
12321 {
12322 as_status=$1; test $as_status -eq 0 && as_status=1
12323 if test "$4"; then
12324 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12325 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12326 fi
12327 $as_echo "$as_me: error: $2" >&2
12328 as_fn_exit $as_status
12329 } # as_fn_error
12330
12331
12332 # as_fn_set_status STATUS
12333 # -----------------------
12334 # Set $? to STATUS, without forking.
12335 as_fn_set_status ()
12336 {
12337 return $1
12338 } # as_fn_set_status
12339
12340 # as_fn_exit STATUS
12341 # -----------------
12342 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12343 as_fn_exit ()
12344 {
12345 set +e
12346 as_fn_set_status $1
12347 exit $1
12348 } # as_fn_exit
12349
12350 # as_fn_unset VAR
12351 # ---------------
12352 # Portably unset VAR.
12353 as_fn_unset ()
12354 {
12355 { eval $1=; unset $1;}
12356 }
12357 as_unset=as_fn_unset
12358 # as_fn_append VAR VALUE
12359 # ----------------------
12360 # Append the text in VALUE to the end of the definition contained in VAR. Take
12361 # advantage of any shell optimizations that allow amortized linear growth over
12362 # repeated appends, instead of the typical quadratic growth present in naive
12363 # implementations.
12364 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12365 eval 'as_fn_append ()
12366 {
12367 eval $1+=\$2
12368 }'
12369 else
12370 as_fn_append ()
12371 {
12372 eval $1=\$$1\$2
12373 }
12374 fi # as_fn_append
12375
12376 # as_fn_arith ARG...
12377 # ------------------
12378 # Perform arithmetic evaluation on the ARGs, and store the result in the
12379 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12380 # must be portable across $(()) and expr.
12381 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12382 eval 'as_fn_arith ()
12383 {
12384 as_val=$(( $* ))
12385 }'
12386 else
12387 as_fn_arith ()
12388 {
12389 as_val=`expr "$@" || test $? -eq 1`
12390 }
12391 fi # as_fn_arith
12392
12393
12394 if expr a : '\(a\)' >/dev/null 2>&1 &&
12395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12396 as_expr=expr
12397 else
12398 as_expr=false
12399 fi
12400
12401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12402 as_basename=basename
12403 else
12404 as_basename=false
12405 fi
12406
12407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12408 as_dirname=dirname
12409 else
12410 as_dirname=false
12411 fi
12412
12413 as_me=`$as_basename -- "$0" ||
12414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12415 X"$0" : 'X\(//\)$' \| \
12416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12417 $as_echo X/"$0" |
12418 sed '/^.*\/\([^/][^/]*\)\/*$/{
12419 s//\1/
12420 q
12421 }
12422 /^X\/\(\/\/\)$/{
12423 s//\1/
12424 q
12425 }
12426 /^X\/\(\/\).*/{
12427 s//\1/
12428 q
12429 }
12430 s/.*/./; q'`
12431
12432 # Avoid depending upon Character Ranges.
12433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12436 as_cr_digits='0123456789'
12437 as_cr_alnum=$as_cr_Letters$as_cr_digits
12438
12439 ECHO_C= ECHO_N= ECHO_T=
12440 case `echo -n x` in #(((((
12441 -n*)
12442 case `echo 'xy\c'` in
12443 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12444 xy) ECHO_C='\c';;
12445 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12446 ECHO_T=' ';;
12447 esac;;
12448 *)
12449 ECHO_N='-n';;
12450 esac
12451
12452 rm -f conf$$ conf$$.exe conf$$.file
12453 if test -d conf$$.dir; then
12454 rm -f conf$$.dir/conf$$.file
12455 else
12456 rm -f conf$$.dir
12457 mkdir conf$$.dir 2>/dev/null
12458 fi
12459 if (echo >conf$$.file) 2>/dev/null; then
12460 if ln -s conf$$.file conf$$ 2>/dev/null; then
12461 as_ln_s='ln -s'
12462 # ... but there are two gotchas:
12463 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12464 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12465 # In both cases, we have to default to `cp -pR'.
12466 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12467 as_ln_s='cp -pR'
12468 elif ln conf$$.file conf$$ 2>/dev/null; then
12469 as_ln_s=ln
12470 else
12471 as_ln_s='cp -pR'
12472 fi
12473 else
12474 as_ln_s='cp -pR'
12475 fi
12476 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12477 rmdir conf$$.dir 2>/dev/null
12478
12479
12480 # as_fn_mkdir_p
12481 # -------------
12482 # Create "$as_dir" as a directory, including parents if necessary.
12483 as_fn_mkdir_p ()
12484 {
12485
12486 case $as_dir in #(
12487 -*) as_dir=./$as_dir;;
12488 esac
12489 test -d "$as_dir" || eval $as_mkdir_p || {
12490 as_dirs=
12491 while :; do
12492 case $as_dir in #(
12493 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12494 *) as_qdir=$as_dir;;
12495 esac
12496 as_dirs="'$as_qdir' $as_dirs"
12497 as_dir=`$as_dirname -- "$as_dir" ||
12498 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12499 X"$as_dir" : 'X\(//\)[^/]' \| \
12500 X"$as_dir" : 'X\(//\)$' \| \
12501 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12502 $as_echo X"$as_dir" |
12503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12504 s//\1/
12505 q
12506 }
12507 /^X\(\/\/\)[^/].*/{
12508 s//\1/
12509 q
12510 }
12511 /^X\(\/\/\)$/{
12512 s//\1/
12513 q
12514 }
12515 /^X\(\/\).*/{
12516 s//\1/
12517 q
12518 }
12519 s/.*/./; q'`
12520 test -d "$as_dir" && break
12521 done
12522 test -z "$as_dirs" || eval "mkdir $as_dirs"
12523 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12524
12525
12526 } # as_fn_mkdir_p
12527 if mkdir -p . 2>/dev/null; then
12528 as_mkdir_p='mkdir -p "$as_dir"'
12529 else
12530 test -d ./-p && rmdir ./-p
12531 as_mkdir_p=false
12532 fi
12533
12534
12535 # as_fn_executable_p FILE
12536 # -----------------------
12537 # Test if FILE is an executable regular file.
12538 as_fn_executable_p ()
12539 {
12540 test -f "$1" && test -x "$1"
12541 } # as_fn_executable_p
12542 as_test_x='test -x'
12543 as_executable_p=as_fn_executable_p
12544
12545 # Sed expression to map a string onto a valid CPP name.
12546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12547
12548 # Sed expression to map a string onto a valid variable name.
12549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12550
12551
12552 exec 6>&1
12553 ## --------------------------------- ##
12554 ## Main body of "$CONFIG_LT" script. ##
12555 ## --------------------------------- ##
12556 _ASEOF
12557 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
12558
12559 cat >>"$CONFIG_LT" <<\_LTEOF
12560 lt_cl_silent=false
12561 exec 5>>config.log
12562 {
12563 echo
12564 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12565 ## Running $as_me. ##
12566 _ASBOX
12567 } >&5
12568
12569 lt_cl_help="\
12570 \`$as_me' creates a local libtool stub from the current configuration,
12571 for use in further configure time tests before the real libtool is
12572 generated.
12573
12574 Usage: $0 [OPTIONS]
12575
12576 -h, --help print this help, then exit
12577 -V, --version print version number, then exit
12578 -q, --quiet do not print progress messages
12579 -d, --debug don't remove temporary files
12580
12581 Report bugs to <bug-libtool@gnu.org>."
12582
12583 lt_cl_version="\
12584 libctf config.lt 1.2.0
12585 configured by $0, generated by GNU Autoconf 2.69.
12586
12587 Copyright (C) 2009 Free Software Foundation, Inc.
12588 This config.lt script is free software; the Free Software Foundation
12589 gives unlimited permision to copy, distribute and modify it."
12590
12591 while test $# != 0
12592 do
12593 case $1 in
12594 --version | --v* | -V )
12595 echo "$lt_cl_version"; exit 0 ;;
12596 --help | --h* | -h )
12597 echo "$lt_cl_help"; exit 0 ;;
12598 --debug | --d* | -d )
12599 debug=: ;;
12600 --quiet | --q* | --silent | --s* | -q )
12601 lt_cl_silent=: ;;
12602
12603 -*) as_fn_error $? "unrecognized option: $1
12604 Try \`$0 --help' for more information." "$LINENO" 5 ;;
12605
12606 *) as_fn_error $? "unrecognized argument: $1
12607 Try \`$0 --help' for more information." "$LINENO" 5 ;;
12608 esac
12609 shift
12610 done
12611
12612 if $lt_cl_silent; then
12613 exec 6>/dev/null
12614 fi
12615 _LTEOF
12616
12617 cat >>"$CONFIG_LT" <<_LTEOF
12618
12619
12620 # The HP-UX ksh and POSIX shell print the target directory to stdout
12621 # if CDPATH is set.
12622 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12623
12624 sed_quote_subst='$sed_quote_subst'
12625 double_quote_subst='$double_quote_subst'
12626 delay_variable_subst='$delay_variable_subst'
12627 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12628 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12629 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12630 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12631 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12632 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12633 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12634 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12635 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12636 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12637 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12638 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12639 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12640 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12641 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12642 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12643 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12644 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12645 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12646 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12647 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12648 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12649 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12650 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12651 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12652 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12653 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12654 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12655 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12656 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12657 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12658 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12659 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12660 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12661 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12662 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12663 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12664 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12665 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12666 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12667 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12668 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12669 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12670 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12671 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12672 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12673 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12674 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12675 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"`'
12676 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12677 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12678 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12679 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12680 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12681 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12682 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12683 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12684 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12685 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12686 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12687 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12688 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12689 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12690 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12691 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12692 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12693 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12694 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12695 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12696 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12697 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12698 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12699 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12700 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12701 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12702 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12703 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12704 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12705 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12706 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12707 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12708 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12709 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12710 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12711 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12712 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12713 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12714 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12715 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12716 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12717 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12718 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12719 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12720 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12721 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12722 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12723 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12724 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12725 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12726 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12727 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12728 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12729 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12730 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12731 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12732 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12733 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12734 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12735 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12736 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12737 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12738 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12739 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12740 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12741 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12742 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12743 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12744 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12745 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12746 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12747
12748 LTCC='$LTCC'
12749 LTCFLAGS='$LTCFLAGS'
12750 compiler='$compiler_DEFAULT'
12751
12752 # A function that is used when there is no print builtin or printf.
12753 func_fallback_echo ()
12754 {
12755 eval 'cat <<_LTECHO_EOF
12756 \$1
12757 _LTECHO_EOF'
12758 }
12759
12760 # Quote evaled strings.
12761 for var in SHELL \
12762 ECHO \
12763 SED \
12764 GREP \
12765 EGREP \
12766 FGREP \
12767 LD \
12768 NM \
12769 LN_S \
12770 lt_SP2NL \
12771 lt_NL2SP \
12772 reload_flag \
12773 OBJDUMP \
12774 deplibs_check_method \
12775 file_magic_cmd \
12776 AR \
12777 AR_FLAGS \
12778 STRIP \
12779 RANLIB \
12780 CC \
12781 CFLAGS \
12782 compiler \
12783 lt_cv_sys_global_symbol_pipe \
12784 lt_cv_sys_global_symbol_to_cdecl \
12785 lt_cv_sys_global_symbol_to_c_name_address \
12786 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12787 lt_prog_compiler_no_builtin_flag \
12788 lt_prog_compiler_wl \
12789 lt_prog_compiler_pic \
12790 lt_prog_compiler_static \
12791 lt_cv_prog_compiler_c_o \
12792 need_locks \
12793 DSYMUTIL \
12794 NMEDIT \
12795 LIPO \
12796 OTOOL \
12797 OTOOL64 \
12798 shrext_cmds \
12799 export_dynamic_flag_spec \
12800 whole_archive_flag_spec \
12801 compiler_needs_object \
12802 with_gnu_ld \
12803 allow_undefined_flag \
12804 no_undefined_flag \
12805 hardcode_libdir_flag_spec \
12806 hardcode_libdir_flag_spec_ld \
12807 hardcode_libdir_separator \
12808 fix_srcfile_path \
12809 exclude_expsyms \
12810 include_expsyms \
12811 file_list_spec \
12812 variables_saved_for_relink \
12813 libname_spec \
12814 library_names_spec \
12815 soname_spec \
12816 install_override_mode \
12817 finish_eval \
12818 old_striplib \
12819 striplib; do
12820 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12821 *[\\\\\\\`\\"\\\$]*)
12822 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12823 ;;
12824 *)
12825 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12826 ;;
12827 esac
12828 done
12829
12830 # Double-quote double-evaled strings.
12831 for var in reload_cmds \
12832 old_postinstall_cmds \
12833 old_postuninstall_cmds \
12834 old_archive_cmds \
12835 extract_expsyms_cmds \
12836 old_archive_from_new_cmds \
12837 old_archive_from_expsyms_cmds \
12838 archive_cmds \
12839 archive_expsym_cmds \
12840 module_cmds \
12841 module_expsym_cmds \
12842 export_symbols_cmds \
12843 prelink_cmds \
12844 postinstall_cmds \
12845 postuninstall_cmds \
12846 finish_cmds \
12847 sys_lib_search_path_spec \
12848 sys_lib_dlsearch_path_spec; do
12849 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12850 *[\\\\\\\`\\"\\\$]*)
12851 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12852 ;;
12853 *)
12854 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12855 ;;
12856 esac
12857 done
12858
12859 ac_aux_dir='$ac_aux_dir'
12860 xsi_shell='$xsi_shell'
12861 lt_shell_append='$lt_shell_append'
12862
12863 # See if we are running on zsh, and set the options which allow our
12864 # commands through without removal of \ escapes INIT.
12865 if test -n "\${ZSH_VERSION+set}" ; then
12866 setopt NO_GLOB_SUBST
12867 fi
12868
12869
12870 PACKAGE='$PACKAGE'
12871 VERSION='$VERSION'
12872 TIMESTAMP='$TIMESTAMP'
12873 RM='$RM'
12874 ofile='$ofile'
12875
12876
12877
12878 _LTEOF
12879
12880 cat >>"$CONFIG_LT" <<\_LTEOF
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
12882 $as_echo "$as_me: creating $ofile" >&6;}
12883
12884
12885 # See if we are running on zsh, and set the options which allow our
12886 # commands through without removal of \ escapes.
12887 if test -n "${ZSH_VERSION+set}" ; then
12888 setopt NO_GLOB_SUBST
12889 fi
12890
12891 cfgfile="${ofile}T"
12892 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12893 $RM "$cfgfile"
12894
12895 cat <<_LT_EOF >> "$cfgfile"
12896 #! $SHELL
12897
12898 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12899 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12900 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12901 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12902 #
12903 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12904 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12905 # Written by Gordon Matzigkeit, 1996
12906 #
12907 # This file is part of GNU Libtool.
12908 #
12909 # GNU Libtool is free software; you can redistribute it and/or
12910 # modify it under the terms of the GNU General Public License as
12911 # published by the Free Software Foundation; either version 2 of
12912 # the License, or (at your option) any later version.
12913 #
12914 # As a special exception to the GNU General Public License,
12915 # if you distribute this file as part of a program or library that
12916 # is built using GNU Libtool, you may include this file under the
12917 # same distribution terms that you use for the rest of that program.
12918 #
12919 # GNU Libtool is distributed in the hope that it will be useful,
12920 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12921 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12922 # GNU General Public License for more details.
12923 #
12924 # You should have received a copy of the GNU General Public License
12925 # along with GNU Libtool; see the file COPYING. If not, a copy
12926 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12927 # obtained by writing to the Free Software Foundation, Inc.,
12928 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12929
12930
12931 # The names of the tagged configurations supported by this script.
12932 available_tags=""
12933
12934 # ### BEGIN LIBTOOL CONFIG
12935
12936 # Whether or not to build shared libraries.
12937 build_libtool_libs=$enable_shared
12938
12939 # Which release of libtool.m4 was used?
12940 macro_version=$macro_version
12941 macro_revision=$macro_revision
12942
12943 # Whether or not to build static libraries.
12944 build_old_libs=$enable_static
12945
12946 # What type of objects to build.
12947 pic_mode=$pic_mode
12948
12949 # Whether or not to optimize for fast installation.
12950 fast_install=$enable_fast_install
12951
12952 # Shell to use when invoking shell scripts.
12953 SHELL=$lt_SHELL
12954
12955 # An echo program that protects backslashes.
12956 ECHO=$lt_ECHO
12957
12958 # The host system.
12959 host_alias=$host_alias
12960 host=$host
12961 host_os=$host_os
12962
12963 # The build system.
12964 build_alias=$build_alias
12965 build=$build
12966 build_os=$build_os
12967
12968 # A sed program that does not truncate output.
12969 SED=$lt_SED
12970
12971 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12972 Xsed="\$SED -e 1s/^X//"
12973
12974 # A grep program that handles long lines.
12975 GREP=$lt_GREP
12976
12977 # An ERE matcher.
12978 EGREP=$lt_EGREP
12979
12980 # A literal string matcher.
12981 FGREP=$lt_FGREP
12982
12983 # A BSD- or MS-compatible name lister.
12984 NM=$lt_NM
12985
12986 # Whether we need soft or hard links.
12987 LN_S=$lt_LN_S
12988
12989 # What is the maximum length of a command?
12990 max_cmd_len=$max_cmd_len
12991
12992 # Object file suffix (normally "o").
12993 objext=$ac_objext
12994
12995 # Executable file suffix (normally "").
12996 exeext=$exeext
12997
12998 # whether the shell understands "unset".
12999 lt_unset=$lt_unset
13000
13001 # turn spaces into newlines.
13002 SP2NL=$lt_lt_SP2NL
13003
13004 # turn newlines into spaces.
13005 NL2SP=$lt_lt_NL2SP
13006
13007 # An object symbol dumper.
13008 OBJDUMP=$lt_OBJDUMP
13009
13010 # Method to check whether dependent libraries are shared objects.
13011 deplibs_check_method=$lt_deplibs_check_method
13012
13013 # Command to use when deplibs_check_method == "file_magic".
13014 file_magic_cmd=$lt_file_magic_cmd
13015
13016 # The archiver.
13017 AR=$lt_AR
13018 AR_FLAGS=$lt_AR_FLAGS
13019
13020 # A symbol stripping program.
13021 STRIP=$lt_STRIP
13022
13023 # Commands used to install an old-style archive.
13024 RANLIB=$lt_RANLIB
13025 old_postinstall_cmds=$lt_old_postinstall_cmds
13026 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13027
13028 # Whether to use a lock for old archive extraction.
13029 lock_old_archive_extraction=$lock_old_archive_extraction
13030
13031 # A C compiler.
13032 LTCC=$lt_CC
13033
13034 # LTCC compiler flags.
13035 LTCFLAGS=$lt_CFLAGS
13036
13037 # Take the output of nm and produce a listing of raw symbols and C names.
13038 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13039
13040 # Transform the output of nm in a proper C declaration.
13041 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13042
13043 # Transform the output of nm in a C name address pair.
13044 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13045
13046 # Transform the output of nm in a C name address pair when lib prefix is needed.
13047 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13048
13049 # The name of the directory that contains temporary libtool files.
13050 objdir=$objdir
13051
13052 # Used to examine libraries when file_magic_cmd begins with "file".
13053 MAGIC_CMD=$MAGIC_CMD
13054
13055 # Must we lock files when doing compilation?
13056 need_locks=$lt_need_locks
13057
13058 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13059 DSYMUTIL=$lt_DSYMUTIL
13060
13061 # Tool to change global to local symbols on Mac OS X.
13062 NMEDIT=$lt_NMEDIT
13063
13064 # Tool to manipulate fat objects and archives on Mac OS X.
13065 LIPO=$lt_LIPO
13066
13067 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13068 OTOOL=$lt_OTOOL
13069
13070 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13071 OTOOL64=$lt_OTOOL64
13072
13073 # Old archive suffix (normally "a").
13074 libext=$libext
13075
13076 # Shared library suffix (normally ".so").
13077 shrext_cmds=$lt_shrext_cmds
13078
13079 # The commands to extract the exported symbol list from a shared archive.
13080 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13081
13082 # Variables whose values should be saved in libtool wrapper scripts and
13083 # restored at link time.
13084 variables_saved_for_relink=$lt_variables_saved_for_relink
13085
13086 # Do we need the "lib" prefix for modules?
13087 need_lib_prefix=$need_lib_prefix
13088
13089 # Do we need a version for libraries?
13090 need_version=$need_version
13091
13092 # Library versioning type.
13093 version_type=$version_type
13094
13095 # Shared library runtime path variable.
13096 runpath_var=$runpath_var
13097
13098 # Shared library path variable.
13099 shlibpath_var=$shlibpath_var
13100
13101 # Is shlibpath searched before the hard-coded library search path?
13102 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13103
13104 # Format of library name prefix.
13105 libname_spec=$lt_libname_spec
13106
13107 # List of archive names. First name is the real one, the rest are links.
13108 # The last name is the one that the linker finds with -lNAME
13109 library_names_spec=$lt_library_names_spec
13110
13111 # The coded name of the library, if different from the real name.
13112 soname_spec=$lt_soname_spec
13113
13114 # Permission mode override for installation of shared libraries.
13115 install_override_mode=$lt_install_override_mode
13116
13117 # Command to use after installation of a shared archive.
13118 postinstall_cmds=$lt_postinstall_cmds
13119
13120 # Command to use after uninstallation of a shared archive.
13121 postuninstall_cmds=$lt_postuninstall_cmds
13122
13123 # Commands used to finish a libtool library installation in a directory.
13124 finish_cmds=$lt_finish_cmds
13125
13126 # As "finish_cmds", except a single script fragment to be evaled but
13127 # not shown.
13128 finish_eval=$lt_finish_eval
13129
13130 # Whether we should hardcode library paths into libraries.
13131 hardcode_into_libs=$hardcode_into_libs
13132
13133 # Compile-time system search path for libraries.
13134 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13135
13136 # Run-time system search path for libraries.
13137 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13138
13139 # Whether dlopen is supported.
13140 dlopen_support=$enable_dlopen
13141
13142 # Whether dlopen of programs is supported.
13143 dlopen_self=$enable_dlopen_self
13144
13145 # Whether dlopen of statically linked programs is supported.
13146 dlopen_self_static=$enable_dlopen_self_static
13147
13148 # Commands to strip libraries.
13149 old_striplib=$lt_old_striplib
13150 striplib=$lt_striplib
13151
13152
13153 # The linker used to build libraries.
13154 LD=$lt_LD
13155
13156 # How to create reloadable object files.
13157 reload_flag=$lt_reload_flag
13158 reload_cmds=$lt_reload_cmds
13159
13160 # Commands used to build an old-style archive.
13161 old_archive_cmds=$lt_old_archive_cmds
13162
13163 # A language specific compiler.
13164 CC=$lt_compiler
13165
13166 # Is the compiler the GNU compiler?
13167 with_gcc=$GCC
13168
13169 # Compiler flag to turn off builtin functions.
13170 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13171
13172 # How to pass a linker flag through the compiler.
13173 wl=$lt_lt_prog_compiler_wl
13174
13175 # Additional compiler flags for building library objects.
13176 pic_flag=$lt_lt_prog_compiler_pic
13177
13178 # Compiler flag to prevent dynamic linking.
13179 link_static_flag=$lt_lt_prog_compiler_static
13180
13181 # Does compiler simultaneously support -c and -o options?
13182 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13183
13184 # Whether or not to add -lc for building shared libraries.
13185 build_libtool_need_lc=$archive_cmds_need_lc
13186
13187 # Whether or not to disallow shared libs when runtime libs are static.
13188 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13189
13190 # Compiler flag to allow reflexive dlopens.
13191 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13192
13193 # Compiler flag to generate shared objects directly from archives.
13194 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13195
13196 # Whether the compiler copes with passing no objects directly.
13197 compiler_needs_object=$lt_compiler_needs_object
13198
13199 # Create an old-style archive from a shared archive.
13200 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13201
13202 # Create a temporary old-style archive to link instead of a shared archive.
13203 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13204
13205 # Commands used to build a shared archive.
13206 archive_cmds=$lt_archive_cmds
13207 archive_expsym_cmds=$lt_archive_expsym_cmds
13208
13209 # Commands used to build a loadable module if different from building
13210 # a shared archive.
13211 module_cmds=$lt_module_cmds
13212 module_expsym_cmds=$lt_module_expsym_cmds
13213
13214 # Whether we are building with GNU ld or not.
13215 with_gnu_ld=$lt_with_gnu_ld
13216
13217 # Flag that allows shared libraries with undefined symbols to be built.
13218 allow_undefined_flag=$lt_allow_undefined_flag
13219
13220 # Flag that enforces no undefined symbols.
13221 no_undefined_flag=$lt_no_undefined_flag
13222
13223 # Flag to hardcode \$libdir into a binary during linking.
13224 # This must work even if \$libdir does not exist
13225 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13226
13227 # If ld is used when linking, flag to hardcode \$libdir into a binary
13228 # during linking. This must work even if \$libdir does not exist.
13229 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13230
13231 # Whether we need a single "-rpath" flag with a separated argument.
13232 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13233
13234 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13235 # DIR into the resulting binary.
13236 hardcode_direct=$hardcode_direct
13237
13238 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13239 # DIR into the resulting binary and the resulting library dependency is
13240 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13241 # library is relocated.
13242 hardcode_direct_absolute=$hardcode_direct_absolute
13243
13244 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13245 # into the resulting binary.
13246 hardcode_minus_L=$hardcode_minus_L
13247
13248 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13249 # into the resulting binary.
13250 hardcode_shlibpath_var=$hardcode_shlibpath_var
13251
13252 # Set to "yes" if building a shared library automatically hardcodes DIR
13253 # into the library and all subsequent libraries and executables linked
13254 # against it.
13255 hardcode_automatic=$hardcode_automatic
13256
13257 # Set to yes if linker adds runtime paths of dependent libraries
13258 # to runtime path list.
13259 inherit_rpath=$inherit_rpath
13260
13261 # Whether libtool must link a program against all its dependency libraries.
13262 link_all_deplibs=$link_all_deplibs
13263
13264 # Fix the shell variable \$srcfile for the compiler.
13265 fix_srcfile_path=$lt_fix_srcfile_path
13266
13267 # Set to "yes" if exported symbols are required.
13268 always_export_symbols=$always_export_symbols
13269
13270 # The commands to list exported symbols.
13271 export_symbols_cmds=$lt_export_symbols_cmds
13272
13273 # Symbols that should not be listed in the preloaded symbols.
13274 exclude_expsyms=$lt_exclude_expsyms
13275
13276 # Symbols that must always be exported.
13277 include_expsyms=$lt_include_expsyms
13278
13279 # Commands necessary for linking programs (against libraries) with templates.
13280 prelink_cmds=$lt_prelink_cmds
13281
13282 # Specify filename containing input files.
13283 file_list_spec=$lt_file_list_spec
13284
13285 # How to hardcode a shared library path into an executable.
13286 hardcode_action=$hardcode_action
13287
13288 # ### END LIBTOOL CONFIG
13289
13290 _LT_EOF
13291
13292 case $host_os in
13293 aix3*)
13294 cat <<\_LT_EOF >> "$cfgfile"
13295 # AIX sometimes has problems with the GCC collect2 program. For some
13296 # reason, if we set the COLLECT_NAMES environment variable, the problems
13297 # vanish in a puff of smoke.
13298 if test "X${COLLECT_NAMES+set}" != Xset; then
13299 COLLECT_NAMES=
13300 export COLLECT_NAMES
13301 fi
13302 _LT_EOF
13303 ;;
13304 esac
13305
13306
13307 ltmain="$ac_aux_dir/ltmain.sh"
13308
13309
13310 # We use sed instead of cat because bash on DJGPP gets confused if
13311 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13312 # text mode, it properly converts lines to CR/LF. This bash problem
13313 # is reportedly fixed, but why not run on old versions too?
13314 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13315 || (rm -f "$cfgfile"; exit 1)
13316
13317 case $xsi_shell in
13318 yes)
13319 cat << \_LT_EOF >> "$cfgfile"
13320
13321 # func_dirname file append nondir_replacement
13322 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13323 # otherwise set result to NONDIR_REPLACEMENT.
13324 func_dirname ()
13325 {
13326 case ${1} in
13327 */*) func_dirname_result="${1%/*}${2}" ;;
13328 * ) func_dirname_result="${3}" ;;
13329 esac
13330 }
13331
13332 # func_basename file
13333 func_basename ()
13334 {
13335 func_basename_result="${1##*/}"
13336 }
13337
13338 # func_dirname_and_basename file append nondir_replacement
13339 # perform func_basename and func_dirname in a single function
13340 # call:
13341 # dirname: Compute the dirname of FILE. If nonempty,
13342 # add APPEND to the result, otherwise set result
13343 # to NONDIR_REPLACEMENT.
13344 # value returned in "$func_dirname_result"
13345 # basename: Compute filename of FILE.
13346 # value retuned in "$func_basename_result"
13347 # Implementation must be kept synchronized with func_dirname
13348 # and func_basename. For efficiency, we do not delegate to
13349 # those functions but instead duplicate the functionality here.
13350 func_dirname_and_basename ()
13351 {
13352 case ${1} in
13353 */*) func_dirname_result="${1%/*}${2}" ;;
13354 * ) func_dirname_result="${3}" ;;
13355 esac
13356 func_basename_result="${1##*/}"
13357 }
13358
13359 # func_stripname prefix suffix name
13360 # strip PREFIX and SUFFIX off of NAME.
13361 # PREFIX and SUFFIX must not contain globbing or regex special
13362 # characters, hashes, percent signs, but SUFFIX may contain a leading
13363 # dot (in which case that matches only a dot).
13364 func_stripname ()
13365 {
13366 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13367 # positional parameters, so assign one to ordinary parameter first.
13368 func_stripname_result=${3}
13369 func_stripname_result=${func_stripname_result#"${1}"}
13370 func_stripname_result=${func_stripname_result%"${2}"}
13371 }
13372
13373 # func_opt_split
13374 func_opt_split ()
13375 {
13376 func_opt_split_opt=${1%%=*}
13377 func_opt_split_arg=${1#*=}
13378 }
13379
13380 # func_lo2o object
13381 func_lo2o ()
13382 {
13383 case ${1} in
13384 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13385 *) func_lo2o_result=${1} ;;
13386 esac
13387 }
13388
13389 # func_xform libobj-or-source
13390 func_xform ()
13391 {
13392 func_xform_result=${1%.*}.lo
13393 }
13394
13395 # func_arith arithmetic-term...
13396 func_arith ()
13397 {
13398 func_arith_result=$(( $* ))
13399 }
13400
13401 # func_len string
13402 # STRING may not start with a hyphen.
13403 func_len ()
13404 {
13405 func_len_result=${#1}
13406 }
13407
13408 _LT_EOF
13409 ;;
13410 *) # Bourne compatible functions.
13411 cat << \_LT_EOF >> "$cfgfile"
13412
13413 # func_dirname file append nondir_replacement
13414 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13415 # otherwise set result to NONDIR_REPLACEMENT.
13416 func_dirname ()
13417 {
13418 # Extract subdirectory from the argument.
13419 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13420 if test "X$func_dirname_result" = "X${1}"; then
13421 func_dirname_result="${3}"
13422 else
13423 func_dirname_result="$func_dirname_result${2}"
13424 fi
13425 }
13426
13427 # func_basename file
13428 func_basename ()
13429 {
13430 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13431 }
13432
13433
13434 # func_stripname prefix suffix name
13435 # strip PREFIX and SUFFIX off of NAME.
13436 # PREFIX and SUFFIX must not contain globbing or regex special
13437 # characters, hashes, percent signs, but SUFFIX may contain a leading
13438 # dot (in which case that matches only a dot).
13439 # func_strip_suffix prefix name
13440 func_stripname ()
13441 {
13442 case ${2} in
13443 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13444 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13445 esac
13446 }
13447
13448 # sed scripts:
13449 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13450 my_sed_long_arg='1s/^-[^=]*=//'
13451
13452 # func_opt_split
13453 func_opt_split ()
13454 {
13455 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13456 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13457 }
13458
13459 # func_lo2o object
13460 func_lo2o ()
13461 {
13462 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13463 }
13464
13465 # func_xform libobj-or-source
13466 func_xform ()
13467 {
13468 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13469 }
13470
13471 # func_arith arithmetic-term...
13472 func_arith ()
13473 {
13474 func_arith_result=`expr "$@"`
13475 }
13476
13477 # func_len string
13478 # STRING may not start with a hyphen.
13479 func_len ()
13480 {
13481 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13482 }
13483
13484 _LT_EOF
13485 esac
13486
13487 case $lt_shell_append in
13488 yes)
13489 cat << \_LT_EOF >> "$cfgfile"
13490
13491 # func_append var value
13492 # Append VALUE to the end of shell variable VAR.
13493 func_append ()
13494 {
13495 eval "$1+=\$2"
13496 }
13497 _LT_EOF
13498 ;;
13499 *)
13500 cat << \_LT_EOF >> "$cfgfile"
13501
13502 # func_append var value
13503 # Append VALUE to the end of shell variable VAR.
13504 func_append ()
13505 {
13506 eval "$1=\$$1\$2"
13507 }
13508
13509 _LT_EOF
13510 ;;
13511 esac
13512
13513
13514 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13515 || (rm -f "$cfgfile"; exit 1)
13516
13517 mv -f "$cfgfile" "$ofile" ||
13518 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13519 chmod +x "$ofile"
13520
13521
13522 as_fn_exit 0
13523 _LTEOF
13524 chmod +x "$CONFIG_LT"
13525
13526 # configure is writing to config.log, but config.lt does its own redirection,
13527 # appending to config.log, which fails on DOS, as config.log is still kept
13528 # open by configure. Here we exec the FD to /dev/null, effectively closing
13529 # config.log, so it can be properly (re)opened and appended to by config.lt.
13530 lt_cl_success=:
13531 test "$silent" = yes &&
13532 lt_config_lt_args="$lt_config_lt_args --quiet"
13533 exec 5>/dev/null
13534 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
13535 exec 5>>config.log
13536 $lt_cl_success || as_fn_exit 1
13537
13538
13539 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
13540 for ac_prog in aclocal
13541 do
13542 # Extract the first word of "$ac_prog", so it can be a program name with args.
13543 set dummy $ac_prog; ac_word=$2
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13545 $as_echo_n "checking for $ac_word... " >&6; }
13546 if ${ac_cv_prog_ACLOCAL+:} false; then :
13547 $as_echo_n "(cached) " >&6
13548 else
13549 if test -n "$ACLOCAL"; then
13550 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
13551 else
13552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13553 for as_dir in $PATH
13554 do
13555 IFS=$as_save_IFS
13556 test -z "$as_dir" && as_dir=.
13557 for ac_exec_ext in '' $ac_executable_extensions; do
13558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13559 ac_cv_prog_ACLOCAL="$ac_prog"
13560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13561 break 2
13562 fi
13563 done
13564 done
13565 IFS=$as_save_IFS
13566
13567 fi
13568 fi
13569 ACLOCAL=$ac_cv_prog_ACLOCAL
13570 if test -n "$ACLOCAL"; then
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
13572 $as_echo "$ACLOCAL" >&6; }
13573 else
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13575 $as_echo "no" >&6; }
13576 fi
13577
13578
13579 test -n "$ACLOCAL" && break
13580 done
13581 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
13582
13583 for ac_prog in autoconf
13584 do
13585 # Extract the first word of "$ac_prog", so it can be a program name with args.
13586 set dummy $ac_prog; ac_word=$2
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13588 $as_echo_n "checking for $ac_word... " >&6; }
13589 if ${ac_cv_prog_AUTOCONF+:} false; then :
13590 $as_echo_n "(cached) " >&6
13591 else
13592 if test -n "$AUTOCONF"; then
13593 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
13594 else
13595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596 for as_dir in $PATH
13597 do
13598 IFS=$as_save_IFS
13599 test -z "$as_dir" && as_dir=.
13600 for ac_exec_ext in '' $ac_executable_extensions; do
13601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13602 ac_cv_prog_AUTOCONF="$ac_prog"
13603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13604 break 2
13605 fi
13606 done
13607 done
13608 IFS=$as_save_IFS
13609
13610 fi
13611 fi
13612 AUTOCONF=$ac_cv_prog_AUTOCONF
13613 if test -n "$AUTOCONF"; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
13615 $as_echo "$AUTOCONF" >&6; }
13616 else
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618 $as_echo "no" >&6; }
13619 fi
13620
13621
13622 test -n "$AUTOCONF" && break
13623 done
13624 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
13625
13626 for ac_prog in autoheader
13627 do
13628 # Extract the first word of "$ac_prog", so it can be a program name with args.
13629 set dummy $ac_prog; ac_word=$2
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13631 $as_echo_n "checking for $ac_word... " >&6; }
13632 if ${ac_cv_prog_AUTOHEADER+:} false; then :
13633 $as_echo_n "(cached) " >&6
13634 else
13635 if test -n "$AUTOHEADER"; then
13636 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
13637 else
13638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13639 for as_dir in $PATH
13640 do
13641 IFS=$as_save_IFS
13642 test -z "$as_dir" && as_dir=.
13643 for ac_exec_ext in '' $ac_executable_extensions; do
13644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13645 ac_cv_prog_AUTOHEADER="$ac_prog"
13646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13647 break 2
13648 fi
13649 done
13650 done
13651 IFS=$as_save_IFS
13652
13653 fi
13654 fi
13655 AUTOHEADER=$ac_cv_prog_AUTOHEADER
13656 if test -n "$AUTOHEADER"; then
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
13658 $as_echo "$AUTOHEADER" >&6; }
13659 else
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13661 $as_echo "no" >&6; }
13662 fi
13663
13664
13665 test -n "$AUTOHEADER" && break
13666 done
13667 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
13668
13669
13670 # Figure out what compiler warnings we can enable.
13671 # See config/warnings.m4 for details.
13672
13673 ac_ext=c
13674 ac_cpp='$CPP $CPPFLAGS'
13675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13678
13679 warn=
13680 save_CFLAGS="$CFLAGS"
13681 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
13682 -Wmissing-format-attribute; do
13683 # Do the check with the no- prefix removed since gcc silently
13684 # accepts any -Wno-* option on purpose
13685 case $real_option in
13686 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
13687 *) option=$real_option ;;
13688 esac
13689 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
13690
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
13692 $as_echo_n "checking whether $CC supports $option... " >&6; }
13693 if eval \${$as_acx_Woption+:} false; then :
13694 $as_echo_n "(cached) " >&6
13695 else
13696 CFLAGS="$option"
13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h. */
13699
13700 int
13701 main ()
13702 {
13703
13704 ;
13705 return 0;
13706 }
13707 _ACEOF
13708 if ac_fn_c_try_compile "$LINENO"; then :
13709 eval "$as_acx_Woption=yes"
13710 else
13711 eval "$as_acx_Woption=no"
13712 fi
13713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13714
13715 fi
13716 eval ac_res=\$$as_acx_Woption
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13718 $as_echo "$ac_res" >&6; }
13719 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
13720 warn="$warn${warn:+ }$real_option"
13721 fi
13722 done
13723 CFLAGS="$save_CFLAGS"
13724 ac_ext=c
13725 ac_cpp='$CPP $CPPFLAGS'
13726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13729
13730
13731 ac_ext=c
13732 ac_cpp='$CPP $CPPFLAGS'
13733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13736
13737 c_warn=
13738 save_CFLAGS="$CFLAGS"
13739 for real_option in -Wstrict-prototypes -Wmissing-prototypes \
13740 -Wold-style-definition; do
13741 # Do the check with the no- prefix removed since gcc silently
13742 # accepts any -Wno-* option on purpose
13743 case $real_option in
13744 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
13745 *) option=$real_option ;;
13746 esac
13747 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
13748
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
13750 $as_echo_n "checking whether $CC supports $option... " >&6; }
13751 if eval \${$as_acx_Woption+:} false; then :
13752 $as_echo_n "(cached) " >&6
13753 else
13754 CFLAGS="$option"
13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h. */
13757
13758 int
13759 main ()
13760 {
13761
13762 ;
13763 return 0;
13764 }
13765 _ACEOF
13766 if ac_fn_c_try_compile "$LINENO"; then :
13767 eval "$as_acx_Woption=yes"
13768 else
13769 eval "$as_acx_Woption=no"
13770 fi
13771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13772
13773 fi
13774 eval ac_res=\$$as_acx_Woption
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13776 $as_echo "$ac_res" >&6; }
13777 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
13778 c_warn="$c_warn${c_warn:+ }$real_option"
13779 fi
13780 done
13781 CFLAGS="$save_CFLAGS"
13782 ac_ext=c
13783 ac_cpp='$CPP $CPPFLAGS'
13784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13787
13788
13789 ac_ext=c
13790 ac_cpp='$CPP $CPPFLAGS'
13791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13794
13795 WARN_PEDANTIC=
13796 # Do the check with the no- prefix removed from the warning options
13797 # since gcc silently accepts any -Wno-* option on purpose
13798 if test "$GCC" = yes; then :
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
13800 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
13801 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
13802 $as_echo_n "(cached) " >&6
13803 else
13804 save_CFLAGS="$CFLAGS"
13805 CFLAGS="-pedantic -Wlong-long"
13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13808
13809 int
13810 main ()
13811 {
13812
13813 ;
13814 return 0;
13815 }
13816 _ACEOF
13817 if ac_fn_c_try_compile "$LINENO"; then :
13818 acx_cv_prog_cc_pedantic__Wlong_long=yes
13819 else
13820 acx_cv_prog_cc_pedantic__Wlong_long=no
13821 fi
13822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13823 CFLAGS="$save_CFLAGS"
13824 fi
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
13826 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
13827 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
13828 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
13829 fi
13830
13831 fi
13832 ac_ext=c
13833 ac_cpp='$CPP $CPPFLAGS'
13834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13837
13838
13839
13840 # Only enable with --enable-werror-always until existing warnings are
13841 # corrected.
13842 ac_ext=c
13843 ac_cpp='$CPP $CPPFLAGS'
13844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13847
13848 WERROR=
13849 # Check whether --enable-werror-always was given.
13850 if test "${enable_werror_always+set}" = set; then :
13851 enableval=$enable_werror_always;
13852 else
13853 enable_werror_always=no
13854 fi
13855
13856 if test $enable_werror_always = yes; then :
13857 WERROR="$WERROR${WERROR:+ }-Werror"
13858 fi
13859
13860 ac_ext=c
13861 ac_cpp='$CPP $CPPFLAGS'
13862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13865
13866
13867
13868
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13870 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13871 # Check whether --enable-maintainer-mode was given.
13872 if test "${enable_maintainer_mode+set}" = set; then :
13873 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13874 else
13875 USE_MAINTAINER_MODE=no
13876 fi
13877
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13879 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13880 if test $USE_MAINTAINER_MODE = yes; then
13881 MAINTAINER_MODE_TRUE=
13882 MAINTAINER_MODE_FALSE='#'
13883 else
13884 MAINTAINER_MODE_TRUE='#'
13885 MAINTAINER_MODE_FALSE=
13886 fi
13887
13888 MAINT=$MAINTAINER_MODE_TRUE
13889
13890
13891 case ${build_alias} in
13892 "") build_noncanonical=${build} ;;
13893 *) build_noncanonical=${build_alias} ;;
13894 esac
13895
13896 case ${host_alias} in
13897 "") host_noncanonical=${build_noncanonical} ;;
13898 *) host_noncanonical=${host_alias} ;;
13899 esac
13900
13901 case ${target_alias} in
13902 "") target_noncanonical=${host_noncanonical} ;;
13903 *) target_noncanonical=${target_alias} ;;
13904 esac
13905
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
13907 $as_echo_n "checking whether to install libbfd... " >&6; }
13908 # Check whether --enable-install-libbfd was given.
13909 if test "${enable_install_libbfd+set}" = set; then :
13910 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
13911 else
13912 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
13913 install_libbfd_p=yes
13914 else
13915 install_libbfd_p=no
13916 fi
13917 fi
13918
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
13920 $as_echo "$install_libbfd_p" >&6; }
13921 if test $install_libbfd_p = yes; then
13922 INSTALL_LIBBFD_TRUE=
13923 INSTALL_LIBBFD_FALSE='#'
13924 else
13925 INSTALL_LIBBFD_TRUE='#'
13926 INSTALL_LIBBFD_FALSE=
13927 fi
13928
13929 # Need _noncanonical variables for this.
13930
13931
13932
13933
13934 # libbfd.a is a host library containing target dependent code
13935 bfdlibdir='$(libdir)'
13936 bfdincludedir='$(includedir)'
13937 if test "${host}" != "${target}"; then
13938 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
13939 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
13940 fi
13941
13942
13943
13944
13945
13946
13947 ac_ext=c
13948 ac_cpp='$CPP $CPPFLAGS'
13949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13952
13953 ac_libctf_warn_cflags=
13954 save_CFLAGS="$CFLAGS"
13955 for real_option in -Wall; do
13956 # Do the check with the no- prefix removed since gcc silently
13957 # accepts any -Wno-* option on purpose
13958 case $real_option in
13959 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
13960 *) option=$real_option ;;
13961 esac
13962 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
13963
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
13965 $as_echo_n "checking whether $CC supports $option... " >&6; }
13966 if eval \${$as_acx_Woption+:} false; then :
13967 $as_echo_n "(cached) " >&6
13968 else
13969 CFLAGS="$option"
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13972
13973 int
13974 main ()
13975 {
13976
13977 ;
13978 return 0;
13979 }
13980 _ACEOF
13981 if ac_fn_c_try_compile "$LINENO"; then :
13982 eval "$as_acx_Woption=yes"
13983 else
13984 eval "$as_acx_Woption=no"
13985 fi
13986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13987
13988 fi
13989 eval ac_res=\$$as_acx_Woption
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13991 $as_echo "$ac_res" >&6; }
13992 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
13993 ac_libctf_warn_cflags="$ac_libctf_warn_cflags${ac_libctf_warn_cflags:+ }$real_option"
13994 fi
13995 done
13996 CFLAGS="$save_CFLAGS"
13997 ac_ext=c
13998 ac_cpp='$CPP $CPPFLAGS'
13999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14002
14003
14004
14005
14006
14007
14008 for ac_header in $ac_header_list
14009 do :
14010 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14011 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14012 "
14013 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14014 cat >>confdefs.h <<_ACEOF
14015 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14016 _ACEOF
14017
14018 fi
14019
14020 done
14021
14022
14023
14024
14025
14026
14027
14028
14029 for ac_func in getpagesize
14030 do :
14031 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14032 if test "x$ac_cv_func_getpagesize" = xyes; then :
14033 cat >>confdefs.h <<_ACEOF
14034 #define HAVE_GETPAGESIZE 1
14035 _ACEOF
14036
14037 fi
14038 done
14039
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14041 $as_echo_n "checking for working mmap... " >&6; }
14042 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14043 $as_echo_n "(cached) " >&6
14044 else
14045 if test "$cross_compiling" = yes; then :
14046 ac_cv_func_mmap_fixed_mapped=no
14047 else
14048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14049 /* end confdefs.h. */
14050 $ac_includes_default
14051 /* malloc might have been renamed as rpl_malloc. */
14052 #undef malloc
14053
14054 /* Thanks to Mike Haertel and Jim Avera for this test.
14055 Here is a matrix of mmap possibilities:
14056 mmap private not fixed
14057 mmap private fixed at somewhere currently unmapped
14058 mmap private fixed at somewhere already mapped
14059 mmap shared not fixed
14060 mmap shared fixed at somewhere currently unmapped
14061 mmap shared fixed at somewhere already mapped
14062 For private mappings, we should verify that changes cannot be read()
14063 back from the file, nor mmap's back from the file at a different
14064 address. (There have been systems where private was not correctly
14065 implemented like the infamous i386 svr4.0, and systems where the
14066 VM page cache was not coherent with the file system buffer cache
14067 like early versions of FreeBSD and possibly contemporary NetBSD.)
14068 For shared mappings, we should conversely verify that changes get
14069 propagated back to all the places they're supposed to be.
14070
14071 Grep wants private fixed already mapped.
14072 The main things grep needs to know about mmap are:
14073 * does it exist and is it safe to write into the mmap'd area
14074 * how to use it (BSD variants) */
14075
14076 #include <fcntl.h>
14077 #include <sys/mman.h>
14078
14079 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14080 char *malloc ();
14081 #endif
14082
14083 /* This mess was copied from the GNU getpagesize.h. */
14084 #ifndef HAVE_GETPAGESIZE
14085 # ifdef _SC_PAGESIZE
14086 # define getpagesize() sysconf(_SC_PAGESIZE)
14087 # else /* no _SC_PAGESIZE */
14088 # ifdef HAVE_SYS_PARAM_H
14089 # include <sys/param.h>
14090 # ifdef EXEC_PAGESIZE
14091 # define getpagesize() EXEC_PAGESIZE
14092 # else /* no EXEC_PAGESIZE */
14093 # ifdef NBPG
14094 # define getpagesize() NBPG * CLSIZE
14095 # ifndef CLSIZE
14096 # define CLSIZE 1
14097 # endif /* no CLSIZE */
14098 # else /* no NBPG */
14099 # ifdef NBPC
14100 # define getpagesize() NBPC
14101 # else /* no NBPC */
14102 # ifdef PAGESIZE
14103 # define getpagesize() PAGESIZE
14104 # endif /* PAGESIZE */
14105 # endif /* no NBPC */
14106 # endif /* no NBPG */
14107 # endif /* no EXEC_PAGESIZE */
14108 # else /* no HAVE_SYS_PARAM_H */
14109 # define getpagesize() 8192 /* punt totally */
14110 # endif /* no HAVE_SYS_PARAM_H */
14111 # endif /* no _SC_PAGESIZE */
14112
14113 #endif /* no HAVE_GETPAGESIZE */
14114
14115 int
14116 main ()
14117 {
14118 char *data, *data2, *data3;
14119 const char *cdata2;
14120 int i, pagesize;
14121 int fd, fd2;
14122
14123 pagesize = getpagesize ();
14124
14125 /* First, make a file with some known garbage in it. */
14126 data = (char *) malloc (pagesize);
14127 if (!data)
14128 return 1;
14129 for (i = 0; i < pagesize; ++i)
14130 *(data + i) = rand ();
14131 umask (0);
14132 fd = creat ("conftest.mmap", 0600);
14133 if (fd < 0)
14134 return 2;
14135 if (write (fd, data, pagesize) != pagesize)
14136 return 3;
14137 close (fd);
14138
14139 /* Next, check that the tail of a page is zero-filled. File must have
14140 non-zero length, otherwise we risk SIGBUS for entire page. */
14141 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14142 if (fd2 < 0)
14143 return 4;
14144 cdata2 = "";
14145 if (write (fd2, cdata2, 1) != 1)
14146 return 5;
14147 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14148 if (data2 == MAP_FAILED)
14149 return 6;
14150 for (i = 0; i < pagesize; ++i)
14151 if (*(data2 + i))
14152 return 7;
14153 close (fd2);
14154 if (munmap (data2, pagesize))
14155 return 8;
14156
14157 /* Next, try to mmap the file at a fixed address which already has
14158 something else allocated at it. If we can, also make sure that
14159 we see the same garbage. */
14160 fd = open ("conftest.mmap", O_RDWR);
14161 if (fd < 0)
14162 return 9;
14163 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14164 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14165 return 10;
14166 for (i = 0; i < pagesize; ++i)
14167 if (*(data + i) != *(data2 + i))
14168 return 11;
14169
14170 /* Finally, make sure that changes to the mapped area do not
14171 percolate back to the file as seen by read(). (This is a bug on
14172 some variants of i386 svr4.0.) */
14173 for (i = 0; i < pagesize; ++i)
14174 *(data2 + i) = *(data2 + i) + 1;
14175 data3 = (char *) malloc (pagesize);
14176 if (!data3)
14177 return 12;
14178 if (read (fd, data3, pagesize) != pagesize)
14179 return 13;
14180 for (i = 0; i < pagesize; ++i)
14181 if (*(data + i) != *(data3 + i))
14182 return 14;
14183 close (fd);
14184 return 0;
14185 }
14186 _ACEOF
14187 if ac_fn_c_try_run "$LINENO"; then :
14188 ac_cv_func_mmap_fixed_mapped=yes
14189 else
14190 ac_cv_func_mmap_fixed_mapped=no
14191 fi
14192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14193 conftest.$ac_objext conftest.beam conftest.$ac_ext
14194 fi
14195
14196 fi
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14198 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14199 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14200
14201 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14202
14203 fi
14204 rm -f conftest.mmap conftest.txt
14205
14206 # Needed for BFD capability checks.
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
14208 $as_echo_n "checking for library containing dlsym... " >&6; }
14209 if ${ac_cv_search_dlsym+:} false; then :
14210 $as_echo_n "(cached) " >&6
14211 else
14212 ac_func_search_save_LIBS=$LIBS
14213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h. */
14215
14216 /* Override any GCC internal prototype to avoid an error.
14217 Use char because int might match the return type of a GCC
14218 builtin and then its argument prototype would still apply. */
14219 #ifdef __cplusplus
14220 extern "C"
14221 #endif
14222 char dlsym ();
14223 int
14224 main ()
14225 {
14226 return dlsym ();
14227 ;
14228 return 0;
14229 }
14230 _ACEOF
14231 for ac_lib in '' dl; do
14232 if test -z "$ac_lib"; then
14233 ac_res="none required"
14234 else
14235 ac_res=-l$ac_lib
14236 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14237 fi
14238 if ac_fn_c_try_link "$LINENO"; then :
14239 ac_cv_search_dlsym=$ac_res
14240 fi
14241 rm -f core conftest.err conftest.$ac_objext \
14242 conftest$ac_exeext
14243 if ${ac_cv_search_dlsym+:} false; then :
14244 break
14245 fi
14246 done
14247 if ${ac_cv_search_dlsym+:} false; then :
14248
14249 else
14250 ac_cv_search_dlsym=no
14251 fi
14252 rm conftest.$ac_ext
14253 LIBS=$ac_func_search_save_LIBS
14254 fi
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
14256 $as_echo "$ac_cv_search_dlsym" >&6; }
14257 ac_res=$ac_cv_search_dlsym
14258 if test "$ac_res" != no; then :
14259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14260
14261 fi
14262
14263
14264 # Use the system's zlib library.
14265 zlibdir="-L\$(top_builddir)/../zlib"
14266 zlibinc="-I\$(top_srcdir)/../zlib"
14267
14268 # Check whether --with-system-zlib was given.
14269 if test "${with_system_zlib+set}" = set; then :
14270 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14271 zlibdir=
14272 zlibinc=
14273 fi
14274
14275 fi
14276
14277
14278
14279
14280
14281 # Check whether --enable-libctf-hash-debugging was given.
14282 if test "${enable_libctf_hash_debugging+set}" = set; then :
14283 enableval=$enable_libctf_hash_debugging;
14284 case "$enableval" in
14285 yes|no) ;;
14286 *) as_fn_error $? "Argument to enable/disable libctf-hash-debugging must be yes or no" "$LINENO" 5 ;;
14287 esac
14288
14289 else
14290 enable_libctf_hash_debugging=no
14291 fi
14292
14293
14294 if test "${enable_libctf_hash_debugging}" = yes; then
14295
14296 $as_echo "#define ENABLE_LIBCTF_HASH_DEBUGGING 1" >>confdefs.h
14297
14298 fi
14299 if test "${enable_libctf_hash_debugging}" = yes; then
14300 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE=
14301 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE='#'
14302 else
14303 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE='#'
14304 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE=
14305 fi
14306
14307
14308 # Similar to GDB_AC_CHECK_BFD.
14309 OLD_CFLAGS=$CFLAGS
14310 OLD_LDFLAGS=$LDFLAGS
14311 OLD_LIBS=$LIBS
14312 OLD_CC=$CC
14313 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14314 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14315 # always want our bfd.
14316 CC="./libtool --quiet --mode=link $OLD_CC"
14317 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14318 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
14319 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14320 LIBS="-lbfd -liberty $intl $LIBS"
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14322 $as_echo_n "checking for ELF support in BFD... " >&6; }
14323 if ${ac_cv_libctf_bfd_elf+:} false; then :
14324 $as_echo_n "(cached) " >&6
14325 else
14326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14327 /* end confdefs.h. */
14328 #include <stdlib.h>
14329 #include <string.h>
14330 #include "bfd.h"
14331 #include "elf-bfd.h"
14332 int
14333 main ()
14334 {
14335 (void) bfd_section_from_elf_index (NULL, 0);
14336 return 0;
14337 ;
14338 return 0;
14339 }
14340 _ACEOF
14341 if ac_fn_c_try_link "$LINENO"; then :
14342 ac_cv_libctf_bfd_elf=yes
14343 else
14344 ac_cv_libctf_bfd_elf=no
14345 fi
14346 rm -f core conftest.err conftest.$ac_objext \
14347 conftest$ac_exeext conftest.$ac_ext
14348 fi
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_bfd_elf" >&5
14350 $as_echo "$ac_cv_libctf_bfd_elf" >&6; }
14351 CFLAGS=$OLD_CFLAGS
14352 LDFLAGS=$OLD_LDFLAGS
14353 LIBS=$OLD_LIBS
14354 CC=$OLD_CC
14355
14356 if test $ac_cv_libctf_bfd_elf = yes; then
14357
14358 $as_echo "#define HAVE_BFD_ELF 1" >>confdefs.h
14359
14360 fi
14361
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14363 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14364 if ${ac_cv_c_bigendian+:} false; then :
14365 $as_echo_n "(cached) " >&6
14366 else
14367 ac_cv_c_bigendian=unknown
14368 # See if we're dealing with a universal compiler.
14369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370 /* end confdefs.h. */
14371 #ifndef __APPLE_CC__
14372 not a universal capable compiler
14373 #endif
14374 typedef int dummy;
14375
14376 _ACEOF
14377 if ac_fn_c_try_compile "$LINENO"; then :
14378
14379 # Check for potential -arch flags. It is not universal unless
14380 # there are at least two -arch flags with different values.
14381 ac_arch=
14382 ac_prev=
14383 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14384 if test -n "$ac_prev"; then
14385 case $ac_word in
14386 i?86 | x86_64 | ppc | ppc64)
14387 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14388 ac_arch=$ac_word
14389 else
14390 ac_cv_c_bigendian=universal
14391 break
14392 fi
14393 ;;
14394 esac
14395 ac_prev=
14396 elif test "x$ac_word" = "x-arch"; then
14397 ac_prev=arch
14398 fi
14399 done
14400 fi
14401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14402 if test $ac_cv_c_bigendian = unknown; then
14403 # See if sys/param.h defines the BYTE_ORDER macro.
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14406 #include <sys/types.h>
14407 #include <sys/param.h>
14408
14409 int
14410 main ()
14411 {
14412 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14413 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14414 && LITTLE_ENDIAN)
14415 bogus endian macros
14416 #endif
14417
14418 ;
14419 return 0;
14420 }
14421 _ACEOF
14422 if ac_fn_c_try_compile "$LINENO"; then :
14423 # It does; now see whether it defined to BIG_ENDIAN or not.
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14426 #include <sys/types.h>
14427 #include <sys/param.h>
14428
14429 int
14430 main ()
14431 {
14432 #if BYTE_ORDER != BIG_ENDIAN
14433 not big endian
14434 #endif
14435
14436 ;
14437 return 0;
14438 }
14439 _ACEOF
14440 if ac_fn_c_try_compile "$LINENO"; then :
14441 ac_cv_c_bigendian=yes
14442 else
14443 ac_cv_c_bigendian=no
14444 fi
14445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14446 fi
14447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14448 fi
14449 if test $ac_cv_c_bigendian = unknown; then
14450 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452 /* end confdefs.h. */
14453 #include <limits.h>
14454
14455 int
14456 main ()
14457 {
14458 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14459 bogus endian macros
14460 #endif
14461
14462 ;
14463 return 0;
14464 }
14465 _ACEOF
14466 if ac_fn_c_try_compile "$LINENO"; then :
14467 # It does; now see whether it defined to _BIG_ENDIAN or not.
14468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469 /* end confdefs.h. */
14470 #include <limits.h>
14471
14472 int
14473 main ()
14474 {
14475 #ifndef _BIG_ENDIAN
14476 not big endian
14477 #endif
14478
14479 ;
14480 return 0;
14481 }
14482 _ACEOF
14483 if ac_fn_c_try_compile "$LINENO"; then :
14484 ac_cv_c_bigendian=yes
14485 else
14486 ac_cv_c_bigendian=no
14487 fi
14488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14489 fi
14490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491 fi
14492 if test $ac_cv_c_bigendian = unknown; then
14493 # Compile a test program.
14494 if test "$cross_compiling" = yes; then :
14495 # Try to guess by grepping values from an object file.
14496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14498 short int ascii_mm[] =
14499 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14500 short int ascii_ii[] =
14501 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14502 int use_ascii (int i) {
14503 return ascii_mm[i] + ascii_ii[i];
14504 }
14505 short int ebcdic_ii[] =
14506 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14507 short int ebcdic_mm[] =
14508 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14509 int use_ebcdic (int i) {
14510 return ebcdic_mm[i] + ebcdic_ii[i];
14511 }
14512 extern int foo;
14513
14514 int
14515 main ()
14516 {
14517 return use_ascii (foo) == use_ebcdic (foo);
14518 ;
14519 return 0;
14520 }
14521 _ACEOF
14522 if ac_fn_c_try_compile "$LINENO"; then :
14523 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14524 ac_cv_c_bigendian=yes
14525 fi
14526 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14527 if test "$ac_cv_c_bigendian" = unknown; then
14528 ac_cv_c_bigendian=no
14529 else
14530 # finding both strings is unlikely to happen, but who knows?
14531 ac_cv_c_bigendian=unknown
14532 fi
14533 fi
14534 fi
14535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14536 else
14537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h. */
14539 $ac_includes_default
14540 int
14541 main ()
14542 {
14543
14544 /* Are we little or big endian? From Harbison&Steele. */
14545 union
14546 {
14547 long int l;
14548 char c[sizeof (long int)];
14549 } u;
14550 u.l = 1;
14551 return u.c[sizeof (long int) - 1] == 1;
14552
14553 ;
14554 return 0;
14555 }
14556 _ACEOF
14557 if ac_fn_c_try_run "$LINENO"; then :
14558 ac_cv_c_bigendian=no
14559 else
14560 ac_cv_c_bigendian=yes
14561 fi
14562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14563 conftest.$ac_objext conftest.beam conftest.$ac_ext
14564 fi
14565
14566 fi
14567 fi
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14569 $as_echo "$ac_cv_c_bigendian" >&6; }
14570 case $ac_cv_c_bigendian in #(
14571 yes)
14572 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14573 ;; #(
14574 no)
14575 ;; #(
14576 universal)
14577
14578 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14579
14580 ;; #(
14581 *)
14582 as_fn_error $? "unknown endianness
14583 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14584 esac
14585
14586 for ac_header in byteswap.h endian.h
14587 do :
14588 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14589 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14590 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14591 cat >>confdefs.h <<_ACEOF
14592 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14593 _ACEOF
14594
14595 fi
14596
14597 done
14598
14599 for ac_func in pread
14600 do :
14601 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
14602 if test "x$ac_cv_func_pread" = xyes; then :
14603 cat >>confdefs.h <<_ACEOF
14604 #define HAVE_PREAD 1
14605 _ACEOF
14606
14607 fi
14608 done
14609
14610
14611 ac_fn_c_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
14612 "
14613 if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
14614 ac_have_decl=1
14615 else
14616 ac_have_decl=0
14617 fi
14618
14619 cat >>confdefs.h <<_ACEOF
14620 #define HAVE_DECL_BSWAP_16 $ac_have_decl
14621 _ACEOF
14622 ac_fn_c_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
14623 "
14624 if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
14625 ac_have_decl=1
14626 else
14627 ac_have_decl=0
14628 fi
14629
14630 cat >>confdefs.h <<_ACEOF
14631 #define HAVE_DECL_BSWAP_32 $ac_have_decl
14632 _ACEOF
14633 ac_fn_c_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
14634 "
14635 if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
14636 ac_have_decl=1
14637 else
14638 ac_have_decl=0
14639 fi
14640
14641 cat >>confdefs.h <<_ACEOF
14642 #define HAVE_DECL_BSWAP_64 $ac_have_decl
14643 _ACEOF
14644
14645 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14646 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
14647 ac_have_decl=1
14648 else
14649 ac_have_decl=0
14650 fi
14651
14652 cat >>confdefs.h <<_ACEOF
14653 #define HAVE_DECL_ASPRINTF $ac_have_decl
14654 _ACEOF
14655 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
14656 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
14657 ac_have_decl=1
14658 else
14659 ac_have_decl=0
14660 fi
14661
14662 cat >>confdefs.h <<_ACEOF
14663 #define HAVE_DECL_VASPRINTF $ac_have_decl
14664 _ACEOF
14665 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14666 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
14667 ac_have_decl=1
14668 else
14669 ac_have_decl=0
14670 fi
14671
14672 cat >>confdefs.h <<_ACEOF
14673 #define HAVE_DECL_STPCPY $ac_have_decl
14674 _ACEOF
14675
14676
14677
14678
14679
14680 for ac_func in $ac_func_list
14681 do :
14682 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14683 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14684 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14685 cat >>confdefs.h <<_ACEOF
14686 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14687 _ACEOF
14688
14689 fi
14690 done
14691
14692
14693
14694
14695 if test $ac_cv_func_qsort_r = yes; then
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qsort_r signature" >&5
14697 $as_echo_n "checking for qsort_r signature... " >&6; }
14698 if ${ac_cv_libctf_qsort_r_signature+:} false; then :
14699 $as_echo_n "(cached) " >&6
14700 else
14701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14702 /* end confdefs.h. */
14703 #undef qsort_r
14704 #include <stdlib.h>
14705 void qsort_r (void *, size_t, size_t,
14706 int (*) (void const *, void const *,
14707 void *),
14708 void *);
14709 void (*p) (void *, size_t, size_t,
14710 int (*) (void const *, void const *,
14711 void *),
14712 void *) = qsort_r;
14713
14714 int
14715 main ()
14716 {
14717
14718 ;
14719 return 0;
14720 }
14721 _ACEOF
14722 if ac_fn_c_try_link "$LINENO"; then :
14723 ac_cv_libctf_qsort_r_signature=GNU
14724 else
14725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726 /* end confdefs.h. */
14727 #undef qsort_r
14728 #include <stdlib.h>
14729 void qsort_r (void *, size_t, size_t, void *,
14730 int (*) (void *,
14731 void const *,
14732 void const *));
14733 void (*p) (void *, size_t, size_t, void *,
14734 int (*) (void *, void const *,
14735 void const *)) = qsort_r;
14736
14737 int
14738 main ()
14739 {
14740
14741 ;
14742 return 0;
14743 }
14744 _ACEOF
14745 if ac_fn_c_try_link "$LINENO"; then :
14746 ac_cv_libctf_qsort_r_signature=BSD
14747 else
14748 ac_cv_libctf_qsort_r_signature=unknown
14749 fi
14750 rm -f core conftest.err conftest.$ac_objext \
14751 conftest$ac_exeext conftest.$ac_ext
14752 fi
14753 rm -f core conftest.err conftest.$ac_objext \
14754 conftest$ac_exeext conftest.$ac_ext
14755 fi
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_qsort_r_signature" >&5
14757 $as_echo "$ac_cv_libctf_qsort_r_signature" >&6; }
14758 fi
14759
14760 case x$ac_cv_libctf_qsort_r_signature in
14761 xGNU)
14762 $as_echo "#define HAVE_QSORT_R_ARG_LAST 1" >>confdefs.h
14763 ;;
14764 xBSD)
14765 $as_echo "#define HAVE_QSORT_R_COMPAR_LAST 1" >>confdefs.h
14766 ;;
14767 *) ac_cv_libctf_qsort_r_signature=unknown;;
14768 esac
14769
14770 if test "${ac_cv_libctf_qsort_r_signature}" = unknown; then
14771 NEED_CTF_QSORT_R_TRUE=
14772 NEED_CTF_QSORT_R_FALSE='#'
14773 else
14774 NEED_CTF_QSORT_R_TRUE='#'
14775 NEED_CTF_QSORT_R_FALSE=
14776 fi
14777
14778
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
14780 $as_echo_n "checking for O_CLOEXEC... " >&6; }
14781 if ${ac_cv_libctf_macro_O_CLOEXEC+:} false; then :
14782 $as_echo_n "(cached) " >&6
14783 else
14784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785 /* end confdefs.h. */
14786 #include <fcntl.h>
14787 #ifndef O_CLOEXEC
14788 choke me;
14789 #endif
14790
14791 int
14792 main ()
14793 {
14794 return O_CLOEXEC;
14795 ;
14796 return 0;
14797 }
14798 _ACEOF
14799 if ac_fn_c_try_link "$LINENO"; then :
14800 ac_cv_libctf_macro_O_CLOEXEC=yes
14801 else
14802 ac_cv_libctf_macro_O_CLOEXEC=no
14803 fi
14804 rm -f core conftest.err conftest.$ac_objext \
14805 conftest$ac_exeext conftest.$ac_ext
14806 fi
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_macro_O_CLOEXEC" >&5
14808 $as_echo "$ac_cv_libctf_macro_O_CLOEXEC" >&6; }
14809
14810 if test $ac_cv_libctf_macro_O_CLOEXEC = yes; then
14811
14812 $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
14813
14814 fi
14815
14816 build_info=
14817 makeinfo_too_old=
14818 for ac_prog in makeinfo
14819 do
14820 # Extract the first word of "$ac_prog", so it can be a program name with args.
14821 set dummy $ac_prog; ac_word=$2
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14823 $as_echo_n "checking for $ac_word... " >&6; }
14824 if ${ac_cv_prog_MAKEINFO+:} false; then :
14825 $as_echo_n "(cached) " >&6
14826 else
14827 if test -n "$MAKEINFO"; then
14828 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
14829 else
14830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14831 for as_dir in $PATH
14832 do
14833 IFS=$as_save_IFS
14834 test -z "$as_dir" && as_dir=.
14835 for ac_exec_ext in '' $ac_executable_extensions; do
14836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14837 ac_cv_prog_MAKEINFO="$ac_prog"
14838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14839 break 2
14840 fi
14841 done
14842 done
14843 IFS=$as_save_IFS
14844
14845 fi
14846 fi
14847 MAKEINFO=$ac_cv_prog_MAKEINFO
14848 if test -n "$MAKEINFO"; then
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
14850 $as_echo "$MAKEINFO" >&6; }
14851 else
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14853 $as_echo "no" >&6; }
14854 fi
14855
14856
14857 test -n "$MAKEINFO" && break
14858 done
14859 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
14860
14861 case " $build_configdirs " in
14862 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
14863 esac
14864
14865 # We require texinfo to be 6.3 or later, for a working synindex
14866 # and validatemenus: otherwise we fall back to /bin/true.
14867 if ${MAKEINFO} --version \
14868 | egrep 'texinfo[^0-9]*(6\.[3-9]|[7-9][0-9])' >/dev/null 2>&1; then
14869 build_info=yes
14870 else
14871 build_info=
14872 makeinfo_too_old=t
14873 fi
14874
14875 if test -n "$makeinfo_too_old"; then
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14877 *** Makeinfo is too old. Info documentation will not be built." >&5
14878 $as_echo "$as_me: WARNING:
14879 *** Makeinfo is too old. Info documentation will not be built." >&2;}
14880 fi
14881
14882 if test "${build_info}" = yes; then
14883 BUILD_INFO_TRUE=
14884 BUILD_INFO_FALSE='#'
14885 else
14886 BUILD_INFO_TRUE='#'
14887 BUILD_INFO_FALSE=
14888 fi
14889
14890
14891 CTF_LIBADD="-L`pwd`/../libiberty -liberty"
14892 SHARED_LDFLAGS=
14893
14894 # Horrible hacks to build DLLs on Windows and a shared library elsewhere.
14895 if test "$enable_shared" = "yes"; then
14896 # When building a shared libctf, link against the pic version of libiberty
14897 # so that apps that use libctf won't need libiberty just to satisfy any
14898 # libctf references. We can't do that if a pic libiberty is unavailable
14899 # since including non-pic # code would insert text relocations into libctf.
14900 # Note that linking against libbfd as we do here, which is itself linked
14901 # against libiberty, may not satisfy all the libctf libiberty references
14902 # since libbfd may not pull in the entirety of libiberty.
14903 # Also, jam libintl into the right place in all of this: after libiberty,
14904 # which uses it, but before -lcygwin, which it uses.
14905 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
14906 if test -n "$x"; then
14907 CTF_LIBADD="-L`pwd`/../libiberty/pic -liberty"
14908 fi
14909 fi
14910
14911 CTF_LIBADD="$CTF_LIBADD $LIBINTL"
14912
14913 if test "$enable_shared" = "yes"; then
14914 case "${host}" in
14915 # More hacks to build DLLs on Windows.
14916 *-*-cygwin*)
14917 SHARED_LDFLAGS="-no-undefined"
14918 CTF_LIBADD="$CTF_LIBADD -lcygwin"
14919 ;;
14920 esac
14921 fi
14922
14923
14924
14925 # Extract the first word of "expect", so it can be a program name with args.
14926 set dummy expect; ac_word=$2
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14928 $as_echo_n "checking for $ac_word... " >&6; }
14929 if ${ac_cv_path_EXPECT+:} false; then :
14930 $as_echo_n "(cached) " >&6
14931 else
14932 case $EXPECT in
14933 [\\/]* | ?:[\\/]*)
14934 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
14935 ;;
14936 *)
14937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14938 for as_dir in $PATH
14939 do
14940 IFS=$as_save_IFS
14941 test -z "$as_dir" && as_dir=.
14942 for ac_exec_ext in '' $ac_executable_extensions; do
14943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14944 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
14945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14946 break 2
14947 fi
14948 done
14949 done
14950 IFS=$as_save_IFS
14951
14952 ;;
14953 esac
14954 fi
14955 EXPECT=$ac_cv_path_EXPECT
14956 if test -n "$EXPECT"; then
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
14958 $as_echo "$EXPECT" >&6; }
14959 else
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14961 $as_echo "no" >&6; }
14962 fi
14963
14964
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5
14966 $as_echo_n "checking for Tcl supporting try/catch... " >&6; }
14967 if ${ac_cv_libctf_tcl_try+:} false; then :
14968 $as_echo_n "(cached) " >&6
14969 else
14970 ac_cv_libctf_tcl_try=`if test -z $EXPECT; then echo no; else $EXPECT << EOF
14971 if [llength [info commands try]] then { puts yes } else { puts no }
14972 EOF
14973 fi`
14974
14975 fi
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5
14977 $as_echo "$ac_cv_libctf_tcl_try" >&6; }
14978 if test "${ac_cv_libctf_tcl_try}" = yes; then
14979 TCL_TRY_TRUE=
14980 TCL_TRY_FALSE='#'
14981 else
14982 TCL_TRY_TRUE='#'
14983 TCL_TRY_FALSE=
14984 fi
14985
14986
14987 # Use a version script, if possible, or an -export-symbols-regex otherwise.
14988 decommented_version_script=
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker versioning flags" >&5
14990 $as_echo_n "checking for linker versioning flags... " >&6; }
14991 if ${ac_cv_libctf_version_script+:} false; then :
14992 $as_echo_n "(cached) " >&6
14993 else
14994 echo 'FOO { global: mai*; local: ctf_fo*; };' > conftest.ver
14995 old_LDFLAGS="$LDFLAGS"
14996 old_CFLAGS="$CFLAGS"
14997 LDFLAGS="$LDFLAGS -shared -Wl,--version-script=conftest.ver"
14998 CFLAGS="$CFLAGS -fPIC"
14999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h. */
15001 int ctf_foo (void) { return 0; }
15002 int main (void) { return ctf_foo(); }
15003 _ACEOF
15004 if ac_fn_c_try_link "$LINENO"; then :
15005 ac_cv_libctf_version_script="-Wl,--version-script='$srcdir/libctf.ver'"
15006 fi
15007 rm -f core conftest.err conftest.$ac_objext \
15008 conftest$ac_exeext conftest.$ac_ext
15009 LDFLAGS="$old_LDFLAGS"
15010
15011 if test -z "$ac_cv_libctf_version_script"; then
15012 LDFLAGS="$LDFLAGS -shared -Wl,-B,local -Wl,-z,gnu-version-script=conftest.ver"
15013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15014 /* end confdefs.h. */
15015 int ctf_foo (void) { return 0; }
15016 int main (void) { return ctf_foo(); }
15017 _ACEOF
15018 if ac_fn_c_try_link "$LINENO"; then :
15019 ac_cv_libctf_version_script="-Wl,-B,local -Wl,-z,gnu-version-script"
15020 decommented_version_script=t
15021 fi
15022 rm -f core conftest.err conftest.$ac_objext \
15023 conftest$ac_exeext conftest.$ac_ext
15024 LDFLAGS="$old_LDFLAGS"
15025 fi
15026 CFLAGS="$old_CFLAGS"
15027
15028 if test -z "$ac_cv_libctf_version_script"; then
15029 ac_cv_libctf_version_script='-export-symbols-regex ctf_.*'
15030 fi
15031 rm -f conftest.ver
15032 fi
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_version_script" >&5
15034 $as_echo "$ac_cv_libctf_version_script" >&6; }
15035 if test -n "$decommented_version_script"; then
15036 # Solaris's version scripts use shell-style comments rather than the C-style
15037 # used by GNU ld. Use cpp to strip the comments out. (cpp exists under this
15038 # name on all platforms that support ld -z gnu-version-script.)
15039 # Also ensure that no symbols exist in the version script for libctf-nobfd.so
15040 # that do not exist in the shared library itself, since some linkers add such
15041 # symbols with type NOTYPE.
15042 /lib/cpp < $srcdir/libctf.ver > libctf-decommented.ver
15043 grep -v 'libctf only' $srcdir/libctf.ver | /lib/cpp > libctf-nobfd-decommented.ver
15044 VERSION_FLAGS="$ac_cv_libctf_version_script='libctf-decommented.ver'"
15045 VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script='libctf-nobfd-decommented.ver'"
15046 else
15047 VERSION_FLAGS="$ac_cv_libctf_version_script"
15048 VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script"
15049 fi
15050
15051
15052
15053 ac_config_files="$ac_config_files Makefile"
15054
15055 ac_config_headers="$ac_config_headers config.h"
15056
15057 cat >confcache <<\_ACEOF
15058 # This file is a shell script that caches the results of configure
15059 # tests run on this system so they can be shared between configure
15060 # scripts and configure runs, see configure's option --config-cache.
15061 # It is not useful on other systems. If it contains results you don't
15062 # want to keep, you may remove or edit it.
15063 #
15064 # config.status only pays attention to the cache file if you give it
15065 # the --recheck option to rerun configure.
15066 #
15067 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15068 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15069 # following values.
15070
15071 _ACEOF
15072
15073 # The following way of writing the cache mishandles newlines in values,
15074 # but we know of no workaround that is simple, portable, and efficient.
15075 # So, we kill variables containing newlines.
15076 # Ultrix sh set writes to stderr and can't be redirected directly,
15077 # and sets the high bit in the cache file unless we assign to the vars.
15078 (
15079 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15080 eval ac_val=\$$ac_var
15081 case $ac_val in #(
15082 *${as_nl}*)
15083 case $ac_var in #(
15084 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15085 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15086 esac
15087 case $ac_var in #(
15088 _ | IFS | as_nl) ;; #(
15089 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15090 *) { eval $ac_var=; unset $ac_var;} ;;
15091 esac ;;
15092 esac
15093 done
15094
15095 (set) 2>&1 |
15096 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15097 *${as_nl}ac_space=\ *)
15098 # `set' does not quote correctly, so add quotes: double-quote
15099 # substitution turns \\\\ into \\, and sed turns \\ into \.
15100 sed -n \
15101 "s/'/'\\\\''/g;
15102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15103 ;; #(
15104 *)
15105 # `set' quotes correctly as required by POSIX, so do not add quotes.
15106 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15107 ;;
15108 esac |
15109 sort
15110 ) |
15111 sed '
15112 /^ac_cv_env_/b end
15113 t clear
15114 :clear
15115 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15116 t end
15117 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15118 :end' >>confcache
15119 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15120 if test -w "$cache_file"; then
15121 if test "x$cache_file" != "x/dev/null"; then
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15123 $as_echo "$as_me: updating cache $cache_file" >&6;}
15124 if test ! -f "$cache_file" || test -h "$cache_file"; then
15125 cat confcache >"$cache_file"
15126 else
15127 case $cache_file in #(
15128 */* | ?:*)
15129 mv -f confcache "$cache_file"$$ &&
15130 mv -f "$cache_file"$$ "$cache_file" ;; #(
15131 *)
15132 mv -f confcache "$cache_file" ;;
15133 esac
15134 fi
15135 fi
15136 else
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15138 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15139 fi
15140 fi
15141 rm -f confcache
15142
15143 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15144 # Let make expand exec_prefix.
15145 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15146
15147 DEFS=-DHAVE_CONFIG_H
15148
15149 ac_libobjs=
15150 ac_ltlibobjs=
15151 U=
15152 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15153 # 1. Remove the extension, and $U if already installed.
15154 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15155 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15156 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15157 # will be set to the directory where LIBOBJS objects are built.
15158 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15159 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15160 done
15161 LIBOBJS=$ac_libobjs
15162
15163 LTLIBOBJS=$ac_ltlibobjs
15164
15165
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15167 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15168 if test -n "$am_sleep_pid"; then
15169 # Hide warnings about reused PIDs.
15170 wait $am_sleep_pid 2>/dev/null
15171 fi
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15173 $as_echo "done" >&6; }
15174 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15175 as_fn_error $? "conditional \"AMDEP\" was never defined.
15176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15177 fi
15178 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15179 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15181 fi
15182 if test -n "$EXEEXT"; then
15183 am__EXEEXT_TRUE=
15184 am__EXEEXT_FALSE='#'
15185 else
15186 am__EXEEXT_TRUE='#'
15187 am__EXEEXT_FALSE=
15188 fi
15189
15190 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15191 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15193 fi
15194 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
15195 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
15196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15197 fi
15198 if test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_TRUE}" && test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_FALSE}"; then
15199 as_fn_error $? "conditional \"ENABLE_LIBCTF_HASH_DEBUGGING\" was never defined.
15200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15201 fi
15202
15203 if test -z "${NEED_CTF_QSORT_R_TRUE}" && test -z "${NEED_CTF_QSORT_R_FALSE}"; then
15204 as_fn_error $? "conditional \"NEED_CTF_QSORT_R\" was never defined.
15205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15206 fi
15207 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
15208 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
15209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15210 fi
15211 if test -z "${TCL_TRY_TRUE}" && test -z "${TCL_TRY_FALSE}"; then
15212 as_fn_error $? "conditional \"TCL_TRY\" was never defined.
15213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15214 fi
15215
15216 : "${CONFIG_STATUS=./config.status}"
15217 ac_write_fail=0
15218 ac_clean_files_save=$ac_clean_files
15219 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15221 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15222 as_write_fail=0
15223 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15224 #! $SHELL
15225 # Generated by $as_me.
15226 # Run this file to recreate the current configuration.
15227 # Compiler output produced by configure, useful for debugging
15228 # configure, is in config.log if it exists.
15229
15230 debug=false
15231 ac_cs_recheck=false
15232 ac_cs_silent=false
15233
15234 SHELL=\${CONFIG_SHELL-$SHELL}
15235 export SHELL
15236 _ASEOF
15237 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15238 ## -------------------- ##
15239 ## M4sh Initialization. ##
15240 ## -------------------- ##
15241
15242 # Be more Bourne compatible
15243 DUALCASE=1; export DUALCASE # for MKS sh
15244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15245 emulate sh
15246 NULLCMD=:
15247 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15248 # is contrary to our usage. Disable this feature.
15249 alias -g '${1+"$@"}'='"$@"'
15250 setopt NO_GLOB_SUBST
15251 else
15252 case `(set -o) 2>/dev/null` in #(
15253 *posix*) :
15254 set -o posix ;; #(
15255 *) :
15256 ;;
15257 esac
15258 fi
15259
15260
15261 as_nl='
15262 '
15263 export as_nl
15264 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15265 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15266 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15267 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15268 # Prefer a ksh shell builtin over an external printf program on Solaris,
15269 # but without wasting forks for bash or zsh.
15270 if test -z "$BASH_VERSION$ZSH_VERSION" \
15271 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15272 as_echo='print -r --'
15273 as_echo_n='print -rn --'
15274 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15275 as_echo='printf %s\n'
15276 as_echo_n='printf %s'
15277 else
15278 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15279 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15280 as_echo_n='/usr/ucb/echo -n'
15281 else
15282 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15283 as_echo_n_body='eval
15284 arg=$1;
15285 case $arg in #(
15286 *"$as_nl"*)
15287 expr "X$arg" : "X\\(.*\\)$as_nl";
15288 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15289 esac;
15290 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15291 '
15292 export as_echo_n_body
15293 as_echo_n='sh -c $as_echo_n_body as_echo'
15294 fi
15295 export as_echo_body
15296 as_echo='sh -c $as_echo_body as_echo'
15297 fi
15298
15299 # The user is always right.
15300 if test "${PATH_SEPARATOR+set}" != set; then
15301 PATH_SEPARATOR=:
15302 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15303 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15304 PATH_SEPARATOR=';'
15305 }
15306 fi
15307
15308
15309 # IFS
15310 # We need space, tab and new line, in precisely that order. Quoting is
15311 # there to prevent editors from complaining about space-tab.
15312 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15313 # splitting by setting IFS to empty value.)
15314 IFS=" "" $as_nl"
15315
15316 # Find who we are. Look in the path if we contain no directory separator.
15317 as_myself=
15318 case $0 in #((
15319 *[\\/]* ) as_myself=$0 ;;
15320 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15321 for as_dir in $PATH
15322 do
15323 IFS=$as_save_IFS
15324 test -z "$as_dir" && as_dir=.
15325 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15326 done
15327 IFS=$as_save_IFS
15328
15329 ;;
15330 esac
15331 # We did not find ourselves, most probably we were run as `sh COMMAND'
15332 # in which case we are not to be found in the path.
15333 if test "x$as_myself" = x; then
15334 as_myself=$0
15335 fi
15336 if test ! -f "$as_myself"; then
15337 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15338 exit 1
15339 fi
15340
15341 # Unset variables that we do not need and which cause bugs (e.g. in
15342 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15343 # suppresses any "Segmentation fault" message there. '((' could
15344 # trigger a bug in pdksh 5.2.14.
15345 for as_var in BASH_ENV ENV MAIL MAILPATH
15346 do eval test x\${$as_var+set} = xset \
15347 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15348 done
15349 PS1='$ '
15350 PS2='> '
15351 PS4='+ '
15352
15353 # NLS nuisances.
15354 LC_ALL=C
15355 export LC_ALL
15356 LANGUAGE=C
15357 export LANGUAGE
15358
15359 # CDPATH.
15360 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15361
15362
15363 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15364 # ----------------------------------------
15365 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15366 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15367 # script with STATUS, using 1 if that was 0.
15368 as_fn_error ()
15369 {
15370 as_status=$1; test $as_status -eq 0 && as_status=1
15371 if test "$4"; then
15372 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15373 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15374 fi
15375 $as_echo "$as_me: error: $2" >&2
15376 as_fn_exit $as_status
15377 } # as_fn_error
15378
15379
15380 # as_fn_set_status STATUS
15381 # -----------------------
15382 # Set $? to STATUS, without forking.
15383 as_fn_set_status ()
15384 {
15385 return $1
15386 } # as_fn_set_status
15387
15388 # as_fn_exit STATUS
15389 # -----------------
15390 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15391 as_fn_exit ()
15392 {
15393 set +e
15394 as_fn_set_status $1
15395 exit $1
15396 } # as_fn_exit
15397
15398 # as_fn_unset VAR
15399 # ---------------
15400 # Portably unset VAR.
15401 as_fn_unset ()
15402 {
15403 { eval $1=; unset $1;}
15404 }
15405 as_unset=as_fn_unset
15406 # as_fn_append VAR VALUE
15407 # ----------------------
15408 # Append the text in VALUE to the end of the definition contained in VAR. Take
15409 # advantage of any shell optimizations that allow amortized linear growth over
15410 # repeated appends, instead of the typical quadratic growth present in naive
15411 # implementations.
15412 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15413 eval 'as_fn_append ()
15414 {
15415 eval $1+=\$2
15416 }'
15417 else
15418 as_fn_append ()
15419 {
15420 eval $1=\$$1\$2
15421 }
15422 fi # as_fn_append
15423
15424 # as_fn_arith ARG...
15425 # ------------------
15426 # Perform arithmetic evaluation on the ARGs, and store the result in the
15427 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15428 # must be portable across $(()) and expr.
15429 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15430 eval 'as_fn_arith ()
15431 {
15432 as_val=$(( $* ))
15433 }'
15434 else
15435 as_fn_arith ()
15436 {
15437 as_val=`expr "$@" || test $? -eq 1`
15438 }
15439 fi # as_fn_arith
15440
15441
15442 if expr a : '\(a\)' >/dev/null 2>&1 &&
15443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15444 as_expr=expr
15445 else
15446 as_expr=false
15447 fi
15448
15449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15450 as_basename=basename
15451 else
15452 as_basename=false
15453 fi
15454
15455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15456 as_dirname=dirname
15457 else
15458 as_dirname=false
15459 fi
15460
15461 as_me=`$as_basename -- "$0" ||
15462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15463 X"$0" : 'X\(//\)$' \| \
15464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15465 $as_echo X/"$0" |
15466 sed '/^.*\/\([^/][^/]*\)\/*$/{
15467 s//\1/
15468 q
15469 }
15470 /^X\/\(\/\/\)$/{
15471 s//\1/
15472 q
15473 }
15474 /^X\/\(\/\).*/{
15475 s//\1/
15476 q
15477 }
15478 s/.*/./; q'`
15479
15480 # Avoid depending upon Character Ranges.
15481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15484 as_cr_digits='0123456789'
15485 as_cr_alnum=$as_cr_Letters$as_cr_digits
15486
15487 ECHO_C= ECHO_N= ECHO_T=
15488 case `echo -n x` in #(((((
15489 -n*)
15490 case `echo 'xy\c'` in
15491 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15492 xy) ECHO_C='\c';;
15493 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15494 ECHO_T=' ';;
15495 esac;;
15496 *)
15497 ECHO_N='-n';;
15498 esac
15499
15500 rm -f conf$$ conf$$.exe conf$$.file
15501 if test -d conf$$.dir; then
15502 rm -f conf$$.dir/conf$$.file
15503 else
15504 rm -f conf$$.dir
15505 mkdir conf$$.dir 2>/dev/null
15506 fi
15507 if (echo >conf$$.file) 2>/dev/null; then
15508 if ln -s conf$$.file conf$$ 2>/dev/null; then
15509 as_ln_s='ln -s'
15510 # ... but there are two gotchas:
15511 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15512 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15513 # In both cases, we have to default to `cp -pR'.
15514 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15515 as_ln_s='cp -pR'
15516 elif ln conf$$.file conf$$ 2>/dev/null; then
15517 as_ln_s=ln
15518 else
15519 as_ln_s='cp -pR'
15520 fi
15521 else
15522 as_ln_s='cp -pR'
15523 fi
15524 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15525 rmdir conf$$.dir 2>/dev/null
15526
15527
15528 # as_fn_mkdir_p
15529 # -------------
15530 # Create "$as_dir" as a directory, including parents if necessary.
15531 as_fn_mkdir_p ()
15532 {
15533
15534 case $as_dir in #(
15535 -*) as_dir=./$as_dir;;
15536 esac
15537 test -d "$as_dir" || eval $as_mkdir_p || {
15538 as_dirs=
15539 while :; do
15540 case $as_dir in #(
15541 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15542 *) as_qdir=$as_dir;;
15543 esac
15544 as_dirs="'$as_qdir' $as_dirs"
15545 as_dir=`$as_dirname -- "$as_dir" ||
15546 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15547 X"$as_dir" : 'X\(//\)[^/]' \| \
15548 X"$as_dir" : 'X\(//\)$' \| \
15549 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15550 $as_echo X"$as_dir" |
15551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15552 s//\1/
15553 q
15554 }
15555 /^X\(\/\/\)[^/].*/{
15556 s//\1/
15557 q
15558 }
15559 /^X\(\/\/\)$/{
15560 s//\1/
15561 q
15562 }
15563 /^X\(\/\).*/{
15564 s//\1/
15565 q
15566 }
15567 s/.*/./; q'`
15568 test -d "$as_dir" && break
15569 done
15570 test -z "$as_dirs" || eval "mkdir $as_dirs"
15571 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15572
15573
15574 } # as_fn_mkdir_p
15575 if mkdir -p . 2>/dev/null; then
15576 as_mkdir_p='mkdir -p "$as_dir"'
15577 else
15578 test -d ./-p && rmdir ./-p
15579 as_mkdir_p=false
15580 fi
15581
15582
15583 # as_fn_executable_p FILE
15584 # -----------------------
15585 # Test if FILE is an executable regular file.
15586 as_fn_executable_p ()
15587 {
15588 test -f "$1" && test -x "$1"
15589 } # as_fn_executable_p
15590 as_test_x='test -x'
15591 as_executable_p=as_fn_executable_p
15592
15593 # Sed expression to map a string onto a valid CPP name.
15594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15595
15596 # Sed expression to map a string onto a valid variable name.
15597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15598
15599
15600 exec 6>&1
15601 ## ----------------------------------- ##
15602 ## Main body of $CONFIG_STATUS script. ##
15603 ## ----------------------------------- ##
15604 _ASEOF
15605 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15606
15607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15608 # Save the log message, to keep $0 and so on meaningful, and to
15609 # report actual input values of CONFIG_FILES etc. instead of their
15610 # values after options handling.
15611 ac_log="
15612 This file was extended by libctf $as_me 1.2.0, which was
15613 generated by GNU Autoconf 2.69. Invocation command line was
15614
15615 CONFIG_FILES = $CONFIG_FILES
15616 CONFIG_HEADERS = $CONFIG_HEADERS
15617 CONFIG_LINKS = $CONFIG_LINKS
15618 CONFIG_COMMANDS = $CONFIG_COMMANDS
15619 $ $0 $@
15620
15621 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15622 "
15623
15624 _ACEOF
15625
15626 case $ac_config_files in *"
15627 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15628 esac
15629
15630 case $ac_config_headers in *"
15631 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15632 esac
15633
15634
15635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15636 # Files that config.status was made for.
15637 config_files="$ac_config_files"
15638 config_headers="$ac_config_headers"
15639 config_commands="$ac_config_commands"
15640
15641 _ACEOF
15642
15643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15644 ac_cs_usage="\
15645 \`$as_me' instantiates files and other configuration actions
15646 from templates according to the current configuration. Unless the files
15647 and actions are specified as TAGs, all are instantiated by default.
15648
15649 Usage: $0 [OPTION]... [TAG]...
15650
15651 -h, --help print this help, then exit
15652 -V, --version print version number and configuration settings, then exit
15653 --config print configuration, then exit
15654 -q, --quiet, --silent
15655 do not print progress messages
15656 -d, --debug don't remove temporary files
15657 --recheck update $as_me by reconfiguring in the same conditions
15658 --file=FILE[:TEMPLATE]
15659 instantiate the configuration file FILE
15660 --header=FILE[:TEMPLATE]
15661 instantiate the configuration header FILE
15662
15663 Configuration files:
15664 $config_files
15665
15666 Configuration headers:
15667 $config_headers
15668
15669 Configuration commands:
15670 $config_commands
15671
15672 Report bugs to the package provider."
15673
15674 _ACEOF
15675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15676 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15677 ac_cs_version="\\
15678 libctf config.status 1.2.0
15679 configured by $0, generated by GNU Autoconf 2.69,
15680 with options \\"\$ac_cs_config\\"
15681
15682 Copyright (C) 2012 Free Software Foundation, Inc.
15683 This config.status script is free software; the Free Software Foundation
15684 gives unlimited permission to copy, distribute and modify it."
15685
15686 ac_pwd='$ac_pwd'
15687 srcdir='$srcdir'
15688 INSTALL='$INSTALL'
15689 MKDIR_P='$MKDIR_P'
15690 AWK='$AWK'
15691 test -n "\$AWK" || AWK=awk
15692 _ACEOF
15693
15694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15695 # The default lists apply if the user does not specify any file.
15696 ac_need_defaults=:
15697 while test $# != 0
15698 do
15699 case $1 in
15700 --*=?*)
15701 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15702 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15703 ac_shift=:
15704 ;;
15705 --*=)
15706 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15707 ac_optarg=
15708 ac_shift=:
15709 ;;
15710 *)
15711 ac_option=$1
15712 ac_optarg=$2
15713 ac_shift=shift
15714 ;;
15715 esac
15716
15717 case $ac_option in
15718 # Handling of the options.
15719 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15720 ac_cs_recheck=: ;;
15721 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15722 $as_echo "$ac_cs_version"; exit ;;
15723 --config | --confi | --conf | --con | --co | --c )
15724 $as_echo "$ac_cs_config"; exit ;;
15725 --debug | --debu | --deb | --de | --d | -d )
15726 debug=: ;;
15727 --file | --fil | --fi | --f )
15728 $ac_shift
15729 case $ac_optarg in
15730 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15731 '') as_fn_error $? "missing file argument" ;;
15732 esac
15733 as_fn_append CONFIG_FILES " '$ac_optarg'"
15734 ac_need_defaults=false;;
15735 --header | --heade | --head | --hea )
15736 $ac_shift
15737 case $ac_optarg in
15738 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15739 esac
15740 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15741 ac_need_defaults=false;;
15742 --he | --h)
15743 # Conflict between --help and --header
15744 as_fn_error $? "ambiguous option: \`$1'
15745 Try \`$0 --help' for more information.";;
15746 --help | --hel | -h )
15747 $as_echo "$ac_cs_usage"; exit ;;
15748 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15749 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15750 ac_cs_silent=: ;;
15751
15752 # This is an error.
15753 -*) as_fn_error $? "unrecognized option: \`$1'
15754 Try \`$0 --help' for more information." ;;
15755
15756 *) as_fn_append ac_config_targets " $1"
15757 ac_need_defaults=false ;;
15758
15759 esac
15760 shift
15761 done
15762
15763 ac_configure_extra_args=
15764
15765 if $ac_cs_silent; then
15766 exec 6>/dev/null
15767 ac_configure_extra_args="$ac_configure_extra_args --silent"
15768 fi
15769
15770 _ACEOF
15771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15772 if \$ac_cs_recheck; then
15773 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15774 shift
15775 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15776 CONFIG_SHELL='$SHELL'
15777 export CONFIG_SHELL
15778 exec "\$@"
15779 fi
15780
15781 _ACEOF
15782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15783 exec 5>>config.log
15784 {
15785 echo
15786 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15787 ## Running $as_me. ##
15788 _ASBOX
15789 $as_echo "$ac_log"
15790 } >&5
15791
15792 _ACEOF
15793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15794 #
15795 # INIT-COMMANDS
15796 #
15797 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15798
15799
15800 # The HP-UX ksh and POSIX shell print the target directory to stdout
15801 # if CDPATH is set.
15802 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15803
15804 sed_quote_subst='$sed_quote_subst'
15805 double_quote_subst='$double_quote_subst'
15806 delay_variable_subst='$delay_variable_subst'
15807 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15808 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15809 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15810 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15811 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15812 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15813 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15814 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15815 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15816 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15817 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15818 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15819 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15820 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15821 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15822 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15823 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15824 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15825 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15826 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15827 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15828 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15829 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15830 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15831 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15832 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15833 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15834 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15835 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15836 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15837 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15838 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15839 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15840 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15841 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15842 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15843 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15844 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15845 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15846 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15847 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15848 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15849 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15850 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15851 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15852 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15853 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15854 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15855 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"`'
15856 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15857 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15858 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15859 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15860 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15861 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15862 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15863 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15864 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15865 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15866 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15867 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15868 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15869 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15870 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15871 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15872 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15873 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15874 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15875 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15876 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15877 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15878 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15879 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15880 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15881 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15882 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15883 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15884 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15885 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15886 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15887 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15888 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15889 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15890 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15891 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15892 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15893 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15894 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15895 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15896 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15897 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15898 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15899 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15900 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15901 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15902 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15903 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15904 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15905 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15906 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15907 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15908 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15909 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15910 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15911 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15912 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15913 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15914 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15915 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15916 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15917 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15918 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15919 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15920 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15921 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15922 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15923 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15924 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15925 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15926 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15927
15928 LTCC='$LTCC'
15929 LTCFLAGS='$LTCFLAGS'
15930 compiler='$compiler_DEFAULT'
15931
15932 # A function that is used when there is no print builtin or printf.
15933 func_fallback_echo ()
15934 {
15935 eval 'cat <<_LTECHO_EOF
15936 \$1
15937 _LTECHO_EOF'
15938 }
15939
15940 # Quote evaled strings.
15941 for var in SHELL \
15942 ECHO \
15943 SED \
15944 GREP \
15945 EGREP \
15946 FGREP \
15947 LD \
15948 NM \
15949 LN_S \
15950 lt_SP2NL \
15951 lt_NL2SP \
15952 reload_flag \
15953 OBJDUMP \
15954 deplibs_check_method \
15955 file_magic_cmd \
15956 AR \
15957 AR_FLAGS \
15958 STRIP \
15959 RANLIB \
15960 CC \
15961 CFLAGS \
15962 compiler \
15963 lt_cv_sys_global_symbol_pipe \
15964 lt_cv_sys_global_symbol_to_cdecl \
15965 lt_cv_sys_global_symbol_to_c_name_address \
15966 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15967 lt_prog_compiler_no_builtin_flag \
15968 lt_prog_compiler_wl \
15969 lt_prog_compiler_pic \
15970 lt_prog_compiler_static \
15971 lt_cv_prog_compiler_c_o \
15972 need_locks \
15973 DSYMUTIL \
15974 NMEDIT \
15975 LIPO \
15976 OTOOL \
15977 OTOOL64 \
15978 shrext_cmds \
15979 export_dynamic_flag_spec \
15980 whole_archive_flag_spec \
15981 compiler_needs_object \
15982 with_gnu_ld \
15983 allow_undefined_flag \
15984 no_undefined_flag \
15985 hardcode_libdir_flag_spec \
15986 hardcode_libdir_flag_spec_ld \
15987 hardcode_libdir_separator \
15988 fix_srcfile_path \
15989 exclude_expsyms \
15990 include_expsyms \
15991 file_list_spec \
15992 variables_saved_for_relink \
15993 libname_spec \
15994 library_names_spec \
15995 soname_spec \
15996 install_override_mode \
15997 finish_eval \
15998 old_striplib \
15999 striplib; do
16000 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16001 *[\\\\\\\`\\"\\\$]*)
16002 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16003 ;;
16004 *)
16005 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16006 ;;
16007 esac
16008 done
16009
16010 # Double-quote double-evaled strings.
16011 for var in reload_cmds \
16012 old_postinstall_cmds \
16013 old_postuninstall_cmds \
16014 old_archive_cmds \
16015 extract_expsyms_cmds \
16016 old_archive_from_new_cmds \
16017 old_archive_from_expsyms_cmds \
16018 archive_cmds \
16019 archive_expsym_cmds \
16020 module_cmds \
16021 module_expsym_cmds \
16022 export_symbols_cmds \
16023 prelink_cmds \
16024 postinstall_cmds \
16025 postuninstall_cmds \
16026 finish_cmds \
16027 sys_lib_search_path_spec \
16028 sys_lib_dlsearch_path_spec; do
16029 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16030 *[\\\\\\\`\\"\\\$]*)
16031 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16032 ;;
16033 *)
16034 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16035 ;;
16036 esac
16037 done
16038
16039 ac_aux_dir='$ac_aux_dir'
16040 xsi_shell='$xsi_shell'
16041 lt_shell_append='$lt_shell_append'
16042
16043 # See if we are running on zsh, and set the options which allow our
16044 # commands through without removal of \ escapes INIT.
16045 if test -n "\${ZSH_VERSION+set}" ; then
16046 setopt NO_GLOB_SUBST
16047 fi
16048
16049
16050 PACKAGE='$PACKAGE'
16051 VERSION='$VERSION'
16052 TIMESTAMP='$TIMESTAMP'
16053 RM='$RM'
16054 ofile='$ofile'
16055
16056 ac_aux_dir='$ac_aux_dir'
16057
16058
16059
16060 _ACEOF
16061
16062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16063
16064 # Handling of arguments.
16065 for ac_config_target in $ac_config_targets
16066 do
16067 case $ac_config_target in
16068 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16069 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16070 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16071 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16072
16073 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16074 esac
16075 done
16076
16077
16078 # If the user did not use the arguments to specify the items to instantiate,
16079 # then the envvar interface is used. Set only those that are not.
16080 # We use the long form for the default assignment because of an extremely
16081 # bizarre bug on SunOS 4.1.3.
16082 if $ac_need_defaults; then
16083 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16084 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16085 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16086 fi
16087
16088 # Have a temporary directory for convenience. Make it in the build tree
16089 # simply because there is no reason against having it here, and in addition,
16090 # creating and moving files from /tmp can sometimes cause problems.
16091 # Hook for its removal unless debugging.
16092 # Note that there is a small window in which the directory will not be cleaned:
16093 # after its creation but before its name has been assigned to `$tmp'.
16094 $debug ||
16095 {
16096 tmp= ac_tmp=
16097 trap 'exit_status=$?
16098 : "${ac_tmp:=$tmp}"
16099 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16100 ' 0
16101 trap 'as_fn_exit 1' 1 2 13 15
16102 }
16103 # Create a (secure) tmp directory for tmp files.
16104
16105 {
16106 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16107 test -d "$tmp"
16108 } ||
16109 {
16110 tmp=./conf$$-$RANDOM
16111 (umask 077 && mkdir "$tmp")
16112 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16113 ac_tmp=$tmp
16114
16115 # Set up the scripts for CONFIG_FILES section.
16116 # No need to generate them if there are no CONFIG_FILES.
16117 # This happens for instance with `./config.status config.h'.
16118 if test -n "$CONFIG_FILES"; then
16119
16120
16121 ac_cr=`echo X | tr X '\015'`
16122 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16123 # But we know of no other shell where ac_cr would be empty at this
16124 # point, so we can use a bashism as a fallback.
16125 if test "x$ac_cr" = x; then
16126 eval ac_cr=\$\'\\r\'
16127 fi
16128 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16129 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16130 ac_cs_awk_cr='\\r'
16131 else
16132 ac_cs_awk_cr=$ac_cr
16133 fi
16134
16135 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16136 _ACEOF
16137
16138
16139 {
16140 echo "cat >conf$$subs.awk <<_ACEOF" &&
16141 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16142 echo "_ACEOF"
16143 } >conf$$subs.sh ||
16144 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16145 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16146 ac_delim='%!_!# '
16147 for ac_last_try in false false false false false :; do
16148 . ./conf$$subs.sh ||
16149 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16150
16151 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16152 if test $ac_delim_n = $ac_delim_num; then
16153 break
16154 elif $ac_last_try; then
16155 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16156 else
16157 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16158 fi
16159 done
16160 rm -f conf$$subs.sh
16161
16162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16163 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16164 _ACEOF
16165 sed -n '
16166 h
16167 s/^/S["/; s/!.*/"]=/
16168 p
16169 g
16170 s/^[^!]*!//
16171 :repl
16172 t repl
16173 s/'"$ac_delim"'$//
16174 t delim
16175 :nl
16176 h
16177 s/\(.\{148\}\)..*/\1/
16178 t more1
16179 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16180 p
16181 n
16182 b repl
16183 :more1
16184 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16185 p
16186 g
16187 s/.\{148\}//
16188 t nl
16189 :delim
16190 h
16191 s/\(.\{148\}\)..*/\1/
16192 t more2
16193 s/["\\]/\\&/g; s/^/"/; s/$/"/
16194 p
16195 b
16196 :more2
16197 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16198 p
16199 g
16200 s/.\{148\}//
16201 t delim
16202 ' <conf$$subs.awk | sed '
16203 /^[^""]/{
16204 N
16205 s/\n//
16206 }
16207 ' >>$CONFIG_STATUS || ac_write_fail=1
16208 rm -f conf$$subs.awk
16209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16210 _ACAWK
16211 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16212 for (key in S) S_is_set[key] = 1
16213 FS = ""
16214
16215 }
16216 {
16217 line = $ 0
16218 nfields = split(line, field, "@")
16219 substed = 0
16220 len = length(field[1])
16221 for (i = 2; i < nfields; i++) {
16222 key = field[i]
16223 keylen = length(key)
16224 if (S_is_set[key]) {
16225 value = S[key]
16226 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16227 len += length(value) + length(field[++i])
16228 substed = 1
16229 } else
16230 len += 1 + keylen
16231 }
16232
16233 print line
16234 }
16235
16236 _ACAWK
16237 _ACEOF
16238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16239 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16240 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16241 else
16242 cat
16243 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16244 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16245 _ACEOF
16246
16247 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16248 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16249 # trailing colons and then remove the whole line if VPATH becomes empty
16250 # (actually we leave an empty line to preserve line numbers).
16251 if test "x$srcdir" = x.; then
16252 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16253 h
16254 s///
16255 s/^/:/
16256 s/[ ]*$/:/
16257 s/:\$(srcdir):/:/g
16258 s/:\${srcdir}:/:/g
16259 s/:@srcdir@:/:/g
16260 s/^:*//
16261 s/:*$//
16262 x
16263 s/\(=[ ]*\).*/\1/
16264 G
16265 s/\n//
16266 s/^[^=]*=[ ]*$//
16267 }'
16268 fi
16269
16270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16271 fi # test -n "$CONFIG_FILES"
16272
16273 # Set up the scripts for CONFIG_HEADERS section.
16274 # No need to generate them if there are no CONFIG_HEADERS.
16275 # This happens for instance with `./config.status Makefile'.
16276 if test -n "$CONFIG_HEADERS"; then
16277 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16278 BEGIN {
16279 _ACEOF
16280
16281 # Transform confdefs.h into an awk script `defines.awk', embedded as
16282 # here-document in config.status, that substitutes the proper values into
16283 # config.h.in to produce config.h.
16284
16285 # Create a delimiter string that does not exist in confdefs.h, to ease
16286 # handling of long lines.
16287 ac_delim='%!_!# '
16288 for ac_last_try in false false :; do
16289 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16290 if test -z "$ac_tt"; then
16291 break
16292 elif $ac_last_try; then
16293 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16294 else
16295 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16296 fi
16297 done
16298
16299 # For the awk script, D is an array of macro values keyed by name,
16300 # likewise P contains macro parameters if any. Preserve backslash
16301 # newline sequences.
16302
16303 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16304 sed -n '
16305 s/.\{148\}/&'"$ac_delim"'/g
16306 t rset
16307 :rset
16308 s/^[ ]*#[ ]*define[ ][ ]*/ /
16309 t def
16310 d
16311 :def
16312 s/\\$//
16313 t bsnl
16314 s/["\\]/\\&/g
16315 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16316 D["\1"]=" \3"/p
16317 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16318 d
16319 :bsnl
16320 s/["\\]/\\&/g
16321 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16322 D["\1"]=" \3\\\\\\n"\\/p
16323 t cont
16324 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16325 t cont
16326 d
16327 :cont
16328 n
16329 s/.\{148\}/&'"$ac_delim"'/g
16330 t clear
16331 :clear
16332 s/\\$//
16333 t bsnlc
16334 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16335 d
16336 :bsnlc
16337 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16338 b cont
16339 ' <confdefs.h | sed '
16340 s/'"$ac_delim"'/"\\\
16341 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16342
16343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16344 for (key in D) D_is_set[key] = 1
16345 FS = ""
16346 }
16347 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16348 line = \$ 0
16349 split(line, arg, " ")
16350 if (arg[1] == "#") {
16351 defundef = arg[2]
16352 mac1 = arg[3]
16353 } else {
16354 defundef = substr(arg[1], 2)
16355 mac1 = arg[2]
16356 }
16357 split(mac1, mac2, "(") #)
16358 macro = mac2[1]
16359 prefix = substr(line, 1, index(line, defundef) - 1)
16360 if (D_is_set[macro]) {
16361 # Preserve the white space surrounding the "#".
16362 print prefix "define", macro P[macro] D[macro]
16363 next
16364 } else {
16365 # Replace #undef with comments. This is necessary, for example,
16366 # in the case of _POSIX_SOURCE, which is predefined and required
16367 # on some systems where configure will not decide to define it.
16368 if (defundef == "undef") {
16369 print "/*", prefix defundef, macro, "*/"
16370 next
16371 }
16372 }
16373 }
16374 { print }
16375 _ACAWK
16376 _ACEOF
16377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16378 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16379 fi # test -n "$CONFIG_HEADERS"
16380
16381
16382 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16383 shift
16384 for ac_tag
16385 do
16386 case $ac_tag in
16387 :[FHLC]) ac_mode=$ac_tag; continue;;
16388 esac
16389 case $ac_mode$ac_tag in
16390 :[FHL]*:*);;
16391 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16392 :[FH]-) ac_tag=-:-;;
16393 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16394 esac
16395 ac_save_IFS=$IFS
16396 IFS=:
16397 set x $ac_tag
16398 IFS=$ac_save_IFS
16399 shift
16400 ac_file=$1
16401 shift
16402
16403 case $ac_mode in
16404 :L) ac_source=$1;;
16405 :[FH])
16406 ac_file_inputs=
16407 for ac_f
16408 do
16409 case $ac_f in
16410 -) ac_f="$ac_tmp/stdin";;
16411 *) # Look for the file first in the build tree, then in the source tree
16412 # (if the path is not absolute). The absolute path cannot be DOS-style,
16413 # because $ac_f cannot contain `:'.
16414 test -f "$ac_f" ||
16415 case $ac_f in
16416 [\\/$]*) false;;
16417 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16418 esac ||
16419 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16420 esac
16421 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16422 as_fn_append ac_file_inputs " '$ac_f'"
16423 done
16424
16425 # Let's still pretend it is `configure' which instantiates (i.e., don't
16426 # use $as_me), people would be surprised to read:
16427 # /* config.h. Generated by config.status. */
16428 configure_input='Generated from '`
16429 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16430 `' by configure.'
16431 if test x"$ac_file" != x-; then
16432 configure_input="$ac_file. $configure_input"
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16434 $as_echo "$as_me: creating $ac_file" >&6;}
16435 fi
16436 # Neutralize special characters interpreted by sed in replacement strings.
16437 case $configure_input in #(
16438 *\&* | *\|* | *\\* )
16439 ac_sed_conf_input=`$as_echo "$configure_input" |
16440 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16441 *) ac_sed_conf_input=$configure_input;;
16442 esac
16443
16444 case $ac_tag in
16445 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16446 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16447 esac
16448 ;;
16449 esac
16450
16451 ac_dir=`$as_dirname -- "$ac_file" ||
16452 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16453 X"$ac_file" : 'X\(//\)[^/]' \| \
16454 X"$ac_file" : 'X\(//\)$' \| \
16455 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16456 $as_echo X"$ac_file" |
16457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16458 s//\1/
16459 q
16460 }
16461 /^X\(\/\/\)[^/].*/{
16462 s//\1/
16463 q
16464 }
16465 /^X\(\/\/\)$/{
16466 s//\1/
16467 q
16468 }
16469 /^X\(\/\).*/{
16470 s//\1/
16471 q
16472 }
16473 s/.*/./; q'`
16474 as_dir="$ac_dir"; as_fn_mkdir_p
16475 ac_builddir=.
16476
16477 case "$ac_dir" in
16478 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16479 *)
16480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16481 # A ".." for each directory in $ac_dir_suffix.
16482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16483 case $ac_top_builddir_sub in
16484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16486 esac ;;
16487 esac
16488 ac_abs_top_builddir=$ac_pwd
16489 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16490 # for backward compatibility:
16491 ac_top_builddir=$ac_top_build_prefix
16492
16493 case $srcdir in
16494 .) # We are building in place.
16495 ac_srcdir=.
16496 ac_top_srcdir=$ac_top_builddir_sub
16497 ac_abs_top_srcdir=$ac_pwd ;;
16498 [\\/]* | ?:[\\/]* ) # Absolute name.
16499 ac_srcdir=$srcdir$ac_dir_suffix;
16500 ac_top_srcdir=$srcdir
16501 ac_abs_top_srcdir=$srcdir ;;
16502 *) # Relative name.
16503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16504 ac_top_srcdir=$ac_top_build_prefix$srcdir
16505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16506 esac
16507 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16508
16509
16510 case $ac_mode in
16511 :F)
16512 #
16513 # CONFIG_FILE
16514 #
16515
16516 case $INSTALL in
16517 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16518 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16519 esac
16520 ac_MKDIR_P=$MKDIR_P
16521 case $MKDIR_P in
16522 [\\/$]* | ?:[\\/]* ) ;;
16523 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16524 esac
16525 _ACEOF
16526
16527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16528 # If the template does not know about datarootdir, expand it.
16529 # FIXME: This hack should be removed a few years after 2.60.
16530 ac_datarootdir_hack=; ac_datarootdir_seen=
16531 ac_sed_dataroot='
16532 /datarootdir/ {
16533 p
16534 q
16535 }
16536 /@datadir@/p
16537 /@docdir@/p
16538 /@infodir@/p
16539 /@localedir@/p
16540 /@mandir@/p'
16541 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16542 *datarootdir*) ac_datarootdir_seen=yes;;
16543 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16545 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16546 _ACEOF
16547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16548 ac_datarootdir_hack='
16549 s&@datadir@&$datadir&g
16550 s&@docdir@&$docdir&g
16551 s&@infodir@&$infodir&g
16552 s&@localedir@&$localedir&g
16553 s&@mandir@&$mandir&g
16554 s&\\\${datarootdir}&$datarootdir&g' ;;
16555 esac
16556 _ACEOF
16557
16558 # Neutralize VPATH when `$srcdir' = `.'.
16559 # Shell code in configure.ac might set extrasub.
16560 # FIXME: do we really want to maintain this feature?
16561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16562 ac_sed_extra="$ac_vpsub
16563 $extrasub
16564 _ACEOF
16565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16566 :t
16567 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16568 s|@configure_input@|$ac_sed_conf_input|;t t
16569 s&@top_builddir@&$ac_top_builddir_sub&;t t
16570 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16571 s&@srcdir@&$ac_srcdir&;t t
16572 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16573 s&@top_srcdir@&$ac_top_srcdir&;t t
16574 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16575 s&@builddir@&$ac_builddir&;t t
16576 s&@abs_builddir@&$ac_abs_builddir&;t t
16577 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16578 s&@INSTALL@&$ac_INSTALL&;t t
16579 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16580 $ac_datarootdir_hack
16581 "
16582 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16583 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16584
16585 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16586 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16587 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16588 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16590 which seems to be undefined. Please make sure it is defined" >&5
16591 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16592 which seems to be undefined. Please make sure it is defined" >&2;}
16593
16594 rm -f "$ac_tmp/stdin"
16595 case $ac_file in
16596 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16597 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16598 esac \
16599 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16600 ;;
16601 :H)
16602 #
16603 # CONFIG_HEADER
16604 #
16605 if test x"$ac_file" != x-; then
16606 {
16607 $as_echo "/* $configure_input */" \
16608 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16609 } >"$ac_tmp/config.h" \
16610 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16611 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16613 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16614 else
16615 rm -f "$ac_file"
16616 mv "$ac_tmp/config.h" "$ac_file" \
16617 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16618 fi
16619 else
16620 $as_echo "/* $configure_input */" \
16621 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16622 || as_fn_error $? "could not create -" "$LINENO" 5
16623 fi
16624 # Compute "$ac_file"'s index in $config_headers.
16625 _am_arg="$ac_file"
16626 _am_stamp_count=1
16627 for _am_header in $config_headers :; do
16628 case $_am_header in
16629 $_am_arg | $_am_arg:* )
16630 break ;;
16631 * )
16632 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16633 esac
16634 done
16635 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16636 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16637 X"$_am_arg" : 'X\(//\)[^/]' \| \
16638 X"$_am_arg" : 'X\(//\)$' \| \
16639 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16640 $as_echo X"$_am_arg" |
16641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16642 s//\1/
16643 q
16644 }
16645 /^X\(\/\/\)[^/].*/{
16646 s//\1/
16647 q
16648 }
16649 /^X\(\/\/\)$/{
16650 s//\1/
16651 q
16652 }
16653 /^X\(\/\).*/{
16654 s//\1/
16655 q
16656 }
16657 s/.*/./; q'`/stamp-h$_am_stamp_count
16658 ;;
16659
16660 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16661 $as_echo "$as_me: executing $ac_file commands" >&6;}
16662 ;;
16663 esac
16664
16665
16666 case $ac_file$ac_mode in
16667 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16668 # Older Autoconf quotes --file arguments for eval, but not when files
16669 # are listed without --file. Let's play safe and only enable the eval
16670 # if we detect the quoting.
16671 case $CONFIG_FILES in
16672 *\'*) eval set x "$CONFIG_FILES" ;;
16673 *) set x $CONFIG_FILES ;;
16674 esac
16675 shift
16676 for mf
16677 do
16678 # Strip MF so we end up with the name of the file.
16679 mf=`echo "$mf" | sed -e 's/:.*$//'`
16680 # Check whether this is an Automake generated Makefile or not.
16681 # We used to match only the files named 'Makefile.in', but
16682 # some people rename them; so instead we look at the file content.
16683 # Grep'ing the first line is not enough: some people post-process
16684 # each Makefile.in and add a new line on top of each file to say so.
16685 # Grep'ing the whole file is not good either: AIX grep has a line
16686 # limit of 2048, but all sed's we know have understand at least 4000.
16687 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16688 dirpart=`$as_dirname -- "$mf" ||
16689 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16690 X"$mf" : 'X\(//\)[^/]' \| \
16691 X"$mf" : 'X\(//\)$' \| \
16692 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16693 $as_echo X"$mf" |
16694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16695 s//\1/
16696 q
16697 }
16698 /^X\(\/\/\)[^/].*/{
16699 s//\1/
16700 q
16701 }
16702 /^X\(\/\/\)$/{
16703 s//\1/
16704 q
16705 }
16706 /^X\(\/\).*/{
16707 s//\1/
16708 q
16709 }
16710 s/.*/./; q'`
16711 else
16712 continue
16713 fi
16714 # Extract the definition of DEPDIR, am__include, and am__quote
16715 # from the Makefile without running 'make'.
16716 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16717 test -z "$DEPDIR" && continue
16718 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16719 test -z "$am__include" && continue
16720 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16721 # Find all dependency output files, they are included files with
16722 # $(DEPDIR) in their names. We invoke sed twice because it is the
16723 # simplest approach to changing $(DEPDIR) to its actual value in the
16724 # expansion.
16725 for file in `sed -n "
16726 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16727 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16728 # Make sure the directory exists.
16729 test -f "$dirpart/$file" && continue
16730 fdir=`$as_dirname -- "$file" ||
16731 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16732 X"$file" : 'X\(//\)[^/]' \| \
16733 X"$file" : 'X\(//\)$' \| \
16734 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16735 $as_echo X"$file" |
16736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16737 s//\1/
16738 q
16739 }
16740 /^X\(\/\/\)[^/].*/{
16741 s//\1/
16742 q
16743 }
16744 /^X\(\/\/\)$/{
16745 s//\1/
16746 q
16747 }
16748 /^X\(\/\).*/{
16749 s//\1/
16750 q
16751 }
16752 s/.*/./; q'`
16753 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16754 # echo "creating $dirpart/$file"
16755 echo '# dummy' > "$dirpart/$file"
16756 done
16757 done
16758 }
16759 ;;
16760 "libtool":C)
16761
16762 # See if we are running on zsh, and set the options which allow our
16763 # commands through without removal of \ escapes.
16764 if test -n "${ZSH_VERSION+set}" ; then
16765 setopt NO_GLOB_SUBST
16766 fi
16767
16768 cfgfile="${ofile}T"
16769 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16770 $RM "$cfgfile"
16771
16772 cat <<_LT_EOF >> "$cfgfile"
16773 #! $SHELL
16774
16775 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16776 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16777 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16778 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16779 #
16780 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16781 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16782 # Written by Gordon Matzigkeit, 1996
16783 #
16784 # This file is part of GNU Libtool.
16785 #
16786 # GNU Libtool is free software; you can redistribute it and/or
16787 # modify it under the terms of the GNU General Public License as
16788 # published by the Free Software Foundation; either version 2 of
16789 # the License, or (at your option) any later version.
16790 #
16791 # As a special exception to the GNU General Public License,
16792 # if you distribute this file as part of a program or library that
16793 # is built using GNU Libtool, you may include this file under the
16794 # same distribution terms that you use for the rest of that program.
16795 #
16796 # GNU Libtool is distributed in the hope that it will be useful,
16797 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16798 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16799 # GNU General Public License for more details.
16800 #
16801 # You should have received a copy of the GNU General Public License
16802 # along with GNU Libtool; see the file COPYING. If not, a copy
16803 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16804 # obtained by writing to the Free Software Foundation, Inc.,
16805 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16806
16807
16808 # The names of the tagged configurations supported by this script.
16809 available_tags=""
16810
16811 # ### BEGIN LIBTOOL CONFIG
16812
16813 # Whether or not to build shared libraries.
16814 build_libtool_libs=$enable_shared
16815
16816 # Which release of libtool.m4 was used?
16817 macro_version=$macro_version
16818 macro_revision=$macro_revision
16819
16820 # Whether or not to build static libraries.
16821 build_old_libs=$enable_static
16822
16823 # What type of objects to build.
16824 pic_mode=$pic_mode
16825
16826 # Whether or not to optimize for fast installation.
16827 fast_install=$enable_fast_install
16828
16829 # Shell to use when invoking shell scripts.
16830 SHELL=$lt_SHELL
16831
16832 # An echo program that protects backslashes.
16833 ECHO=$lt_ECHO
16834
16835 # The host system.
16836 host_alias=$host_alias
16837 host=$host
16838 host_os=$host_os
16839
16840 # The build system.
16841 build_alias=$build_alias
16842 build=$build
16843 build_os=$build_os
16844
16845 # A sed program that does not truncate output.
16846 SED=$lt_SED
16847
16848 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16849 Xsed="\$SED -e 1s/^X//"
16850
16851 # A grep program that handles long lines.
16852 GREP=$lt_GREP
16853
16854 # An ERE matcher.
16855 EGREP=$lt_EGREP
16856
16857 # A literal string matcher.
16858 FGREP=$lt_FGREP
16859
16860 # A BSD- or MS-compatible name lister.
16861 NM=$lt_NM
16862
16863 # Whether we need soft or hard links.
16864 LN_S=$lt_LN_S
16865
16866 # What is the maximum length of a command?
16867 max_cmd_len=$max_cmd_len
16868
16869 # Object file suffix (normally "o").
16870 objext=$ac_objext
16871
16872 # Executable file suffix (normally "").
16873 exeext=$exeext
16874
16875 # whether the shell understands "unset".
16876 lt_unset=$lt_unset
16877
16878 # turn spaces into newlines.
16879 SP2NL=$lt_lt_SP2NL
16880
16881 # turn newlines into spaces.
16882 NL2SP=$lt_lt_NL2SP
16883
16884 # An object symbol dumper.
16885 OBJDUMP=$lt_OBJDUMP
16886
16887 # Method to check whether dependent libraries are shared objects.
16888 deplibs_check_method=$lt_deplibs_check_method
16889
16890 # Command to use when deplibs_check_method == "file_magic".
16891 file_magic_cmd=$lt_file_magic_cmd
16892
16893 # The archiver.
16894 AR=$lt_AR
16895 AR_FLAGS=$lt_AR_FLAGS
16896
16897 # A symbol stripping program.
16898 STRIP=$lt_STRIP
16899
16900 # Commands used to install an old-style archive.
16901 RANLIB=$lt_RANLIB
16902 old_postinstall_cmds=$lt_old_postinstall_cmds
16903 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16904
16905 # Whether to use a lock for old archive extraction.
16906 lock_old_archive_extraction=$lock_old_archive_extraction
16907
16908 # A C compiler.
16909 LTCC=$lt_CC
16910
16911 # LTCC compiler flags.
16912 LTCFLAGS=$lt_CFLAGS
16913
16914 # Take the output of nm and produce a listing of raw symbols and C names.
16915 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16916
16917 # Transform the output of nm in a proper C declaration.
16918 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16919
16920 # Transform the output of nm in a C name address pair.
16921 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16922
16923 # Transform the output of nm in a C name address pair when lib prefix is needed.
16924 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16925
16926 # The name of the directory that contains temporary libtool files.
16927 objdir=$objdir
16928
16929 # Used to examine libraries when file_magic_cmd begins with "file".
16930 MAGIC_CMD=$MAGIC_CMD
16931
16932 # Must we lock files when doing compilation?
16933 need_locks=$lt_need_locks
16934
16935 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16936 DSYMUTIL=$lt_DSYMUTIL
16937
16938 # Tool to change global to local symbols on Mac OS X.
16939 NMEDIT=$lt_NMEDIT
16940
16941 # Tool to manipulate fat objects and archives on Mac OS X.
16942 LIPO=$lt_LIPO
16943
16944 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16945 OTOOL=$lt_OTOOL
16946
16947 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16948 OTOOL64=$lt_OTOOL64
16949
16950 # Old archive suffix (normally "a").
16951 libext=$libext
16952
16953 # Shared library suffix (normally ".so").
16954 shrext_cmds=$lt_shrext_cmds
16955
16956 # The commands to extract the exported symbol list from a shared archive.
16957 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16958
16959 # Variables whose values should be saved in libtool wrapper scripts and
16960 # restored at link time.
16961 variables_saved_for_relink=$lt_variables_saved_for_relink
16962
16963 # Do we need the "lib" prefix for modules?
16964 need_lib_prefix=$need_lib_prefix
16965
16966 # Do we need a version for libraries?
16967 need_version=$need_version
16968
16969 # Library versioning type.
16970 version_type=$version_type
16971
16972 # Shared library runtime path variable.
16973 runpath_var=$runpath_var
16974
16975 # Shared library path variable.
16976 shlibpath_var=$shlibpath_var
16977
16978 # Is shlibpath searched before the hard-coded library search path?
16979 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16980
16981 # Format of library name prefix.
16982 libname_spec=$lt_libname_spec
16983
16984 # List of archive names. First name is the real one, the rest are links.
16985 # The last name is the one that the linker finds with -lNAME
16986 library_names_spec=$lt_library_names_spec
16987
16988 # The coded name of the library, if different from the real name.
16989 soname_spec=$lt_soname_spec
16990
16991 # Permission mode override for installation of shared libraries.
16992 install_override_mode=$lt_install_override_mode
16993
16994 # Command to use after installation of a shared archive.
16995 postinstall_cmds=$lt_postinstall_cmds
16996
16997 # Command to use after uninstallation of a shared archive.
16998 postuninstall_cmds=$lt_postuninstall_cmds
16999
17000 # Commands used to finish a libtool library installation in a directory.
17001 finish_cmds=$lt_finish_cmds
17002
17003 # As "finish_cmds", except a single script fragment to be evaled but
17004 # not shown.
17005 finish_eval=$lt_finish_eval
17006
17007 # Whether we should hardcode library paths into libraries.
17008 hardcode_into_libs=$hardcode_into_libs
17009
17010 # Compile-time system search path for libraries.
17011 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17012
17013 # Run-time system search path for libraries.
17014 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17015
17016 # Whether dlopen is supported.
17017 dlopen_support=$enable_dlopen
17018
17019 # Whether dlopen of programs is supported.
17020 dlopen_self=$enable_dlopen_self
17021
17022 # Whether dlopen of statically linked programs is supported.
17023 dlopen_self_static=$enable_dlopen_self_static
17024
17025 # Commands to strip libraries.
17026 old_striplib=$lt_old_striplib
17027 striplib=$lt_striplib
17028
17029
17030 # The linker used to build libraries.
17031 LD=$lt_LD
17032
17033 # How to create reloadable object files.
17034 reload_flag=$lt_reload_flag
17035 reload_cmds=$lt_reload_cmds
17036
17037 # Commands used to build an old-style archive.
17038 old_archive_cmds=$lt_old_archive_cmds
17039
17040 # A language specific compiler.
17041 CC=$lt_compiler
17042
17043 # Is the compiler the GNU compiler?
17044 with_gcc=$GCC
17045
17046 # Compiler flag to turn off builtin functions.
17047 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17048
17049 # How to pass a linker flag through the compiler.
17050 wl=$lt_lt_prog_compiler_wl
17051
17052 # Additional compiler flags for building library objects.
17053 pic_flag=$lt_lt_prog_compiler_pic
17054
17055 # Compiler flag to prevent dynamic linking.
17056 link_static_flag=$lt_lt_prog_compiler_static
17057
17058 # Does compiler simultaneously support -c and -o options?
17059 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17060
17061 # Whether or not to add -lc for building shared libraries.
17062 build_libtool_need_lc=$archive_cmds_need_lc
17063
17064 # Whether or not to disallow shared libs when runtime libs are static.
17065 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17066
17067 # Compiler flag to allow reflexive dlopens.
17068 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17069
17070 # Compiler flag to generate shared objects directly from archives.
17071 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17072
17073 # Whether the compiler copes with passing no objects directly.
17074 compiler_needs_object=$lt_compiler_needs_object
17075
17076 # Create an old-style archive from a shared archive.
17077 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17078
17079 # Create a temporary old-style archive to link instead of a shared archive.
17080 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17081
17082 # Commands used to build a shared archive.
17083 archive_cmds=$lt_archive_cmds
17084 archive_expsym_cmds=$lt_archive_expsym_cmds
17085
17086 # Commands used to build a loadable module if different from building
17087 # a shared archive.
17088 module_cmds=$lt_module_cmds
17089 module_expsym_cmds=$lt_module_expsym_cmds
17090
17091 # Whether we are building with GNU ld or not.
17092 with_gnu_ld=$lt_with_gnu_ld
17093
17094 # Flag that allows shared libraries with undefined symbols to be built.
17095 allow_undefined_flag=$lt_allow_undefined_flag
17096
17097 # Flag that enforces no undefined symbols.
17098 no_undefined_flag=$lt_no_undefined_flag
17099
17100 # Flag to hardcode \$libdir into a binary during linking.
17101 # This must work even if \$libdir does not exist
17102 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17103
17104 # If ld is used when linking, flag to hardcode \$libdir into a binary
17105 # during linking. This must work even if \$libdir does not exist.
17106 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17107
17108 # Whether we need a single "-rpath" flag with a separated argument.
17109 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17110
17111 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17112 # DIR into the resulting binary.
17113 hardcode_direct=$hardcode_direct
17114
17115 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17116 # DIR into the resulting binary and the resulting library dependency is
17117 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17118 # library is relocated.
17119 hardcode_direct_absolute=$hardcode_direct_absolute
17120
17121 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17122 # into the resulting binary.
17123 hardcode_minus_L=$hardcode_minus_L
17124
17125 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17126 # into the resulting binary.
17127 hardcode_shlibpath_var=$hardcode_shlibpath_var
17128
17129 # Set to "yes" if building a shared library automatically hardcodes DIR
17130 # into the library and all subsequent libraries and executables linked
17131 # against it.
17132 hardcode_automatic=$hardcode_automatic
17133
17134 # Set to yes if linker adds runtime paths of dependent libraries
17135 # to runtime path list.
17136 inherit_rpath=$inherit_rpath
17137
17138 # Whether libtool must link a program against all its dependency libraries.
17139 link_all_deplibs=$link_all_deplibs
17140
17141 # Fix the shell variable \$srcfile for the compiler.
17142 fix_srcfile_path=$lt_fix_srcfile_path
17143
17144 # Set to "yes" if exported symbols are required.
17145 always_export_symbols=$always_export_symbols
17146
17147 # The commands to list exported symbols.
17148 export_symbols_cmds=$lt_export_symbols_cmds
17149
17150 # Symbols that should not be listed in the preloaded symbols.
17151 exclude_expsyms=$lt_exclude_expsyms
17152
17153 # Symbols that must always be exported.
17154 include_expsyms=$lt_include_expsyms
17155
17156 # Commands necessary for linking programs (against libraries) with templates.
17157 prelink_cmds=$lt_prelink_cmds
17158
17159 # Specify filename containing input files.
17160 file_list_spec=$lt_file_list_spec
17161
17162 # How to hardcode a shared library path into an executable.
17163 hardcode_action=$hardcode_action
17164
17165 # ### END LIBTOOL CONFIG
17166
17167 _LT_EOF
17168
17169 case $host_os in
17170 aix3*)
17171 cat <<\_LT_EOF >> "$cfgfile"
17172 # AIX sometimes has problems with the GCC collect2 program. For some
17173 # reason, if we set the COLLECT_NAMES environment variable, the problems
17174 # vanish in a puff of smoke.
17175 if test "X${COLLECT_NAMES+set}" != Xset; then
17176 COLLECT_NAMES=
17177 export COLLECT_NAMES
17178 fi
17179 _LT_EOF
17180 ;;
17181 esac
17182
17183
17184 ltmain="$ac_aux_dir/ltmain.sh"
17185
17186
17187 # We use sed instead of cat because bash on DJGPP gets confused if
17188 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17189 # text mode, it properly converts lines to CR/LF. This bash problem
17190 # is reportedly fixed, but why not run on old versions too?
17191 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17192 || (rm -f "$cfgfile"; exit 1)
17193
17194 case $xsi_shell in
17195 yes)
17196 cat << \_LT_EOF >> "$cfgfile"
17197
17198 # func_dirname file append nondir_replacement
17199 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17200 # otherwise set result to NONDIR_REPLACEMENT.
17201 func_dirname ()
17202 {
17203 case ${1} in
17204 */*) func_dirname_result="${1%/*}${2}" ;;
17205 * ) func_dirname_result="${3}" ;;
17206 esac
17207 }
17208
17209 # func_basename file
17210 func_basename ()
17211 {
17212 func_basename_result="${1##*/}"
17213 }
17214
17215 # func_dirname_and_basename file append nondir_replacement
17216 # perform func_basename and func_dirname in a single function
17217 # call:
17218 # dirname: Compute the dirname of FILE. If nonempty,
17219 # add APPEND to the result, otherwise set result
17220 # to NONDIR_REPLACEMENT.
17221 # value returned in "$func_dirname_result"
17222 # basename: Compute filename of FILE.
17223 # value retuned in "$func_basename_result"
17224 # Implementation must be kept synchronized with func_dirname
17225 # and func_basename. For efficiency, we do not delegate to
17226 # those functions but instead duplicate the functionality here.
17227 func_dirname_and_basename ()
17228 {
17229 case ${1} in
17230 */*) func_dirname_result="${1%/*}${2}" ;;
17231 * ) func_dirname_result="${3}" ;;
17232 esac
17233 func_basename_result="${1##*/}"
17234 }
17235
17236 # func_stripname prefix suffix name
17237 # strip PREFIX and SUFFIX off of NAME.
17238 # PREFIX and SUFFIX must not contain globbing or regex special
17239 # characters, hashes, percent signs, but SUFFIX may contain a leading
17240 # dot (in which case that matches only a dot).
17241 func_stripname ()
17242 {
17243 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17244 # positional parameters, so assign one to ordinary parameter first.
17245 func_stripname_result=${3}
17246 func_stripname_result=${func_stripname_result#"${1}"}
17247 func_stripname_result=${func_stripname_result%"${2}"}
17248 }
17249
17250 # func_opt_split
17251 func_opt_split ()
17252 {
17253 func_opt_split_opt=${1%%=*}
17254 func_opt_split_arg=${1#*=}
17255 }
17256
17257 # func_lo2o object
17258 func_lo2o ()
17259 {
17260 case ${1} in
17261 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17262 *) func_lo2o_result=${1} ;;
17263 esac
17264 }
17265
17266 # func_xform libobj-or-source
17267 func_xform ()
17268 {
17269 func_xform_result=${1%.*}.lo
17270 }
17271
17272 # func_arith arithmetic-term...
17273 func_arith ()
17274 {
17275 func_arith_result=$(( $* ))
17276 }
17277
17278 # func_len string
17279 # STRING may not start with a hyphen.
17280 func_len ()
17281 {
17282 func_len_result=${#1}
17283 }
17284
17285 _LT_EOF
17286 ;;
17287 *) # Bourne compatible functions.
17288 cat << \_LT_EOF >> "$cfgfile"
17289
17290 # func_dirname file append nondir_replacement
17291 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17292 # otherwise set result to NONDIR_REPLACEMENT.
17293 func_dirname ()
17294 {
17295 # Extract subdirectory from the argument.
17296 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17297 if test "X$func_dirname_result" = "X${1}"; then
17298 func_dirname_result="${3}"
17299 else
17300 func_dirname_result="$func_dirname_result${2}"
17301 fi
17302 }
17303
17304 # func_basename file
17305 func_basename ()
17306 {
17307 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17308 }
17309
17310
17311 # func_stripname prefix suffix name
17312 # strip PREFIX and SUFFIX off of NAME.
17313 # PREFIX and SUFFIX must not contain globbing or regex special
17314 # characters, hashes, percent signs, but SUFFIX may contain a leading
17315 # dot (in which case that matches only a dot).
17316 # func_strip_suffix prefix name
17317 func_stripname ()
17318 {
17319 case ${2} in
17320 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17321 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17322 esac
17323 }
17324
17325 # sed scripts:
17326 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17327 my_sed_long_arg='1s/^-[^=]*=//'
17328
17329 # func_opt_split
17330 func_opt_split ()
17331 {
17332 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17333 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17334 }
17335
17336 # func_lo2o object
17337 func_lo2o ()
17338 {
17339 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17340 }
17341
17342 # func_xform libobj-or-source
17343 func_xform ()
17344 {
17345 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17346 }
17347
17348 # func_arith arithmetic-term...
17349 func_arith ()
17350 {
17351 func_arith_result=`expr "$@"`
17352 }
17353
17354 # func_len string
17355 # STRING may not start with a hyphen.
17356 func_len ()
17357 {
17358 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17359 }
17360
17361 _LT_EOF
17362 esac
17363
17364 case $lt_shell_append in
17365 yes)
17366 cat << \_LT_EOF >> "$cfgfile"
17367
17368 # func_append var value
17369 # Append VALUE to the end of shell variable VAR.
17370 func_append ()
17371 {
17372 eval "$1+=\$2"
17373 }
17374 _LT_EOF
17375 ;;
17376 *)
17377 cat << \_LT_EOF >> "$cfgfile"
17378
17379 # func_append var value
17380 # Append VALUE to the end of shell variable VAR.
17381 func_append ()
17382 {
17383 eval "$1=\$$1\$2"
17384 }
17385
17386 _LT_EOF
17387 ;;
17388 esac
17389
17390
17391 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17392 || (rm -f "$cfgfile"; exit 1)
17393
17394 mv -f "$cfgfile" "$ofile" ||
17395 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17396 chmod +x "$ofile"
17397
17398 ;;
17399
17400 esac
17401 done # for ac_tag
17402
17403
17404 as_fn_exit 0
17405 _ACEOF
17406 ac_clean_files=$ac_clean_files_save
17407
17408 test $ac_write_fail = 0 ||
17409 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17410
17411
17412 # configure is writing to config.log, and then calls config.status.
17413 # config.status does its own redirection, appending to config.log.
17414 # Unfortunately, on DOS this fails, as config.log is still kept open
17415 # by configure, so config.status won't be able to write to it; its
17416 # output is simply discarded. So we exec the FD to /dev/null,
17417 # effectively closing config.log, so it can be properly (re)opened and
17418 # appended to by config.status. When coming back to configure, we
17419 # need to make the FD available again.
17420 if test "$no_create" != yes; then
17421 ac_cs_success=:
17422 ac_config_status_args=
17423 test "$silent" = yes &&
17424 ac_config_status_args="$ac_config_status_args --quiet"
17425 exec 5>/dev/null
17426 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17427 exec 5>>config.log
17428 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17429 # would make configure fail if this is the last instruction.
17430 $ac_cs_success || as_fn_exit 1
17431 fi
17432 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17434 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17435 fi
17436
17437
17438
17439 touch config.status.tmp
17440 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
17441 sed '/as_fn_exit 0/i \
17442 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
17443 touch --reference=Makefile Makefile.tmp \
17444 mv Makefile.tmp Makefile \
17445 ' config.status > config.status.tmp
17446 touch --reference=config.status config.status.tmp
17447 mv config.status.tmp config.status
17448 chmod +x config.status
17449 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
17450 touch --reference=Makefile Makefile.tmp
17451 mv Makefile.tmp Makefile
17452 else
17453 rm -f config.status.tmp
17454 fi
17455