bfd: use less memory in string merging
[binutils-gdb.git] / libctf / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libctf 1.2.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libctf'
589 PACKAGE_TARNAME='libctf'
590 PACKAGE_VERSION='1.2.0'
591 PACKAGE_STRING='libctf 1.2.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="ctf-impl.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_header_list=
633 ac_func_list=
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 VERSION_FLAGS_NOBFD
639 VERSION_FLAGS
640 HAVE_TCL_TRY
641 EXPECT
642 CTF_LIBADD
643 SHARED_LDFLAGS
644 BUILD_INFO_FALSE
645 BUILD_INFO_TRUE
646 NEED_CTF_QSORT_R_FALSE
647 NEED_CTF_QSORT_R_TRUE
648 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE
649 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE
650 zlibinc
651 zlibdir
652 ac_libctf_warn_cflags
653 bfdincludedir
654 bfdlibdir
655 target_noncanonical
656 host_noncanonical
657 INSTALL_LIBBFD_FALSE
658 INSTALL_LIBBFD_TRUE
659 MAINT
660 MAINTAINER_MODE_FALSE
661 MAINTAINER_MODE_TRUE
662 WERROR
663 WARN_PEDANTIC
664 c_warn
665 warn
666 OTOOL64
667 OTOOL
668 LIPO
669 NMEDIT
670 DSYMUTIL
671 OBJDUMP
672 LN_S
673 NM
674 ac_ct_DUMPBIN
675 DUMPBIN
676 LD
677 FGREP
678 SED
679 LIBTOOL
680 CATOBJEXT
681 GENCAT
682 INSTOBJEXT
683 DATADIRNAME
684 CATALOGS
685 POSUB
686 GMSGFMT
687 XGETTEXT
688 INCINTL
689 LIBINTL_DEP
690 LIBINTL
691 USE_NLS
692 ac_ct_AR
693 AR
694 RANLIB
695 AM_BACKSLASH
696 AM_DEFAULT_VERBOSITY
697 AM_DEFAULT_V
698 AM_V
699 am__fastdepCC_FALSE
700 am__fastdepCC_TRUE
701 CCDEPMODE
702 am__nodep
703 AMDEPBACKSLASH
704 AMDEP_FALSE
705 AMDEP_TRUE
706 am__quote
707 am__include
708 DEPDIR
709 am__untar
710 am__tar
711 AMTAR
712 am__leading_dot
713 SET_MAKE
714 AWK
715 mkdir_p
716 MKDIR_P
717 INSTALL_STRIP_PROGRAM
718 STRIP
719 install_sh
720 MAKEINFO
721 AUTOHEADER
722 AUTOMAKE
723 AUTOCONF
724 ACLOCAL
725 VERSION
726 PACKAGE
727 CYGPATH_W
728 am__isrc
729 INSTALL_DATA
730 INSTALL_SCRIPT
731 INSTALL_PROGRAM
732 EGREP
733 GREP
734 CPP
735 OBJEXT
736 EXEEXT
737 ac_ct_CC
738 CPPFLAGS
739 LDFLAGS
740 CFLAGS
741 CC
742 target_os
743 target_vendor
744 target_cpu
745 target
746 host_os
747 host_vendor
748 host_cpu
749 host
750 build_os
751 build_vendor
752 build_cpu
753 build
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_dependency_tracking
796 enable_silent_rules
797 enable_shared
798 enable_static
799 with_pic
800 enable_fast_install
801 with_gnu_ld
802 enable_libtool_lock
803 enable_largefile
804 enable_werror_always
805 enable_maintainer_mode
806 enable_install_libbfd
807 with_system_zlib
808 enable_libctf_hash_debugging
809 '
810 ac_precious_vars='build_alias
811 host_alias
812 target_alias
813 CC
814 CFLAGS
815 LDFLAGS
816 LIBS
817 CPPFLAGS
818 CPP'
819
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
842
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
868
869 ac_prev=
870 ac_dashdash=
871 for ac_option
872 do
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
878 fi
879
880 case $ac_option in
881 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *=) ac_optarg= ;;
883 *) ac_optarg=yes ;;
884 esac
885
886 # Accept the important Cygnus configure options, so we can diagnose typos.
887
888 case $ac_dashdash$ac_option in
889 --)
890 ac_dashdash=yes ;;
891
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
896
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
901
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
908
909 --config-cache | -C)
910 cache_file=config.cache ;;
911
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
916
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
923
924 -disable-* | --disable-*)
925 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928 as_fn_error $? "invalid feature name: $ac_useropt"
929 ac_useropt_orig=$ac_useropt
930 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931 case $ac_user_opts in
932 *"
933 "enable_$ac_useropt"
934 "*) ;;
935 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
936 ac_unrecognized_sep=', ';;
937 esac
938 eval enable_$ac_useropt=no ;;
939
940 -docdir | --docdir | --docdi | --doc | --do)
941 ac_prev=docdir ;;
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
943 docdir=$ac_optarg ;;
944
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 ac_prev=dvidir ;;
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
948 dvidir=$ac_optarg ;;
949
950 -enable-* | --enable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 as_fn_error $? "invalid feature name: $ac_useropt"
955 ac_useropt_orig=$ac_useropt
956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957 case $ac_user_opts in
958 *"
959 "enable_$ac_useropt"
960 "*) ;;
961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
962 ac_unrecognized_sep=', ';;
963 esac
964 eval enable_$ac_useropt=\$ac_optarg ;;
965
966 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
967 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
968 | --exec | --exe | --ex)
969 ac_prev=exec_prefix ;;
970 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
971 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
972 | --exec=* | --exe=* | --ex=*)
973 exec_prefix=$ac_optarg ;;
974
975 -gas | --gas | --ga | --g)
976 # Obsolete; use --with-gas.
977 with_gas=yes ;;
978
979 -help | --help | --hel | --he | -h)
980 ac_init_help=long ;;
981 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
982 ac_init_help=recursive ;;
983 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
984 ac_init_help=short ;;
985
986 -host | --host | --hos | --ho)
987 ac_prev=host_alias ;;
988 -host=* | --host=* | --hos=* | --ho=*)
989 host_alias=$ac_optarg ;;
990
991 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
992 ac_prev=htmldir ;;
993 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
994 | --ht=*)
995 htmldir=$ac_optarg ;;
996
997 -includedir | --includedir | --includedi | --included | --include \
998 | --includ | --inclu | --incl | --inc)
999 ac_prev=includedir ;;
1000 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1001 | --includ=* | --inclu=* | --incl=* | --inc=*)
1002 includedir=$ac_optarg ;;
1003
1004 -infodir | --infodir | --infodi | --infod | --info | --inf)
1005 ac_prev=infodir ;;
1006 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1007 infodir=$ac_optarg ;;
1008
1009 -libdir | --libdir | --libdi | --libd)
1010 ac_prev=libdir ;;
1011 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1012 libdir=$ac_optarg ;;
1013
1014 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1015 | --libexe | --libex | --libe)
1016 ac_prev=libexecdir ;;
1017 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1018 | --libexe=* | --libex=* | --libe=*)
1019 libexecdir=$ac_optarg ;;
1020
1021 -localedir | --localedir | --localedi | --localed | --locale)
1022 ac_prev=localedir ;;
1023 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1024 localedir=$ac_optarg ;;
1025
1026 -localstatedir | --localstatedir | --localstatedi | --localstated \
1027 | --localstate | --localstat | --localsta | --localst | --locals)
1028 ac_prev=localstatedir ;;
1029 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1030 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1031 localstatedir=$ac_optarg ;;
1032
1033 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1034 ac_prev=mandir ;;
1035 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1036 mandir=$ac_optarg ;;
1037
1038 -nfp | --nfp | --nf)
1039 # Obsolete; use --without-fp.
1040 with_fp=no ;;
1041
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n)
1044 no_create=yes ;;
1045
1046 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1047 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1048 no_recursion=yes ;;
1049
1050 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1051 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1052 | --oldin | --oldi | --old | --ol | --o)
1053 ac_prev=oldincludedir ;;
1054 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1055 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1056 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1057 oldincludedir=$ac_optarg ;;
1058
1059 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1060 ac_prev=prefix ;;
1061 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1062 prefix=$ac_optarg ;;
1063
1064 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1065 | --program-pre | --program-pr | --program-p)
1066 ac_prev=program_prefix ;;
1067 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1068 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1069 program_prefix=$ac_optarg ;;
1070
1071 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1072 | --program-suf | --program-su | --program-s)
1073 ac_prev=program_suffix ;;
1074 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1075 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1076 program_suffix=$ac_optarg ;;
1077
1078 -program-transform-name | --program-transform-name \
1079 | --program-transform-nam | --program-transform-na \
1080 | --program-transform-n | --program-transform- \
1081 | --program-transform | --program-transfor \
1082 | --program-transfo | --program-transf \
1083 | --program-trans | --program-tran \
1084 | --progr-tra | --program-tr | --program-t)
1085 ac_prev=program_transform_name ;;
1086 -program-transform-name=* | --program-transform-name=* \
1087 | --program-transform-nam=* | --program-transform-na=* \
1088 | --program-transform-n=* | --program-transform-=* \
1089 | --program-transform=* | --program-transfor=* \
1090 | --program-transfo=* | --program-transf=* \
1091 | --program-trans=* | --program-tran=* \
1092 | --progr-tra=* | --program-tr=* | --program-t=*)
1093 program_transform_name=$ac_optarg ;;
1094
1095 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1096 ac_prev=pdfdir ;;
1097 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1098 pdfdir=$ac_optarg ;;
1099
1100 -psdir | --psdir | --psdi | --psd | --ps)
1101 ac_prev=psdir ;;
1102 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1103 psdir=$ac_optarg ;;
1104
1105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1106 | -silent | --silent | --silen | --sile | --sil)
1107 silent=yes ;;
1108
1109 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1110 ac_prev=sbindir ;;
1111 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1112 | --sbi=* | --sb=*)
1113 sbindir=$ac_optarg ;;
1114
1115 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1116 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1117 | --sharedst | --shareds | --shared | --share | --shar \
1118 | --sha | --sh)
1119 ac_prev=sharedstatedir ;;
1120 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1121 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1122 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1123 | --sha=* | --sh=*)
1124 sharedstatedir=$ac_optarg ;;
1125
1126 -site | --site | --sit)
1127 ac_prev=site ;;
1128 -site=* | --site=* | --sit=*)
1129 site=$ac_optarg ;;
1130
1131 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1132 ac_prev=srcdir ;;
1133 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1134 srcdir=$ac_optarg ;;
1135
1136 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1137 | --syscon | --sysco | --sysc | --sys | --sy)
1138 ac_prev=sysconfdir ;;
1139 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1140 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1141 sysconfdir=$ac_optarg ;;
1142
1143 -target | --target | --targe | --targ | --tar | --ta | --t)
1144 ac_prev=target_alias ;;
1145 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1146 target_alias=$ac_optarg ;;
1147
1148 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1149 verbose=yes ;;
1150
1151 -version | --version | --versio | --versi | --vers | -V)
1152 ac_init_version=: ;;
1153
1154 -with-* | --with-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=\$ac_optarg ;;
1169
1170 -without-* | --without-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=no ;;
1185
1186 --x)
1187 # Obsolete; use --with-x.
1188 with_x=yes ;;
1189
1190 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1191 | --x-incl | --x-inc | --x-in | --x-i)
1192 ac_prev=x_includes ;;
1193 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1194 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1195 x_includes=$ac_optarg ;;
1196
1197 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1198 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1199 ac_prev=x_libraries ;;
1200 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1201 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1202 x_libraries=$ac_optarg ;;
1203
1204 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1205 Try \`$0 --help' for more information"
1206 ;;
1207
1208 *=*)
1209 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1210 # Reject names that are not valid shell variable names.
1211 case $ac_envvar in #(
1212 '' | [0-9]* | *[!_$as_cr_alnum]* )
1213 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1214 esac
1215 eval $ac_envvar=\$ac_optarg
1216 export $ac_envvar ;;
1217
1218 *)
1219 # FIXME: should be removed in autoconf 3.0.
1220 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1221 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1223 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1224 ;;
1225
1226 esac
1227 done
1228
1229 if test -n "$ac_prev"; then
1230 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1231 as_fn_error $? "missing argument to $ac_option"
1232 fi
1233
1234 if test -n "$ac_unrecognized_opts"; then
1235 case $enable_option_checking in
1236 no) ;;
1237 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1238 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1239 esac
1240 fi
1241
1242 # Check all directory arguments for consistency.
1243 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244 datadir sysconfdir sharedstatedir localstatedir includedir \
1245 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246 libdir localedir mandir
1247 do
1248 eval ac_val=\$$ac_var
1249 # Remove trailing slashes.
1250 case $ac_val in
1251 */ )
1252 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1253 eval $ac_var=\$ac_val;;
1254 esac
1255 # Be sure to have absolute directory names.
1256 case $ac_val in
1257 [\\/$]* | ?:[\\/]* ) continue;;
1258 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1259 esac
1260 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1261 done
1262
1263 # There might be people who depend on the old broken behavior: `$host'
1264 # used to hold the argument of --host etc.
1265 # FIXME: To remove some day.
1266 build=$build_alias
1267 host=$host_alias
1268 target=$target_alias
1269
1270 # FIXME: To remove some day.
1271 if test "x$host_alias" != x; then
1272 if test "x$build_alias" = x; then
1273 cross_compiling=maybe
1274 elif test "x$build_alias" != "x$host_alias"; then
1275 cross_compiling=yes
1276 fi
1277 fi
1278
1279 ac_tool_prefix=
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281
1282 test "$silent" = yes && exec 6>/dev/null
1283
1284
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 as_fn_error $? "working directory cannot be determined"
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 as_fn_error $? "pwd does not report name of working directory"
1291
1292
1293 # Find the source files, if location was not specified.
1294 if test -z "$srcdir"; then
1295 ac_srcdir_defaulted=yes
1296 # Try the directory containing this script, then the parent directory.
1297 ac_confdir=`$as_dirname -- "$as_myself" ||
1298 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1299 X"$as_myself" : 'X\(//\)[^/]' \| \
1300 X"$as_myself" : 'X\(//\)$' \| \
1301 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1302 $as_echo X"$as_myself" |
1303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1304 s//\1/
1305 q
1306 }
1307 /^X\(\/\/\)[^/].*/{
1308 s//\1/
1309 q
1310 }
1311 /^X\(\/\/\)$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\).*/{
1316 s//\1/
1317 q
1318 }
1319 s/.*/./; q'`
1320 srcdir=$ac_confdir
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 srcdir=..
1323 fi
1324 else
1325 ac_srcdir_defaulted=no
1326 fi
1327 if test ! -r "$srcdir/$ac_unique_file"; then
1328 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1329 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1330 fi
1331 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1332 ac_abs_confdir=`(
1333 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1334 pwd)`
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337 srcdir=.
1338 fi
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1342 case $srcdir in
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 esac
1345 for ac_var in $ac_precious_vars; do
1346 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_env_${ac_var}_value=\$${ac_var}
1348 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 done
1351
1352 #
1353 # Report the --help message.
1354 #
1355 if test "$ac_init_help" = "long"; then
1356 # Omit some internal or obsolete options to make the list less imposing.
1357 # This message is too long to be a string in the A/UX 3.1 sh.
1358 cat <<_ACEOF
1359 \`configure' configures libctf 1.2.0 to adapt to many kinds of systems.
1360
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE. See below for descriptions of some of the useful variables.
1365
1366 Defaults for the options are specified in brackets.
1367
1368 Configuration:
1369 -h, --help display this help and exit
1370 --help=short display options specific to this package
1371 --help=recursive display the short help of all the included packages
1372 -V, --version display version information and exit
1373 -q, --quiet, --silent do not print \`checking ...' messages
1374 --cache-file=FILE cache test results in FILE [disabled]
1375 -C, --config-cache alias for \`--cache-file=config.cache'
1376 -n, --no-create do not create output files
1377 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1378
1379 Installation directories:
1380 --prefix=PREFIX install architecture-independent files in PREFIX
1381 [$ac_default_prefix]
1382 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1383 [PREFIX]
1384
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1389
1390 For better control, use the options below.
1391
1392 Fine tuning of the installation directories:
1393 --bindir=DIR user executables [EPREFIX/bin]
1394 --sbindir=DIR system admin executables [EPREFIX/sbin]
1395 --libexecdir=DIR program executables [EPREFIX/libexec]
1396 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1397 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1398 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1399 --libdir=DIR object code libraries [EPREFIX/lib]
1400 --includedir=DIR C header files [PREFIX/include]
1401 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1402 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1403 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1404 --infodir=DIR info documentation [DATAROOTDIR/info]
1405 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1406 --mandir=DIR man documentation [DATAROOTDIR/man]
1407 --docdir=DIR documentation root [DATAROOTDIR/doc/libctf]
1408 --htmldir=DIR html documentation [DOCDIR]
1409 --dvidir=DIR dvi documentation [DOCDIR]
1410 --pdfdir=DIR pdf documentation [DOCDIR]
1411 --psdir=DIR ps documentation [DOCDIR]
1412 _ACEOF
1413
1414 cat <<\_ACEOF
1415
1416 Program names:
1417 --program-prefix=PREFIX prepend PREFIX to installed program names
1418 --program-suffix=SUFFIX append SUFFIX to installed program names
1419 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1420
1421 System types:
1422 --build=BUILD configure for building on BUILD [guessed]
1423 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1424 --target=TARGET configure for building compilers for TARGET [HOST]
1425 _ACEOF
1426 fi
1427
1428 if test -n "$ac_init_help"; then
1429 case $ac_init_help in
1430 short | recursive ) echo "Configuration of libctf 1.2.0:";;
1431 esac
1432 cat <<\_ACEOF
1433
1434 Optional Features:
1435 --disable-option-checking ignore unrecognized --enable/--with options
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1438 --enable-dependency-tracking
1439 do not reject slow dependency extractors
1440 --disable-dependency-tracking
1441 speeds up one-time build
1442 --enable-silent-rules less verbose build output (undo: "make V=1")
1443 --disable-silent-rules verbose build output (undo: "make V=0")
1444 --enable-shared[=PKGS] build shared libraries [default=no]
1445 --enable-static[=PKGS] build static libraries [default=yes]
1446 --enable-fast-install[=PKGS]
1447 optimize for fast installation [default=yes]
1448 --disable-libtool-lock avoid locking (might break parallel builds)
1449 --disable-largefile omit support for large files
1450 --enable-werror-always enable -Werror despite compiler version
1451 --enable-maintainer-mode
1452 enable make rules and dependencies not useful (and
1453 sometimes confusing) to the casual installer
1454 --enable-install-libbfd controls installation of libbfd and related headers
1455 --enable-libctf-hash-debugging
1456 Enable expensive debugging of CTF deduplication type
1457 hashing [default=no]
1458
1459 Optional Packages:
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1462 --with-pic try to use only PIC/non-PIC objects [default=use
1463 both]
1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1465 --with-system-zlib use installed libz
1466
1467 Some influential environment variables:
1468 CC C compiler command
1469 CFLAGS C compiler flags
1470 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1471 nonstandard directory <lib dir>
1472 LIBS libraries to pass to the linker, e.g. -l<library>
1473 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1474 you have headers in a nonstandard directory <include dir>
1475 CPP C preprocessor
1476
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1479
1480 Report bugs to the package provider.
1481 _ACEOF
1482 ac_status=$?
1483 fi
1484
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490 continue
1491 ac_builddir=.
1492
1493 case "$ac_dir" in
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *)
1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 esac ;;
1503 esac
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1508
1509 case $srcdir in
1510 .) # We are building in place.
1511 ac_srcdir=.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1518 *) # Relative name.
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522 esac
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1531 echo &&
1532 $SHELL "$ac_srcdir/configure" --help=recursive
1533 else
1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535 fi || ac_status=$?
1536 cd "$ac_pwd" || { ac_status=$?; break; }
1537 done
1538 fi
1539
1540 test -n "$ac_init_help" && exit $ac_status
1541 if $ac_init_version; then
1542 cat <<\_ACEOF
1543 libctf configure 1.2.0
1544 generated by GNU Autoconf 2.69
1545
1546 Copyright (C) 2012 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1549 _ACEOF
1550 exit
1551 fi
1552
1553 ## ------------------------ ##
1554 ## Autoconf initialization. ##
1555 ## ------------------------ ##
1556
1557 # ac_fn_c_try_compile LINENO
1558 # --------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_compile ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1565 case "(($ac_try" in
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1568 esac
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1572 ac_status=$?
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1577 fi
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1583 ac_retval=0
1584 else
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1587
1588 ac_retval=1
1589 fi
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status $ac_retval
1592
1593 } # ac_fn_c_try_compile
1594
1595 # ac_fn_c_try_cpp LINENO
1596 # ----------------------
1597 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_cpp ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_cpp conftest.$ac_ext"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1614 fi
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } > conftest.i && {
1617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1619 }; then :
1620 ac_retval=0
1621 else
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1624
1625 ac_retval=1
1626 fi
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1629
1630 } # ac_fn_c_try_cpp
1631
1632 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1633 # -------------------------------------------------------
1634 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1635 # the include files in INCLUDES and setting the cache variable VAR
1636 # accordingly.
1637 ac_fn_c_check_header_mongrel ()
1638 {
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if eval \${$3+:} false; then :
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 $as_echo_n "checking for $2... " >&6; }
1643 if eval \${$3+:} false; then :
1644 $as_echo_n "(cached) " >&6
1645 fi
1646 eval ac_res=\$$3
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 $as_echo "$ac_res" >&6; }
1649 else
1650 # Is the header compilable?
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1652 $as_echo_n "checking $2 usability... " >&6; }
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1655 $4
1656 #include <$2>
1657 _ACEOF
1658 if ac_fn_c_try_compile "$LINENO"; then :
1659 ac_header_compiler=yes
1660 else
1661 ac_header_compiler=no
1662 fi
1663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1665 $as_echo "$ac_header_compiler" >&6; }
1666
1667 # Is the header present?
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1669 $as_echo_n "checking $2 presence... " >&6; }
1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h. */
1672 #include <$2>
1673 _ACEOF
1674 if ac_fn_c_try_cpp "$LINENO"; then :
1675 ac_header_preproc=yes
1676 else
1677 ac_header_preproc=no
1678 fi
1679 rm -f conftest.err conftest.i conftest.$ac_ext
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1681 $as_echo "$ac_header_preproc" >&6; }
1682
1683 # So? What about this header?
1684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1685 yes:no: )
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1687 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1689 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1690 ;;
1691 no:yes:* )
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1693 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1695 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1697 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1699 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1701 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1702 ;;
1703 esac
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if eval \${$3+:} false; then :
1707 $as_echo_n "(cached) " >&6
1708 else
1709 eval "$3=\$ac_header_compiler"
1710 fi
1711 eval ac_res=\$$3
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713 $as_echo "$ac_res" >&6; }
1714 fi
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716
1717 } # ac_fn_c_check_header_mongrel
1718
1719 # ac_fn_c_try_run LINENO
1720 # ----------------------
1721 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1722 # that executables *can* be run.
1723 ac_fn_c_try_run ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 if { { ac_try="$ac_link"
1727 case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730 esac
1731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732 $as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1737 { { case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_try") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; }; }; then :
1747 ac_retval=0
1748 else
1749 $as_echo "$as_me: program exited with status $ac_status" >&5
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 ac_retval=$ac_status
1754 fi
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_run
1760
1761 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762 # -------------------------------------------------------
1763 # Tests whether HEADER exists and can be compiled using the include files in
1764 # INCLUDES, setting the cache variable VAR accordingly.
1765 ac_fn_c_check_header_compile ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if eval \${$3+:} false; then :
1771 $as_echo_n "(cached) " >&6
1772 else
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774 /* end confdefs.h. */
1775 $4
1776 #include <$2>
1777 _ACEOF
1778 if ac_fn_c_try_compile "$LINENO"; then :
1779 eval "$3=yes"
1780 else
1781 eval "$3=no"
1782 fi
1783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784 fi
1785 eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_header_compile
1791
1792 # ac_fn_c_try_link LINENO
1793 # -----------------------
1794 # Try to link conftest.$ac_ext, and return whether this succeeded.
1795 ac_fn_c_try_link ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext conftest$ac_exeext
1799 if { { ac_try="$ac_link"
1800 case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1812 fi
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest$ac_exeext && {
1818 test "$cross_compiling" = yes ||
1819 test -x conftest$ac_exeext
1820 }; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827 fi
1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830 # interfere with the next link command; also delete a directory that is
1831 # left behind by Apple's compiler. We do this before executing the actions.
1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 as_fn_set_status $ac_retval
1835
1836 } # ac_fn_c_try_link
1837
1838 # ac_fn_c_check_func LINENO FUNC VAR
1839 # ----------------------------------
1840 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1841 ac_fn_c_check_func ()
1842 {
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if eval \${$3+:} false; then :
1847 $as_echo_n "(cached) " >&6
1848 else
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1851 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1853 #define $2 innocuous_$2
1854
1855 /* System header to define __stub macros and hopefully few prototypes,
1856 which can conflict with char $2 (); below.
1857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1858 <limits.h> exists even on freestanding compilers. */
1859
1860 #ifdef __STDC__
1861 # include <limits.h>
1862 #else
1863 # include <assert.h>
1864 #endif
1865
1866 #undef $2
1867
1868 /* Override any GCC internal prototype to avoid an error.
1869 Use char because int might match the return type of a GCC
1870 builtin and then its argument prototype would still apply. */
1871 #ifdef __cplusplus
1872 extern "C"
1873 #endif
1874 char $2 ();
1875 /* The GNU C library defines this for functions which it implements
1876 to always fail with ENOSYS. Some functions are actually named
1877 something starting with __ and the normal name is an alias. */
1878 #if defined __stub_$2 || defined __stub___$2
1879 choke me
1880 #endif
1881
1882 int
1883 main ()
1884 {
1885 return $2 ();
1886 ;
1887 return 0;
1888 }
1889 _ACEOF
1890 if ac_fn_c_try_link "$LINENO"; then :
1891 eval "$3=yes"
1892 else
1893 eval "$3=no"
1894 fi
1895 rm -f core conftest.err conftest.$ac_objext \
1896 conftest$ac_exeext conftest.$ac_ext
1897 fi
1898 eval ac_res=\$$3
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 $as_echo "$ac_res" >&6; }
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902
1903 } # ac_fn_c_check_func
1904
1905 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1906 # ---------------------------------------------
1907 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1908 # accordingly.
1909 ac_fn_c_check_decl ()
1910 {
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 as_decl_name=`echo $2|sed 's/ *(.*//'`
1913 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1915 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1916 if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1918 else
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1921 $4
1922 int
1923 main ()
1924 {
1925 #ifndef $as_decl_name
1926 #ifdef __cplusplus
1927 (void) $as_decl_use;
1928 #else
1929 (void) $as_decl_name;
1930 #endif
1931 #endif
1932
1933 ;
1934 return 0;
1935 }
1936 _ACEOF
1937 if ac_fn_c_try_compile "$LINENO"; then :
1938 eval "$3=yes"
1939 else
1940 eval "$3=no"
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 fi
1944 eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948
1949 } # ac_fn_c_check_decl
1950 cat >config.log <<_ACEOF
1951 This file contains any messages produced by compilers while
1952 running configure, to aid debugging if configure makes a mistake.
1953
1954 It was created by libctf $as_me 1.2.0, which was
1955 generated by GNU Autoconf 2.69. Invocation command line was
1956
1957 $ $0 $@
1958
1959 _ACEOF
1960 exec 5>>config.log
1961 {
1962 cat <<_ASUNAME
1963 ## --------- ##
1964 ## Platform. ##
1965 ## --------- ##
1966
1967 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1968 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1969 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1970 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1971 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1972
1973 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1974 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1975
1976 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1977 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1978 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1979 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1980 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1981 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1982 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1983
1984 _ASUNAME
1985
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1988 do
1989 IFS=$as_save_IFS
1990 test -z "$as_dir" && as_dir=.
1991 $as_echo "PATH: $as_dir"
1992 done
1993 IFS=$as_save_IFS
1994
1995 } >&5
1996
1997 cat >&5 <<_ACEOF
1998
1999
2000 ## ----------- ##
2001 ## Core tests. ##
2002 ## ----------- ##
2003
2004 _ACEOF
2005
2006
2007 # Keep a trace of the command line.
2008 # Strip out --no-create and --no-recursion so they do not pile up.
2009 # Strip out --silent because we don't want to record it for future runs.
2010 # Also quote any args containing shell meta-characters.
2011 # Make two passes to allow for proper duplicate-argument suppression.
2012 ac_configure_args=
2013 ac_configure_args0=
2014 ac_configure_args1=
2015 ac_must_keep_next=false
2016 for ac_pass in 1 2
2017 do
2018 for ac_arg
2019 do
2020 case $ac_arg in
2021 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2023 | -silent | --silent | --silen | --sile | --sil)
2024 continue ;;
2025 *\'*)
2026 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2027 esac
2028 case $ac_pass in
2029 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2030 2)
2031 as_fn_append ac_configure_args1 " '$ac_arg'"
2032 if test $ac_must_keep_next = true; then
2033 ac_must_keep_next=false # Got value, back to normal.
2034 else
2035 case $ac_arg in
2036 *=* | --config-cache | -C | -disable-* | --disable-* \
2037 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2038 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2039 | -with-* | --with-* | -without-* | --without-* | --x)
2040 case "$ac_configure_args0 " in
2041 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2042 esac
2043 ;;
2044 -* ) ac_must_keep_next=true ;;
2045 esac
2046 fi
2047 as_fn_append ac_configure_args " '$ac_arg'"
2048 ;;
2049 esac
2050 done
2051 done
2052 { ac_configure_args0=; unset ac_configure_args0;}
2053 { ac_configure_args1=; unset ac_configure_args1;}
2054
2055 # When interrupted or exit'd, cleanup temporary files, and complete
2056 # config.log. We remove comments because anyway the quotes in there
2057 # would cause problems or look ugly.
2058 # WARNING: Use '\'' to represent an apostrophe within the trap.
2059 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2060 trap 'exit_status=$?
2061 # Save into config.log some information that might help in debugging.
2062 {
2063 echo
2064
2065 $as_echo "## ---------------- ##
2066 ## Cache variables. ##
2067 ## ---------------- ##"
2068 echo
2069 # The following way of writing the cache mishandles newlines in values,
2070 (
2071 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2072 eval ac_val=\$$ac_var
2073 case $ac_val in #(
2074 *${as_nl}*)
2075 case $ac_var in #(
2076 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2077 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2078 esac
2079 case $ac_var in #(
2080 _ | IFS | as_nl) ;; #(
2081 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2082 *) { eval $ac_var=; unset $ac_var;} ;;
2083 esac ;;
2084 esac
2085 done
2086 (set) 2>&1 |
2087 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2088 *${as_nl}ac_space=\ *)
2089 sed -n \
2090 "s/'\''/'\''\\\\'\'''\''/g;
2091 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2092 ;; #(
2093 *)
2094 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2095 ;;
2096 esac |
2097 sort
2098 )
2099 echo
2100
2101 $as_echo "## ----------------- ##
2102 ## Output variables. ##
2103 ## ----------------- ##"
2104 echo
2105 for ac_var in $ac_subst_vars
2106 do
2107 eval ac_val=\$$ac_var
2108 case $ac_val in
2109 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2110 esac
2111 $as_echo "$ac_var='\''$ac_val'\''"
2112 done | sort
2113 echo
2114
2115 if test -n "$ac_subst_files"; then
2116 $as_echo "## ------------------- ##
2117 ## File substitutions. ##
2118 ## ------------------- ##"
2119 echo
2120 for ac_var in $ac_subst_files
2121 do
2122 eval ac_val=\$$ac_var
2123 case $ac_val in
2124 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2125 esac
2126 $as_echo "$ac_var='\''$ac_val'\''"
2127 done | sort
2128 echo
2129 fi
2130
2131 if test -s confdefs.h; then
2132 $as_echo "## ----------- ##
2133 ## confdefs.h. ##
2134 ## ----------- ##"
2135 echo
2136 cat confdefs.h
2137 echo
2138 fi
2139 test "$ac_signal" != 0 &&
2140 $as_echo "$as_me: caught signal $ac_signal"
2141 $as_echo "$as_me: exit $exit_status"
2142 } >&5
2143 rm -f core *.core core.conftest.* &&
2144 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2145 exit $exit_status
2146 ' 0
2147 for ac_signal in 1 2 13 15; do
2148 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2149 done
2150 ac_signal=0
2151
2152 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2153 rm -f -r conftest* confdefs.h
2154
2155 $as_echo "/* confdefs.h */" > confdefs.h
2156
2157 # Predefined preprocessor variables.
2158
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_NAME "$PACKAGE_NAME"
2161 _ACEOF
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2165 _ACEOF
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2169 _ACEOF
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_STRING "$PACKAGE_STRING"
2173 _ACEOF
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2177 _ACEOF
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_URL "$PACKAGE_URL"
2181 _ACEOF
2182
2183
2184 # Let the site file select an alternate cache file if it wants to.
2185 # Prefer an explicitly selected file to automatically selected ones.
2186 ac_site_file1=NONE
2187 ac_site_file2=NONE
2188 if test -n "$CONFIG_SITE"; then
2189 # We do not want a PATH search for config.site.
2190 case $CONFIG_SITE in #((
2191 -*) ac_site_file1=./$CONFIG_SITE;;
2192 */*) ac_site_file1=$CONFIG_SITE;;
2193 *) ac_site_file1=./$CONFIG_SITE;;
2194 esac
2195 elif test "x$prefix" != xNONE; then
2196 ac_site_file1=$prefix/share/config.site
2197 ac_site_file2=$prefix/etc/config.site
2198 else
2199 ac_site_file1=$ac_default_prefix/share/config.site
2200 ac_site_file2=$ac_default_prefix/etc/config.site
2201 fi
2202 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2203 do
2204 test "x$ac_site_file" = xNONE && continue
2205 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2207 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2208 sed 's/^/| /' "$ac_site_file" >&5
2209 . "$ac_site_file" \
2210 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2212 as_fn_error $? "failed to load site script $ac_site_file
2213 See \`config.log' for more details" "$LINENO" 5; }
2214 fi
2215 done
2216
2217 if test -r "$cache_file"; then
2218 # Some versions of bash will fail to source /dev/null (special files
2219 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2220 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2222 $as_echo "$as_me: loading cache $cache_file" >&6;}
2223 case $cache_file in
2224 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2225 *) . "./$cache_file";;
2226 esac
2227 fi
2228 else
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2230 $as_echo "$as_me: creating cache $cache_file" >&6;}
2231 >$cache_file
2232 fi
2233
2234 as_fn_append ac_header_list " stdlib.h"
2235 as_fn_append ac_header_list " unistd.h"
2236 as_fn_append ac_header_list " sys/param.h"
2237 as_fn_append ac_func_list " qsort_r"
2238 # Check that the precious variables saved in the cache have kept the same
2239 # value.
2240 ac_cache_corrupted=false
2241 for ac_var in $ac_precious_vars; do
2242 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2243 eval ac_new_set=\$ac_env_${ac_var}_set
2244 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2245 eval ac_new_val=\$ac_env_${ac_var}_value
2246 case $ac_old_set,$ac_new_set in
2247 set,)
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2249 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2250 ac_cache_corrupted=: ;;
2251 ,set)
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2253 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2254 ac_cache_corrupted=: ;;
2255 ,);;
2256 *)
2257 if test "x$ac_old_val" != "x$ac_new_val"; then
2258 # differences in whitespace do not lead to failure.
2259 ac_old_val_w=`echo x $ac_old_val`
2260 ac_new_val_w=`echo x $ac_new_val`
2261 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2263 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2264 ac_cache_corrupted=:
2265 else
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2267 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2268 eval $ac_var=\$ac_old_val
2269 fi
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2271 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2273 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2274 fi;;
2275 esac
2276 # Pass precious variables to config.status.
2277 if test "$ac_new_set" = set; then
2278 case $ac_new_val in
2279 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2280 *) ac_arg=$ac_var=$ac_new_val ;;
2281 esac
2282 case " $ac_configure_args " in
2283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2284 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2285 esac
2286 fi
2287 done
2288 if $ac_cache_corrupted; then
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2292 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2293 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2294 fi
2295 ## -------------------- ##
2296 ## Main body of script. ##
2297 ## -------------------- ##
2298
2299 ac_ext=c
2300 ac_cpp='$CPP $CPPFLAGS'
2301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2304
2305
2306
2307
2308
2309
2310 ac_aux_dir=
2311 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2312 if test -f "$ac_dir/install-sh"; then
2313 ac_aux_dir=$ac_dir
2314 ac_install_sh="$ac_aux_dir/install-sh -c"
2315 break
2316 elif test -f "$ac_dir/install.sh"; then
2317 ac_aux_dir=$ac_dir
2318 ac_install_sh="$ac_aux_dir/install.sh -c"
2319 break
2320 elif test -f "$ac_dir/shtool"; then
2321 ac_aux_dir=$ac_dir
2322 ac_install_sh="$ac_aux_dir/shtool install -c"
2323 break
2324 fi
2325 done
2326 if test -z "$ac_aux_dir"; then
2327 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2328 fi
2329
2330 # These three variables are undocumented and unsupported,
2331 # and are intended to be withdrawn in a future Autoconf release.
2332 # They can cause serious problems if a builder's source tree is in a directory
2333 # whose full name contains unusual characters.
2334 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2335 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2336 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2337
2338
2339 # Make sure we can run config.sub.
2340 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2341 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2342
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2344 $as_echo_n "checking build system type... " >&6; }
2345 if ${ac_cv_build+:} false; then :
2346 $as_echo_n "(cached) " >&6
2347 else
2348 ac_build_alias=$build_alias
2349 test "x$ac_build_alias" = x &&
2350 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2351 test "x$ac_build_alias" = x &&
2352 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2353 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2354 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2355
2356 fi
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2358 $as_echo "$ac_cv_build" >&6; }
2359 case $ac_cv_build in
2360 *-*-*) ;;
2361 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2362 esac
2363 build=$ac_cv_build
2364 ac_save_IFS=$IFS; IFS='-'
2365 set x $ac_cv_build
2366 shift
2367 build_cpu=$1
2368 build_vendor=$2
2369 shift; shift
2370 # Remember, the first character of IFS is used to create $*,
2371 # except with old shells:
2372 build_os=$*
2373 IFS=$ac_save_IFS
2374 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2375
2376
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2378 $as_echo_n "checking host system type... " >&6; }
2379 if ${ac_cv_host+:} false; then :
2380 $as_echo_n "(cached) " >&6
2381 else
2382 if test "x$host_alias" = x; then
2383 ac_cv_host=$ac_cv_build
2384 else
2385 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2386 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2387 fi
2388
2389 fi
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2391 $as_echo "$ac_cv_host" >&6; }
2392 case $ac_cv_host in
2393 *-*-*) ;;
2394 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2395 esac
2396 host=$ac_cv_host
2397 ac_save_IFS=$IFS; IFS='-'
2398 set x $ac_cv_host
2399 shift
2400 host_cpu=$1
2401 host_vendor=$2
2402 shift; shift
2403 # Remember, the first character of IFS is used to create $*,
2404 # except with old shells:
2405 host_os=$*
2406 IFS=$ac_save_IFS
2407 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2408
2409
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2411 $as_echo_n "checking target system type... " >&6; }
2412 if ${ac_cv_target+:} false; then :
2413 $as_echo_n "(cached) " >&6
2414 else
2415 if test "x$target_alias" = x; then
2416 ac_cv_target=$ac_cv_host
2417 else
2418 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2419 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2420 fi
2421
2422 fi
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2424 $as_echo "$ac_cv_target" >&6; }
2425 case $ac_cv_target in
2426 *-*-*) ;;
2427 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2428 esac
2429 target=$ac_cv_target
2430 ac_save_IFS=$IFS; IFS='-'
2431 set x $ac_cv_target
2432 shift
2433 target_cpu=$1
2434 target_vendor=$2
2435 shift; shift
2436 # Remember, the first character of IFS is used to create $*,
2437 # except with old shells:
2438 target_os=$*
2439 IFS=$ac_save_IFS
2440 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2441
2442
2443 # The aliases save the names the user supplied, while $host etc.
2444 # will get canonicalized.
2445 test -n "$target_alias" &&
2446 test "$program_prefix$program_suffix$program_transform_name" = \
2447 NONENONEs,x,x, &&
2448 program_prefix=${target_alias}-
2449 # Expand $ac_aux_dir to an absolute path.
2450 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2451
2452 ac_ext=c
2453 ac_cpp='$CPP $CPPFLAGS'
2454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2457 if test -n "$ac_tool_prefix"; then
2458 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2459 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2461 $as_echo_n "checking for $ac_word... " >&6; }
2462 if ${ac_cv_prog_CC+:} false; then :
2463 $as_echo_n "(cached) " >&6
2464 else
2465 if test -n "$CC"; then
2466 ac_cv_prog_CC="$CC" # Let the user override the test.
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2475 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 break 2
2478 fi
2479 done
2480 done
2481 IFS=$as_save_IFS
2482
2483 fi
2484 fi
2485 CC=$ac_cv_prog_CC
2486 if test -n "$CC"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2488 $as_echo "$CC" >&6; }
2489 else
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2491 $as_echo "no" >&6; }
2492 fi
2493
2494
2495 fi
2496 if test -z "$ac_cv_prog_CC"; then
2497 ac_ct_CC=$CC
2498 # Extract the first word of "gcc", so it can be a program name with args.
2499 set dummy gcc; ac_word=$2
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501 $as_echo_n "checking for $ac_word... " >&6; }
2502 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 if test -n "$ac_ct_CC"; then
2506 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2515 ac_cv_prog_ac_ct_CC="gcc"
2516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 break 2
2518 fi
2519 done
2520 done
2521 IFS=$as_save_IFS
2522
2523 fi
2524 fi
2525 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2526 if test -n "$ac_ct_CC"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2528 $as_echo "$ac_ct_CC" >&6; }
2529 else
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2532 fi
2533
2534 if test "x$ac_ct_CC" = x; then
2535 CC=""
2536 else
2537 case $cross_compiling:$ac_tool_warned in
2538 yes:)
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2541 ac_tool_warned=yes ;;
2542 esac
2543 CC=$ac_ct_CC
2544 fi
2545 else
2546 CC="$ac_cv_prog_CC"
2547 fi
2548
2549 if test -z "$CC"; then
2550 if test -n "$ac_tool_prefix"; then
2551 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2552 set dummy ${ac_tool_prefix}cc; ac_word=$2
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if ${ac_cv_prog_CC+:} false; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568 ac_cv_prog_CC="${ac_tool_prefix}cc"
2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572 done
2573 done
2574 IFS=$as_save_IFS
2575
2576 fi
2577 fi
2578 CC=$ac_cv_prog_CC
2579 if test -n "$CC"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2581 $as_echo "$CC" >&6; }
2582 else
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584 $as_echo "no" >&6; }
2585 fi
2586
2587
2588 fi
2589 fi
2590 if test -z "$CC"; then
2591 # Extract the first word of "cc", so it can be a program name with args.
2592 set dummy cc; ac_word=$2
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if ${ac_cv_prog_CC+:} false; then :
2596 $as_echo_n "(cached) " >&6
2597 else
2598 if test -n "$CC"; then
2599 ac_cv_prog_CC="$CC" # Let the user override the test.
2600 else
2601 ac_prog_rejected=no
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2604 do
2605 IFS=$as_save_IFS
2606 test -z "$as_dir" && as_dir=.
2607 for ac_exec_ext in '' $ac_executable_extensions; do
2608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2610 ac_prog_rejected=yes
2611 continue
2612 fi
2613 ac_cv_prog_CC="cc"
2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 break 2
2616 fi
2617 done
2618 done
2619 IFS=$as_save_IFS
2620
2621 if test $ac_prog_rejected = yes; then
2622 # We found a bogon in the path, so make sure we never use it.
2623 set dummy $ac_cv_prog_CC
2624 shift
2625 if test $# != 0; then
2626 # We chose a different compiler from the bogus one.
2627 # However, it has the same basename, so the bogon will be chosen
2628 # first if we set CC to just the basename; use the full file name.
2629 shift
2630 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2631 fi
2632 fi
2633 fi
2634 fi
2635 CC=$ac_cv_prog_CC
2636 if test -n "$CC"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2638 $as_echo "$CC" >&6; }
2639 else
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641 $as_echo "no" >&6; }
2642 fi
2643
2644
2645 fi
2646 if test -z "$CC"; then
2647 if test -n "$ac_tool_prefix"; then
2648 for ac_prog in cl.exe
2649 do
2650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2651 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2653 $as_echo_n "checking for $ac_word... " >&6; }
2654 if ${ac_cv_prog_CC+:} false; then :
2655 $as_echo_n "(cached) " >&6
2656 else
2657 if test -n "$CC"; then
2658 ac_cv_prog_CC="$CC" # Let the user override the test.
2659 else
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH
2662 do
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2667 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 break 2
2670 fi
2671 done
2672 done
2673 IFS=$as_save_IFS
2674
2675 fi
2676 fi
2677 CC=$ac_cv_prog_CC
2678 if test -n "$CC"; then
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2680 $as_echo "$CC" >&6; }
2681 else
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2683 $as_echo "no" >&6; }
2684 fi
2685
2686
2687 test -n "$CC" && break
2688 done
2689 fi
2690 if test -z "$CC"; then
2691 ac_ct_CC=$CC
2692 for ac_prog in cl.exe
2693 do
2694 # Extract the first word of "$ac_prog", so it can be a program name with args.
2695 set dummy $ac_prog; ac_word=$2
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2697 $as_echo_n "checking for $ac_word... " >&6; }
2698 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2699 $as_echo_n "(cached) " >&6
2700 else
2701 if test -n "$ac_ct_CC"; then
2702 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2703 else
2704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 for as_dir in $PATH
2706 do
2707 IFS=$as_save_IFS
2708 test -z "$as_dir" && as_dir=.
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2711 ac_cv_prog_ac_ct_CC="$ac_prog"
2712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2713 break 2
2714 fi
2715 done
2716 done
2717 IFS=$as_save_IFS
2718
2719 fi
2720 fi
2721 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2722 if test -n "$ac_ct_CC"; then
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2724 $as_echo "$ac_ct_CC" >&6; }
2725 else
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2727 $as_echo "no" >&6; }
2728 fi
2729
2730
2731 test -n "$ac_ct_CC" && break
2732 done
2733
2734 if test "x$ac_ct_CC" = x; then
2735 CC=""
2736 else
2737 case $cross_compiling:$ac_tool_warned in
2738 yes:)
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2741 ac_tool_warned=yes ;;
2742 esac
2743 CC=$ac_ct_CC
2744 fi
2745 fi
2746
2747 fi
2748
2749
2750 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2752 as_fn_error $? "no acceptable C compiler found in \$PATH
2753 See \`config.log' for more details" "$LINENO" 5; }
2754
2755 # Provide some information about the compiler.
2756 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2757 set X $ac_compile
2758 ac_compiler=$2
2759 for ac_option in --version -v -V -qversion; do
2760 { { ac_try="$ac_compiler $ac_option >&5"
2761 case "(($ac_try" in
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2764 esac
2765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2766 $as_echo "$ac_try_echo"; } >&5
2767 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2768 ac_status=$?
2769 if test -s conftest.err; then
2770 sed '10a\
2771 ... rest of stderr output deleted ...
2772 10q' conftest.err >conftest.er1
2773 cat conftest.er1 >&5
2774 fi
2775 rm -f conftest.er1 conftest.err
2776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2777 test $ac_status = 0; }
2778 done
2779
2780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2781 /* end confdefs.h. */
2782
2783 int
2784 main ()
2785 {
2786
2787 ;
2788 return 0;
2789 }
2790 _ACEOF
2791 ac_clean_files_save=$ac_clean_files
2792 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2793 # Try to create an executable without -o first, disregard a.out.
2794 # It will help us diagnose broken compilers, and finding out an intuition
2795 # of exeext.
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2797 $as_echo_n "checking whether the C compiler works... " >&6; }
2798 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2799
2800 # The possible output files:
2801 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2802
2803 ac_rmfiles=
2804 for ac_file in $ac_files
2805 do
2806 case $ac_file in
2807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2808 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2809 esac
2810 done
2811 rm -f $ac_rmfiles
2812
2813 if { { ac_try="$ac_link_default"
2814 case "(($ac_try" in
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2817 esac
2818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2819 $as_echo "$ac_try_echo"; } >&5
2820 (eval "$ac_link_default") 2>&5
2821 ac_status=$?
2822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2823 test $ac_status = 0; }; then :
2824 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2825 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2826 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2827 # so that the user can short-circuit this test for compilers unknown to
2828 # Autoconf.
2829 for ac_file in $ac_files ''
2830 do
2831 test -f "$ac_file" || continue
2832 case $ac_file in
2833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2834 ;;
2835 [ab].out )
2836 # We found the default executable, but exeext='' is most
2837 # certainly right.
2838 break;;
2839 *.* )
2840 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2841 then :; else
2842 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2843 fi
2844 # We set ac_cv_exeext here because the later test for it is not
2845 # safe: cross compilers may not add the suffix if given an `-o'
2846 # argument, so we may need to know it at that point already.
2847 # Even if this section looks crufty: it has the advantage of
2848 # actually working.
2849 break;;
2850 * )
2851 break;;
2852 esac
2853 done
2854 test "$ac_cv_exeext" = no && ac_cv_exeext=
2855
2856 else
2857 ac_file=''
2858 fi
2859 if test -z "$ac_file"; then :
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2861 $as_echo "no" >&6; }
2862 $as_echo "$as_me: failed program was:" >&5
2863 sed 's/^/| /' conftest.$ac_ext >&5
2864
2865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2867 as_fn_error 77 "C compiler cannot create executables
2868 See \`config.log' for more details" "$LINENO" 5; }
2869 else
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2871 $as_echo "yes" >&6; }
2872 fi
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2874 $as_echo_n "checking for C compiler default output file name... " >&6; }
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2876 $as_echo "$ac_file" >&6; }
2877 ac_exeext=$ac_cv_exeext
2878
2879 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2880 ac_clean_files=$ac_clean_files_save
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2882 $as_echo_n "checking for suffix of executables... " >&6; }
2883 if { { ac_try="$ac_link"
2884 case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887 esac
2888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2889 $as_echo "$ac_try_echo"; } >&5
2890 (eval "$ac_link") 2>&5
2891 ac_status=$?
2892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2893 test $ac_status = 0; }; then :
2894 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2895 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2896 # work properly (i.e., refer to `conftest.exe'), while it won't with
2897 # `rm'.
2898 for ac_file in conftest.exe conftest conftest.*; do
2899 test -f "$ac_file" || continue
2900 case $ac_file in
2901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2902 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2903 break;;
2904 * ) break;;
2905 esac
2906 done
2907 else
2908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2910 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2911 See \`config.log' for more details" "$LINENO" 5; }
2912 fi
2913 rm -f conftest conftest$ac_cv_exeext
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2915 $as_echo "$ac_cv_exeext" >&6; }
2916
2917 rm -f conftest.$ac_ext
2918 EXEEXT=$ac_cv_exeext
2919 ac_exeext=$EXEEXT
2920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2921 /* end confdefs.h. */
2922 #include <stdio.h>
2923 int
2924 main ()
2925 {
2926 FILE *f = fopen ("conftest.out", "w");
2927 return ferror (f) || fclose (f) != 0;
2928
2929 ;
2930 return 0;
2931 }
2932 _ACEOF
2933 ac_clean_files="$ac_clean_files conftest.out"
2934 # Check that the compiler produces executables we can run. If not, either
2935 # the compiler is broken, or we cross compile.
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2937 $as_echo_n "checking whether we are cross compiling... " >&6; }
2938 if test "$cross_compiling" != yes; then
2939 { { ac_try="$ac_link"
2940 case "(($ac_try" in
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2943 esac
2944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2945 $as_echo "$ac_try_echo"; } >&5
2946 (eval "$ac_link") 2>&5
2947 ac_status=$?
2948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2949 test $ac_status = 0; }
2950 if { ac_try='./conftest$ac_cv_exeext'
2951 { { case "(($ac_try" in
2952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2954 esac
2955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2956 $as_echo "$ac_try_echo"; } >&5
2957 (eval "$ac_try") 2>&5
2958 ac_status=$?
2959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2960 test $ac_status = 0; }; }; then
2961 cross_compiling=no
2962 else
2963 if test "$cross_compiling" = maybe; then
2964 cross_compiling=yes
2965 else
2966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2968 as_fn_error $? "cannot run C compiled programs.
2969 If you meant to cross compile, use \`--host'.
2970 See \`config.log' for more details" "$LINENO" 5; }
2971 fi
2972 fi
2973 fi
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2975 $as_echo "$cross_compiling" >&6; }
2976
2977 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2978 ac_clean_files=$ac_clean_files_save
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2980 $as_echo_n "checking for suffix of object files... " >&6; }
2981 if ${ac_cv_objext+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2985 /* end confdefs.h. */
2986
2987 int
2988 main ()
2989 {
2990
2991 ;
2992 return 0;
2993 }
2994 _ACEOF
2995 rm -f conftest.o conftest.obj
2996 if { { ac_try="$ac_compile"
2997 case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000 esac
3001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3002 $as_echo "$ac_try_echo"; } >&5
3003 (eval "$ac_compile") 2>&5
3004 ac_status=$?
3005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3006 test $ac_status = 0; }; then :
3007 for ac_file in conftest.o conftest.obj conftest.*; do
3008 test -f "$ac_file" || continue;
3009 case $ac_file in
3010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3011 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3012 break;;
3013 esac
3014 done
3015 else
3016 $as_echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3018
3019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3021 as_fn_error $? "cannot compute suffix of object files: cannot compile
3022 See \`config.log' for more details" "$LINENO" 5; }
3023 fi
3024 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3025 fi
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3027 $as_echo "$ac_cv_objext" >&6; }
3028 OBJEXT=$ac_cv_objext
3029 ac_objext=$OBJEXT
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3031 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3032 if ${ac_cv_c_compiler_gnu+:} false; then :
3033 $as_echo_n "(cached) " >&6
3034 else
3035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036 /* end confdefs.h. */
3037
3038 int
3039 main ()
3040 {
3041 #ifndef __GNUC__
3042 choke me
3043 #endif
3044
3045 ;
3046 return 0;
3047 }
3048 _ACEOF
3049 if ac_fn_c_try_compile "$LINENO"; then :
3050 ac_compiler_gnu=yes
3051 else
3052 ac_compiler_gnu=no
3053 fi
3054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3056
3057 fi
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3059 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3060 if test $ac_compiler_gnu = yes; then
3061 GCC=yes
3062 else
3063 GCC=
3064 fi
3065 ac_test_CFLAGS=${CFLAGS+set}
3066 ac_save_CFLAGS=$CFLAGS
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3068 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3069 if ${ac_cv_prog_cc_g+:} false; then :
3070 $as_echo_n "(cached) " >&6
3071 else
3072 ac_save_c_werror_flag=$ac_c_werror_flag
3073 ac_c_werror_flag=yes
3074 ac_cv_prog_cc_g=no
3075 CFLAGS="-g"
3076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077 /* end confdefs.h. */
3078
3079 int
3080 main ()
3081 {
3082
3083 ;
3084 return 0;
3085 }
3086 _ACEOF
3087 if ac_fn_c_try_compile "$LINENO"; then :
3088 ac_cv_prog_cc_g=yes
3089 else
3090 CFLAGS=""
3091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3092 /* end confdefs.h. */
3093
3094 int
3095 main ()
3096 {
3097
3098 ;
3099 return 0;
3100 }
3101 _ACEOF
3102 if ac_fn_c_try_compile "$LINENO"; then :
3103
3104 else
3105 ac_c_werror_flag=$ac_save_c_werror_flag
3106 CFLAGS="-g"
3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3109
3110 int
3111 main ()
3112 {
3113
3114 ;
3115 return 0;
3116 }
3117 _ACEOF
3118 if ac_fn_c_try_compile "$LINENO"; then :
3119 ac_cv_prog_cc_g=yes
3120 fi
3121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3122 fi
3123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3124 fi
3125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3126 ac_c_werror_flag=$ac_save_c_werror_flag
3127 fi
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3129 $as_echo "$ac_cv_prog_cc_g" >&6; }
3130 if test "$ac_test_CFLAGS" = set; then
3131 CFLAGS=$ac_save_CFLAGS
3132 elif test $ac_cv_prog_cc_g = yes; then
3133 if test "$GCC" = yes; then
3134 CFLAGS="-g -O2"
3135 else
3136 CFLAGS="-g"
3137 fi
3138 else
3139 if test "$GCC" = yes; then
3140 CFLAGS="-O2"
3141 else
3142 CFLAGS=
3143 fi
3144 fi
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3146 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3147 if ${ac_cv_prog_cc_c89+:} false; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 ac_cv_prog_cc_c89=no
3151 ac_save_CC=$CC
3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153 /* end confdefs.h. */
3154 #include <stdarg.h>
3155 #include <stdio.h>
3156 struct stat;
3157 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3158 struct buf { int x; };
3159 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3160 static char *e (p, i)
3161 char **p;
3162 int i;
3163 {
3164 return p[i];
3165 }
3166 static char *f (char * (*g) (char **, int), char **p, ...)
3167 {
3168 char *s;
3169 va_list v;
3170 va_start (v,p);
3171 s = g (p, va_arg (v,int));
3172 va_end (v);
3173 return s;
3174 }
3175
3176 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3177 function prototypes and stuff, but not '\xHH' hex character constants.
3178 These don't provoke an error unfortunately, instead are silently treated
3179 as 'x'. The following induces an error, until -std is added to get
3180 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3181 array size at least. It's necessary to write '\x00'==0 to get something
3182 that's true only with -std. */
3183 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3184
3185 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3186 inside strings and character constants. */
3187 #define FOO(x) 'x'
3188 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3189
3190 int test (int i, double x);
3191 struct s1 {int (*f) (int a);};
3192 struct s2 {int (*f) (double a);};
3193 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3194 int argc;
3195 char **argv;
3196 int
3197 main ()
3198 {
3199 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3200 ;
3201 return 0;
3202 }
3203 _ACEOF
3204 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3205 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3206 do
3207 CC="$ac_save_CC $ac_arg"
3208 if ac_fn_c_try_compile "$LINENO"; then :
3209 ac_cv_prog_cc_c89=$ac_arg
3210 fi
3211 rm -f core conftest.err conftest.$ac_objext
3212 test "x$ac_cv_prog_cc_c89" != "xno" && break
3213 done
3214 rm -f conftest.$ac_ext
3215 CC=$ac_save_CC
3216
3217 fi
3218 # AC_CACHE_VAL
3219 case "x$ac_cv_prog_cc_c89" in
3220 x)
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3222 $as_echo "none needed" >&6; } ;;
3223 xno)
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3225 $as_echo "unsupported" >&6; } ;;
3226 *)
3227 CC="$CC $ac_cv_prog_cc_c89"
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3229 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3230 esac
3231 if test "x$ac_cv_prog_cc_c89" != xno; then :
3232
3233 fi
3234
3235 ac_ext=c
3236 ac_cpp='$CPP $CPPFLAGS'
3237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240
3241 ac_ext=c
3242 ac_cpp='$CPP $CPPFLAGS'
3243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3247 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3248 if ${am_cv_prog_cc_c_o+:} false; then :
3249 $as_echo_n "(cached) " >&6
3250 else
3251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252 /* end confdefs.h. */
3253
3254 int
3255 main ()
3256 {
3257
3258 ;
3259 return 0;
3260 }
3261 _ACEOF
3262 # Make sure it works both with $CC and with simple cc.
3263 # Following AC_PROG_CC_C_O, we do the test twice because some
3264 # compilers refuse to overwrite an existing .o file with -o,
3265 # though they will create one.
3266 am_cv_prog_cc_c_o=yes
3267 for am_i in 1 2; do
3268 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3269 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } \
3273 && test -f conftest2.$ac_objext; then
3274 : OK
3275 else
3276 am_cv_prog_cc_c_o=no
3277 break
3278 fi
3279 done
3280 rm -f core conftest*
3281 unset am_i
3282 fi
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3284 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3285 if test "$am_cv_prog_cc_c_o" != yes; then
3286 # Losing compiler, so override with the script.
3287 # FIXME: It is wrong to rewrite CC.
3288 # But if we don't then we get into trouble of one sort or another.
3289 # A longer-term fix would be to have automake use am__CC in this case,
3290 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3291 CC="$am_aux_dir/compile $CC"
3292 fi
3293 ac_ext=c
3294 ac_cpp='$CPP $CPPFLAGS'
3295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3298
3299
3300
3301 ac_ext=c
3302 ac_cpp='$CPP $CPPFLAGS'
3303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3307 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3308 # On Suns, sometimes $CPP names a directory.
3309 if test -n "$CPP" && test -d "$CPP"; then
3310 CPP=
3311 fi
3312 if test -z "$CPP"; then
3313 if ${ac_cv_prog_CPP+:} false; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 # Double quotes because CPP needs to be expanded
3317 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3318 do
3319 ac_preproc_ok=false
3320 for ac_c_preproc_warn_flag in '' yes
3321 do
3322 # Use a header file that comes with gcc, so configuring glibc
3323 # with a fresh cross-compiler works.
3324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3325 # <limits.h> exists even on freestanding compilers.
3326 # On the NeXT, cc -E runs the code through the compiler's parser,
3327 # not just through cpp. "Syntax error" is here to catch this case.
3328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h. */
3330 #ifdef __STDC__
3331 # include <limits.h>
3332 #else
3333 # include <assert.h>
3334 #endif
3335 Syntax error
3336 _ACEOF
3337 if ac_fn_c_try_cpp "$LINENO"; then :
3338
3339 else
3340 # Broken: fails on valid input.
3341 continue
3342 fi
3343 rm -f conftest.err conftest.i conftest.$ac_ext
3344
3345 # OK, works on sane cases. Now check whether nonexistent headers
3346 # can be detected and how.
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3349 #include <ac_nonexistent.h>
3350 _ACEOF
3351 if ac_fn_c_try_cpp "$LINENO"; then :
3352 # Broken: success on invalid input.
3353 continue
3354 else
3355 # Passes both tests.
3356 ac_preproc_ok=:
3357 break
3358 fi
3359 rm -f conftest.err conftest.i conftest.$ac_ext
3360
3361 done
3362 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3363 rm -f conftest.i conftest.err conftest.$ac_ext
3364 if $ac_preproc_ok; then :
3365 break
3366 fi
3367
3368 done
3369 ac_cv_prog_CPP=$CPP
3370
3371 fi
3372 CPP=$ac_cv_prog_CPP
3373 else
3374 ac_cv_prog_CPP=$CPP
3375 fi
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3377 $as_echo "$CPP" >&6; }
3378 ac_preproc_ok=false
3379 for ac_c_preproc_warn_flag in '' yes
3380 do
3381 # Use a header file that comes with gcc, so configuring glibc
3382 # with a fresh cross-compiler works.
3383 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3384 # <limits.h> exists even on freestanding compilers.
3385 # On the NeXT, cc -E runs the code through the compiler's parser,
3386 # not just through cpp. "Syntax error" is here to catch this case.
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3389 #ifdef __STDC__
3390 # include <limits.h>
3391 #else
3392 # include <assert.h>
3393 #endif
3394 Syntax error
3395 _ACEOF
3396 if ac_fn_c_try_cpp "$LINENO"; then :
3397
3398 else
3399 # Broken: fails on valid input.
3400 continue
3401 fi
3402 rm -f conftest.err conftest.i conftest.$ac_ext
3403
3404 # OK, works on sane cases. Now check whether nonexistent headers
3405 # can be detected and how.
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3408 #include <ac_nonexistent.h>
3409 _ACEOF
3410 if ac_fn_c_try_cpp "$LINENO"; then :
3411 # Broken: success on invalid input.
3412 continue
3413 else
3414 # Passes both tests.
3415 ac_preproc_ok=:
3416 break
3417 fi
3418 rm -f conftest.err conftest.i conftest.$ac_ext
3419
3420 done
3421 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3422 rm -f conftest.i conftest.err conftest.$ac_ext
3423 if $ac_preproc_ok; then :
3424
3425 else
3426 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3428 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3429 See \`config.log' for more details" "$LINENO" 5; }
3430 fi
3431
3432 ac_ext=c
3433 ac_cpp='$CPP $CPPFLAGS'
3434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3437
3438
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3440 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3441 if ${ac_cv_path_GREP+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 if test -z "$GREP"; then
3445 ac_path_GREP_found=false
3446 # Loop through the user's path and test for each of PROGNAME-LIST
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3449 do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_prog in grep ggrep; do
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3455 as_fn_executable_p "$ac_path_GREP" || continue
3456 # Check for GNU ac_path_GREP and select it if it is found.
3457 # Check for GNU $ac_path_GREP
3458 case `"$ac_path_GREP" --version 2>&1` in
3459 *GNU*)
3460 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3461 *)
3462 ac_count=0
3463 $as_echo_n 0123456789 >"conftest.in"
3464 while :
3465 do
3466 cat "conftest.in" "conftest.in" >"conftest.tmp"
3467 mv "conftest.tmp" "conftest.in"
3468 cp "conftest.in" "conftest.nl"
3469 $as_echo 'GREP' >> "conftest.nl"
3470 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3471 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3472 as_fn_arith $ac_count + 1 && ac_count=$as_val
3473 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3474 # Best one so far, save it but keep looking for a better one
3475 ac_cv_path_GREP="$ac_path_GREP"
3476 ac_path_GREP_max=$ac_count
3477 fi
3478 # 10*(2^10) chars as input seems more than enough
3479 test $ac_count -gt 10 && break
3480 done
3481 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3482 esac
3483
3484 $ac_path_GREP_found && break 3
3485 done
3486 done
3487 done
3488 IFS=$as_save_IFS
3489 if test -z "$ac_cv_path_GREP"; then
3490 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3491 fi
3492 else
3493 ac_cv_path_GREP=$GREP
3494 fi
3495
3496 fi
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3498 $as_echo "$ac_cv_path_GREP" >&6; }
3499 GREP="$ac_cv_path_GREP"
3500
3501
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3503 $as_echo_n "checking for egrep... " >&6; }
3504 if ${ac_cv_path_EGREP+:} false; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3508 then ac_cv_path_EGREP="$GREP -E"
3509 else
3510 if test -z "$EGREP"; then
3511 ac_path_EGREP_found=false
3512 # Loop through the user's path and test for each of PROGNAME-LIST
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3515 do
3516 IFS=$as_save_IFS
3517 test -z "$as_dir" && as_dir=.
3518 for ac_prog in egrep; do
3519 for ac_exec_ext in '' $ac_executable_extensions; do
3520 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3521 as_fn_executable_p "$ac_path_EGREP" || continue
3522 # Check for GNU ac_path_EGREP and select it if it is found.
3523 # Check for GNU $ac_path_EGREP
3524 case `"$ac_path_EGREP" --version 2>&1` in
3525 *GNU*)
3526 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3527 *)
3528 ac_count=0
3529 $as_echo_n 0123456789 >"conftest.in"
3530 while :
3531 do
3532 cat "conftest.in" "conftest.in" >"conftest.tmp"
3533 mv "conftest.tmp" "conftest.in"
3534 cp "conftest.in" "conftest.nl"
3535 $as_echo 'EGREP' >> "conftest.nl"
3536 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3538 as_fn_arith $ac_count + 1 && ac_count=$as_val
3539 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3540 # Best one so far, save it but keep looking for a better one
3541 ac_cv_path_EGREP="$ac_path_EGREP"
3542 ac_path_EGREP_max=$ac_count
3543 fi
3544 # 10*(2^10) chars as input seems more than enough
3545 test $ac_count -gt 10 && break
3546 done
3547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3548 esac
3549
3550 $ac_path_EGREP_found && break 3
3551 done
3552 done
3553 done
3554 IFS=$as_save_IFS
3555 if test -z "$ac_cv_path_EGREP"; then
3556 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3557 fi
3558 else
3559 ac_cv_path_EGREP=$EGREP
3560 fi
3561
3562 fi
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3565 $as_echo "$ac_cv_path_EGREP" >&6; }
3566 EGREP="$ac_cv_path_EGREP"
3567
3568
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3570 $as_echo_n "checking for ANSI C header files... " >&6; }
3571 if ${ac_cv_header_stdc+:} false; then :
3572 $as_echo_n "(cached) " >&6
3573 else
3574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3576 #include <stdlib.h>
3577 #include <stdarg.h>
3578 #include <string.h>
3579 #include <float.h>
3580
3581 int
3582 main ()
3583 {
3584
3585 ;
3586 return 0;
3587 }
3588 _ACEOF
3589 if ac_fn_c_try_compile "$LINENO"; then :
3590 ac_cv_header_stdc=yes
3591 else
3592 ac_cv_header_stdc=no
3593 fi
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595
3596 if test $ac_cv_header_stdc = yes; then
3597 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3600 #include <string.h>
3601
3602 _ACEOF
3603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3604 $EGREP "memchr" >/dev/null 2>&1; then :
3605
3606 else
3607 ac_cv_header_stdc=no
3608 fi
3609 rm -f conftest*
3610
3611 fi
3612
3613 if test $ac_cv_header_stdc = yes; then
3614 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h. */
3617 #include <stdlib.h>
3618
3619 _ACEOF
3620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3621 $EGREP "free" >/dev/null 2>&1; then :
3622
3623 else
3624 ac_cv_header_stdc=no
3625 fi
3626 rm -f conftest*
3627
3628 fi
3629
3630 if test $ac_cv_header_stdc = yes; then
3631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3632 if test "$cross_compiling" = yes; then :
3633 :
3634 else
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3637 #include <ctype.h>
3638 #include <stdlib.h>
3639 #if ((' ' & 0x0FF) == 0x020)
3640 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3641 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3642 #else
3643 # define ISLOWER(c) \
3644 (('a' <= (c) && (c) <= 'i') \
3645 || ('j' <= (c) && (c) <= 'r') \
3646 || ('s' <= (c) && (c) <= 'z'))
3647 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3648 #endif
3649
3650 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3651 int
3652 main ()
3653 {
3654 int i;
3655 for (i = 0; i < 256; i++)
3656 if (XOR (islower (i), ISLOWER (i))
3657 || toupper (i) != TOUPPER (i))
3658 return 2;
3659 return 0;
3660 }
3661 _ACEOF
3662 if ac_fn_c_try_run "$LINENO"; then :
3663
3664 else
3665 ac_cv_header_stdc=no
3666 fi
3667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3668 conftest.$ac_objext conftest.beam conftest.$ac_ext
3669 fi
3670
3671 fi
3672 fi
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3674 $as_echo "$ac_cv_header_stdc" >&6; }
3675 if test $ac_cv_header_stdc = yes; then
3676
3677 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3678
3679 fi
3680
3681 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3682 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3683 inttypes.h stdint.h unistd.h
3684 do :
3685 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3686 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3687 "
3688 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3689 cat >>confdefs.h <<_ACEOF
3690 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3691 _ACEOF
3692
3693 fi
3694
3695 done
3696
3697
3698
3699 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3700 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3701 MINIX=yes
3702 else
3703 MINIX=
3704 fi
3705
3706
3707 if test "$MINIX" = yes; then
3708
3709 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3710
3711
3712 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3713
3714
3715 $as_echo "#define _MINIX 1" >>confdefs.h
3716
3717 fi
3718
3719
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3721 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3722 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3723 $as_echo_n "(cached) " >&6
3724 else
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3727
3728 # define __EXTENSIONS__ 1
3729 $ac_includes_default
3730 int
3731 main ()
3732 {
3733
3734 ;
3735 return 0;
3736 }
3737 _ACEOF
3738 if ac_fn_c_try_compile "$LINENO"; then :
3739 ac_cv_safe_to_define___extensions__=yes
3740 else
3741 ac_cv_safe_to_define___extensions__=no
3742 fi
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 fi
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3746 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3747 test $ac_cv_safe_to_define___extensions__ = yes &&
3748 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3749
3750 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3751
3752 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3753
3754 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3755
3756 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3757
3758
3759 am__api_version='1.15'
3760
3761 # Find a good install program. We prefer a C program (faster),
3762 # so one script is as good as another. But avoid the broken or
3763 # incompatible versions:
3764 # SysV /etc/install, /usr/sbin/install
3765 # SunOS /usr/etc/install
3766 # IRIX /sbin/install
3767 # AIX /bin/install
3768 # AmigaOS /C/install, which installs bootblocks on floppy discs
3769 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3770 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3771 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3772 # OS/2's system install, which has a completely different semantic
3773 # ./install, which can be erroneously created by make from ./install.sh.
3774 # Reject install programs that cannot install multiple files.
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3776 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3777 if test -z "$INSTALL"; then
3778 if ${ac_cv_path_install+:} false; then :
3779 $as_echo_n "(cached) " >&6
3780 else
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 # Account for people who put trailing slashes in PATH elements.
3787 case $as_dir/ in #((
3788 ./ | .// | /[cC]/* | \
3789 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3790 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3791 /usr/ucb/* ) ;;
3792 *)
3793 # OSF1 and SCO ODT 3.0 have their own names for install.
3794 # Don't use installbsd from OSF since it installs stuff as root
3795 # by default.
3796 for ac_prog in ginstall scoinst install; do
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3799 if test $ac_prog = install &&
3800 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3801 # AIX install. It has an incompatible calling convention.
3802 :
3803 elif test $ac_prog = install &&
3804 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3805 # program-specific install script used by HP pwplus--don't use.
3806 :
3807 else
3808 rm -rf conftest.one conftest.two conftest.dir
3809 echo one > conftest.one
3810 echo two > conftest.two
3811 mkdir conftest.dir
3812 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3813 test -s conftest.one && test -s conftest.two &&
3814 test -s conftest.dir/conftest.one &&
3815 test -s conftest.dir/conftest.two
3816 then
3817 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3818 break 3
3819 fi
3820 fi
3821 fi
3822 done
3823 done
3824 ;;
3825 esac
3826
3827 done
3828 IFS=$as_save_IFS
3829
3830 rm -rf conftest.one conftest.two conftest.dir
3831
3832 fi
3833 if test "${ac_cv_path_install+set}" = set; then
3834 INSTALL=$ac_cv_path_install
3835 else
3836 # As a last resort, use the slow shell script. Don't cache a
3837 # value for INSTALL within a source directory, because that will
3838 # break other packages using the cache if that directory is
3839 # removed, or if the value is a relative name.
3840 INSTALL=$ac_install_sh
3841 fi
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3844 $as_echo "$INSTALL" >&6; }
3845
3846 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3847 # It thinks the first close brace ends the variable substitution.
3848 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3849
3850 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3851
3852 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3853
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3855 $as_echo_n "checking whether build environment is sane... " >&6; }
3856 # Reject unsafe characters in $srcdir or the absolute working directory
3857 # name. Accept space and tab only in the latter.
3858 am_lf='
3859 '
3860 case `pwd` in
3861 *[\\\"\#\$\&\'\`$am_lf]*)
3862 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3863 esac
3864 case $srcdir in
3865 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3866 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3867 esac
3868
3869 # Do 'set' in a subshell so we don't clobber the current shell's
3870 # arguments. Must try -L first in case configure is actually a
3871 # symlink; some systems play weird games with the mod time of symlinks
3872 # (eg FreeBSD returns the mod time of the symlink's containing
3873 # directory).
3874 if (
3875 am_has_slept=no
3876 for am_try in 1 2; do
3877 echo "timestamp, slept: $am_has_slept" > conftest.file
3878 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3879 if test "$*" = "X"; then
3880 # -L didn't work.
3881 set X `ls -t "$srcdir/configure" conftest.file`
3882 fi
3883 if test "$*" != "X $srcdir/configure conftest.file" \
3884 && test "$*" != "X conftest.file $srcdir/configure"; then
3885
3886 # If neither matched, then we have a broken ls. This can happen
3887 # if, for instance, CONFIG_SHELL is bash and it inherits a
3888 # broken ls alias from the environment. This has actually
3889 # happened. Such a system could not be considered "sane".
3890 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3891 alias in your environment" "$LINENO" 5
3892 fi
3893 if test "$2" = conftest.file || test $am_try -eq 2; then
3894 break
3895 fi
3896 # Just in case.
3897 sleep 1
3898 am_has_slept=yes
3899 done
3900 test "$2" = conftest.file
3901 )
3902 then
3903 # Ok.
3904 :
3905 else
3906 as_fn_error $? "newly created file is older than distributed files!
3907 Check your system clock" "$LINENO" 5
3908 fi
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3910 $as_echo "yes" >&6; }
3911 # If we didn't sleep, we still need to ensure time stamps of config.status and
3912 # generated files are strictly newer.
3913 am_sleep_pid=
3914 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3915 ( sleep 1 ) &
3916 am_sleep_pid=$!
3917 fi
3918
3919 rm -f conftest.file
3920
3921 test "$program_prefix" != NONE &&
3922 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3923 # Use a double $ so make ignores it.
3924 test "$program_suffix" != NONE &&
3925 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3926 # Double any \ or $.
3927 # By default was `s,x,x', remove it if useless.
3928 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3929 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3930
3931 if test x"${MISSING+set}" != xset; then
3932 case $am_aux_dir in
3933 *\ * | *\ *)
3934 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3935 *)
3936 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3937 esac
3938 fi
3939 # Use eval to expand $SHELL
3940 if eval "$MISSING --is-lightweight"; then
3941 am_missing_run="$MISSING "
3942 else
3943 am_missing_run=
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3945 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3946 fi
3947
3948 if test x"${install_sh+set}" != xset; then
3949 case $am_aux_dir in
3950 *\ * | *\ *)
3951 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3952 *)
3953 install_sh="\${SHELL} $am_aux_dir/install-sh"
3954 esac
3955 fi
3956
3957 # Installed binaries are usually stripped using 'strip' when the user
3958 # run "make install-strip". However 'strip' might not be the right
3959 # tool to use in cross-compilation environments, therefore Automake
3960 # will honor the 'STRIP' environment variable to overrule this program.
3961 if test "$cross_compiling" != no; then
3962 if test -n "$ac_tool_prefix"; then
3963 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3964 set dummy ${ac_tool_prefix}strip; ac_word=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if ${ac_cv_prog_STRIP+:} false; then :
3968 $as_echo_n "(cached) " >&6
3969 else
3970 if test -n "$STRIP"; then
3971 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3972 else
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH
3975 do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 break 2
3983 fi
3984 done
3985 done
3986 IFS=$as_save_IFS
3987
3988 fi
3989 fi
3990 STRIP=$ac_cv_prog_STRIP
3991 if test -n "$STRIP"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3993 $as_echo "$STRIP" >&6; }
3994 else
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
3997 fi
3998
3999
4000 fi
4001 if test -z "$ac_cv_prog_STRIP"; then
4002 ac_ct_STRIP=$STRIP
4003 # Extract the first word of "strip", so it can be a program name with args.
4004 set dummy strip; ac_word=$2
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 if test -n "$ac_ct_STRIP"; then
4011 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4012 else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH
4015 do
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_prog_ac_ct_STRIP="strip"
4021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 break 2
4023 fi
4024 done
4025 done
4026 IFS=$as_save_IFS
4027
4028 fi
4029 fi
4030 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4031 if test -n "$ac_ct_STRIP"; then
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4033 $as_echo "$ac_ct_STRIP" >&6; }
4034 else
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4037 fi
4038
4039 if test "x$ac_ct_STRIP" = x; then
4040 STRIP=":"
4041 else
4042 case $cross_compiling:$ac_tool_warned in
4043 yes:)
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4046 ac_tool_warned=yes ;;
4047 esac
4048 STRIP=$ac_ct_STRIP
4049 fi
4050 else
4051 STRIP="$ac_cv_prog_STRIP"
4052 fi
4053
4054 fi
4055 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4056
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4058 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4059 if test -z "$MKDIR_P"; then
4060 if ${ac_cv_path_mkdir+:} false; then :
4061 $as_echo_n "(cached) " >&6
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4065 do
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 for ac_prog in mkdir gmkdir; do
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4071 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4072 'mkdir (GNU coreutils) '* | \
4073 'mkdir (coreutils) '* | \
4074 'mkdir (fileutils) '4.1*)
4075 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4076 break 3;;
4077 esac
4078 done
4079 done
4080 done
4081 IFS=$as_save_IFS
4082
4083 fi
4084
4085 test -d ./--version && rmdir ./--version
4086 if test "${ac_cv_path_mkdir+set}" = set; then
4087 MKDIR_P="$ac_cv_path_mkdir -p"
4088 else
4089 # As a last resort, use the slow shell script. Don't cache a
4090 # value for MKDIR_P within a source directory, because that will
4091 # break other packages using the cache if that directory is
4092 # removed, or if the value is a relative name.
4093 MKDIR_P="$ac_install_sh -d"
4094 fi
4095 fi
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4097 $as_echo "$MKDIR_P" >&6; }
4098
4099 for ac_prog in gawk mawk nawk awk
4100 do
4101 # Extract the first word of "$ac_prog", so it can be a program name with args.
4102 set dummy $ac_prog; ac_word=$2
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104 $as_echo_n "checking for $ac_word... " >&6; }
4105 if ${ac_cv_prog_AWK+:} false; then :
4106 $as_echo_n "(cached) " >&6
4107 else
4108 if test -n "$AWK"; then
4109 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4110 else
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH
4113 do
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4118 ac_cv_prog_AWK="$ac_prog"
4119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 break 2
4121 fi
4122 done
4123 done
4124 IFS=$as_save_IFS
4125
4126 fi
4127 fi
4128 AWK=$ac_cv_prog_AWK
4129 if test -n "$AWK"; then
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4131 $as_echo "$AWK" >&6; }
4132 else
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134 $as_echo "no" >&6; }
4135 fi
4136
4137
4138 test -n "$AWK" && break
4139 done
4140
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4142 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4143 set x ${MAKE-make}
4144 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4145 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4146 $as_echo_n "(cached) " >&6
4147 else
4148 cat >conftest.make <<\_ACEOF
4149 SHELL = /bin/sh
4150 all:
4151 @echo '@@@%%%=$(MAKE)=@@@%%%'
4152 _ACEOF
4153 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4154 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4155 *@@@%%%=?*=@@@%%%*)
4156 eval ac_cv_prog_make_${ac_make}_set=yes;;
4157 *)
4158 eval ac_cv_prog_make_${ac_make}_set=no;;
4159 esac
4160 rm -f conftest.make
4161 fi
4162 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4164 $as_echo "yes" >&6; }
4165 SET_MAKE=
4166 else
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168 $as_echo "no" >&6; }
4169 SET_MAKE="MAKE=${MAKE-make}"
4170 fi
4171
4172 rm -rf .tst 2>/dev/null
4173 mkdir .tst 2>/dev/null
4174 if test -d .tst; then
4175 am__leading_dot=.
4176 else
4177 am__leading_dot=_
4178 fi
4179 rmdir .tst 2>/dev/null
4180
4181 DEPDIR="${am__leading_dot}deps"
4182
4183 ac_config_commands="$ac_config_commands depfiles"
4184
4185
4186 am_make=${MAKE-make}
4187 cat > confinc << 'END'
4188 am__doit:
4189 @echo this is the am__doit target
4190 .PHONY: am__doit
4191 END
4192 # If we don't find an include directive, just comment out the code.
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4194 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4195 am__include="#"
4196 am__quote=
4197 _am_result=none
4198 # First try GNU make style include.
4199 echo "include confinc" > confmf
4200 # Ignore all kinds of additional output from 'make'.
4201 case `$am_make -s -f confmf 2> /dev/null` in #(
4202 *the\ am__doit\ target*)
4203 am__include=include
4204 am__quote=
4205 _am_result=GNU
4206 ;;
4207 esac
4208 # Now try BSD make style include.
4209 if test "$am__include" = "#"; then
4210 echo '.include "confinc"' > confmf
4211 case `$am_make -s -f confmf 2> /dev/null` in #(
4212 *the\ am__doit\ target*)
4213 am__include=.include
4214 am__quote="\""
4215 _am_result=BSD
4216 ;;
4217 esac
4218 fi
4219
4220
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4222 $as_echo "$_am_result" >&6; }
4223 rm -f confinc confmf
4224
4225 # Check whether --enable-dependency-tracking was given.
4226 if test "${enable_dependency_tracking+set}" = set; then :
4227 enableval=$enable_dependency_tracking;
4228 fi
4229
4230 if test "x$enable_dependency_tracking" != xno; then
4231 am_depcomp="$ac_aux_dir/depcomp"
4232 AMDEPBACKSLASH='\'
4233 am__nodep='_no'
4234 fi
4235 if test "x$enable_dependency_tracking" != xno; then
4236 AMDEP_TRUE=
4237 AMDEP_FALSE='#'
4238 else
4239 AMDEP_TRUE='#'
4240 AMDEP_FALSE=
4241 fi
4242
4243
4244 # Check whether --enable-silent-rules was given.
4245 if test "${enable_silent_rules+set}" = set; then :
4246 enableval=$enable_silent_rules;
4247 fi
4248
4249 case $enable_silent_rules in # (((
4250 yes) AM_DEFAULT_VERBOSITY=0;;
4251 no) AM_DEFAULT_VERBOSITY=1;;
4252 *) AM_DEFAULT_VERBOSITY=1;;
4253 esac
4254 am_make=${MAKE-make}
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4256 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4257 if ${am_cv_make_support_nested_variables+:} false; then :
4258 $as_echo_n "(cached) " >&6
4259 else
4260 if $as_echo 'TRUE=$(BAR$(V))
4261 BAR0=false
4262 BAR1=true
4263 V=1
4264 am__doit:
4265 @$(TRUE)
4266 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4267 am_cv_make_support_nested_variables=yes
4268 else
4269 am_cv_make_support_nested_variables=no
4270 fi
4271 fi
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4273 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4274 if test $am_cv_make_support_nested_variables = yes; then
4275 AM_V='$(V)'
4276 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4277 else
4278 AM_V=$AM_DEFAULT_VERBOSITY
4279 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4280 fi
4281 AM_BACKSLASH='\'
4282
4283 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4284 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4285 # is not polluted with repeated "-I."
4286 am__isrc=' -I$(srcdir)'
4287 # test to see if srcdir already configured
4288 if test -f $srcdir/config.status; then
4289 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4290 fi
4291 fi
4292
4293 # test whether we have cygpath
4294 if test -z "$CYGPATH_W"; then
4295 if (cygpath --version) >/dev/null 2>/dev/null; then
4296 CYGPATH_W='cygpath -w'
4297 else
4298 CYGPATH_W=echo
4299 fi
4300 fi
4301
4302
4303 # Define the identity of the package.
4304 PACKAGE='libctf'
4305 VERSION='1.2.0'
4306
4307
4308 cat >>confdefs.h <<_ACEOF
4309 #define PACKAGE "$PACKAGE"
4310 _ACEOF
4311
4312
4313 cat >>confdefs.h <<_ACEOF
4314 #define VERSION "$VERSION"
4315 _ACEOF
4316
4317 # Some tools Automake needs.
4318
4319 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4320
4321
4322 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4323
4324
4325 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4326
4327
4328 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4329
4330
4331 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4332
4333 # For better backward compatibility. To be removed once Automake 1.9.x
4334 # dies out for good. For more background, see:
4335 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4336 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4337 mkdir_p='$(MKDIR_P)'
4338
4339 # We need awk for the "check" target (and possibly the TAP driver). The
4340 # system "awk" is bad on some platforms.
4341 # Always define AMTAR for backward compatibility. Yes, it's still used
4342 # in the wild :-( We should find a proper way to deprecate it ...
4343 AMTAR='$${TAR-tar}'
4344
4345
4346 # We'll loop over all known methods to create a tar archive until one works.
4347 _am_tools='gnutar pax cpio none'
4348
4349 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4350
4351
4352
4353
4354
4355 depcc="$CC" am_compiler_list=
4356
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4358 $as_echo_n "checking dependency style of $depcc... " >&6; }
4359 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4363 # We make a subdir and do the tests there. Otherwise we can end up
4364 # making bogus files that we don't know about and never remove. For
4365 # instance it was reported that on HP-UX the gcc test will end up
4366 # making a dummy file named 'D' -- because '-MD' means "put the output
4367 # in D".
4368 rm -rf conftest.dir
4369 mkdir conftest.dir
4370 # Copy depcomp to subdir because otherwise we won't find it if we're
4371 # using a relative directory.
4372 cp "$am_depcomp" conftest.dir
4373 cd conftest.dir
4374 # We will build objects and dependencies in a subdirectory because
4375 # it helps to detect inapplicable dependency modes. For instance
4376 # both Tru64's cc and ICC support -MD to output dependencies as a
4377 # side effect of compilation, but ICC will put the dependencies in
4378 # the current directory while Tru64 will put them in the object
4379 # directory.
4380 mkdir sub
4381
4382 am_cv_CC_dependencies_compiler_type=none
4383 if test "$am_compiler_list" = ""; then
4384 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4385 fi
4386 am__universal=false
4387 case " $depcc " in #(
4388 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4389 esac
4390
4391 for depmode in $am_compiler_list; do
4392 # Setup a source with many dependencies, because some compilers
4393 # like to wrap large dependency lists on column 80 (with \), and
4394 # we should not choose a depcomp mode which is confused by this.
4395 #
4396 # We need to recreate these files for each test, as the compiler may
4397 # overwrite some of them when testing with obscure command lines.
4398 # This happens at least with the AIX C compiler.
4399 : > sub/conftest.c
4400 for i in 1 2 3 4 5 6; do
4401 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4402 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4403 # Solaris 10 /bin/sh.
4404 echo '/* dummy */' > sub/conftst$i.h
4405 done
4406 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4407
4408 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4409 # mode. It turns out that the SunPro C++ compiler does not properly
4410 # handle '-M -o', and we need to detect this. Also, some Intel
4411 # versions had trouble with output in subdirs.
4412 am__obj=sub/conftest.${OBJEXT-o}
4413 am__minus_obj="-o $am__obj"
4414 case $depmode in
4415 gcc)
4416 # This depmode causes a compiler race in universal mode.
4417 test "$am__universal" = false || continue
4418 ;;
4419 nosideeffect)
4420 # After this tag, mechanisms are not by side-effect, so they'll
4421 # only be used when explicitly requested.
4422 if test "x$enable_dependency_tracking" = xyes; then
4423 continue
4424 else
4425 break
4426 fi
4427 ;;
4428 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4429 # This compiler won't grok '-c -o', but also, the minuso test has
4430 # not run yet. These depmodes are late enough in the game, and
4431 # so weak that their functioning should not be impacted.
4432 am__obj=conftest.${OBJEXT-o}
4433 am__minus_obj=
4434 ;;
4435 none) break ;;
4436 esac
4437 if depmode=$depmode \
4438 source=sub/conftest.c object=$am__obj \
4439 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4440 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4441 >/dev/null 2>conftest.err &&
4442 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4443 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4444 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4445 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4446 # icc doesn't choke on unknown options, it will just issue warnings
4447 # or remarks (even with -Werror). So we grep stderr for any message
4448 # that says an option was ignored or not supported.
4449 # When given -MP, icc 7.0 and 7.1 complain thusly:
4450 # icc: Command line warning: ignoring option '-M'; no argument required
4451 # The diagnosis changed in icc 8.0:
4452 # icc: Command line remark: option '-MP' not supported
4453 if (grep 'ignoring option' conftest.err ||
4454 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4455 am_cv_CC_dependencies_compiler_type=$depmode
4456 break
4457 fi
4458 fi
4459 done
4460
4461 cd ..
4462 rm -rf conftest.dir
4463 else
4464 am_cv_CC_dependencies_compiler_type=none
4465 fi
4466
4467 fi
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4469 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4470 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4471
4472 if
4473 test "x$enable_dependency_tracking" != xno \
4474 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4475 am__fastdepCC_TRUE=
4476 am__fastdepCC_FALSE='#'
4477 else
4478 am__fastdepCC_TRUE='#'
4479 am__fastdepCC_FALSE=
4480 fi
4481
4482
4483
4484 # POSIX will say in a future version that running "rm -f" with no argument
4485 # is OK; and we want to be able to make that assumption in our Makefile
4486 # recipes. So use an aggressive probe to check that the usage we want is
4487 # actually supported "in the wild" to an acceptable degree.
4488 # See automake bug#10828.
4489 # To make any issue more visible, cause the running configure to be aborted
4490 # by default if the 'rm' program in use doesn't match our expectations; the
4491 # user can still override this though.
4492 if rm -f && rm -fr && rm -rf; then : OK; else
4493 cat >&2 <<'END'
4494 Oops!
4495
4496 Your 'rm' program seems unable to run without file operands specified
4497 on the command line, even when the '-f' option is present. This is contrary
4498 to the behaviour of most rm programs out there, and not conforming with
4499 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4500
4501 Please tell bug-automake@gnu.org about your system, including the value
4502 of your $PATH and any error possibly output before this message. This
4503 can help us improve future automake versions.
4504
4505 END
4506 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4507 echo 'Configuration will proceed anyway, since you have set the' >&2
4508 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4509 echo >&2
4510 else
4511 cat >&2 <<'END'
4512 Aborting the configuration process, to ensure you take notice of the issue.
4513
4514 You can download and install GNU coreutils to get an 'rm' implementation
4515 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4516
4517 If you want to complete the configuration process using your problematic
4518 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4519 to "yes", and re-run configure.
4520
4521 END
4522 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4523 fi
4524 fi
4525
4526 # Check whether --enable-silent-rules was given.
4527 if test "${enable_silent_rules+set}" = set; then :
4528 enableval=$enable_silent_rules;
4529 fi
4530
4531 case $enable_silent_rules in # (((
4532 yes) AM_DEFAULT_VERBOSITY=0;;
4533 no) AM_DEFAULT_VERBOSITY=1;;
4534 *) AM_DEFAULT_VERBOSITY=0;;
4535 esac
4536 am_make=${MAKE-make}
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4538 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4539 if ${am_cv_make_support_nested_variables+:} false; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 if $as_echo 'TRUE=$(BAR$(V))
4543 BAR0=false
4544 BAR1=true
4545 V=1
4546 am__doit:
4547 @$(TRUE)
4548 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4549 am_cv_make_support_nested_variables=yes
4550 else
4551 am_cv_make_support_nested_variables=no
4552 fi
4553 fi
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4555 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4556 if test $am_cv_make_support_nested_variables = yes; then
4557 AM_V='$(V)'
4558 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4559 else
4560 AM_V=$AM_DEFAULT_VERBOSITY
4561 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4562 fi
4563 AM_BACKSLASH='\'
4564
4565
4566 # Checks for programs.
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4568 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4569 set x ${MAKE-make}
4570 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4571 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 cat >conftest.make <<\_ACEOF
4575 SHELL = /bin/sh
4576 all:
4577 @echo '@@@%%%=$(MAKE)=@@@%%%'
4578 _ACEOF
4579 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4580 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4581 *@@@%%%=?*=@@@%%%*)
4582 eval ac_cv_prog_make_${ac_make}_set=yes;;
4583 *)
4584 eval ac_cv_prog_make_${ac_make}_set=no;;
4585 esac
4586 rm -f conftest.make
4587 fi
4588 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4590 $as_echo "yes" >&6; }
4591 SET_MAKE=
4592 else
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 $as_echo "no" >&6; }
4595 SET_MAKE="MAKE=${MAKE-make}"
4596 fi
4597
4598 ac_ext=c
4599 ac_cpp='$CPP $CPPFLAGS'
4600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4603 if test -n "$ac_tool_prefix"; then
4604 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4605 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4607 $as_echo_n "checking for $ac_word... " >&6; }
4608 if ${ac_cv_prog_CC+:} false; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 if test -n "$CC"; then
4612 ac_cv_prog_CC="$CC" # Let the user override the test.
4613 else
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 break 2
4624 fi
4625 done
4626 done
4627 IFS=$as_save_IFS
4628
4629 fi
4630 fi
4631 CC=$ac_cv_prog_CC
4632 if test -n "$CC"; then
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4634 $as_echo "$CC" >&6; }
4635 else
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4638 fi
4639
4640
4641 fi
4642 if test -z "$ac_cv_prog_CC"; then
4643 ac_ct_CC=$CC
4644 # Extract the first word of "gcc", so it can be a program name with args.
4645 set dummy gcc; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 if test -n "$ac_ct_CC"; then
4652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4661 ac_cv_prog_ac_ct_CC="gcc"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4664 fi
4665 done
4666 done
4667 IFS=$as_save_IFS
4668
4669 fi
4670 fi
4671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4672 if test -n "$ac_ct_CC"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4674 $as_echo "$ac_ct_CC" >&6; }
4675 else
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4678 fi
4679
4680 if test "x$ac_ct_CC" = x; then
4681 CC=""
4682 else
4683 case $cross_compiling:$ac_tool_warned in
4684 yes:)
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4687 ac_tool_warned=yes ;;
4688 esac
4689 CC=$ac_ct_CC
4690 fi
4691 else
4692 CC="$ac_cv_prog_CC"
4693 fi
4694
4695 if test -z "$CC"; then
4696 if test -n "$ac_tool_prefix"; then
4697 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4698 set dummy ${ac_tool_prefix}cc; ac_word=$2
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4700 $as_echo_n "checking for $ac_word... " >&6; }
4701 if ${ac_cv_prog_CC+:} false; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 if test -n "$CC"; then
4705 ac_cv_prog_CC="$CC" # Let the user override the test.
4706 else
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710 IFS=$as_save_IFS
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4714 ac_cv_prog_CC="${ac_tool_prefix}cc"
4715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 break 2
4717 fi
4718 done
4719 done
4720 IFS=$as_save_IFS
4721
4722 fi
4723 fi
4724 CC=$ac_cv_prog_CC
4725 if test -n "$CC"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4727 $as_echo "$CC" >&6; }
4728 else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4730 $as_echo "no" >&6; }
4731 fi
4732
4733
4734 fi
4735 fi
4736 if test -z "$CC"; then
4737 # Extract the first word of "cc", so it can be a program name with args.
4738 set dummy cc; ac_word=$2
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 $as_echo_n "checking for $ac_word... " >&6; }
4741 if ${ac_cv_prog_CC+:} false; then :
4742 $as_echo_n "(cached) " >&6
4743 else
4744 if test -n "$CC"; then
4745 ac_cv_prog_CC="$CC" # Let the user override the test.
4746 else
4747 ac_prog_rejected=no
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4750 do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4755 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4756 ac_prog_rejected=yes
4757 continue
4758 fi
4759 ac_cv_prog_CC="cc"
4760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 break 2
4762 fi
4763 done
4764 done
4765 IFS=$as_save_IFS
4766
4767 if test $ac_prog_rejected = yes; then
4768 # We found a bogon in the path, so make sure we never use it.
4769 set dummy $ac_cv_prog_CC
4770 shift
4771 if test $# != 0; then
4772 # We chose a different compiler from the bogus one.
4773 # However, it has the same basename, so the bogon will be chosen
4774 # first if we set CC to just the basename; use the full file name.
4775 shift
4776 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4777 fi
4778 fi
4779 fi
4780 fi
4781 CC=$ac_cv_prog_CC
4782 if test -n "$CC"; then
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4784 $as_echo "$CC" >&6; }
4785 else
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4787 $as_echo "no" >&6; }
4788 fi
4789
4790
4791 fi
4792 if test -z "$CC"; then
4793 if test -n "$ac_tool_prefix"; then
4794 for ac_prog in cl.exe
4795 do
4796 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4797 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4799 $as_echo_n "checking for $ac_word... " >&6; }
4800 if ${ac_cv_prog_CC+:} false; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 if test -n "$CC"; then
4804 ac_cv_prog_CC="$CC" # Let the user override the test.
4805 else
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4808 do
4809 IFS=$as_save_IFS
4810 test -z "$as_dir" && as_dir=.
4811 for ac_exec_ext in '' $ac_executable_extensions; do
4812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4815 break 2
4816 fi
4817 done
4818 done
4819 IFS=$as_save_IFS
4820
4821 fi
4822 fi
4823 CC=$ac_cv_prog_CC
4824 if test -n "$CC"; then
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4826 $as_echo "$CC" >&6; }
4827 else
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4829 $as_echo "no" >&6; }
4830 fi
4831
4832
4833 test -n "$CC" && break
4834 done
4835 fi
4836 if test -z "$CC"; then
4837 ac_ct_CC=$CC
4838 for ac_prog in cl.exe
4839 do
4840 # Extract the first word of "$ac_prog", so it can be a program name with args.
4841 set dummy $ac_prog; ac_word=$2
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843 $as_echo_n "checking for $ac_word... " >&6; }
4844 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 if test -n "$ac_ct_CC"; then
4848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4849 else
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853 IFS=$as_save_IFS
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
4856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4857 ac_cv_prog_ac_ct_CC="$ac_prog"
4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 break 2
4860 fi
4861 done
4862 done
4863 IFS=$as_save_IFS
4864
4865 fi
4866 fi
4867 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4868 if test -n "$ac_ct_CC"; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4870 $as_echo "$ac_ct_CC" >&6; }
4871 else
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873 $as_echo "no" >&6; }
4874 fi
4875
4876
4877 test -n "$ac_ct_CC" && break
4878 done
4879
4880 if test "x$ac_ct_CC" = x; then
4881 CC=""
4882 else
4883 case $cross_compiling:$ac_tool_warned in
4884 yes:)
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4887 ac_tool_warned=yes ;;
4888 esac
4889 CC=$ac_ct_CC
4890 fi
4891 fi
4892
4893 fi
4894
4895
4896 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4898 as_fn_error $? "no acceptable C compiler found in \$PATH
4899 See \`config.log' for more details" "$LINENO" 5; }
4900
4901 # Provide some information about the compiler.
4902 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4903 set X $ac_compile
4904 ac_compiler=$2
4905 for ac_option in --version -v -V -qversion; do
4906 { { ac_try="$ac_compiler $ac_option >&5"
4907 case "(($ac_try" in
4908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909 *) ac_try_echo=$ac_try;;
4910 esac
4911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4912 $as_echo "$ac_try_echo"; } >&5
4913 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4914 ac_status=$?
4915 if test -s conftest.err; then
4916 sed '10a\
4917 ... rest of stderr output deleted ...
4918 10q' conftest.err >conftest.er1
4919 cat conftest.er1 >&5
4920 fi
4921 rm -f conftest.er1 conftest.err
4922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4923 test $ac_status = 0; }
4924 done
4925
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4927 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4928 if ${ac_cv_c_compiler_gnu+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4933
4934 int
4935 main ()
4936 {
4937 #ifndef __GNUC__
4938 choke me
4939 #endif
4940
4941 ;
4942 return 0;
4943 }
4944 _ACEOF
4945 if ac_fn_c_try_compile "$LINENO"; then :
4946 ac_compiler_gnu=yes
4947 else
4948 ac_compiler_gnu=no
4949 fi
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4952
4953 fi
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4955 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4956 if test $ac_compiler_gnu = yes; then
4957 GCC=yes
4958 else
4959 GCC=
4960 fi
4961 ac_test_CFLAGS=${CFLAGS+set}
4962 ac_save_CFLAGS=$CFLAGS
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4964 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4965 if ${ac_cv_prog_cc_g+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 ac_save_c_werror_flag=$ac_c_werror_flag
4969 ac_c_werror_flag=yes
4970 ac_cv_prog_cc_g=no
4971 CFLAGS="-g"
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h. */
4974
4975 int
4976 main ()
4977 {
4978
4979 ;
4980 return 0;
4981 }
4982 _ACEOF
4983 if ac_fn_c_try_compile "$LINENO"; then :
4984 ac_cv_prog_cc_g=yes
4985 else
4986 CFLAGS=""
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4989
4990 int
4991 main ()
4992 {
4993
4994 ;
4995 return 0;
4996 }
4997 _ACEOF
4998 if ac_fn_c_try_compile "$LINENO"; then :
4999
5000 else
5001 ac_c_werror_flag=$ac_save_c_werror_flag
5002 CFLAGS="-g"
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5005
5006 int
5007 main ()
5008 {
5009
5010 ;
5011 return 0;
5012 }
5013 _ACEOF
5014 if ac_fn_c_try_compile "$LINENO"; then :
5015 ac_cv_prog_cc_g=yes
5016 fi
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 fi
5019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5020 fi
5021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5022 ac_c_werror_flag=$ac_save_c_werror_flag
5023 fi
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5025 $as_echo "$ac_cv_prog_cc_g" >&6; }
5026 if test "$ac_test_CFLAGS" = set; then
5027 CFLAGS=$ac_save_CFLAGS
5028 elif test $ac_cv_prog_cc_g = yes; then
5029 if test "$GCC" = yes; then
5030 CFLAGS="-g -O2"
5031 else
5032 CFLAGS="-g"
5033 fi
5034 else
5035 if test "$GCC" = yes; then
5036 CFLAGS="-O2"
5037 else
5038 CFLAGS=
5039 fi
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5042 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5043 if ${ac_cv_prog_cc_c89+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 ac_cv_prog_cc_c89=no
5047 ac_save_CC=$CC
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5050 #include <stdarg.h>
5051 #include <stdio.h>
5052 struct stat;
5053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5054 struct buf { int x; };
5055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5056 static char *e (p, i)
5057 char **p;
5058 int i;
5059 {
5060 return p[i];
5061 }
5062 static char *f (char * (*g) (char **, int), char **p, ...)
5063 {
5064 char *s;
5065 va_list v;
5066 va_start (v,p);
5067 s = g (p, va_arg (v,int));
5068 va_end (v);
5069 return s;
5070 }
5071
5072 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5073 function prototypes and stuff, but not '\xHH' hex character constants.
5074 These don't provoke an error unfortunately, instead are silently treated
5075 as 'x'. The following induces an error, until -std is added to get
5076 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5077 array size at least. It's necessary to write '\x00'==0 to get something
5078 that's true only with -std. */
5079 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5080
5081 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5082 inside strings and character constants. */
5083 #define FOO(x) 'x'
5084 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5085
5086 int test (int i, double x);
5087 struct s1 {int (*f) (int a);};
5088 struct s2 {int (*f) (double a);};
5089 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5090 int argc;
5091 char **argv;
5092 int
5093 main ()
5094 {
5095 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5096 ;
5097 return 0;
5098 }
5099 _ACEOF
5100 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5101 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5102 do
5103 CC="$ac_save_CC $ac_arg"
5104 if ac_fn_c_try_compile "$LINENO"; then :
5105 ac_cv_prog_cc_c89=$ac_arg
5106 fi
5107 rm -f core conftest.err conftest.$ac_objext
5108 test "x$ac_cv_prog_cc_c89" != "xno" && break
5109 done
5110 rm -f conftest.$ac_ext
5111 CC=$ac_save_CC
5112
5113 fi
5114 # AC_CACHE_VAL
5115 case "x$ac_cv_prog_cc_c89" in
5116 x)
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5118 $as_echo "none needed" >&6; } ;;
5119 xno)
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5121 $as_echo "unsupported" >&6; } ;;
5122 *)
5123 CC="$CC $ac_cv_prog_cc_c89"
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5125 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5126 esac
5127 if test "x$ac_cv_prog_cc_c89" != xno; then :
5128
5129 fi
5130
5131 ac_ext=c
5132 ac_cpp='$CPP $CPPFLAGS'
5133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136
5137 ac_ext=c
5138 ac_cpp='$CPP $CPPFLAGS'
5139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5143 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5144 if ${am_cv_prog_cc_c_o+:} false; then :
5145 $as_echo_n "(cached) " >&6
5146 else
5147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5148 /* end confdefs.h. */
5149
5150 int
5151 main ()
5152 {
5153
5154 ;
5155 return 0;
5156 }
5157 _ACEOF
5158 # Make sure it works both with $CC and with simple cc.
5159 # Following AC_PROG_CC_C_O, we do the test twice because some
5160 # compilers refuse to overwrite an existing .o file with -o,
5161 # though they will create one.
5162 am_cv_prog_cc_c_o=yes
5163 for am_i in 1 2; do
5164 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5165 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5166 ac_status=$?
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); } \
5169 && test -f conftest2.$ac_objext; then
5170 : OK
5171 else
5172 am_cv_prog_cc_c_o=no
5173 break
5174 fi
5175 done
5176 rm -f core conftest*
5177 unset am_i
5178 fi
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5180 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5181 if test "$am_cv_prog_cc_c_o" != yes; then
5182 # Losing compiler, so override with the script.
5183 # FIXME: It is wrong to rewrite CC.
5184 # But if we don't then we get into trouble of one sort or another.
5185 # A longer-term fix would be to have automake use am__CC in this case,
5186 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5187 CC="$am_aux_dir/compile $CC"
5188 fi
5189 ac_ext=c
5190 ac_cpp='$CPP $CPPFLAGS'
5191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5194
5195
5196 if test -n "$ac_tool_prefix"; then
5197 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5198 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200 $as_echo_n "checking for $ac_word... " >&6; }
5201 if ${ac_cv_prog_RANLIB+:} false; then :
5202 $as_echo_n "(cached) " >&6
5203 else
5204 if test -n "$RANLIB"; then
5205 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5206 else
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208 for as_dir in $PATH
5209 do
5210 IFS=$as_save_IFS
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5214 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 break 2
5217 fi
5218 done
5219 done
5220 IFS=$as_save_IFS
5221
5222 fi
5223 fi
5224 RANLIB=$ac_cv_prog_RANLIB
5225 if test -n "$RANLIB"; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5227 $as_echo "$RANLIB" >&6; }
5228 else
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5231 fi
5232
5233
5234 fi
5235 if test -z "$ac_cv_prog_RANLIB"; then
5236 ac_ct_RANLIB=$RANLIB
5237 # Extract the first word of "ranlib", so it can be a program name with args.
5238 set dummy ranlib; ac_word=$2
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5240 $as_echo_n "checking for $ac_word... " >&6; }
5241 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5244 if test -n "$ac_ct_RANLIB"; then
5245 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5246 else
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5249 do
5250 IFS=$as_save_IFS
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254 ac_cv_prog_ac_ct_RANLIB="ranlib"
5255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 break 2
5257 fi
5258 done
5259 done
5260 IFS=$as_save_IFS
5261
5262 fi
5263 fi
5264 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5265 if test -n "$ac_ct_RANLIB"; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5267 $as_echo "$ac_ct_RANLIB" >&6; }
5268 else
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270 $as_echo "no" >&6; }
5271 fi
5272
5273 if test "x$ac_ct_RANLIB" = x; then
5274 RANLIB=":"
5275 else
5276 case $cross_compiling:$ac_tool_warned in
5277 yes:)
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5280 ac_tool_warned=yes ;;
5281 esac
5282 RANLIB=$ac_ct_RANLIB
5283 fi
5284 else
5285 RANLIB="$ac_cv_prog_RANLIB"
5286 fi
5287
5288 if test -n "$ac_tool_prefix"; then
5289 for ac_prog in ar lib "link -lib"
5290 do
5291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if ${ac_cv_prog_AR+:} false; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 if test -n "$AR"; then
5299 ac_cv_prog_AR="$AR" # Let the user override the test.
5300 else
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5303 do
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5308 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5311 fi
5312 done
5313 done
5314 IFS=$as_save_IFS
5315
5316 fi
5317 fi
5318 AR=$ac_cv_prog_AR
5319 if test -n "$AR"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5321 $as_echo "$AR" >&6; }
5322 else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5325 fi
5326
5327
5328 test -n "$AR" && break
5329 done
5330 fi
5331 if test -z "$AR"; then
5332 ac_ct_AR=$AR
5333 for ac_prog in ar lib "link -lib"
5334 do
5335 # Extract the first word of "$ac_prog", so it can be a program name with args.
5336 set dummy $ac_prog; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 if test -n "$ac_ct_AR"; then
5343 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5344 else
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5347 do
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5352 ac_cv_prog_ac_ct_AR="$ac_prog"
5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 break 2
5355 fi
5356 done
5357 done
5358 IFS=$as_save_IFS
5359
5360 fi
5361 fi
5362 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5363 if test -n "$ac_ct_AR"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5365 $as_echo "$ac_ct_AR" >&6; }
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5369 fi
5370
5371
5372 test -n "$ac_ct_AR" && break
5373 done
5374
5375 if test "x$ac_ct_AR" = x; then
5376 AR="false"
5377 else
5378 case $cross_compiling:$ac_tool_warned in
5379 yes:)
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5382 ac_tool_warned=yes ;;
5383 esac
5384 AR=$ac_ct_AR
5385 fi
5386 fi
5387
5388 : ${AR=ar}
5389
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5391 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5392 if ${am_cv_ar_interface+:} false; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 ac_ext=c
5396 ac_cpp='$CPP $CPPFLAGS'
5397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5400
5401 am_cv_ar_interface=ar
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5404 int some_variable = 0;
5405 _ACEOF
5406 if ac_fn_c_try_compile "$LINENO"; then :
5407 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5409 (eval $am_ar_try) 2>&5
5410 ac_status=$?
5411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5412 test $ac_status = 0; }
5413 if test "$ac_status" -eq 0; then
5414 am_cv_ar_interface=ar
5415 else
5416 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5418 (eval $am_ar_try) 2>&5
5419 ac_status=$?
5420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5421 test $ac_status = 0; }
5422 if test "$ac_status" -eq 0; then
5423 am_cv_ar_interface=lib
5424 else
5425 am_cv_ar_interface=unknown
5426 fi
5427 fi
5428 rm -f conftest.lib libconftest.a
5429
5430 fi
5431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 ac_ext=c
5433 ac_cpp='$CPP $CPPFLAGS'
5434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5437
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5440 $as_echo "$am_cv_ar_interface" >&6; }
5441
5442 case $am_cv_ar_interface in
5443 ar)
5444 ;;
5445 lib)
5446 # Microsoft lib, so override with the ar-lib wrapper script.
5447 # FIXME: It is wrong to rewrite AR.
5448 # But if we don't then we get into trouble of one sort or another.
5449 # A longer-term fix would be to have automake use am__AR in this case,
5450 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5451 # similar.
5452 AR="$am_aux_dir/ar-lib $AR"
5453 ;;
5454 unknown)
5455 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5456 ;;
5457 esac
5458
5459 # If we haven't got the data from the intl directory,
5460 # assume NLS is disabled.
5461 USE_NLS=no
5462 LIBINTL=
5463 LIBINTL_DEP=
5464 INCINTL=
5465 XGETTEXT=
5466 GMSGFMT=
5467 POSUB=
5468
5469 if test -f ../intl/config.intl; then
5470 . ../intl/config.intl
5471 fi
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5473 $as_echo_n "checking whether NLS is requested... " >&6; }
5474 if test x"$USE_NLS" != xyes; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5477 else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5479 $as_echo "yes" >&6; }
5480
5481 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5482
5483
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5485 $as_echo_n "checking for catalogs to be installed... " >&6; }
5486 # Look for .po and .gmo files in the source directory.
5487 CATALOGS=
5488 XLINGUAS=
5489 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5490 # If there aren't any .gmo files the shell will give us the
5491 # literal string "../path/to/srcdir/po/*.gmo" which has to be
5492 # weeded out.
5493 case "$cat" in *\**)
5494 continue;;
5495 esac
5496 # The quadruple backslash is collapsed to a double backslash
5497 # by the backticks, then collapsed again by the double quotes,
5498 # leaving us with one backslash in the sed expression (right
5499 # before the dot that mustn't act as a wildcard).
5500 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5501 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5502 # The user is allowed to set LINGUAS to a list of languages to
5503 # install catalogs for. If it's empty that means "all of them."
5504 if test "x$LINGUAS" = x; then
5505 CATALOGS="$CATALOGS $cat"
5506 XLINGUAS="$XLINGUAS $lang"
5507 else
5508 case "$LINGUAS" in *$lang*)
5509 CATALOGS="$CATALOGS $cat"
5510 XLINGUAS="$XLINGUAS $lang"
5511 ;;
5512 esac
5513 fi
5514 done
5515 LINGUAS="$XLINGUAS"
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5517 $as_echo "$LINGUAS" >&6; }
5518
5519
5520 DATADIRNAME=share
5521
5522 INSTOBJEXT=.mo
5523
5524 GENCAT=gencat
5525
5526 CATOBJEXT=.gmo
5527
5528 fi
5529
5530 # Check whether --enable-shared was given.
5531 if test "${enable_shared+set}" = set; then :
5532 enableval=$enable_shared; p=${PACKAGE-default}
5533 case $enableval in
5534 yes) enable_shared=yes ;;
5535 no) enable_shared=no ;;
5536 *)
5537 enable_shared=no
5538 # Look at the argument we got. We use all the common list separators.
5539 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5540 for pkg in $enableval; do
5541 IFS="$lt_save_ifs"
5542 if test "X$pkg" = "X$p"; then
5543 enable_shared=yes
5544 fi
5545 done
5546 IFS="$lt_save_ifs"
5547 ;;
5548 esac
5549 else
5550 enable_shared=no
5551 fi
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562 case `pwd` in
5563 *\ * | *\ *)
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5565 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5566 esac
5567
5568
5569
5570 macro_version='2.2.7a'
5571 macro_revision='1.3134'
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585 ltmain="$ac_aux_dir/ltmain.sh"
5586
5587 # Backslashify metacharacters that are still active within
5588 # double-quoted strings.
5589 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5590
5591 # Same as above, but do not quote variable references.
5592 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5593
5594 # Sed substitution to delay expansion of an escaped shell variable in a
5595 # double_quote_subst'ed string.
5596 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5597
5598 # Sed substitution to delay expansion of an escaped single quote.
5599 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5600
5601 # Sed substitution to avoid accidental globbing in evaled expressions
5602 no_glob_subst='s/\*/\\\*/g'
5603
5604 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5605 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5606 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5607
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5609 $as_echo_n "checking how to print strings... " >&6; }
5610 # Test print first, because it will be a builtin if present.
5611 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5612 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5613 ECHO='print -r --'
5614 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5615 ECHO='printf %s\n'
5616 else
5617 # Use this function as a fallback that always works.
5618 func_fallback_echo ()
5619 {
5620 eval 'cat <<_LTECHO_EOF
5621 $1
5622 _LTECHO_EOF'
5623 }
5624 ECHO='func_fallback_echo'
5625 fi
5626
5627 # func_echo_all arg...
5628 # Invoke $ECHO with all args, space-separated.
5629 func_echo_all ()
5630 {
5631 $ECHO ""
5632 }
5633
5634 case "$ECHO" in
5635 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5636 $as_echo "printf" >&6; } ;;
5637 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5638 $as_echo "print -r" >&6; } ;;
5639 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5640 $as_echo "cat" >&6; } ;;
5641 esac
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5657 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5658 if ${ac_cv_path_SED+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660 else
5661 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5662 for ac_i in 1 2 3 4 5 6 7; do
5663 ac_script="$ac_script$as_nl$ac_script"
5664 done
5665 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5666 { ac_script=; unset ac_script;}
5667 if test -z "$SED"; then
5668 ac_path_SED_found=false
5669 # Loop through the user's path and test for each of PROGNAME-LIST
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5672 do
5673 IFS=$as_save_IFS
5674 test -z "$as_dir" && as_dir=.
5675 for ac_prog in sed gsed; do
5676 for ac_exec_ext in '' $ac_executable_extensions; do
5677 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5678 as_fn_executable_p "$ac_path_SED" || continue
5679 # Check for GNU ac_path_SED and select it if it is found.
5680 # Check for GNU $ac_path_SED
5681 case `"$ac_path_SED" --version 2>&1` in
5682 *GNU*)
5683 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5684 *)
5685 ac_count=0
5686 $as_echo_n 0123456789 >"conftest.in"
5687 while :
5688 do
5689 cat "conftest.in" "conftest.in" >"conftest.tmp"
5690 mv "conftest.tmp" "conftest.in"
5691 cp "conftest.in" "conftest.nl"
5692 $as_echo '' >> "conftest.nl"
5693 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5695 as_fn_arith $ac_count + 1 && ac_count=$as_val
5696 if test $ac_count -gt ${ac_path_SED_max-0}; then
5697 # Best one so far, save it but keep looking for a better one
5698 ac_cv_path_SED="$ac_path_SED"
5699 ac_path_SED_max=$ac_count
5700 fi
5701 # 10*(2^10) chars as input seems more than enough
5702 test $ac_count -gt 10 && break
5703 done
5704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5705 esac
5706
5707 $ac_path_SED_found && break 3
5708 done
5709 done
5710 done
5711 IFS=$as_save_IFS
5712 if test -z "$ac_cv_path_SED"; then
5713 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5714 fi
5715 else
5716 ac_cv_path_SED=$SED
5717 fi
5718
5719 fi
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5721 $as_echo "$ac_cv_path_SED" >&6; }
5722 SED="$ac_cv_path_SED"
5723 rm -f conftest.sed
5724
5725 test -z "$SED" && SED=sed
5726 Xsed="$SED -e 1s/^X//"
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5739 $as_echo_n "checking for fgrep... " >&6; }
5740 if ${ac_cv_path_FGREP+:} false; then :
5741 $as_echo_n "(cached) " >&6
5742 else
5743 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5744 then ac_cv_path_FGREP="$GREP -F"
5745 else
5746 if test -z "$FGREP"; then
5747 ac_path_FGREP_found=false
5748 # Loop through the user's path and test for each of PROGNAME-LIST
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5751 do
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_prog in fgrep; do
5755 for ac_exec_ext in '' $ac_executable_extensions; do
5756 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5757 as_fn_executable_p "$ac_path_FGREP" || continue
5758 # Check for GNU ac_path_FGREP and select it if it is found.
5759 # Check for GNU $ac_path_FGREP
5760 case `"$ac_path_FGREP" --version 2>&1` in
5761 *GNU*)
5762 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5763 *)
5764 ac_count=0
5765 $as_echo_n 0123456789 >"conftest.in"
5766 while :
5767 do
5768 cat "conftest.in" "conftest.in" >"conftest.tmp"
5769 mv "conftest.tmp" "conftest.in"
5770 cp "conftest.in" "conftest.nl"
5771 $as_echo 'FGREP' >> "conftest.nl"
5772 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5773 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5774 as_fn_arith $ac_count + 1 && ac_count=$as_val
5775 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5776 # Best one so far, save it but keep looking for a better one
5777 ac_cv_path_FGREP="$ac_path_FGREP"
5778 ac_path_FGREP_max=$ac_count
5779 fi
5780 # 10*(2^10) chars as input seems more than enough
5781 test $ac_count -gt 10 && break
5782 done
5783 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5784 esac
5785
5786 $ac_path_FGREP_found && break 3
5787 done
5788 done
5789 done
5790 IFS=$as_save_IFS
5791 if test -z "$ac_cv_path_FGREP"; then
5792 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5793 fi
5794 else
5795 ac_cv_path_FGREP=$FGREP
5796 fi
5797
5798 fi
5799 fi
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5801 $as_echo "$ac_cv_path_FGREP" >&6; }
5802 FGREP="$ac_cv_path_FGREP"
5803
5804
5805 test -z "$GREP" && GREP=grep
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825 # Check whether --with-gnu-ld was given.
5826 if test "${with_gnu_ld+set}" = set; then :
5827 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5828 else
5829 with_gnu_ld=no
5830 fi
5831
5832 ac_prog=ld
5833 if test "$GCC" = yes; then
5834 # Check if gcc -print-prog-name=ld gives a path.
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5836 $as_echo_n "checking for ld used by $CC... " >&6; }
5837 case $host in
5838 *-*-mingw*)
5839 # gcc leaves a trailing carriage return which upsets mingw
5840 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5841 *)
5842 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5843 esac
5844 case $ac_prog in
5845 # Accept absolute paths.
5846 [\\/]* | ?:[\\/]*)
5847 re_direlt='/[^/][^/]*/\.\./'
5848 # Canonicalize the pathname of ld
5849 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5850 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5851 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5852 done
5853 test -z "$LD" && LD="$ac_prog"
5854 ;;
5855 "")
5856 # If it fails, then pretend we aren't using GCC.
5857 ac_prog=ld
5858 ;;
5859 *)
5860 # If it is relative, then search for the first ld in PATH.
5861 with_gnu_ld=unknown
5862 ;;
5863 esac
5864 elif test "$with_gnu_ld" = yes; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5866 $as_echo_n "checking for GNU ld... " >&6; }
5867 else
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5869 $as_echo_n "checking for non-GNU ld... " >&6; }
5870 fi
5871 if ${lt_cv_path_LD+:} false; then :
5872 $as_echo_n "(cached) " >&6
5873 else
5874 if test -z "$LD"; then
5875 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5876 for ac_dir in $PATH; do
5877 IFS="$lt_save_ifs"
5878 test -z "$ac_dir" && ac_dir=.
5879 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5880 lt_cv_path_LD="$ac_dir/$ac_prog"
5881 # Check to see if the program is GNU ld. I'd rather use --version,
5882 # but apparently some variants of GNU ld only accept -v.
5883 # Break only if it was the GNU/non-GNU ld that we prefer.
5884 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5885 *GNU* | *'with BFD'*)
5886 test "$with_gnu_ld" != no && break
5887 ;;
5888 *)
5889 test "$with_gnu_ld" != yes && break
5890 ;;
5891 esac
5892 fi
5893 done
5894 IFS="$lt_save_ifs"
5895 else
5896 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5897 fi
5898 fi
5899
5900 LD="$lt_cv_path_LD"
5901 if test -n "$LD"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5903 $as_echo "$LD" >&6; }
5904 else
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5907 fi
5908 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5910 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5911 if ${lt_cv_prog_gnu_ld+:} false; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5915 case `$LD -v 2>&1 </dev/null` in
5916 *GNU* | *'with BFD'*)
5917 lt_cv_prog_gnu_ld=yes
5918 ;;
5919 *)
5920 lt_cv_prog_gnu_ld=no
5921 ;;
5922 esac
5923 fi
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5925 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5926 with_gnu_ld=$lt_cv_prog_gnu_ld
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5937 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5938 if ${lt_cv_path_NM+:} false; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 if test -n "$NM"; then
5942 # Let the user override the nm to test.
5943 lt_nm_to_check="$NM"
5944 else
5945 lt_nm_to_check="${ac_tool_prefix}nm"
5946 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5947 lt_nm_to_check="$lt_nm_to_check nm"
5948 fi
5949 fi
5950 for lt_tmp_nm in "$lt_nm_to_check"; do
5951 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5952 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5953 IFS="$lt_save_ifs"
5954 test -z "$ac_dir" && ac_dir=.
5955 # Strip out any user-provided options from the nm to test twice,
5956 # the first time to test to see if nm (rather than its options) has
5957 # an explicit path, the second time to yield a file which can be
5958 # nm'ed itself.
5959 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5960 case "$tmp_nm_path" in
5961 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5962 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5963 esac
5964 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5965 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5966 # Check to see if the nm accepts a BSD-compat flag.
5967 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5968 # nm: unknown option "B" ignored
5969 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5970 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5971 break
5972 ;;
5973 *)
5974 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5975 *$tmp_nm*)
5976 lt_cv_path_NM="$tmp_nm -p"
5977 break
5978 ;;
5979 *)
5980 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5981 continue # so that we can try to find one that supports BSD flags
5982 ;;
5983 esac
5984 ;;
5985 esac
5986 fi
5987 done
5988 IFS="$lt_save_ifs"
5989 done
5990 : ${lt_cv_path_NM=no}
5991 fi
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5993 $as_echo "$lt_cv_path_NM" >&6; }
5994 if test "$lt_cv_path_NM" != "no"; then
5995 NM="$lt_cv_path_NM"
5996 else
5997 # Didn't find any BSD compatible name lister, look for dumpbin.
5998 if test -n "$DUMPBIN"; then :
5999 # Let the user override the test.
6000 else
6001 if test -n "$ac_tool_prefix"; then
6002 for ac_prog in dumpbin "link -dump"
6003 do
6004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6005 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007 $as_echo_n "checking for $ac_word... " >&6; }
6008 if ${ac_cv_prog_DUMPBIN+:} false; then :
6009 $as_echo_n "(cached) " >&6
6010 else
6011 if test -n "$DUMPBIN"; then
6012 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6013 else
6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015 for as_dir in $PATH
6016 do
6017 IFS=$as_save_IFS
6018 test -z "$as_dir" && as_dir=.
6019 for ac_exec_ext in '' $ac_executable_extensions; do
6020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6021 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023 break 2
6024 fi
6025 done
6026 done
6027 IFS=$as_save_IFS
6028
6029 fi
6030 fi
6031 DUMPBIN=$ac_cv_prog_DUMPBIN
6032 if test -n "$DUMPBIN"; then
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6034 $as_echo "$DUMPBIN" >&6; }
6035 else
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037 $as_echo "no" >&6; }
6038 fi
6039
6040
6041 test -n "$DUMPBIN" && break
6042 done
6043 fi
6044 if test -z "$DUMPBIN"; then
6045 ac_ct_DUMPBIN=$DUMPBIN
6046 for ac_prog in dumpbin "link -dump"
6047 do
6048 # Extract the first word of "$ac_prog", so it can be a program name with args.
6049 set dummy $ac_prog; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 if test -n "$ac_ct_DUMPBIN"; then
6056 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6068 fi
6069 done
6070 done
6071 IFS=$as_save_IFS
6072
6073 fi
6074 fi
6075 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6076 if test -n "$ac_ct_DUMPBIN"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6078 $as_echo "$ac_ct_DUMPBIN" >&6; }
6079 else
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6082 fi
6083
6084
6085 test -n "$ac_ct_DUMPBIN" && break
6086 done
6087
6088 if test "x$ac_ct_DUMPBIN" = x; then
6089 DUMPBIN=":"
6090 else
6091 case $cross_compiling:$ac_tool_warned in
6092 yes:)
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6095 ac_tool_warned=yes ;;
6096 esac
6097 DUMPBIN=$ac_ct_DUMPBIN
6098 fi
6099 fi
6100
6101 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6102 *COFF*)
6103 DUMPBIN="$DUMPBIN -symbols"
6104 ;;
6105 *)
6106 DUMPBIN=:
6107 ;;
6108 esac
6109 fi
6110
6111 if test "$DUMPBIN" != ":"; then
6112 NM="$DUMPBIN"
6113 fi
6114 fi
6115 test -z "$NM" && NM=nm
6116
6117
6118
6119
6120
6121
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6123 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6124 if ${lt_cv_nm_interface+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 lt_cv_nm_interface="BSD nm"
6128 echo "int some_variable = 0;" > conftest.$ac_ext
6129 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6130 (eval "$ac_compile" 2>conftest.err)
6131 cat conftest.err >&5
6132 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6133 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6134 cat conftest.err >&5
6135 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6136 cat conftest.out >&5
6137 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6138 lt_cv_nm_interface="MS dumpbin"
6139 fi
6140 rm -f conftest*
6141 fi
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6143 $as_echo "$lt_cv_nm_interface" >&6; }
6144
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6146 $as_echo_n "checking whether ln -s works... " >&6; }
6147 LN_S=$as_ln_s
6148 if test "$LN_S" = "ln -s"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6150 $as_echo "yes" >&6; }
6151 else
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6153 $as_echo "no, using $LN_S" >&6; }
6154 fi
6155
6156 # find the maximum length of command line arguments
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6158 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6159 if ${lt_cv_sys_max_cmd_len+:} false; then :
6160 $as_echo_n "(cached) " >&6
6161 else
6162 i=0
6163 teststring="ABCD"
6164
6165 case $build_os in
6166 msdosdjgpp*)
6167 # On DJGPP, this test can blow up pretty badly due to problems in libc
6168 # (any single argument exceeding 2000 bytes causes a buffer overrun
6169 # during glob expansion). Even if it were fixed, the result of this
6170 # check would be larger than it should be.
6171 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6172 ;;
6173
6174 gnu*)
6175 # Under GNU Hurd, this test is not required because there is
6176 # no limit to the length of command line arguments.
6177 # Libtool will interpret -1 as no limit whatsoever
6178 lt_cv_sys_max_cmd_len=-1;
6179 ;;
6180
6181 cygwin* | mingw* | cegcc*)
6182 # On Win9x/ME, this test blows up -- it succeeds, but takes
6183 # about 5 minutes as the teststring grows exponentially.
6184 # Worse, since 9x/ME are not pre-emptively multitasking,
6185 # you end up with a "frozen" computer, even though with patience
6186 # the test eventually succeeds (with a max line length of 256k).
6187 # Instead, let's just punt: use the minimum linelength reported by
6188 # all of the supported platforms: 8192 (on NT/2K/XP).
6189 lt_cv_sys_max_cmd_len=8192;
6190 ;;
6191
6192 mint*)
6193 # On MiNT this can take a long time and run out of memory.
6194 lt_cv_sys_max_cmd_len=8192;
6195 ;;
6196
6197 amigaos*)
6198 # On AmigaOS with pdksh, this test takes hours, literally.
6199 # So we just punt and use a minimum line length of 8192.
6200 lt_cv_sys_max_cmd_len=8192;
6201 ;;
6202
6203 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6204 # This has been around since 386BSD, at least. Likely further.
6205 if test -x /sbin/sysctl; then
6206 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6207 elif test -x /usr/sbin/sysctl; then
6208 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6209 else
6210 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6211 fi
6212 # And add a safety zone
6213 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6214 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6215 ;;
6216
6217 interix*)
6218 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6219 lt_cv_sys_max_cmd_len=196608
6220 ;;
6221
6222 osf*)
6223 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6224 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6225 # nice to cause kernel panics so lets avoid the loop below.
6226 # First set a reasonable default.
6227 lt_cv_sys_max_cmd_len=16384
6228 #
6229 if test -x /sbin/sysconfig; then
6230 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6231 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6232 esac
6233 fi
6234 ;;
6235 sco3.2v5*)
6236 lt_cv_sys_max_cmd_len=102400
6237 ;;
6238 sysv5* | sco5v6* | sysv4.2uw2*)
6239 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6240 if test -n "$kargmax"; then
6241 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6242 else
6243 lt_cv_sys_max_cmd_len=32768
6244 fi
6245 ;;
6246 *)
6247 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6248 if test -n "$lt_cv_sys_max_cmd_len"; then
6249 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6251 else
6252 # Make teststring a little bigger before we do anything with it.
6253 # a 1K string should be a reasonable start.
6254 for i in 1 2 3 4 5 6 7 8 ; do
6255 teststring=$teststring$teststring
6256 done
6257 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6258 # If test is not a shell built-in, we'll probably end up computing a
6259 # maximum length that is only half of the actual maximum length, but
6260 # we can't tell.
6261 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6262 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6263 test $i != 17 # 1/2 MB should be enough
6264 do
6265 i=`expr $i + 1`
6266 teststring=$teststring$teststring
6267 done
6268 # Only check the string length outside the loop.
6269 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6270 teststring=
6271 # Add a significant safety factor because C++ compilers can tack on
6272 # massive amounts of additional arguments before passing them to the
6273 # linker. It appears as though 1/2 is a usable value.
6274 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6275 fi
6276 ;;
6277 esac
6278
6279 fi
6280
6281 if test -n $lt_cv_sys_max_cmd_len ; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6283 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6284 else
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6286 $as_echo "none" >&6; }
6287 fi
6288 max_cmd_len=$lt_cv_sys_max_cmd_len
6289
6290
6291
6292
6293
6294
6295 : ${CP="cp -f"}
6296 : ${MV="mv -f"}
6297 : ${RM="rm -f"}
6298
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6300 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6301 # Try some XSI features
6302 xsi_shell=no
6303 ( _lt_dummy="a/b/c"
6304 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6305 = c,a/b,, \
6306 && eval 'test $(( 1 + 1 )) -eq 2 \
6307 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6308 && xsi_shell=yes
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6310 $as_echo "$xsi_shell" >&6; }
6311
6312
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6314 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6315 lt_shell_append=no
6316 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6317 >/dev/null 2>&1 \
6318 && lt_shell_append=yes
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6320 $as_echo "$lt_shell_append" >&6; }
6321
6322
6323 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6324 lt_unset=unset
6325 else
6326 lt_unset=false
6327 fi
6328
6329
6330
6331
6332
6333 # test EBCDIC or ASCII
6334 case `echo X|tr X '\101'` in
6335 A) # ASCII based system
6336 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6337 lt_SP2NL='tr \040 \012'
6338 lt_NL2SP='tr \015\012 \040\040'
6339 ;;
6340 *) # EBCDIC based system
6341 lt_SP2NL='tr \100 \n'
6342 lt_NL2SP='tr \r\n \100\100'
6343 ;;
6344 esac
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6355 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6356 if ${lt_cv_ld_reload_flag+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 lt_cv_ld_reload_flag='-r'
6360 fi
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6362 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6363 reload_flag=$lt_cv_ld_reload_flag
6364 case $reload_flag in
6365 "" | " "*) ;;
6366 *) reload_flag=" $reload_flag" ;;
6367 esac
6368 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6369 case $host_os in
6370 darwin*)
6371 if test "$GCC" = yes; then
6372 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6373 else
6374 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6375 fi
6376 ;;
6377 esac
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387 if test -n "$ac_tool_prefix"; then
6388 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6389 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_OBJDUMP+:} false; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 if test -n "$OBJDUMP"; then
6396 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6408 fi
6409 done
6410 done
6411 IFS=$as_save_IFS
6412
6413 fi
6414 fi
6415 OBJDUMP=$ac_cv_prog_OBJDUMP
6416 if test -n "$OBJDUMP"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6418 $as_echo "$OBJDUMP" >&6; }
6419 else
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423
6424
6425 fi
6426 if test -z "$ac_cv_prog_OBJDUMP"; then
6427 ac_ct_OBJDUMP=$OBJDUMP
6428 # Extract the first word of "objdump", so it can be a program name with args.
6429 set dummy objdump; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 if test -n "$ac_ct_OBJDUMP"; then
6436 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6440 do
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6448 fi
6449 done
6450 done
6451 IFS=$as_save_IFS
6452
6453 fi
6454 fi
6455 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6456 if test -n "$ac_ct_OBJDUMP"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6458 $as_echo "$ac_ct_OBJDUMP" >&6; }
6459 else
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6462 fi
6463
6464 if test "x$ac_ct_OBJDUMP" = x; then
6465 OBJDUMP="false"
6466 else
6467 case $cross_compiling:$ac_tool_warned in
6468 yes:)
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6471 ac_tool_warned=yes ;;
6472 esac
6473 OBJDUMP=$ac_ct_OBJDUMP
6474 fi
6475 else
6476 OBJDUMP="$ac_cv_prog_OBJDUMP"
6477 fi
6478
6479 test -z "$OBJDUMP" && OBJDUMP=objdump
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6490 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6491 if ${lt_cv_deplibs_check_method+:} false; then :
6492 $as_echo_n "(cached) " >&6
6493 else
6494 lt_cv_file_magic_cmd='$MAGIC_CMD'
6495 lt_cv_file_magic_test_file=
6496 lt_cv_deplibs_check_method='unknown'
6497 # Need to set the preceding variable on all platforms that support
6498 # interlibrary dependencies.
6499 # 'none' -- dependencies not supported.
6500 # `unknown' -- same as none, but documents that we really don't know.
6501 # 'pass_all' -- all dependencies passed with no checks.
6502 # 'test_compile' -- check by making test program.
6503 # 'file_magic [[regex]]' -- check by looking for files in library path
6504 # which responds to the $file_magic_cmd with a given extended regex.
6505 # If you have `file' or equivalent on your system and you're not sure
6506 # whether `pass_all' will *always* work, you probably want this one.
6507
6508 case $host_os in
6509 aix[4-9]*)
6510 lt_cv_deplibs_check_method=pass_all
6511 ;;
6512
6513 beos*)
6514 lt_cv_deplibs_check_method=pass_all
6515 ;;
6516
6517 bsdi[45]*)
6518 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6519 lt_cv_file_magic_cmd='/usr/bin/file -L'
6520 lt_cv_file_magic_test_file=/shlib/libc.so
6521 ;;
6522
6523 cygwin*)
6524 # func_win32_libid is a shell function defined in ltmain.sh
6525 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6526 lt_cv_file_magic_cmd='func_win32_libid'
6527 ;;
6528
6529 mingw* | pw32*)
6530 # Base MSYS/MinGW do not provide the 'file' command needed by
6531 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6532 # unless we find 'file', for example because we are cross-compiling.
6533 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6534 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6535 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6536 lt_cv_file_magic_cmd='func_win32_libid'
6537 else
6538 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6539 lt_cv_file_magic_cmd='$OBJDUMP -f'
6540 fi
6541 ;;
6542
6543 cegcc*)
6544 # use the weaker test based on 'objdump'. See mingw*.
6545 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6546 lt_cv_file_magic_cmd='$OBJDUMP -f'
6547 ;;
6548
6549 darwin* | rhapsody*)
6550 lt_cv_deplibs_check_method=pass_all
6551 ;;
6552
6553 freebsd* | dragonfly*)
6554 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6555 case $host_cpu in
6556 i*86 )
6557 # Not sure whether the presence of OpenBSD here was a mistake.
6558 # Let's accept both of them until this is cleared up.
6559 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6560 lt_cv_file_magic_cmd=/usr/bin/file
6561 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6562 ;;
6563 esac
6564 else
6565 lt_cv_deplibs_check_method=pass_all
6566 fi
6567 ;;
6568
6569 gnu*)
6570 lt_cv_deplibs_check_method=pass_all
6571 ;;
6572
6573 haiku*)
6574 lt_cv_deplibs_check_method=pass_all
6575 ;;
6576
6577 hpux10.20* | hpux11*)
6578 lt_cv_file_magic_cmd=/usr/bin/file
6579 case $host_cpu in
6580 ia64*)
6581 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6582 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6583 ;;
6584 hppa*64*)
6585 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]'
6586 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6587 ;;
6588 *)
6589 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6590 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6591 ;;
6592 esac
6593 ;;
6594
6595 interix[3-9]*)
6596 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6598 ;;
6599
6600 irix5* | irix6* | nonstopux*)
6601 case $LD in
6602 *-32|*"-32 ") libmagic=32-bit;;
6603 *-n32|*"-n32 ") libmagic=N32;;
6604 *-64|*"-64 ") libmagic=64-bit;;
6605 *) libmagic=never-match;;
6606 esac
6607 lt_cv_deplibs_check_method=pass_all
6608 ;;
6609
6610 # This must be Linux ELF.
6611 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6612 lt_cv_deplibs_check_method=pass_all
6613 ;;
6614
6615 netbsd*)
6616 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6618 else
6619 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6620 fi
6621 ;;
6622
6623 newos6*)
6624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6625 lt_cv_file_magic_cmd=/usr/bin/file
6626 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6627 ;;
6628
6629 *nto* | *qnx*)
6630 lt_cv_deplibs_check_method=pass_all
6631 ;;
6632
6633 openbsd*)
6634 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6635 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6636 else
6637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6638 fi
6639 ;;
6640
6641 osf3* | osf4* | osf5*)
6642 lt_cv_deplibs_check_method=pass_all
6643 ;;
6644
6645 rdos*)
6646 lt_cv_deplibs_check_method=pass_all
6647 ;;
6648
6649 solaris*)
6650 lt_cv_deplibs_check_method=pass_all
6651 ;;
6652
6653 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6654 lt_cv_deplibs_check_method=pass_all
6655 ;;
6656
6657 sysv4 | sysv4.3*)
6658 case $host_vendor in
6659 motorola)
6660 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]'
6661 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6662 ;;
6663 ncr)
6664 lt_cv_deplibs_check_method=pass_all
6665 ;;
6666 sequent)
6667 lt_cv_file_magic_cmd='/bin/file'
6668 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6669 ;;
6670 sni)
6671 lt_cv_file_magic_cmd='/bin/file'
6672 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6673 lt_cv_file_magic_test_file=/lib/libc.so
6674 ;;
6675 siemens)
6676 lt_cv_deplibs_check_method=pass_all
6677 ;;
6678 pc)
6679 lt_cv_deplibs_check_method=pass_all
6680 ;;
6681 esac
6682 ;;
6683
6684 tpf*)
6685 lt_cv_deplibs_check_method=pass_all
6686 ;;
6687 vxworks*)
6688 # Assume VxWorks cross toolchains are built on Linux, possibly
6689 # as canadian for Windows hosts.
6690 lt_cv_deplibs_check_method=pass_all
6691 ;;
6692 esac
6693
6694 fi
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6696 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6697 file_magic_cmd=$lt_cv_file_magic_cmd
6698 deplibs_check_method=$lt_cv_deplibs_check_method
6699 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712 plugin_option=
6713 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6714 for plugin in $plugin_names; do
6715 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6716 if test x$plugin_so = x$plugin; then
6717 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6718 fi
6719 if test x$plugin_so != x$plugin; then
6720 plugin_option="--plugin $plugin_so"
6721 break
6722 fi
6723 done
6724
6725 if test -n "$ac_tool_prefix"; then
6726 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6727 set dummy ${ac_tool_prefix}ar; ac_word=$2
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729 $as_echo_n "checking for $ac_word... " >&6; }
6730 if ${ac_cv_prog_AR+:} false; then :
6731 $as_echo_n "(cached) " >&6
6732 else
6733 if test -n "$AR"; then
6734 ac_cv_prog_AR="$AR" # Let the user override the test.
6735 else
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743 ac_cv_prog_AR="${ac_tool_prefix}ar"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6746 fi
6747 done
6748 done
6749 IFS=$as_save_IFS
6750
6751 fi
6752 fi
6753 AR=$ac_cv_prog_AR
6754 if test -n "$AR"; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6756 $as_echo "$AR" >&6; }
6757 else
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759 $as_echo "no" >&6; }
6760 fi
6761
6762
6763 fi
6764 if test -z "$ac_cv_prog_AR"; then
6765 ac_ct_AR=$AR
6766 # Extract the first word of "ar", so it can be a program name with args.
6767 set dummy ar; ac_word=$2
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769 $as_echo_n "checking for $ac_word... " >&6; }
6770 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6771 $as_echo_n "(cached) " >&6
6772 else
6773 if test -n "$ac_ct_AR"; then
6774 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6775 else
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777 for as_dir in $PATH
6778 do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6783 ac_cv_prog_ac_ct_AR="ar"
6784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787 done
6788 done
6789 IFS=$as_save_IFS
6790
6791 fi
6792 fi
6793 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6794 if test -n "$ac_ct_AR"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6796 $as_echo "$ac_ct_AR" >&6; }
6797 else
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6800 fi
6801
6802 if test "x$ac_ct_AR" = x; then
6803 AR="false"
6804 else
6805 case $cross_compiling:$ac_tool_warned in
6806 yes:)
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6809 ac_tool_warned=yes ;;
6810 esac
6811 AR=$ac_ct_AR
6812 fi
6813 else
6814 AR="$ac_cv_prog_AR"
6815 fi
6816
6817 test -z "$AR" && AR=ar
6818 if test -n "$plugin_option"; then
6819 if $AR --help 2>&1 | grep -q "\--plugin"; then
6820 touch conftest.c
6821 $AR $plugin_option rc conftest.a conftest.c
6822 if test "$?" != 0; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6824 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6825 else
6826 AR="$AR $plugin_option"
6827 fi
6828 rm -f conftest.*
6829 fi
6830 fi
6831 test -z "$AR_FLAGS" && AR_FLAGS=cru
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843 if test -n "$ac_tool_prefix"; then
6844 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6845 set dummy ${ac_tool_prefix}strip; ac_word=$2
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if ${ac_cv_prog_STRIP+:} false; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 if test -n "$STRIP"; then
6852 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6853 else
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6861 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 break 2
6864 fi
6865 done
6866 done
6867 IFS=$as_save_IFS
6868
6869 fi
6870 fi
6871 STRIP=$ac_cv_prog_STRIP
6872 if test -n "$STRIP"; then
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6874 $as_echo "$STRIP" >&6; }
6875 else
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6878 fi
6879
6880
6881 fi
6882 if test -z "$ac_cv_prog_STRIP"; then
6883 ac_ct_STRIP=$STRIP
6884 # Extract the first word of "strip", so it can be a program name with args.
6885 set dummy strip; ac_word=$2
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887 $as_echo_n "checking for $ac_word... " >&6; }
6888 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 if test -n "$ac_ct_STRIP"; then
6892 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6893 else
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895 for as_dir in $PATH
6896 do
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6901 ac_cv_prog_ac_ct_STRIP="strip"
6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905 done
6906 done
6907 IFS=$as_save_IFS
6908
6909 fi
6910 fi
6911 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6912 if test -n "$ac_ct_STRIP"; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6914 $as_echo "$ac_ct_STRIP" >&6; }
6915 else
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6918 fi
6919
6920 if test "x$ac_ct_STRIP" = x; then
6921 STRIP=":"
6922 else
6923 case $cross_compiling:$ac_tool_warned in
6924 yes:)
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6927 ac_tool_warned=yes ;;
6928 esac
6929 STRIP=$ac_ct_STRIP
6930 fi
6931 else
6932 STRIP="$ac_cv_prog_STRIP"
6933 fi
6934
6935 test -z "$STRIP" && STRIP=:
6936
6937
6938
6939
6940
6941
6942 if test -n "$ac_tool_prefix"; then
6943 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6944 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6946 $as_echo_n "checking for $ac_word... " >&6; }
6947 if ${ac_cv_prog_RANLIB+:} false; then :
6948 $as_echo_n "(cached) " >&6
6949 else
6950 if test -n "$RANLIB"; then
6951 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6952 else
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956 IFS=$as_save_IFS
6957 test -z "$as_dir" && as_dir=.
6958 for ac_exec_ext in '' $ac_executable_extensions; do
6959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6960 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 break 2
6963 fi
6964 done
6965 done
6966 IFS=$as_save_IFS
6967
6968 fi
6969 fi
6970 RANLIB=$ac_cv_prog_RANLIB
6971 if test -n "$RANLIB"; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6973 $as_echo "$RANLIB" >&6; }
6974 else
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6976 $as_echo "no" >&6; }
6977 fi
6978
6979
6980 fi
6981 if test -z "$ac_cv_prog_RANLIB"; then
6982 ac_ct_RANLIB=$RANLIB
6983 # Extract the first word of "ranlib", so it can be a program name with args.
6984 set dummy ranlib; ac_word=$2
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986 $as_echo_n "checking for $ac_word... " >&6; }
6987 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990 if test -n "$ac_ct_RANLIB"; then
6991 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6992 else
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994 for as_dir in $PATH
6995 do
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7000 ac_cv_prog_ac_ct_RANLIB="ranlib"
7001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 break 2
7003 fi
7004 done
7005 done
7006 IFS=$as_save_IFS
7007
7008 fi
7009 fi
7010 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7011 if test -n "$ac_ct_RANLIB"; then
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7013 $as_echo "$ac_ct_RANLIB" >&6; }
7014 else
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016 $as_echo "no" >&6; }
7017 fi
7018
7019 if test "x$ac_ct_RANLIB" = x; then
7020 RANLIB=":"
7021 else
7022 case $cross_compiling:$ac_tool_warned in
7023 yes:)
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7026 ac_tool_warned=yes ;;
7027 esac
7028 RANLIB=$ac_ct_RANLIB
7029 fi
7030 else
7031 RANLIB="$ac_cv_prog_RANLIB"
7032 fi
7033
7034 test -z "$RANLIB" && RANLIB=:
7035 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
7036 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
7037 RANLIB="$RANLIB $plugin_option"
7038 fi
7039 fi
7040
7041
7042
7043
7044
7045
7046 # Determine commands to create old-style static archives.
7047 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7048 old_postinstall_cmds='chmod 644 $oldlib'
7049 old_postuninstall_cmds=
7050
7051 if test -n "$RANLIB"; then
7052 case $host_os in
7053 openbsd*)
7054 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7055 ;;
7056 *)
7057 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7058 ;;
7059 esac
7060 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7061 fi
7062
7063 case $host_os in
7064 darwin*)
7065 lock_old_archive_extraction=yes ;;
7066 *)
7067 lock_old_archive_extraction=no ;;
7068 esac
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
7105
7106
7107
7108 # If no C compiler was specified, use CC.
7109 LTCC=${LTCC-"$CC"}
7110
7111 # If no C compiler flags were specified, use CFLAGS.
7112 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7113
7114 # Allow CC to be a program name with arguments.
7115 compiler=$CC
7116
7117
7118 # Check for command to grab the raw symbol name followed by C symbol from nm.
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7120 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7121 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7122 $as_echo_n "(cached) " >&6
7123 else
7124
7125 # These are sane defaults that work on at least a few old systems.
7126 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7127
7128 # Character class describing NM global symbol codes.
7129 symcode='[BCDEGRST]'
7130
7131 # Regexp to match symbols that can be accessed directly from C.
7132 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7133
7134 # Define system-specific variables.
7135 case $host_os in
7136 aix*)
7137 symcode='[BCDT]'
7138 ;;
7139 cygwin* | mingw* | pw32* | cegcc*)
7140 symcode='[ABCDGISTW]'
7141 ;;
7142 hpux*)
7143 if test "$host_cpu" = ia64; then
7144 symcode='[ABCDEGRST]'
7145 fi
7146 ;;
7147 irix* | nonstopux*)
7148 symcode='[BCDEGRST]'
7149 ;;
7150 osf*)
7151 symcode='[BCDEGQRST]'
7152 ;;
7153 solaris*)
7154 symcode='[BCDRT]'
7155 ;;
7156 sco3.2v5*)
7157 symcode='[DT]'
7158 ;;
7159 sysv4.2uw2*)
7160 symcode='[DT]'
7161 ;;
7162 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7163 symcode='[ABDT]'
7164 ;;
7165 sysv4)
7166 symcode='[DFNSTU]'
7167 ;;
7168 esac
7169
7170 # If we're using GNU nm, then use its standard symbol codes.
7171 case `$NM -V 2>&1` in
7172 *GNU* | *'with BFD'*)
7173 symcode='[ABCDGIRSTW]' ;;
7174 esac
7175
7176 # Transform an extracted symbol line into a proper C declaration.
7177 # Some systems (esp. on ia64) link data and code symbols differently,
7178 # so use this general approach.
7179 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7180
7181 # Transform an extracted symbol line into symbol name and symbol address
7182 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7183 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'"
7184
7185 # Handle CRLF in mingw tool chain
7186 opt_cr=
7187 case $build_os in
7188 mingw*)
7189 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7190 ;;
7191 esac
7192
7193 # Try without a prefix underscore, then with it.
7194 for ac_symprfx in "" "_"; do
7195
7196 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7197 symxfrm="\\1 $ac_symprfx\\2 \\2"
7198
7199 # Write the raw and C identifiers.
7200 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7201 # Fake it for dumpbin and say T for any non-static function
7202 # and D for any global variable.
7203 # Also find C++ and __fastcall symbols from MSVC++,
7204 # which start with @ or ?.
7205 lt_cv_sys_global_symbol_pipe="$AWK '"\
7206 " {last_section=section; section=\$ 3};"\
7207 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7208 " \$ 0!~/External *\|/{next};"\
7209 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7210 " {if(hide[section]) next};"\
7211 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7212 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7213 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7214 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7215 " ' prfx=^$ac_symprfx"
7216 else
7217 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7218 fi
7219
7220 # Check to see that the pipe works correctly.
7221 pipe_works=no
7222
7223 rm -f conftest*
7224 cat > conftest.$ac_ext <<_LT_EOF
7225 #ifdef __cplusplus
7226 extern "C" {
7227 #endif
7228 char nm_test_var;
7229 void nm_test_func(void);
7230 void nm_test_func(void){}
7231 #ifdef __cplusplus
7232 }
7233 #endif
7234 int main(){nm_test_var='a';nm_test_func();return(0);}
7235 _LT_EOF
7236
7237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7238 (eval $ac_compile) 2>&5
7239 ac_status=$?
7240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7241 test $ac_status = 0; }; then
7242 # Now try to grab the symbols.
7243 nlist=conftest.nm
7244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7245 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7246 ac_status=$?
7247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7248 test $ac_status = 0; } && test -s "$nlist"; then
7249 # Try sorting and uniquifying the output.
7250 if sort "$nlist" | uniq > "$nlist"T; then
7251 mv -f "$nlist"T "$nlist"
7252 else
7253 rm -f "$nlist"T
7254 fi
7255
7256 # Make sure that we snagged all the symbols we need.
7257 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7258 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7259 cat <<_LT_EOF > conftest.$ac_ext
7260 #ifdef __cplusplus
7261 extern "C" {
7262 #endif
7263
7264 _LT_EOF
7265 # Now generate the symbol file.
7266 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7267
7268 cat <<_LT_EOF >> conftest.$ac_ext
7269
7270 /* The mapping between symbol names and symbols. */
7271 const struct {
7272 const char *name;
7273 void *address;
7274 }
7275 lt__PROGRAM__LTX_preloaded_symbols[] =
7276 {
7277 { "@PROGRAM@", (void *) 0 },
7278 _LT_EOF
7279 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7280 cat <<\_LT_EOF >> conftest.$ac_ext
7281 {0, (void *) 0}
7282 };
7283
7284 /* This works around a problem in FreeBSD linker */
7285 #ifdef FREEBSD_WORKAROUND
7286 static const void *lt_preloaded_setup() {
7287 return lt__PROGRAM__LTX_preloaded_symbols;
7288 }
7289 #endif
7290
7291 #ifdef __cplusplus
7292 }
7293 #endif
7294 _LT_EOF
7295 # Now try linking the two files.
7296 mv conftest.$ac_objext conftstm.$ac_objext
7297 lt_save_LIBS="$LIBS"
7298 lt_save_CFLAGS="$CFLAGS"
7299 LIBS="conftstm.$ac_objext"
7300 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7302 (eval $ac_link) 2>&5
7303 ac_status=$?
7304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7305 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7306 pipe_works=yes
7307 fi
7308 LIBS="$lt_save_LIBS"
7309 CFLAGS="$lt_save_CFLAGS"
7310 else
7311 echo "cannot find nm_test_func in $nlist" >&5
7312 fi
7313 else
7314 echo "cannot find nm_test_var in $nlist" >&5
7315 fi
7316 else
7317 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7318 fi
7319 else
7320 echo "$progname: failed program was:" >&5
7321 cat conftest.$ac_ext >&5
7322 fi
7323 rm -rf conftest* conftst*
7324
7325 # Do not use the global_symbol_pipe unless it works.
7326 if test "$pipe_works" = yes; then
7327 break
7328 else
7329 lt_cv_sys_global_symbol_pipe=
7330 fi
7331 done
7332
7333 fi
7334
7335 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7336 lt_cv_sys_global_symbol_to_cdecl=
7337 fi
7338 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7340 $as_echo "failed" >&6; }
7341 else
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7343 $as_echo "ok" >&6; }
7344 fi
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367 # Check whether --enable-libtool-lock was given.
7368 if test "${enable_libtool_lock+set}" = set; then :
7369 enableval=$enable_libtool_lock;
7370 fi
7371
7372 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7373
7374 # Some flags need to be propagated to the compiler or linker for good
7375 # libtool support.
7376 case $host in
7377 ia64-*-hpux*)
7378 # Find out which ABI we are using.
7379 echo 'int i;' > conftest.$ac_ext
7380 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7381 (eval $ac_compile) 2>&5
7382 ac_status=$?
7383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7384 test $ac_status = 0; }; then
7385 case `/usr/bin/file conftest.$ac_objext` in
7386 *ELF-32*)
7387 HPUX_IA64_MODE="32"
7388 ;;
7389 *ELF-64*)
7390 HPUX_IA64_MODE="64"
7391 ;;
7392 esac
7393 fi
7394 rm -rf conftest*
7395 ;;
7396 *-*-irix6*)
7397 # Find out which ABI we are using.
7398 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7400 (eval $ac_compile) 2>&5
7401 ac_status=$?
7402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7403 test $ac_status = 0; }; then
7404 if test "$lt_cv_prog_gnu_ld" = yes; then
7405 case `/usr/bin/file conftest.$ac_objext` in
7406 *32-bit*)
7407 LD="${LD-ld} -melf32bsmip"
7408 ;;
7409 *N32*)
7410 LD="${LD-ld} -melf32bmipn32"
7411 ;;
7412 *64-bit*)
7413 LD="${LD-ld} -melf64bmip"
7414 ;;
7415 esac
7416 else
7417 case `/usr/bin/file conftest.$ac_objext` in
7418 *32-bit*)
7419 LD="${LD-ld} -32"
7420 ;;
7421 *N32*)
7422 LD="${LD-ld} -n32"
7423 ;;
7424 *64-bit*)
7425 LD="${LD-ld} -64"
7426 ;;
7427 esac
7428 fi
7429 fi
7430 rm -rf conftest*
7431 ;;
7432
7433 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7434 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7435 # Find out which ABI we are using.
7436 echo 'int i;' > conftest.$ac_ext
7437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7438 (eval $ac_compile) 2>&5
7439 ac_status=$?
7440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7441 test $ac_status = 0; }; then
7442 case `/usr/bin/file conftest.o` in
7443 *32-bit*)
7444 case $host in
7445 x86_64-*kfreebsd*-gnu)
7446 LD="${LD-ld} -m elf_i386_fbsd"
7447 ;;
7448 x86_64-*linux*)
7449 case `/usr/bin/file conftest.o` in
7450 *x86-64*)
7451 LD="${LD-ld} -m elf32_x86_64"
7452 ;;
7453 *)
7454 LD="${LD-ld} -m elf_i386"
7455 ;;
7456 esac
7457 ;;
7458 powerpc64le-*linux*)
7459 LD="${LD-ld} -m elf32lppclinux"
7460 ;;
7461 powerpc64-*linux*)
7462 LD="${LD-ld} -m elf32ppclinux"
7463 ;;
7464 s390x-*linux*)
7465 LD="${LD-ld} -m elf_s390"
7466 ;;
7467 sparc64-*linux*)
7468 LD="${LD-ld} -m elf32_sparc"
7469 ;;
7470 esac
7471 ;;
7472 *64-bit*)
7473 case $host in
7474 x86_64-*kfreebsd*-gnu)
7475 LD="${LD-ld} -m elf_x86_64_fbsd"
7476 ;;
7477 x86_64-*linux*)
7478 LD="${LD-ld} -m elf_x86_64"
7479 ;;
7480 powerpcle-*linux*)
7481 LD="${LD-ld} -m elf64lppc"
7482 ;;
7483 powerpc-*linux*)
7484 LD="${LD-ld} -m elf64ppc"
7485 ;;
7486 s390*-*linux*|s390*-*tpf*)
7487 LD="${LD-ld} -m elf64_s390"
7488 ;;
7489 sparc*-*linux*)
7490 LD="${LD-ld} -m elf64_sparc"
7491 ;;
7492 esac
7493 ;;
7494 esac
7495 fi
7496 rm -rf conftest*
7497 ;;
7498
7499 *-*-sco3.2v5*)
7500 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7501 SAVE_CFLAGS="$CFLAGS"
7502 CFLAGS="$CFLAGS -belf"
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7504 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7505 if ${lt_cv_cc_needs_belf+:} false; then :
7506 $as_echo_n "(cached) " >&6
7507 else
7508 ac_ext=c
7509 ac_cpp='$CPP $CPPFLAGS'
7510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7513
7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h. */
7516
7517 int
7518 main ()
7519 {
7520
7521 ;
7522 return 0;
7523 }
7524 _ACEOF
7525 if ac_fn_c_try_link "$LINENO"; then :
7526 lt_cv_cc_needs_belf=yes
7527 else
7528 lt_cv_cc_needs_belf=no
7529 fi
7530 rm -f core conftest.err conftest.$ac_objext \
7531 conftest$ac_exeext conftest.$ac_ext
7532 ac_ext=c
7533 ac_cpp='$CPP $CPPFLAGS'
7534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7537
7538 fi
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7540 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7541 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7542 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7543 CFLAGS="$SAVE_CFLAGS"
7544 fi
7545 ;;
7546 sparc*-*solaris*)
7547 # Find out which ABI we are using.
7548 echo 'int i;' > conftest.$ac_ext
7549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7550 (eval $ac_compile) 2>&5
7551 ac_status=$?
7552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7553 test $ac_status = 0; }; then
7554 case `/usr/bin/file conftest.o` in
7555 *64-bit*)
7556 case $lt_cv_prog_gnu_ld in
7557 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7558 *)
7559 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7560 LD="${LD-ld} -64"
7561 fi
7562 ;;
7563 esac
7564 ;;
7565 esac
7566 fi
7567 rm -rf conftest*
7568 ;;
7569 esac
7570
7571 need_locks="$enable_libtool_lock"
7572
7573
7574 case $host_os in
7575 rhapsody* | darwin*)
7576 if test -n "$ac_tool_prefix"; then
7577 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7578 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 if test -n "$DSYMUTIL"; then
7585 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7586 else
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7589 do
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7597 fi
7598 done
7599 done
7600 IFS=$as_save_IFS
7601
7602 fi
7603 fi
7604 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7605 if test -n "$DSYMUTIL"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7607 $as_echo "$DSYMUTIL" >&6; }
7608 else
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7611 fi
7612
7613
7614 fi
7615 if test -z "$ac_cv_prog_DSYMUTIL"; then
7616 ac_ct_DSYMUTIL=$DSYMUTIL
7617 # Extract the first word of "dsymutil", so it can be a program name with args.
7618 set dummy dsymutil; ac_word=$2
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620 $as_echo_n "checking for $ac_word... " >&6; }
7621 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7622 $as_echo_n "(cached) " >&6
7623 else
7624 if test -n "$ac_ct_DSYMUTIL"; then
7625 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7626 else
7627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628 for as_dir in $PATH
7629 do
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7634 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 break 2
7637 fi
7638 done
7639 done
7640 IFS=$as_save_IFS
7641
7642 fi
7643 fi
7644 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7645 if test -n "$ac_ct_DSYMUTIL"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7647 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7648 else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650 $as_echo "no" >&6; }
7651 fi
7652
7653 if test "x$ac_ct_DSYMUTIL" = x; then
7654 DSYMUTIL=":"
7655 else
7656 case $cross_compiling:$ac_tool_warned in
7657 yes:)
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7660 ac_tool_warned=yes ;;
7661 esac
7662 DSYMUTIL=$ac_ct_DSYMUTIL
7663 fi
7664 else
7665 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7666 fi
7667
7668 if test -n "$ac_tool_prefix"; then
7669 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7670 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if ${ac_cv_prog_NMEDIT+:} false; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 if test -n "$NMEDIT"; then
7677 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7689 fi
7690 done
7691 done
7692 IFS=$as_save_IFS
7693
7694 fi
7695 fi
7696 NMEDIT=$ac_cv_prog_NMEDIT
7697 if test -n "$NMEDIT"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7699 $as_echo "$NMEDIT" >&6; }
7700 else
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7703 fi
7704
7705
7706 fi
7707 if test -z "$ac_cv_prog_NMEDIT"; then
7708 ac_ct_NMEDIT=$NMEDIT
7709 # Extract the first word of "nmedit", so it can be a program name with args.
7710 set dummy nmedit; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 if test -n "$ac_ct_NMEDIT"; then
7717 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7718 else
7719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 for as_dir in $PATH
7721 do
7722 IFS=$as_save_IFS
7723 test -z "$as_dir" && as_dir=.
7724 for ac_exec_ext in '' $ac_executable_extensions; do
7725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7726 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7728 break 2
7729 fi
7730 done
7731 done
7732 IFS=$as_save_IFS
7733
7734 fi
7735 fi
7736 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7737 if test -n "$ac_ct_NMEDIT"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7739 $as_echo "$ac_ct_NMEDIT" >&6; }
7740 else
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7743 fi
7744
7745 if test "x$ac_ct_NMEDIT" = x; then
7746 NMEDIT=":"
7747 else
7748 case $cross_compiling:$ac_tool_warned in
7749 yes:)
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7752 ac_tool_warned=yes ;;
7753 esac
7754 NMEDIT=$ac_ct_NMEDIT
7755 fi
7756 else
7757 NMEDIT="$ac_cv_prog_NMEDIT"
7758 fi
7759
7760 if test -n "$ac_tool_prefix"; then
7761 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7762 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if ${ac_cv_prog_LIPO+:} false; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 if test -n "$LIPO"; then
7769 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7778 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7781 fi
7782 done
7783 done
7784 IFS=$as_save_IFS
7785
7786 fi
7787 fi
7788 LIPO=$ac_cv_prog_LIPO
7789 if test -n "$LIPO"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7791 $as_echo "$LIPO" >&6; }
7792 else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7795 fi
7796
7797
7798 fi
7799 if test -z "$ac_cv_prog_LIPO"; then
7800 ac_ct_LIPO=$LIPO
7801 # Extract the first word of "lipo", so it can be a program name with args.
7802 set dummy lipo; ac_word=$2
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7804 $as_echo_n "checking for $ac_word... " >&6; }
7805 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 if test -n "$ac_ct_LIPO"; then
7809 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7810 else
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812 for as_dir in $PATH
7813 do
7814 IFS=$as_save_IFS
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7818 ac_cv_prog_ac_ct_LIPO="lipo"
7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 break 2
7821 fi
7822 done
7823 done
7824 IFS=$as_save_IFS
7825
7826 fi
7827 fi
7828 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7829 if test -n "$ac_ct_LIPO"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7831 $as_echo "$ac_ct_LIPO" >&6; }
7832 else
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7834 $as_echo "no" >&6; }
7835 fi
7836
7837 if test "x$ac_ct_LIPO" = x; then
7838 LIPO=":"
7839 else
7840 case $cross_compiling:$ac_tool_warned in
7841 yes:)
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7844 ac_tool_warned=yes ;;
7845 esac
7846 LIPO=$ac_ct_LIPO
7847 fi
7848 else
7849 LIPO="$ac_cv_prog_LIPO"
7850 fi
7851
7852 if test -n "$ac_tool_prefix"; then
7853 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7854 set dummy ${ac_tool_prefix}otool; ac_word=$2
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 $as_echo_n "checking for $ac_word... " >&6; }
7857 if ${ac_cv_prog_OTOOL+:} false; then :
7858 $as_echo_n "(cached) " >&6
7859 else
7860 if test -n "$OTOOL"; then
7861 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7862 else
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 for as_dir in $PATH
7865 do
7866 IFS=$as_save_IFS
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7870 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 break 2
7873 fi
7874 done
7875 done
7876 IFS=$as_save_IFS
7877
7878 fi
7879 fi
7880 OTOOL=$ac_cv_prog_OTOOL
7881 if test -n "$OTOOL"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7883 $as_echo "$OTOOL" >&6; }
7884 else
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7887 fi
7888
7889
7890 fi
7891 if test -z "$ac_cv_prog_OTOOL"; then
7892 ac_ct_OTOOL=$OTOOL
7893 # Extract the first word of "otool", so it can be a program name with args.
7894 set dummy otool; ac_word=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7898 $as_echo_n "(cached) " >&6
7899 else
7900 if test -n "$ac_ct_OTOOL"; then
7901 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7902 else
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904 for as_dir in $PATH
7905 do
7906 IFS=$as_save_IFS
7907 test -z "$as_dir" && as_dir=.
7908 for ac_exec_ext in '' $ac_executable_extensions; do
7909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7910 ac_cv_prog_ac_ct_OTOOL="otool"
7911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 break 2
7913 fi
7914 done
7915 done
7916 IFS=$as_save_IFS
7917
7918 fi
7919 fi
7920 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7921 if test -n "$ac_ct_OTOOL"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7923 $as_echo "$ac_ct_OTOOL" >&6; }
7924 else
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7927 fi
7928
7929 if test "x$ac_ct_OTOOL" = x; then
7930 OTOOL=":"
7931 else
7932 case $cross_compiling:$ac_tool_warned in
7933 yes:)
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7936 ac_tool_warned=yes ;;
7937 esac
7938 OTOOL=$ac_ct_OTOOL
7939 fi
7940 else
7941 OTOOL="$ac_cv_prog_OTOOL"
7942 fi
7943
7944 if test -n "$ac_tool_prefix"; then
7945 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7946 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7948 $as_echo_n "checking for $ac_word... " >&6; }
7949 if ${ac_cv_prog_OTOOL64+:} false; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 if test -n "$OTOOL64"; then
7953 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7962 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 break 2
7965 fi
7966 done
7967 done
7968 IFS=$as_save_IFS
7969
7970 fi
7971 fi
7972 OTOOL64=$ac_cv_prog_OTOOL64
7973 if test -n "$OTOOL64"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7975 $as_echo "$OTOOL64" >&6; }
7976 else
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7979 fi
7980
7981
7982 fi
7983 if test -z "$ac_cv_prog_OTOOL64"; then
7984 ac_ct_OTOOL64=$OTOOL64
7985 # Extract the first word of "otool64", so it can be a program name with args.
7986 set dummy otool64; ac_word=$2
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7988 $as_echo_n "checking for $ac_word... " >&6; }
7989 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 if test -n "$ac_ct_OTOOL64"; then
7993 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7994 else
7995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7996 for as_dir in $PATH
7997 do
7998 IFS=$as_save_IFS
7999 test -z "$as_dir" && as_dir=.
8000 for ac_exec_ext in '' $ac_executable_extensions; do
8001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8002 ac_cv_prog_ac_ct_OTOOL64="otool64"
8003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8004 break 2
8005 fi
8006 done
8007 done
8008 IFS=$as_save_IFS
8009
8010 fi
8011 fi
8012 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8013 if test -n "$ac_ct_OTOOL64"; then
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8015 $as_echo "$ac_ct_OTOOL64" >&6; }
8016 else
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018 $as_echo "no" >&6; }
8019 fi
8020
8021 if test "x$ac_ct_OTOOL64" = x; then
8022 OTOOL64=":"
8023 else
8024 case $cross_compiling:$ac_tool_warned in
8025 yes:)
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8028 ac_tool_warned=yes ;;
8029 esac
8030 OTOOL64=$ac_ct_OTOOL64
8031 fi
8032 else
8033 OTOOL64="$ac_cv_prog_OTOOL64"
8034 fi
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8063 $as_echo_n "checking for -single_module linker flag... " >&6; }
8064 if ${lt_cv_apple_cc_single_mod+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 lt_cv_apple_cc_single_mod=no
8068 if test -z "${LT_MULTI_MODULE}"; then
8069 # By default we will add the -single_module flag. You can override
8070 # by either setting the environment variable LT_MULTI_MODULE
8071 # non-empty at configure time, or by adding -multi_module to the
8072 # link flags.
8073 rm -rf libconftest.dylib*
8074 echo "int foo(void){return 1;}" > conftest.c
8075 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8076 -dynamiclib -Wl,-single_module conftest.c" >&5
8077 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8078 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8079 _lt_result=$?
8080 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8081 lt_cv_apple_cc_single_mod=yes
8082 else
8083 cat conftest.err >&5
8084 fi
8085 rm -rf libconftest.dylib*
8086 rm -f conftest.*
8087 fi
8088 fi
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8090 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8092 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8093 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8096 lt_cv_ld_exported_symbols_list=no
8097 save_LDFLAGS=$LDFLAGS
8098 echo "_main" > conftest.sym
8099 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8102
8103 int
8104 main ()
8105 {
8106
8107 ;
8108 return 0;
8109 }
8110 _ACEOF
8111 if ac_fn_c_try_link "$LINENO"; then :
8112 lt_cv_ld_exported_symbols_list=yes
8113 else
8114 lt_cv_ld_exported_symbols_list=no
8115 fi
8116 rm -f core conftest.err conftest.$ac_objext \
8117 conftest$ac_exeext conftest.$ac_ext
8118 LDFLAGS="$save_LDFLAGS"
8119
8120 fi
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8122 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8124 $as_echo_n "checking for -force_load linker flag... " >&6; }
8125 if ${lt_cv_ld_force_load+:} false; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128 lt_cv_ld_force_load=no
8129 cat > conftest.c << _LT_EOF
8130 int forced_loaded() { return 2;}
8131 _LT_EOF
8132 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8133 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8134 echo "$AR cru libconftest.a conftest.o" >&5
8135 $AR cru libconftest.a conftest.o 2>&5
8136 cat > conftest.c << _LT_EOF
8137 int main() { return 0;}
8138 _LT_EOF
8139 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8140 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8141 _lt_result=$?
8142 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8143 lt_cv_ld_force_load=yes
8144 else
8145 cat conftest.err >&5
8146 fi
8147 rm -f conftest.err libconftest.a conftest conftest.c
8148 rm -rf conftest.dSYM
8149
8150 fi
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8152 $as_echo "$lt_cv_ld_force_load" >&6; }
8153 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
8154 # build without first building modern cctools / linker.
8155 case $host_cpu-$host_os in
8156 *-rhapsody* | *-darwin1.[012])
8157 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8158 *-darwin1.*)
8159 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8160 *-darwin*)
8161 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
8162 # deployment target is forced to an earlier version.
8163 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
8164 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
8165 ;;
8166 10.[012][,.]*)
8167 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8168 ;;
8169 *)
8170 ;;
8171 esac
8172 ;;
8173 esac
8174 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8175 _lt_dar_single_mod='$single_module'
8176 fi
8177 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8178 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8179 else
8180 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8181 fi
8182 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8183 _lt_dsymutil='~$DSYMUTIL $lib || :'
8184 else
8185 _lt_dsymutil=
8186 fi
8187 ;;
8188 esac
8189
8190 for ac_header in dlfcn.h
8191 do :
8192 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8193 "
8194 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8195 cat >>confdefs.h <<_ACEOF
8196 #define HAVE_DLFCN_H 1
8197 _ACEOF
8198
8199 fi
8200
8201 done
8202
8203
8204
8205
8206
8207 # Set options
8208
8209
8210
8211 enable_dlopen=no
8212
8213
8214 enable_win32_dll=no
8215
8216
8217
8218 # Check whether --enable-static was given.
8219 if test "${enable_static+set}" = set; then :
8220 enableval=$enable_static; p=${PACKAGE-default}
8221 case $enableval in
8222 yes) enable_static=yes ;;
8223 no) enable_static=no ;;
8224 *)
8225 enable_static=no
8226 # Look at the argument we got. We use all the common list separators.
8227 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8228 for pkg in $enableval; do
8229 IFS="$lt_save_ifs"
8230 if test "X$pkg" = "X$p"; then
8231 enable_static=yes
8232 fi
8233 done
8234 IFS="$lt_save_ifs"
8235 ;;
8236 esac
8237 else
8238 enable_static=yes
8239 fi
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250 # Check whether --with-pic was given.
8251 if test "${with_pic+set}" = set; then :
8252 withval=$with_pic; pic_mode="$withval"
8253 else
8254 pic_mode=default
8255 fi
8256
8257
8258 test -z "$pic_mode" && pic_mode=default
8259
8260
8261
8262
8263
8264
8265
8266 # Check whether --enable-fast-install was given.
8267 if test "${enable_fast_install+set}" = set; then :
8268 enableval=$enable_fast_install; p=${PACKAGE-default}
8269 case $enableval in
8270 yes) enable_fast_install=yes ;;
8271 no) enable_fast_install=no ;;
8272 *)
8273 enable_fast_install=no
8274 # Look at the argument we got. We use all the common list separators.
8275 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8276 for pkg in $enableval; do
8277 IFS="$lt_save_ifs"
8278 if test "X$pkg" = "X$p"; then
8279 enable_fast_install=yes
8280 fi
8281 done
8282 IFS="$lt_save_ifs"
8283 ;;
8284 esac
8285 else
8286 enable_fast_install=yes
8287 fi
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299 # This can be used to rebuild libtool when needed
8300 LIBTOOL_DEPS="$ltmain"
8301
8302 # Always use our own libtool.
8303 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330 test -z "$LN_S" && LN_S="ln -s"
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345 if test -n "${ZSH_VERSION+set}" ; then
8346 setopt NO_GLOB_SUBST
8347 fi
8348
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8350 $as_echo_n "checking for objdir... " >&6; }
8351 if ${lt_cv_objdir+:} false; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 rm -f .libs 2>/dev/null
8355 mkdir .libs 2>/dev/null
8356 if test -d .libs; then
8357 lt_cv_objdir=.libs
8358 else
8359 # MS-DOS does not allow filenames that begin with a dot.
8360 lt_cv_objdir=_libs
8361 fi
8362 rmdir .libs 2>/dev/null
8363 fi
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8365 $as_echo "$lt_cv_objdir" >&6; }
8366 objdir=$lt_cv_objdir
8367
8368
8369
8370
8371
8372 cat >>confdefs.h <<_ACEOF
8373 #define LT_OBJDIR "$lt_cv_objdir/"
8374 _ACEOF
8375
8376
8377
8378
8379 case $host_os in
8380 aix3*)
8381 # AIX sometimes has problems with the GCC collect2 program. For some
8382 # reason, if we set the COLLECT_NAMES environment variable, the problems
8383 # vanish in a puff of smoke.
8384 if test "X${COLLECT_NAMES+set}" != Xset; then
8385 COLLECT_NAMES=
8386 export COLLECT_NAMES
8387 fi
8388 ;;
8389 esac
8390
8391 # Global variables:
8392 ofile=libtool
8393 can_build_shared=yes
8394
8395 # All known linkers require a `.a' archive for static linking (except MSVC,
8396 # which needs '.lib').
8397 libext=a
8398
8399 with_gnu_ld="$lt_cv_prog_gnu_ld"
8400
8401 old_CC="$CC"
8402 old_CFLAGS="$CFLAGS"
8403
8404 # Set sane defaults for various variables
8405 test -z "$CC" && CC=cc
8406 test -z "$LTCC" && LTCC=$CC
8407 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8408 test -z "$LD" && LD=ld
8409 test -z "$ac_objext" && ac_objext=o
8410
8411 for cc_temp in $compiler""; do
8412 case $cc_temp in
8413 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8414 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8415 \-*) ;;
8416 *) break;;
8417 esac
8418 done
8419 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8420
8421
8422 # Only perform the check for file, if the check method requires it
8423 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8424 case $deplibs_check_method in
8425 file_magic*)
8426 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8428 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8429 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8430 $as_echo_n "(cached) " >&6
8431 else
8432 case $MAGIC_CMD in
8433 [\\/*] | ?:[\\/]*)
8434 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8435 ;;
8436 *)
8437 lt_save_MAGIC_CMD="$MAGIC_CMD"
8438 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8439 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8440 for ac_dir in $ac_dummy; do
8441 IFS="$lt_save_ifs"
8442 test -z "$ac_dir" && ac_dir=.
8443 if test -f $ac_dir/${ac_tool_prefix}file; then
8444 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8445 if test -n "$file_magic_test_file"; then
8446 case $deplibs_check_method in
8447 "file_magic "*)
8448 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8450 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8451 $EGREP "$file_magic_regex" > /dev/null; then
8452 :
8453 else
8454 cat <<_LT_EOF 1>&2
8455
8456 *** Warning: the command libtool uses to detect shared libraries,
8457 *** $file_magic_cmd, produces output that libtool cannot recognize.
8458 *** The result is that libtool may fail to recognize shared libraries
8459 *** as such. This will affect the creation of libtool libraries that
8460 *** depend on shared libraries, but programs linked with such libtool
8461 *** libraries will work regardless of this problem. Nevertheless, you
8462 *** may want to report the problem to your system manager and/or to
8463 *** bug-libtool@gnu.org
8464
8465 _LT_EOF
8466 fi ;;
8467 esac
8468 fi
8469 break
8470 fi
8471 done
8472 IFS="$lt_save_ifs"
8473 MAGIC_CMD="$lt_save_MAGIC_CMD"
8474 ;;
8475 esac
8476 fi
8477
8478 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8479 if test -n "$MAGIC_CMD"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8481 $as_echo "$MAGIC_CMD" >&6; }
8482 else
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8485 fi
8486
8487
8488
8489
8490
8491 if test -z "$lt_cv_path_MAGIC_CMD"; then
8492 if test -n "$ac_tool_prefix"; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8494 $as_echo_n "checking for file... " >&6; }
8495 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8496 $as_echo_n "(cached) " >&6
8497 else
8498 case $MAGIC_CMD in
8499 [\\/*] | ?:[\\/]*)
8500 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8501 ;;
8502 *)
8503 lt_save_MAGIC_CMD="$MAGIC_CMD"
8504 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8505 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8506 for ac_dir in $ac_dummy; do
8507 IFS="$lt_save_ifs"
8508 test -z "$ac_dir" && ac_dir=.
8509 if test -f $ac_dir/file; then
8510 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8511 if test -n "$file_magic_test_file"; then
8512 case $deplibs_check_method in
8513 "file_magic "*)
8514 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8515 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8516 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8517 $EGREP "$file_magic_regex" > /dev/null; then
8518 :
8519 else
8520 cat <<_LT_EOF 1>&2
8521
8522 *** Warning: the command libtool uses to detect shared libraries,
8523 *** $file_magic_cmd, produces output that libtool cannot recognize.
8524 *** The result is that libtool may fail to recognize shared libraries
8525 *** as such. This will affect the creation of libtool libraries that
8526 *** depend on shared libraries, but programs linked with such libtool
8527 *** libraries will work regardless of this problem. Nevertheless, you
8528 *** may want to report the problem to your system manager and/or to
8529 *** bug-libtool@gnu.org
8530
8531 _LT_EOF
8532 fi ;;
8533 esac
8534 fi
8535 break
8536 fi
8537 done
8538 IFS="$lt_save_ifs"
8539 MAGIC_CMD="$lt_save_MAGIC_CMD"
8540 ;;
8541 esac
8542 fi
8543
8544 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8545 if test -n "$MAGIC_CMD"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8547 $as_echo "$MAGIC_CMD" >&6; }
8548 else
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8551 fi
8552
8553
8554 else
8555 MAGIC_CMD=:
8556 fi
8557 fi
8558
8559 fi
8560 ;;
8561 esac
8562
8563 # Use C for the default configuration in the libtool script
8564
8565 lt_save_CC="$CC"
8566 ac_ext=c
8567 ac_cpp='$CPP $CPPFLAGS'
8568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8571
8572
8573 # Source file extension for C test sources.
8574 ac_ext=c
8575
8576 # Object file extension for compiled C test sources.
8577 objext=o
8578 objext=$objext
8579
8580 # Code to be used in simple compile tests
8581 lt_simple_compile_test_code="int some_variable = 0;"
8582
8583 # Code to be used in simple link tests
8584 lt_simple_link_test_code='int main(){return(0);}'
8585
8586
8587
8588
8589
8590
8591
8592 # If no C compiler was specified, use CC.
8593 LTCC=${LTCC-"$CC"}
8594
8595 # If no C compiler flags were specified, use CFLAGS.
8596 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8597
8598 # Allow CC to be a program name with arguments.
8599 compiler=$CC
8600
8601 # Save the default compiler, since it gets overwritten when the other
8602 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8603 compiler_DEFAULT=$CC
8604
8605 # save warnings/boilerplate of simple test code
8606 ac_outfile=conftest.$ac_objext
8607 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8608 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8609 _lt_compiler_boilerplate=`cat conftest.err`
8610 $RM conftest*
8611
8612 ac_outfile=conftest.$ac_objext
8613 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8614 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8615 _lt_linker_boilerplate=`cat conftest.err`
8616 $RM -r conftest*
8617
8618
8619 ## CAVEAT EMPTOR:
8620 ## There is no encapsulation within the following macros, do not change
8621 ## the running order or otherwise move them around unless you know exactly
8622 ## what you are doing...
8623 if test -n "$compiler"; then
8624
8625 lt_prog_compiler_no_builtin_flag=
8626
8627 if test "$GCC" = yes; then
8628 case $cc_basename in
8629 nvcc*)
8630 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8631 *)
8632 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8633 esac
8634
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8636 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8637 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8638 $as_echo_n "(cached) " >&6
8639 else
8640 lt_cv_prog_compiler_rtti_exceptions=no
8641 ac_outfile=conftest.$ac_objext
8642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8643 lt_compiler_flag="-fno-rtti -fno-exceptions"
8644 # Insert the option either (1) after the last *FLAGS variable, or
8645 # (2) before a word containing "conftest.", or (3) at the end.
8646 # Note that $ac_compile itself does not contain backslashes and begins
8647 # with a dollar sign (not a hyphen), so the echo should work correctly.
8648 # The option is referenced via a variable to avoid confusing sed.
8649 lt_compile=`echo "$ac_compile" | $SED \
8650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8652 -e 's:$: $lt_compiler_flag:'`
8653 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8654 (eval "$lt_compile" 2>conftest.err)
8655 ac_status=$?
8656 cat conftest.err >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 if (exit $ac_status) && test -s "$ac_outfile"; then
8659 # The compiler can only warn and ignore the option if not recognized
8660 # So say no if there are warnings other than the usual output.
8661 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8663 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8664 lt_cv_prog_compiler_rtti_exceptions=yes
8665 fi
8666 fi
8667 $RM conftest*
8668
8669 fi
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8671 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8672
8673 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8674 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8675 else
8676 :
8677 fi
8678
8679 fi
8680
8681
8682
8683
8684
8685
8686 lt_prog_compiler_wl=
8687 lt_prog_compiler_pic=
8688 lt_prog_compiler_static=
8689
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8691 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8692
8693 if test "$GCC" = yes; then
8694 lt_prog_compiler_wl='-Wl,'
8695 lt_prog_compiler_static='-static'
8696
8697 case $host_os in
8698 aix*)
8699 # All AIX code is PIC.
8700 if test "$host_cpu" = ia64; then
8701 # AIX 5 now supports IA64 processor
8702 lt_prog_compiler_static='-Bstatic'
8703 fi
8704 lt_prog_compiler_pic='-fPIC'
8705 ;;
8706
8707 amigaos*)
8708 case $host_cpu in
8709 powerpc)
8710 # see comment about AmigaOS4 .so support
8711 lt_prog_compiler_pic='-fPIC'
8712 ;;
8713 m68k)
8714 # FIXME: we need at least 68020 code to build shared libraries, but
8715 # adding the `-m68020' flag to GCC prevents building anything better,
8716 # like `-m68040'.
8717 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8718 ;;
8719 esac
8720 ;;
8721
8722 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8723 # PIC is the default for these OSes.
8724 ;;
8725
8726 mingw* | cygwin* | pw32* | os2* | cegcc*)
8727 # This hack is so that the source file can tell whether it is being
8728 # built for inclusion in a dll (and should export symbols for example).
8729 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8730 # (--disable-auto-import) libraries
8731 lt_prog_compiler_pic='-DDLL_EXPORT'
8732 ;;
8733
8734 darwin* | rhapsody*)
8735 # PIC is the default on this platform
8736 # Common symbols not allowed in MH_DYLIB files
8737 lt_prog_compiler_pic='-fno-common'
8738 ;;
8739
8740 haiku*)
8741 # PIC is the default for Haiku.
8742 # The "-static" flag exists, but is broken.
8743 lt_prog_compiler_static=
8744 ;;
8745
8746 hpux*)
8747 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8748 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8749 # sets the default TLS model and affects inlining.
8750 case $host_cpu in
8751 hppa*64*)
8752 # +Z the default
8753 ;;
8754 *)
8755 lt_prog_compiler_pic='-fPIC'
8756 ;;
8757 esac
8758 ;;
8759
8760 interix[3-9]*)
8761 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8762 # Instead, we relocate shared libraries at runtime.
8763 ;;
8764
8765 msdosdjgpp*)
8766 # Just because we use GCC doesn't mean we suddenly get shared libraries
8767 # on systems that don't support them.
8768 lt_prog_compiler_can_build_shared=no
8769 enable_shared=no
8770 ;;
8771
8772 *nto* | *qnx*)
8773 # QNX uses GNU C++, but need to define -shared option too, otherwise
8774 # it will coredump.
8775 lt_prog_compiler_pic='-fPIC -shared'
8776 ;;
8777
8778 sysv4*MP*)
8779 if test -d /usr/nec; then
8780 lt_prog_compiler_pic=-Kconform_pic
8781 fi
8782 ;;
8783
8784 *)
8785 lt_prog_compiler_pic='-fPIC'
8786 ;;
8787 esac
8788
8789 case $cc_basename in
8790 nvcc*) # Cuda Compiler Driver 2.2
8791 lt_prog_compiler_wl='-Xlinker '
8792 lt_prog_compiler_pic='-Xcompiler -fPIC'
8793 ;;
8794 esac
8795 else
8796 # PORTME Check for flag to pass linker flags through the system compiler.
8797 case $host_os in
8798 aix*)
8799 lt_prog_compiler_wl='-Wl,'
8800 if test "$host_cpu" = ia64; then
8801 # AIX 5 now supports IA64 processor
8802 lt_prog_compiler_static='-Bstatic'
8803 else
8804 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8805 fi
8806 ;;
8807
8808 mingw* | cygwin* | pw32* | os2* | cegcc*)
8809 # This hack is so that the source file can tell whether it is being
8810 # built for inclusion in a dll (and should export symbols for example).
8811 lt_prog_compiler_pic='-DDLL_EXPORT'
8812 ;;
8813
8814 hpux9* | hpux10* | hpux11*)
8815 lt_prog_compiler_wl='-Wl,'
8816 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8817 # not for PA HP-UX.
8818 case $host_cpu in
8819 hppa*64*|ia64*)
8820 # +Z the default
8821 ;;
8822 *)
8823 lt_prog_compiler_pic='+Z'
8824 ;;
8825 esac
8826 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8827 lt_prog_compiler_static='${wl}-a ${wl}archive'
8828 ;;
8829
8830 irix5* | irix6* | nonstopux*)
8831 lt_prog_compiler_wl='-Wl,'
8832 # PIC (with -KPIC) is the default.
8833 lt_prog_compiler_static='-non_shared'
8834 ;;
8835
8836 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8837 case $cc_basename in
8838 # old Intel for x86_64 which still supported -KPIC.
8839 ecc*)
8840 lt_prog_compiler_wl='-Wl,'
8841 lt_prog_compiler_pic='-KPIC'
8842 lt_prog_compiler_static='-static'
8843 ;;
8844 # icc used to be incompatible with GCC.
8845 # ICC 10 doesn't accept -KPIC any more.
8846 icc* | ifort*)
8847 lt_prog_compiler_wl='-Wl,'
8848 lt_prog_compiler_pic='-fPIC'
8849 lt_prog_compiler_static='-static'
8850 ;;
8851 # Lahey Fortran 8.1.
8852 lf95*)
8853 lt_prog_compiler_wl='-Wl,'
8854 lt_prog_compiler_pic='--shared'
8855 lt_prog_compiler_static='--static'
8856 ;;
8857 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8858 # Portland Group compilers (*not* the Pentium gcc compiler,
8859 # which looks to be a dead project)
8860 lt_prog_compiler_wl='-Wl,'
8861 lt_prog_compiler_pic='-fpic'
8862 lt_prog_compiler_static='-Bstatic'
8863 ;;
8864 ccc*)
8865 lt_prog_compiler_wl='-Wl,'
8866 # All Alpha code is PIC.
8867 lt_prog_compiler_static='-non_shared'
8868 ;;
8869 xl* | bgxl* | bgf* | mpixl*)
8870 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8871 lt_prog_compiler_wl='-Wl,'
8872 lt_prog_compiler_pic='-qpic'
8873 lt_prog_compiler_static='-qstaticlink'
8874 ;;
8875 *)
8876 case `$CC -V 2>&1 | sed 5q` in
8877 *Sun\ F* | *Sun*Fortran*)
8878 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8879 lt_prog_compiler_pic='-KPIC'
8880 lt_prog_compiler_static='-Bstatic'
8881 lt_prog_compiler_wl=''
8882 ;;
8883 *Sun\ C*)
8884 # Sun C 5.9
8885 lt_prog_compiler_pic='-KPIC'
8886 lt_prog_compiler_static='-Bstatic'
8887 lt_prog_compiler_wl='-Wl,'
8888 ;;
8889 esac
8890 ;;
8891 esac
8892 ;;
8893
8894 newsos6)
8895 lt_prog_compiler_pic='-KPIC'
8896 lt_prog_compiler_static='-Bstatic'
8897 ;;
8898
8899 *nto* | *qnx*)
8900 # QNX uses GNU C++, but need to define -shared option too, otherwise
8901 # it will coredump.
8902 lt_prog_compiler_pic='-fPIC -shared'
8903 ;;
8904
8905 osf3* | osf4* | osf5*)
8906 lt_prog_compiler_wl='-Wl,'
8907 # All OSF/1 code is PIC.
8908 lt_prog_compiler_static='-non_shared'
8909 ;;
8910
8911 rdos*)
8912 lt_prog_compiler_static='-non_shared'
8913 ;;
8914
8915 solaris*)
8916 lt_prog_compiler_pic='-KPIC'
8917 lt_prog_compiler_static='-Bstatic'
8918 case $cc_basename in
8919 f77* | f90* | f95*)
8920 lt_prog_compiler_wl='-Qoption ld ';;
8921 *)
8922 lt_prog_compiler_wl='-Wl,';;
8923 esac
8924 ;;
8925
8926 sunos4*)
8927 lt_prog_compiler_wl='-Qoption ld '
8928 lt_prog_compiler_pic='-PIC'
8929 lt_prog_compiler_static='-Bstatic'
8930 ;;
8931
8932 sysv4 | sysv4.2uw2* | sysv4.3*)
8933 lt_prog_compiler_wl='-Wl,'
8934 lt_prog_compiler_pic='-KPIC'
8935 lt_prog_compiler_static='-Bstatic'
8936 ;;
8937
8938 sysv4*MP*)
8939 if test -d /usr/nec ;then
8940 lt_prog_compiler_pic='-Kconform_pic'
8941 lt_prog_compiler_static='-Bstatic'
8942 fi
8943 ;;
8944
8945 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8946 lt_prog_compiler_wl='-Wl,'
8947 lt_prog_compiler_pic='-KPIC'
8948 lt_prog_compiler_static='-Bstatic'
8949 ;;
8950
8951 unicos*)
8952 lt_prog_compiler_wl='-Wl,'
8953 lt_prog_compiler_can_build_shared=no
8954 ;;
8955
8956 uts4*)
8957 lt_prog_compiler_pic='-pic'
8958 lt_prog_compiler_static='-Bstatic'
8959 ;;
8960
8961 *)
8962 lt_prog_compiler_can_build_shared=no
8963 ;;
8964 esac
8965 fi
8966
8967 case $host_os in
8968 # For platforms which do not support PIC, -DPIC is meaningless:
8969 *djgpp*)
8970 lt_prog_compiler_pic=
8971 ;;
8972 *)
8973 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8974 ;;
8975 esac
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8977 $as_echo "$lt_prog_compiler_pic" >&6; }
8978
8979
8980
8981
8982
8983
8984 #
8985 # Check to make sure the PIC flag actually works.
8986 #
8987 if test -n "$lt_prog_compiler_pic"; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8989 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8990 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 lt_cv_prog_compiler_pic_works=no
8994 ac_outfile=conftest.$ac_objext
8995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8996 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8997 # Insert the option either (1) after the last *FLAGS variable, or
8998 # (2) before a word containing "conftest.", or (3) at the end.
8999 # Note that $ac_compile itself does not contain backslashes and begins
9000 # with a dollar sign (not a hyphen), so the echo should work correctly.
9001 # The option is referenced via a variable to avoid confusing sed.
9002 lt_compile=`echo "$ac_compile" | $SED \
9003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9005 -e 's:$: $lt_compiler_flag:'`
9006 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9007 (eval "$lt_compile" 2>conftest.err)
9008 ac_status=$?
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 if (exit $ac_status) && test -s "$ac_outfile"; then
9012 # The compiler can only warn and ignore the option if not recognized
9013 # So say no if there are warnings other than the usual output.
9014 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9016 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9017 lt_cv_prog_compiler_pic_works=yes
9018 fi
9019 fi
9020 $RM conftest*
9021
9022 fi
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9024 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9025
9026 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9027 case $lt_prog_compiler_pic in
9028 "" | " "*) ;;
9029 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9030 esac
9031 else
9032 lt_prog_compiler_pic=
9033 lt_prog_compiler_can_build_shared=no
9034 fi
9035
9036 fi
9037
9038
9039
9040
9041
9042
9043 #
9044 # Check to make sure the static flag actually works.
9045 #
9046 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9048 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9049 if ${lt_cv_prog_compiler_static_works+:} false; then :
9050 $as_echo_n "(cached) " >&6
9051 else
9052 lt_cv_prog_compiler_static_works=no
9053 save_LDFLAGS="$LDFLAGS"
9054 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9055 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9056 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9057 # The linker can only warn and ignore the option if not recognized
9058 # So say no if there are warnings
9059 if test -s conftest.err; then
9060 # Append any errors to the config.log.
9061 cat conftest.err 1>&5
9062 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9063 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9064 if diff conftest.exp conftest.er2 >/dev/null; then
9065 lt_cv_prog_compiler_static_works=yes
9066 fi
9067 else
9068 lt_cv_prog_compiler_static_works=yes
9069 fi
9070 fi
9071 $RM -r conftest*
9072 LDFLAGS="$save_LDFLAGS"
9073
9074 fi
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9076 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9077
9078 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9079 :
9080 else
9081 lt_prog_compiler_static=
9082 fi
9083
9084
9085
9086
9087
9088
9089
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9091 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9092 if ${lt_cv_prog_compiler_c_o+:} false; then :
9093 $as_echo_n "(cached) " >&6
9094 else
9095 lt_cv_prog_compiler_c_o=no
9096 $RM -r conftest 2>/dev/null
9097 mkdir conftest
9098 cd conftest
9099 mkdir out
9100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9101
9102 lt_compiler_flag="-o out/conftest2.$ac_objext"
9103 # Insert the option either (1) after the last *FLAGS variable, or
9104 # (2) before a word containing "conftest.", or (3) at the end.
9105 # Note that $ac_compile itself does not contain backslashes and begins
9106 # with a dollar sign (not a hyphen), so the echo should work correctly.
9107 lt_compile=`echo "$ac_compile" | $SED \
9108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9110 -e 's:$: $lt_compiler_flag:'`
9111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9112 (eval "$lt_compile" 2>out/conftest.err)
9113 ac_status=$?
9114 cat out/conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9117 then
9118 # The compiler can only warn and ignore the option if not recognized
9119 # So say no if there are warnings
9120 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9121 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9122 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9123 lt_cv_prog_compiler_c_o=yes
9124 fi
9125 fi
9126 chmod u+w . 2>&5
9127 $RM conftest*
9128 # SGI C++ compiler will create directory out/ii_files/ for
9129 # template instantiation
9130 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9131 $RM out/* && rmdir out
9132 cd ..
9133 $RM -r conftest
9134 $RM conftest*
9135
9136 fi
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9138 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9139
9140
9141
9142
9143
9144
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9146 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9147 if ${lt_cv_prog_compiler_c_o+:} false; then :
9148 $as_echo_n "(cached) " >&6
9149 else
9150 lt_cv_prog_compiler_c_o=no
9151 $RM -r conftest 2>/dev/null
9152 mkdir conftest
9153 cd conftest
9154 mkdir out
9155 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9156
9157 lt_compiler_flag="-o out/conftest2.$ac_objext"
9158 # Insert the option either (1) after the last *FLAGS variable, or
9159 # (2) before a word containing "conftest.", or (3) at the end.
9160 # Note that $ac_compile itself does not contain backslashes and begins
9161 # with a dollar sign (not a hyphen), so the echo should work correctly.
9162 lt_compile=`echo "$ac_compile" | $SED \
9163 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9164 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9165 -e 's:$: $lt_compiler_flag:'`
9166 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9167 (eval "$lt_compile" 2>out/conftest.err)
9168 ac_status=$?
9169 cat out/conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9172 then
9173 # The compiler can only warn and ignore the option if not recognized
9174 # So say no if there are warnings
9175 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9176 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9177 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9178 lt_cv_prog_compiler_c_o=yes
9179 fi
9180 fi
9181 chmod u+w . 2>&5
9182 $RM conftest*
9183 # SGI C++ compiler will create directory out/ii_files/ for
9184 # template instantiation
9185 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9186 $RM out/* && rmdir out
9187 cd ..
9188 $RM -r conftest
9189 $RM conftest*
9190
9191 fi
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9193 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9194
9195
9196
9197
9198 hard_links="nottested"
9199 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9200 # do not overwrite the value of need_locks provided by the user
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9202 $as_echo_n "checking if we can lock with hard links... " >&6; }
9203 hard_links=yes
9204 $RM conftest*
9205 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9206 touch conftest.a
9207 ln conftest.a conftest.b 2>&5 || hard_links=no
9208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9210 $as_echo "$hard_links" >&6; }
9211 if test "$hard_links" = no; then
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9213 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9214 need_locks=warn
9215 fi
9216 else
9217 need_locks=no
9218 fi
9219
9220
9221
9222
9223
9224
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9226 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9227
9228 runpath_var=
9229 allow_undefined_flag=
9230 always_export_symbols=no
9231 archive_cmds=
9232 archive_expsym_cmds=
9233 compiler_needs_object=no
9234 enable_shared_with_static_runtimes=no
9235 export_dynamic_flag_spec=
9236 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9237 hardcode_automatic=no
9238 hardcode_direct=no
9239 hardcode_direct_absolute=no
9240 hardcode_libdir_flag_spec=
9241 hardcode_libdir_flag_spec_ld=
9242 hardcode_libdir_separator=
9243 hardcode_minus_L=no
9244 hardcode_shlibpath_var=unsupported
9245 inherit_rpath=no
9246 link_all_deplibs=unknown
9247 module_cmds=
9248 module_expsym_cmds=
9249 old_archive_from_new_cmds=
9250 old_archive_from_expsyms_cmds=
9251 thread_safe_flag_spec=
9252 whole_archive_flag_spec=
9253 # include_expsyms should be a list of space-separated symbols to be *always*
9254 # included in the symbol list
9255 include_expsyms=
9256 # exclude_expsyms can be an extended regexp of symbols to exclude
9257 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9258 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9259 # as well as any symbol that contains `d'.
9260 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9261 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9262 # platforms (ab)use it in PIC code, but their linkers get confused if
9263 # the symbol is explicitly referenced. Since portable code cannot
9264 # rely on this symbol name, it's probably fine to never include it in
9265 # preloaded symbol tables.
9266 # Exclude shared library initialization/finalization symbols.
9267 extract_expsyms_cmds=
9268
9269 case $host_os in
9270 cygwin* | mingw* | pw32* | cegcc*)
9271 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9272 # When not using gcc, we currently assume that we are using
9273 # Microsoft Visual C++.
9274 if test "$GCC" != yes; then
9275 with_gnu_ld=no
9276 fi
9277 ;;
9278 interix*)
9279 # we just hope/assume this is gcc and not c89 (= MSVC++)
9280 with_gnu_ld=yes
9281 ;;
9282 openbsd*)
9283 with_gnu_ld=no
9284 ;;
9285 esac
9286
9287 ld_shlibs=yes
9288
9289 # On some targets, GNU ld is compatible enough with the native linker
9290 # that we're better off using the native interface for both.
9291 lt_use_gnu_ld_interface=no
9292 if test "$with_gnu_ld" = yes; then
9293 case $host_os in
9294 aix*)
9295 # The AIX port of GNU ld has always aspired to compatibility
9296 # with the native linker. However, as the warning in the GNU ld
9297 # block says, versions before 2.19.5* couldn't really create working
9298 # shared libraries, regardless of the interface used.
9299 case `$LD -v 2>&1` in
9300 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9301 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9302 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9303 *)
9304 lt_use_gnu_ld_interface=yes
9305 ;;
9306 esac
9307 ;;
9308 *)
9309 lt_use_gnu_ld_interface=yes
9310 ;;
9311 esac
9312 fi
9313
9314 if test "$lt_use_gnu_ld_interface" = yes; then
9315 # If archive_cmds runs LD, not CC, wlarc should be empty
9316 wlarc='${wl}'
9317
9318 # Set some defaults for GNU ld with shared library support. These
9319 # are reset later if shared libraries are not supported. Putting them
9320 # here allows them to be overridden if necessary.
9321 runpath_var=LD_RUN_PATH
9322 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9323 export_dynamic_flag_spec='${wl}--export-dynamic'
9324 # ancient GNU ld didn't support --whole-archive et. al.
9325 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9326 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9327 else
9328 whole_archive_flag_spec=
9329 fi
9330 supports_anon_versioning=no
9331 case `$LD -v 2>&1` in
9332 *GNU\ gold*) supports_anon_versioning=yes ;;
9333 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9334 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9335 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9336 *\ 2.11.*) ;; # other 2.11 versions
9337 *) supports_anon_versioning=yes ;;
9338 esac
9339
9340 # See if GNU ld supports shared libraries.
9341 case $host_os in
9342 aix[3-9]*)
9343 # On AIX/PPC, the GNU linker is very broken
9344 if test "$host_cpu" != ia64; then
9345 ld_shlibs=no
9346 cat <<_LT_EOF 1>&2
9347
9348 *** Warning: the GNU linker, at least up to release 2.19, is reported
9349 *** to be unable to reliably create shared libraries on AIX.
9350 *** Therefore, libtool is disabling shared libraries support. If you
9351 *** really care for shared libraries, you may want to install binutils
9352 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9353 *** You will then need to restart the configuration process.
9354
9355 _LT_EOF
9356 fi
9357 ;;
9358
9359 amigaos*)
9360 case $host_cpu in
9361 powerpc)
9362 # see comment about AmigaOS4 .so support
9363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9364 archive_expsym_cmds=''
9365 ;;
9366 m68k)
9367 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)'
9368 hardcode_libdir_flag_spec='-L$libdir'
9369 hardcode_minus_L=yes
9370 ;;
9371 esac
9372 ;;
9373
9374 beos*)
9375 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9376 allow_undefined_flag=unsupported
9377 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9378 # support --undefined. This deserves some investigation. FIXME
9379 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9380 else
9381 ld_shlibs=no
9382 fi
9383 ;;
9384
9385 cygwin* | mingw* | pw32* | cegcc*)
9386 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9387 # as there is no search path for DLLs.
9388 hardcode_libdir_flag_spec='-L$libdir'
9389 export_dynamic_flag_spec='${wl}--export-all-symbols'
9390 allow_undefined_flag=unsupported
9391 always_export_symbols=no
9392 enable_shared_with_static_runtimes=yes
9393 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9394
9395 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9397 # If the export-symbols file already is a .def file (1st line
9398 # is EXPORTS), use it as is; otherwise, prepend...
9399 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9400 cp $export_symbols $output_objdir/$soname.def;
9401 else
9402 echo EXPORTS > $output_objdir/$soname.def;
9403 cat $export_symbols >> $output_objdir/$soname.def;
9404 fi~
9405 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9406 else
9407 ld_shlibs=no
9408 fi
9409 ;;
9410
9411 haiku*)
9412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9413 link_all_deplibs=yes
9414 ;;
9415
9416 interix[3-9]*)
9417 hardcode_direct=no
9418 hardcode_shlibpath_var=no
9419 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9420 export_dynamic_flag_spec='${wl}-E'
9421 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9422 # Instead, shared libraries are loaded at an image base (0x10000000 by
9423 # default) and relocated if they conflict, which is a slow very memory
9424 # consuming and fragmenting process. To avoid this, we pick a random,
9425 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9426 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9427 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9428 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'
9429 ;;
9430
9431 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9432 tmp_diet=no
9433 if test "$host_os" = linux-dietlibc; then
9434 case $cc_basename in
9435 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9436 esac
9437 fi
9438 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9439 && test "$tmp_diet" = no
9440 then
9441 tmp_addflag=' $pic_flag'
9442 tmp_sharedflag='-shared'
9443 case $cc_basename,$host_cpu in
9444 pgcc*) # Portland Group C compiler
9445 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'
9446 tmp_addflag=' $pic_flag'
9447 ;;
9448 pgf77* | pgf90* | pgf95* | pgfortran*)
9449 # Portland Group f77 and f90 compilers
9450 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'
9451 tmp_addflag=' $pic_flag -Mnomain' ;;
9452 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9453 tmp_addflag=' -i_dynamic' ;;
9454 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9455 tmp_addflag=' -i_dynamic -nofor_main' ;;
9456 ifc* | ifort*) # Intel Fortran compiler
9457 tmp_addflag=' -nofor_main' ;;
9458 lf95*) # Lahey Fortran 8.1
9459 whole_archive_flag_spec=
9460 tmp_sharedflag='--shared' ;;
9461 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9462 tmp_sharedflag='-qmkshrobj'
9463 tmp_addflag= ;;
9464 nvcc*) # Cuda Compiler Driver 2.2
9465 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'
9466 compiler_needs_object=yes
9467 ;;
9468 esac
9469 case `$CC -V 2>&1 | sed 5q` in
9470 *Sun\ C*) # Sun C 5.9
9471 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'
9472 compiler_needs_object=yes
9473 tmp_sharedflag='-G' ;;
9474 *Sun\ F*) # Sun Fortran 8.3
9475 tmp_sharedflag='-G' ;;
9476 esac
9477 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9478
9479 if test "x$supports_anon_versioning" = xyes; then
9480 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9481 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9482 echo "local: *; };" >> $output_objdir/$libname.ver~
9483 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9484 fi
9485
9486 case $cc_basename in
9487 xlf* | bgf* | bgxlf* | mpixlf*)
9488 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9489 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9490 hardcode_libdir_flag_spec=
9491 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9492 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9493 if test "x$supports_anon_versioning" = xyes; then
9494 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9495 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9496 echo "local: *; };" >> $output_objdir/$libname.ver~
9497 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9498 fi
9499 ;;
9500 esac
9501 else
9502 ld_shlibs=no
9503 fi
9504 ;;
9505
9506 netbsd*)
9507 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9508 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9509 wlarc=
9510 else
9511 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9512 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9513 fi
9514 ;;
9515
9516 solaris*)
9517 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9518 ld_shlibs=no
9519 cat <<_LT_EOF 1>&2
9520
9521 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9522 *** create shared libraries on Solaris systems. Therefore, libtool
9523 *** is disabling shared libraries support. We urge you to upgrade GNU
9524 *** binutils to release 2.9.1 or newer. Another option is to modify
9525 *** your PATH or compiler configuration so that the native linker is
9526 *** used, and then restart.
9527
9528 _LT_EOF
9529 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9531 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9532 else
9533 ld_shlibs=no
9534 fi
9535 ;;
9536
9537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9538 case `$LD -v 2>&1` in
9539 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9540 ld_shlibs=no
9541 cat <<_LT_EOF 1>&2
9542
9543 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9544 *** reliably create shared libraries on SCO systems. Therefore, libtool
9545 *** is disabling shared libraries support. We urge you to upgrade GNU
9546 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9547 *** your PATH or compiler configuration so that the native linker is
9548 *** used, and then restart.
9549
9550 _LT_EOF
9551 ;;
9552 *)
9553 # For security reasons, it is highly recommended that you always
9554 # use absolute paths for naming shared libraries, and exclude the
9555 # DT_RUNPATH tag from executables and libraries. But doing so
9556 # requires that you compile everything twice, which is a pain.
9557 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9560 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9561 else
9562 ld_shlibs=no
9563 fi
9564 ;;
9565 esac
9566 ;;
9567
9568 sunos4*)
9569 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9570 wlarc=
9571 hardcode_direct=yes
9572 hardcode_shlibpath_var=no
9573 ;;
9574
9575 *)
9576 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9578 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9579 else
9580 ld_shlibs=no
9581 fi
9582 ;;
9583 esac
9584
9585 if test "$ld_shlibs" = no; then
9586 runpath_var=
9587 hardcode_libdir_flag_spec=
9588 export_dynamic_flag_spec=
9589 whole_archive_flag_spec=
9590 fi
9591 else
9592 # PORTME fill in a description of your system's linker (not GNU ld)
9593 case $host_os in
9594 aix3*)
9595 allow_undefined_flag=unsupported
9596 always_export_symbols=yes
9597 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'
9598 # Note: this linker hardcodes the directories in LIBPATH if there
9599 # are no directories specified by -L.
9600 hardcode_minus_L=yes
9601 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9602 # Neither direct hardcoding nor static linking is supported with a
9603 # broken collect2.
9604 hardcode_direct=unsupported
9605 fi
9606 ;;
9607
9608 aix[4-9]*)
9609 if test "$host_cpu" = ia64; then
9610 # On IA64, the linker does run time linking by default, so we don't
9611 # have to do anything special.
9612 aix_use_runtimelinking=no
9613 exp_sym_flag='-Bexport'
9614 no_entry_flag=""
9615 else
9616 # If we're using GNU nm, then we don't want the "-C" option.
9617 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9618 # Also, AIX nm treats weak defined symbols like other global
9619 # defined symbols, whereas GNU nm marks them as "W".
9620 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9621 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'
9622 else
9623 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'
9624 fi
9625 aix_use_runtimelinking=no
9626
9627 # Test if we are trying to use run time linking or normal
9628 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9629 # need to do runtime linking.
9630 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9631 for ld_flag in $LDFLAGS; do
9632 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9633 aix_use_runtimelinking=yes
9634 break
9635 fi
9636 done
9637 ;;
9638 esac
9639
9640 exp_sym_flag='-bexport'
9641 no_entry_flag='-bnoentry'
9642 fi
9643
9644 # When large executables or shared objects are built, AIX ld can
9645 # have problems creating the table of contents. If linking a library
9646 # or program results in "error TOC overflow" add -mminimal-toc to
9647 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9648 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9649
9650 archive_cmds=''
9651 hardcode_direct=yes
9652 hardcode_direct_absolute=yes
9653 hardcode_libdir_separator=':'
9654 link_all_deplibs=yes
9655 file_list_spec='${wl}-f,'
9656
9657 if test "$GCC" = yes; then
9658 case $host_os in aix4.[012]|aix4.[012].*)
9659 # We only want to do this on AIX 4.2 and lower, the check
9660 # below for broken collect2 doesn't work under 4.3+
9661 collect2name=`${CC} -print-prog-name=collect2`
9662 if test -f "$collect2name" &&
9663 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9664 then
9665 # We have reworked collect2
9666 :
9667 else
9668 # We have old collect2
9669 hardcode_direct=unsupported
9670 # It fails to find uninstalled libraries when the uninstalled
9671 # path is not listed in the libpath. Setting hardcode_minus_L
9672 # to unsupported forces relinking
9673 hardcode_minus_L=yes
9674 hardcode_libdir_flag_spec='-L$libdir'
9675 hardcode_libdir_separator=
9676 fi
9677 ;;
9678 esac
9679 shared_flag='-shared'
9680 if test "$aix_use_runtimelinking" = yes; then
9681 shared_flag="$shared_flag "'${wl}-G'
9682 fi
9683 else
9684 # not using gcc
9685 if test "$host_cpu" = ia64; then
9686 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9687 # chokes on -Wl,-G. The following line is correct:
9688 shared_flag='-G'
9689 else
9690 if test "$aix_use_runtimelinking" = yes; then
9691 shared_flag='${wl}-G'
9692 else
9693 shared_flag='${wl}-bM:SRE'
9694 fi
9695 fi
9696 fi
9697
9698 export_dynamic_flag_spec='${wl}-bexpall'
9699 # It seems that -bexpall does not export symbols beginning with
9700 # underscore (_), so it is better to generate a list of symbols to export.
9701 always_export_symbols=yes
9702 if test "$aix_use_runtimelinking" = yes; then
9703 # Warning - without using the other runtime loading flags (-brtl),
9704 # -berok will link without error, but may produce a broken library.
9705 allow_undefined_flag='-berok'
9706 # Determine the default libpath from the value encoded in an
9707 # empty executable.
9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9710
9711 int
9712 main ()
9713 {
9714
9715 ;
9716 return 0;
9717 }
9718 _ACEOF
9719 if ac_fn_c_try_link "$LINENO"; then :
9720
9721 lt_aix_libpath_sed='
9722 /Import File Strings/,/^$/ {
9723 /^0/ {
9724 s/^0 *\(.*\)$/\1/
9725 p
9726 }
9727 }'
9728 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9729 # Check for a 64-bit object if we didn't find anything.
9730 if test -z "$aix_libpath"; then
9731 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9732 fi
9733 fi
9734 rm -f core conftest.err conftest.$ac_objext \
9735 conftest$ac_exeext conftest.$ac_ext
9736 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9737
9738 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9739 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"
9740 else
9741 if test "$host_cpu" = ia64; then
9742 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9743 allow_undefined_flag="-z nodefs"
9744 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"
9745 else
9746 # Determine the default libpath from the value encoded in an
9747 # empty executable.
9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749 /* end confdefs.h. */
9750
9751 int
9752 main ()
9753 {
9754
9755 ;
9756 return 0;
9757 }
9758 _ACEOF
9759 if ac_fn_c_try_link "$LINENO"; then :
9760
9761 lt_aix_libpath_sed='
9762 /Import File Strings/,/^$/ {
9763 /^0/ {
9764 s/^0 *\(.*\)$/\1/
9765 p
9766 }
9767 }'
9768 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9769 # Check for a 64-bit object if we didn't find anything.
9770 if test -z "$aix_libpath"; then
9771 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9772 fi
9773 fi
9774 rm -f core conftest.err conftest.$ac_objext \
9775 conftest$ac_exeext conftest.$ac_ext
9776 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9777
9778 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9779 # Warning - without using the other run time loading flags,
9780 # -berok will link without error, but may produce a broken library.
9781 no_undefined_flag=' ${wl}-bernotok'
9782 allow_undefined_flag=' ${wl}-berok'
9783 if test "$with_gnu_ld" = yes; then
9784 # We only use this code for GNU lds that support --whole-archive.
9785 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9786 else
9787 # Exported symbols can be pulled into shared objects from archives
9788 whole_archive_flag_spec='$convenience'
9789 fi
9790 archive_cmds_need_lc=yes
9791 # This is similar to how AIX traditionally builds its shared libraries.
9792 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'
9793 fi
9794 fi
9795 ;;
9796
9797 amigaos*)
9798 case $host_cpu in
9799 powerpc)
9800 # see comment about AmigaOS4 .so support
9801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9802 archive_expsym_cmds=''
9803 ;;
9804 m68k)
9805 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)'
9806 hardcode_libdir_flag_spec='-L$libdir'
9807 hardcode_minus_L=yes
9808 ;;
9809 esac
9810 ;;
9811
9812 bsdi[45]*)
9813 export_dynamic_flag_spec=-rdynamic
9814 ;;
9815
9816 cygwin* | mingw* | pw32* | cegcc*)
9817 # When not using gcc, we currently assume that we are using
9818 # Microsoft Visual C++.
9819 # hardcode_libdir_flag_spec is actually meaningless, as there is
9820 # no search path for DLLs.
9821 hardcode_libdir_flag_spec=' '
9822 allow_undefined_flag=unsupported
9823 # Tell ltmain to make .lib files, not .a files.
9824 libext=lib
9825 # Tell ltmain to make .dll files, not .so files.
9826 shrext_cmds=".dll"
9827 # FIXME: Setting linknames here is a bad hack.
9828 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9829 # The linker will automatically build a .lib file if we build a DLL.
9830 old_archive_from_new_cmds='true'
9831 # FIXME: Should let the user specify the lib program.
9832 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9833 fix_srcfile_path='`cygpath -w "$srcfile"`'
9834 enable_shared_with_static_runtimes=yes
9835 ;;
9836
9837 darwin* | rhapsody*)
9838
9839
9840 archive_cmds_need_lc=no
9841 hardcode_direct=no
9842 hardcode_automatic=yes
9843 hardcode_shlibpath_var=unsupported
9844 if test "$lt_cv_ld_force_load" = "yes"; then
9845 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\"`'
9846 else
9847 whole_archive_flag_spec=''
9848 fi
9849 link_all_deplibs=yes
9850 allow_undefined_flag="$_lt_dar_allow_undefined"
9851 case $cc_basename in
9852 ifort*) _lt_dar_can_shared=yes ;;
9853 *) _lt_dar_can_shared=$GCC ;;
9854 esac
9855 if test "$_lt_dar_can_shared" = "yes"; then
9856 output_verbose_link_cmd=func_echo_all
9857 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9858 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9859 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}"
9860 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}"
9861
9862 else
9863 ld_shlibs=no
9864 fi
9865
9866 ;;
9867
9868 dgux*)
9869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9870 hardcode_libdir_flag_spec='-L$libdir'
9871 hardcode_shlibpath_var=no
9872 ;;
9873
9874 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9875 # support. Future versions do this automatically, but an explicit c++rt0.o
9876 # does not break anything, and helps significantly (at the cost of a little
9877 # extra space).
9878 freebsd2.2*)
9879 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9880 hardcode_libdir_flag_spec='-R$libdir'
9881 hardcode_direct=yes
9882 hardcode_shlibpath_var=no
9883 ;;
9884
9885 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9886 freebsd2.*)
9887 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9888 hardcode_direct=yes
9889 hardcode_minus_L=yes
9890 hardcode_shlibpath_var=no
9891 ;;
9892
9893 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9894 freebsd* | dragonfly*)
9895 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9896 hardcode_libdir_flag_spec='-R$libdir'
9897 hardcode_direct=yes
9898 hardcode_shlibpath_var=no
9899 ;;
9900
9901 hpux9*)
9902 if test "$GCC" = yes; then
9903 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'
9904 else
9905 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'
9906 fi
9907 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9908 hardcode_libdir_separator=:
9909 hardcode_direct=yes
9910
9911 # hardcode_minus_L: Not really in the search PATH,
9912 # but as the default location of the library.
9913 hardcode_minus_L=yes
9914 export_dynamic_flag_spec='${wl}-E'
9915 ;;
9916
9917 hpux10*)
9918 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9919 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9920 else
9921 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9922 fi
9923 if test "$with_gnu_ld" = no; then
9924 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9925 hardcode_libdir_flag_spec_ld='+b $libdir'
9926 hardcode_libdir_separator=:
9927 hardcode_direct=yes
9928 hardcode_direct_absolute=yes
9929 export_dynamic_flag_spec='${wl}-E'
9930 # hardcode_minus_L: Not really in the search PATH,
9931 # but as the default location of the library.
9932 hardcode_minus_L=yes
9933 fi
9934 ;;
9935
9936 hpux11*)
9937 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9938 case $host_cpu in
9939 hppa*64*)
9940 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9941 ;;
9942 ia64*)
9943 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9944 ;;
9945 *)
9946 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9947 ;;
9948 esac
9949 else
9950 case $host_cpu in
9951 hppa*64*)
9952 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9953 ;;
9954 ia64*)
9955 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9956 ;;
9957 *)
9958
9959 # Older versions of the 11.00 compiler do not understand -b yet
9960 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9962 $as_echo_n "checking if $CC understands -b... " >&6; }
9963 if ${lt_cv_prog_compiler__b+:} false; then :
9964 $as_echo_n "(cached) " >&6
9965 else
9966 lt_cv_prog_compiler__b=no
9967 save_LDFLAGS="$LDFLAGS"
9968 LDFLAGS="$LDFLAGS -b"
9969 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9970 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9971 # The linker can only warn and ignore the option if not recognized
9972 # So say no if there are warnings
9973 if test -s conftest.err; then
9974 # Append any errors to the config.log.
9975 cat conftest.err 1>&5
9976 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9978 if diff conftest.exp conftest.er2 >/dev/null; then
9979 lt_cv_prog_compiler__b=yes
9980 fi
9981 else
9982 lt_cv_prog_compiler__b=yes
9983 fi
9984 fi
9985 $RM -r conftest*
9986 LDFLAGS="$save_LDFLAGS"
9987
9988 fi
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9990 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9991
9992 if test x"$lt_cv_prog_compiler__b" = xyes; then
9993 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9994 else
9995 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9996 fi
9997
9998 ;;
9999 esac
10000 fi
10001 if test "$with_gnu_ld" = no; then
10002 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10003 hardcode_libdir_separator=:
10004
10005 case $host_cpu in
10006 hppa*64*|ia64*)
10007 hardcode_direct=no
10008 hardcode_shlibpath_var=no
10009 ;;
10010 *)
10011 hardcode_direct=yes
10012 hardcode_direct_absolute=yes
10013 export_dynamic_flag_spec='${wl}-E'
10014
10015 # hardcode_minus_L: Not really in the search PATH,
10016 # but as the default location of the library.
10017 hardcode_minus_L=yes
10018 ;;
10019 esac
10020 fi
10021 ;;
10022
10023 irix5* | irix6* | nonstopux*)
10024 if test "$GCC" = yes; then
10025 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'
10026 # Try to use the -exported_symbol ld option, if it does not
10027 # work, assume that -exports_file does not work either and
10028 # implicitly export all symbols.
10029 save_LDFLAGS="$LDFLAGS"
10030 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10033 int foo(void) {}
10034 _ACEOF
10035 if ac_fn_c_try_link "$LINENO"; then :
10036 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'
10037
10038 fi
10039 rm -f core conftest.err conftest.$ac_objext \
10040 conftest$ac_exeext conftest.$ac_ext
10041 LDFLAGS="$save_LDFLAGS"
10042 else
10043 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'
10044 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'
10045 fi
10046 archive_cmds_need_lc='no'
10047 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10048 hardcode_libdir_separator=:
10049 inherit_rpath=yes
10050 link_all_deplibs=yes
10051 ;;
10052
10053 netbsd*)
10054 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10056 else
10057 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10058 fi
10059 hardcode_libdir_flag_spec='-R$libdir'
10060 hardcode_direct=yes
10061 hardcode_shlibpath_var=no
10062 ;;
10063
10064 newsos6)
10065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_direct=yes
10067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10068 hardcode_libdir_separator=:
10069 hardcode_shlibpath_var=no
10070 ;;
10071
10072 *nto* | *qnx*)
10073 ;;
10074
10075 openbsd*)
10076 if test -f /usr/libexec/ld.so; then
10077 hardcode_direct=yes
10078 hardcode_shlibpath_var=no
10079 hardcode_direct_absolute=yes
10080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10081 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10082 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10083 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10084 export_dynamic_flag_spec='${wl}-E'
10085 else
10086 case $host_os in
10087 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10088 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10089 hardcode_libdir_flag_spec='-R$libdir'
10090 ;;
10091 *)
10092 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10093 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10094 ;;
10095 esac
10096 fi
10097 else
10098 ld_shlibs=no
10099 fi
10100 ;;
10101
10102 os2*)
10103 hardcode_libdir_flag_spec='-L$libdir'
10104 hardcode_minus_L=yes
10105 allow_undefined_flag=unsupported
10106 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'
10107 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10108 ;;
10109
10110 osf3*)
10111 if test "$GCC" = yes; then
10112 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10113 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'
10114 else
10115 allow_undefined_flag=' -expect_unresolved \*'
10116 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'
10117 fi
10118 archive_cmds_need_lc='no'
10119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10120 hardcode_libdir_separator=:
10121 ;;
10122
10123 osf4* | osf5*) # as osf3* with the addition of -msym flag
10124 if test "$GCC" = yes; then
10125 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10126 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'
10127 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10128 else
10129 allow_undefined_flag=' -expect_unresolved \*'
10130 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'
10131 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~
10132 $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'
10133
10134 # Both c and cxx compiler support -rpath directly
10135 hardcode_libdir_flag_spec='-rpath $libdir'
10136 fi
10137 archive_cmds_need_lc='no'
10138 hardcode_libdir_separator=:
10139 ;;
10140
10141 solaris*)
10142 no_undefined_flag=' -z defs'
10143 if test "$GCC" = yes; then
10144 wlarc='${wl}'
10145 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10146 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10147 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10148 else
10149 case `$CC -V 2>&1` in
10150 *"Compilers 5.0"*)
10151 wlarc=''
10152 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10153 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10154 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10155 ;;
10156 *)
10157 wlarc='${wl}'
10158 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10159 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10160 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10161 ;;
10162 esac
10163 fi
10164 hardcode_libdir_flag_spec='-R$libdir'
10165 hardcode_shlibpath_var=no
10166 case $host_os in
10167 solaris2.[0-5] | solaris2.[0-5].*) ;;
10168 *)
10169 # The compiler driver will combine and reorder linker options,
10170 # but understands `-z linker_flag'. GCC discards it without `$wl',
10171 # but is careful enough not to reorder.
10172 # Supported since Solaris 2.6 (maybe 2.5.1?)
10173 if test "$GCC" = yes; then
10174 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10175 else
10176 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10177 fi
10178 ;;
10179 esac
10180 link_all_deplibs=yes
10181 ;;
10182
10183 sunos4*)
10184 if test "x$host_vendor" = xsequent; then
10185 # Use $CC to link under sequent, because it throws in some extra .o
10186 # files that make .init and .fini sections work.
10187 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10188 else
10189 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10190 fi
10191 hardcode_libdir_flag_spec='-L$libdir'
10192 hardcode_direct=yes
10193 hardcode_minus_L=yes
10194 hardcode_shlibpath_var=no
10195 ;;
10196
10197 sysv4)
10198 case $host_vendor in
10199 sni)
10200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10201 hardcode_direct=yes # is this really true???
10202 ;;
10203 siemens)
10204 ## LD is ld it makes a PLAMLIB
10205 ## CC just makes a GrossModule.
10206 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10207 reload_cmds='$CC -r -o $output$reload_objs'
10208 hardcode_direct=no
10209 ;;
10210 motorola)
10211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10212 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10213 ;;
10214 esac
10215 runpath_var='LD_RUN_PATH'
10216 hardcode_shlibpath_var=no
10217 ;;
10218
10219 sysv4.3*)
10220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10221 hardcode_shlibpath_var=no
10222 export_dynamic_flag_spec='-Bexport'
10223 ;;
10224
10225 sysv4*MP*)
10226 if test -d /usr/nec; then
10227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10228 hardcode_shlibpath_var=no
10229 runpath_var=LD_RUN_PATH
10230 hardcode_runpath_var=yes
10231 ld_shlibs=yes
10232 fi
10233 ;;
10234
10235 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10236 no_undefined_flag='${wl}-z,text'
10237 archive_cmds_need_lc=no
10238 hardcode_shlibpath_var=no
10239 runpath_var='LD_RUN_PATH'
10240
10241 if test "$GCC" = yes; then
10242 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10243 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10244 else
10245 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10247 fi
10248 ;;
10249
10250 sysv5* | sco3.2v5* | sco5v6*)
10251 # Note: We can NOT use -z defs as we might desire, because we do not
10252 # link with -lc, and that would cause any symbols used from libc to
10253 # always be unresolved, which means just about no library would
10254 # ever link correctly. If we're not using GNU ld we use -z text
10255 # though, which does catch some bad symbols but isn't as heavy-handed
10256 # as -z defs.
10257 no_undefined_flag='${wl}-z,text'
10258 allow_undefined_flag='${wl}-z,nodefs'
10259 archive_cmds_need_lc=no
10260 hardcode_shlibpath_var=no
10261 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10262 hardcode_libdir_separator=':'
10263 link_all_deplibs=yes
10264 export_dynamic_flag_spec='${wl}-Bexport'
10265 runpath_var='LD_RUN_PATH'
10266
10267 if test "$GCC" = yes; then
10268 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10270 else
10271 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10272 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10273 fi
10274 ;;
10275
10276 uts4*)
10277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10278 hardcode_libdir_flag_spec='-L$libdir'
10279 hardcode_shlibpath_var=no
10280 ;;
10281
10282 *)
10283 ld_shlibs=no
10284 ;;
10285 esac
10286
10287 if test x$host_vendor = xsni; then
10288 case $host in
10289 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10290 export_dynamic_flag_spec='${wl}-Blargedynsym'
10291 ;;
10292 esac
10293 fi
10294 fi
10295
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10297 $as_echo "$ld_shlibs" >&6; }
10298 test "$ld_shlibs" = no && can_build_shared=no
10299
10300 with_gnu_ld=$with_gnu_ld
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316 #
10317 # Do we need to explicitly link libc?
10318 #
10319 case "x$archive_cmds_need_lc" in
10320 x|xyes)
10321 # Assume -lc should be added
10322 archive_cmds_need_lc=yes
10323
10324 if test "$enable_shared" = yes && test "$GCC" = yes; then
10325 case $archive_cmds in
10326 *'~'*)
10327 # FIXME: we may have to deal with multi-command sequences.
10328 ;;
10329 '$CC '*)
10330 # Test whether the compiler implicitly links with -lc since on some
10331 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10332 # to ld, don't add -lc before -lgcc.
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10334 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10335 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 $RM conftest*
10339 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10340
10341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10342 (eval $ac_compile) 2>&5
10343 ac_status=$?
10344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10345 test $ac_status = 0; } 2>conftest.err; then
10346 soname=conftest
10347 lib=conftest
10348 libobjs=conftest.$ac_objext
10349 deplibs=
10350 wl=$lt_prog_compiler_wl
10351 pic_flag=$lt_prog_compiler_pic
10352 compiler_flags=-v
10353 linker_flags=-v
10354 verstring=
10355 output_objdir=.
10356 libname=conftest
10357 lt_save_allow_undefined_flag=$allow_undefined_flag
10358 allow_undefined_flag=
10359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10360 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10361 ac_status=$?
10362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10363 test $ac_status = 0; }
10364 then
10365 lt_cv_archive_cmds_need_lc=no
10366 else
10367 lt_cv_archive_cmds_need_lc=yes
10368 fi
10369 allow_undefined_flag=$lt_save_allow_undefined_flag
10370 else
10371 cat conftest.err 1>&5
10372 fi
10373 $RM conftest*
10374
10375 fi
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10377 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10378 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10379 ;;
10380 esac
10381 fi
10382 ;;
10383 esac
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
10536
10537
10538
10539
10540
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10542 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10543
10544 if test "$GCC" = yes; then
10545 case $host_os in
10546 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10547 *) lt_awk_arg="/^libraries:/" ;;
10548 esac
10549 case $host_os in
10550 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10551 *) lt_sed_strip_eq="s,=/,/,g" ;;
10552 esac
10553 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10554 case $lt_search_path_spec in
10555 *\;*)
10556 # if the path contains ";" then we assume it to be the separator
10557 # otherwise default to the standard path separator (i.e. ":") - it is
10558 # assumed that no part of a normal pathname contains ";" but that should
10559 # okay in the real world where ";" in dirpaths is itself problematic.
10560 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10561 ;;
10562 *)
10563 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10564 ;;
10565 esac
10566 # Ok, now we have the path, separated by spaces, we can step through it
10567 # and add multilib dir if necessary.
10568 lt_tmp_lt_search_path_spec=
10569 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10570 for lt_sys_path in $lt_search_path_spec; do
10571 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10572 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10573 else
10574 test -d "$lt_sys_path" && \
10575 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10576 fi
10577 done
10578 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10579 BEGIN {RS=" "; FS="/|\n";} {
10580 lt_foo="";
10581 lt_count=0;
10582 for (lt_i = NF; lt_i > 0; lt_i--) {
10583 if ($lt_i != "" && $lt_i != ".") {
10584 if ($lt_i == "..") {
10585 lt_count++;
10586 } else {
10587 if (lt_count == 0) {
10588 lt_foo="/" $lt_i lt_foo;
10589 } else {
10590 lt_count--;
10591 }
10592 }
10593 }
10594 }
10595 if (lt_foo != "") { lt_freq[lt_foo]++; }
10596 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10597 }'`
10598 # AWK program above erroneously prepends '/' to C:/dos/paths
10599 # for these hosts.
10600 case $host_os in
10601 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10602 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10603 esac
10604 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10605 else
10606 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10607 fi
10608 library_names_spec=
10609 libname_spec='lib$name'
10610 soname_spec=
10611 shrext_cmds=".so"
10612 postinstall_cmds=
10613 postuninstall_cmds=
10614 finish_cmds=
10615 finish_eval=
10616 shlibpath_var=
10617 shlibpath_overrides_runpath=unknown
10618 version_type=none
10619 dynamic_linker="$host_os ld.so"
10620 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10621 need_lib_prefix=unknown
10622 hardcode_into_libs=no
10623
10624 # when you set need_version to no, make sure it does not cause -set_version
10625 # flags to be left without arguments
10626 need_version=unknown
10627
10628 case $host_os in
10629 aix3*)
10630 version_type=linux
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10632 shlibpath_var=LIBPATH
10633
10634 # AIX 3 has no versioning support, so we append a major version to the name.
10635 soname_spec='${libname}${release}${shared_ext}$major'
10636 ;;
10637
10638 aix[4-9]*)
10639 version_type=linux
10640 need_lib_prefix=no
10641 need_version=no
10642 hardcode_into_libs=yes
10643 if test "$host_cpu" = ia64; then
10644 # AIX 5 supports IA64
10645 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10646 shlibpath_var=LD_LIBRARY_PATH
10647 else
10648 # With GCC up to 2.95.x, collect2 would create an import file
10649 # for dependence libraries. The import file would start with
10650 # the line `#! .'. This would cause the generated library to
10651 # depend on `.', always an invalid library. This was fixed in
10652 # development snapshots of GCC prior to 3.0.
10653 case $host_os in
10654 aix4 | aix4.[01] | aix4.[01].*)
10655 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10656 echo ' yes '
10657 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10658 :
10659 else
10660 can_build_shared=no
10661 fi
10662 ;;
10663 esac
10664 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10665 # soname into executable. Probably we can add versioning support to
10666 # collect2, so additional links can be useful in future.
10667 if test "$aix_use_runtimelinking" = yes; then
10668 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10669 # instead of lib<name>.a to let people know that these are not
10670 # typical AIX shared libraries.
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672 else
10673 # We preserve .a as extension for shared libraries through AIX4.2
10674 # and later when we are not doing run time linking.
10675 library_names_spec='${libname}${release}.a $libname.a'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 fi
10678 shlibpath_var=LIBPATH
10679 fi
10680 ;;
10681
10682 amigaos*)
10683 case $host_cpu in
10684 powerpc)
10685 # Since July 2007 AmigaOS4 officially supports .so libraries.
10686 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10688 ;;
10689 m68k)
10690 library_names_spec='$libname.ixlibrary $libname.a'
10691 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10692 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'
10693 ;;
10694 esac
10695 ;;
10696
10697 beos*)
10698 library_names_spec='${libname}${shared_ext}'
10699 dynamic_linker="$host_os ld.so"
10700 shlibpath_var=LIBRARY_PATH
10701 ;;
10702
10703 bsdi[45]*)
10704 version_type=linux
10705 need_version=no
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 soname_spec='${libname}${release}${shared_ext}$major'
10708 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10709 shlibpath_var=LD_LIBRARY_PATH
10710 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10711 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10712 # the default ld.so.conf also contains /usr/contrib/lib and
10713 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10714 # libtool to hard-code these into programs
10715 ;;
10716
10717 cygwin* | mingw* | pw32* | cegcc*)
10718 version_type=windows
10719 shrext_cmds=".dll"
10720 need_version=no
10721 need_lib_prefix=no
10722
10723 case $GCC,$host_os in
10724 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10725 library_names_spec='$libname.dll.a'
10726 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10727 postinstall_cmds='base_file=`basename \${file}`~
10728 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10729 dldir=$destdir/`dirname \$dlpath`~
10730 test -d \$dldir || mkdir -p \$dldir~
10731 $install_prog $dir/$dlname \$dldir/$dlname~
10732 chmod a+x \$dldir/$dlname~
10733 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10734 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10735 fi'
10736 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10737 dlpath=$dir/\$dldll~
10738 $RM \$dlpath'
10739 shlibpath_overrides_runpath=yes
10740
10741 case $host_os in
10742 cygwin*)
10743 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10744 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10745
10746 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10747 ;;
10748 mingw* | cegcc*)
10749 # MinGW DLLs use traditional 'lib' prefix
10750 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10751 ;;
10752 pw32*)
10753 # pw32 DLLs use 'pw' prefix rather than 'lib'
10754 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10755 ;;
10756 esac
10757 ;;
10758
10759 *)
10760 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10761 ;;
10762 esac
10763 dynamic_linker='Win32 ld.exe'
10764 # FIXME: first we should search . and the directory the executable is in
10765 shlibpath_var=PATH
10766 ;;
10767
10768 darwin* | rhapsody*)
10769 dynamic_linker="$host_os dyld"
10770 version_type=darwin
10771 need_lib_prefix=no
10772 need_version=no
10773 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10774 soname_spec='${libname}${release}${major}$shared_ext'
10775 shlibpath_overrides_runpath=yes
10776 shlibpath_var=DYLD_LIBRARY_PATH
10777 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10778
10779 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10780 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10781 ;;
10782
10783 dgux*)
10784 version_type=linux
10785 need_lib_prefix=no
10786 need_version=no
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10788 soname_spec='${libname}${release}${shared_ext}$major'
10789 shlibpath_var=LD_LIBRARY_PATH
10790 ;;
10791
10792 freebsd* | dragonfly*)
10793 # DragonFly does not have aout. When/if they implement a new
10794 # versioning mechanism, adjust this.
10795 if test -x /usr/bin/objformat; then
10796 objformat=`/usr/bin/objformat`
10797 else
10798 case $host_os in
10799 freebsd[23].*) objformat=aout ;;
10800 *) objformat=elf ;;
10801 esac
10802 fi
10803 version_type=freebsd-$objformat
10804 case $version_type in
10805 freebsd-elf*)
10806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10807 need_version=no
10808 need_lib_prefix=no
10809 ;;
10810 freebsd-*)
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10812 need_version=yes
10813 ;;
10814 esac
10815 shlibpath_var=LD_LIBRARY_PATH
10816 case $host_os in
10817 freebsd2.*)
10818 shlibpath_overrides_runpath=yes
10819 ;;
10820 freebsd3.[01]* | freebsdelf3.[01]*)
10821 shlibpath_overrides_runpath=yes
10822 hardcode_into_libs=yes
10823 ;;
10824 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10825 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10826 shlibpath_overrides_runpath=no
10827 hardcode_into_libs=yes
10828 ;;
10829 *) # from 4.6 on, and DragonFly
10830 shlibpath_overrides_runpath=yes
10831 hardcode_into_libs=yes
10832 ;;
10833 esac
10834 ;;
10835
10836 haiku*)
10837 version_type=linux
10838 need_lib_prefix=no
10839 need_version=no
10840 dynamic_linker="$host_os runtime_loader"
10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10842 soname_spec='${libname}${release}${shared_ext}$major'
10843 shlibpath_var=LIBRARY_PATH
10844 shlibpath_overrides_runpath=yes
10845 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10846 hardcode_into_libs=yes
10847 ;;
10848
10849 hpux9* | hpux10* | hpux11*)
10850 # Give a soname corresponding to the major version so that dld.sl refuses to
10851 # link against other versions.
10852 version_type=sunos
10853 need_lib_prefix=no
10854 need_version=no
10855 case $host_cpu in
10856 ia64*)
10857 shrext_cmds='.so'
10858 hardcode_into_libs=yes
10859 dynamic_linker="$host_os dld.so"
10860 shlibpath_var=LD_LIBRARY_PATH
10861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10863 soname_spec='${libname}${release}${shared_ext}$major'
10864 if test "X$HPUX_IA64_MODE" = X32; then
10865 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10866 else
10867 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10868 fi
10869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10870 ;;
10871 hppa*64*)
10872 shrext_cmds='.sl'
10873 hardcode_into_libs=yes
10874 dynamic_linker="$host_os dld.sl"
10875 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10876 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10878 soname_spec='${libname}${release}${shared_ext}$major'
10879 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10880 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10881 ;;
10882 *)
10883 shrext_cmds='.sl'
10884 dynamic_linker="$host_os dld.sl"
10885 shlibpath_var=SHLIB_PATH
10886 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10888 soname_spec='${libname}${release}${shared_ext}$major'
10889 ;;
10890 esac
10891 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10892 postinstall_cmds='chmod 555 $lib'
10893 # or fails outright, so override atomically:
10894 install_override_mode=555
10895 ;;
10896
10897 interix[3-9]*)
10898 version_type=linux
10899 need_lib_prefix=no
10900 need_version=no
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10902 soname_spec='${libname}${release}${shared_ext}$major'
10903 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10904 shlibpath_var=LD_LIBRARY_PATH
10905 shlibpath_overrides_runpath=no
10906 hardcode_into_libs=yes
10907 ;;
10908
10909 irix5* | irix6* | nonstopux*)
10910 case $host_os in
10911 nonstopux*) version_type=nonstopux ;;
10912 *)
10913 if test "$lt_cv_prog_gnu_ld" = yes; then
10914 version_type=linux
10915 else
10916 version_type=irix
10917 fi ;;
10918 esac
10919 need_lib_prefix=no
10920 need_version=no
10921 soname_spec='${libname}${release}${shared_ext}$major'
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10923 case $host_os in
10924 irix5* | nonstopux*)
10925 libsuff= shlibsuff=
10926 ;;
10927 *)
10928 case $LD in # libtool.m4 will add one of these switches to LD
10929 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10930 libsuff= shlibsuff= libmagic=32-bit;;
10931 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10932 libsuff=32 shlibsuff=N32 libmagic=N32;;
10933 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10934 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10935 *) libsuff= shlibsuff= libmagic=never-match;;
10936 esac
10937 ;;
10938 esac
10939 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10940 shlibpath_overrides_runpath=no
10941 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10942 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10943 hardcode_into_libs=yes
10944 ;;
10945
10946 # No shared lib support for Linux oldld, aout, or coff.
10947 linux*oldld* | linux*aout* | linux*coff*)
10948 dynamic_linker=no
10949 ;;
10950
10951 # This must be Linux ELF.
10952
10953 # uclinux* changes (here and below) have been submitted to the libtool
10954 # project, but have not yet been accepted: they are GCC-local changes
10955 # for the time being. (See
10956 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10957 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10958 version_type=linux
10959 need_lib_prefix=no
10960 need_version=no
10961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10962 soname_spec='${libname}${release}${shared_ext}$major'
10963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10964 shlibpath_var=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath=no
10966
10967 # Some binutils ld are patched to set DT_RUNPATH
10968 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10969 $as_echo_n "(cached) " >&6
10970 else
10971 lt_cv_shlibpath_overrides_runpath=no
10972 save_LDFLAGS=$LDFLAGS
10973 save_libdir=$libdir
10974 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10975 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10977 /* end confdefs.h. */
10978
10979 int
10980 main ()
10981 {
10982
10983 ;
10984 return 0;
10985 }
10986 _ACEOF
10987 if ac_fn_c_try_link "$LINENO"; then :
10988 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10989 lt_cv_shlibpath_overrides_runpath=yes
10990 fi
10991 fi
10992 rm -f core conftest.err conftest.$ac_objext \
10993 conftest$ac_exeext conftest.$ac_ext
10994 LDFLAGS=$save_LDFLAGS
10995 libdir=$save_libdir
10996
10997 fi
10998
10999 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11000
11001 # This implies no fast_install, which is unacceptable.
11002 # Some rework will be needed to allow for fast_install
11003 # before this can be enabled.
11004 hardcode_into_libs=yes
11005
11006 # Append ld.so.conf contents to the search path
11007 if test -f /etc/ld.so.conf; then
11008 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' ' '`
11009 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11010 fi
11011
11012 # We used to test for /lib/ld.so.1 and disable shared libraries on
11013 # powerpc, because MkLinux only supported shared libraries with the
11014 # GNU dynamic linker. Since this was broken with cross compilers,
11015 # most powerpc-linux boxes support dynamic linking these days and
11016 # people can always --disable-shared, the test was removed, and we
11017 # assume the GNU/Linux dynamic linker is in use.
11018 dynamic_linker='GNU/Linux ld.so'
11019 ;;
11020
11021 netbsd*)
11022 version_type=sunos
11023 need_lib_prefix=no
11024 need_version=no
11025 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11028 dynamic_linker='NetBSD (a.out) ld.so'
11029 else
11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11031 soname_spec='${libname}${release}${shared_ext}$major'
11032 dynamic_linker='NetBSD ld.elf_so'
11033 fi
11034 shlibpath_var=LD_LIBRARY_PATH
11035 shlibpath_overrides_runpath=yes
11036 hardcode_into_libs=yes
11037 ;;
11038
11039 newsos6)
11040 version_type=linux
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042 shlibpath_var=LD_LIBRARY_PATH
11043 shlibpath_overrides_runpath=yes
11044 ;;
11045
11046 *nto* | *qnx*)
11047 version_type=qnx
11048 need_lib_prefix=no
11049 need_version=no
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051 soname_spec='${libname}${release}${shared_ext}$major'
11052 shlibpath_var=LD_LIBRARY_PATH
11053 shlibpath_overrides_runpath=no
11054 hardcode_into_libs=yes
11055 dynamic_linker='ldqnx.so'
11056 ;;
11057
11058 openbsd*)
11059 version_type=sunos
11060 sys_lib_dlsearch_path_spec="/usr/lib"
11061 need_lib_prefix=no
11062 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11063 case $host_os in
11064 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11065 *) need_version=no ;;
11066 esac
11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11071 case $host_os in
11072 openbsd2.[89] | openbsd2.[89].*)
11073 shlibpath_overrides_runpath=no
11074 ;;
11075 *)
11076 shlibpath_overrides_runpath=yes
11077 ;;
11078 esac
11079 else
11080 shlibpath_overrides_runpath=yes
11081 fi
11082 ;;
11083
11084 os2*)
11085 libname_spec='$name'
11086 shrext_cmds=".dll"
11087 need_lib_prefix=no
11088 library_names_spec='$libname${shared_ext} $libname.a'
11089 dynamic_linker='OS/2 ld.exe'
11090 shlibpath_var=LIBPATH
11091 ;;
11092
11093 osf3* | osf4* | osf5*)
11094 version_type=osf
11095 need_lib_prefix=no
11096 need_version=no
11097 soname_spec='${libname}${release}${shared_ext}$major'
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11099 shlibpath_var=LD_LIBRARY_PATH
11100 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11101 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11102 ;;
11103
11104 rdos*)
11105 dynamic_linker=no
11106 ;;
11107
11108 solaris*)
11109 version_type=linux
11110 need_lib_prefix=no
11111 need_version=no
11112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11113 soname_spec='${libname}${release}${shared_ext}$major'
11114 shlibpath_var=LD_LIBRARY_PATH
11115 shlibpath_overrides_runpath=yes
11116 hardcode_into_libs=yes
11117 # ldd complains unless libraries are executable
11118 postinstall_cmds='chmod +x $lib'
11119 ;;
11120
11121 sunos4*)
11122 version_type=sunos
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11124 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=yes
11127 if test "$with_gnu_ld" = yes; then
11128 need_lib_prefix=no
11129 fi
11130 need_version=yes
11131 ;;
11132
11133 sysv4 | sysv4.3*)
11134 version_type=linux
11135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11136 soname_spec='${libname}${release}${shared_ext}$major'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 case $host_vendor in
11139 sni)
11140 shlibpath_overrides_runpath=no
11141 need_lib_prefix=no
11142 runpath_var=LD_RUN_PATH
11143 ;;
11144 siemens)
11145 need_lib_prefix=no
11146 ;;
11147 motorola)
11148 need_lib_prefix=no
11149 need_version=no
11150 shlibpath_overrides_runpath=no
11151 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11152 ;;
11153 esac
11154 ;;
11155
11156 sysv4*MP*)
11157 if test -d /usr/nec ;then
11158 version_type=linux
11159 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11160 soname_spec='$libname${shared_ext}.$major'
11161 shlibpath_var=LD_LIBRARY_PATH
11162 fi
11163 ;;
11164
11165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11166 version_type=freebsd-elf
11167 need_lib_prefix=no
11168 need_version=no
11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11170 soname_spec='${libname}${release}${shared_ext}$major'
11171 shlibpath_var=LD_LIBRARY_PATH
11172 shlibpath_overrides_runpath=yes
11173 hardcode_into_libs=yes
11174 if test "$with_gnu_ld" = yes; then
11175 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11176 else
11177 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11178 case $host_os in
11179 sco3.2v5*)
11180 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11181 ;;
11182 esac
11183 fi
11184 sys_lib_dlsearch_path_spec='/usr/lib'
11185 ;;
11186
11187 tpf*)
11188 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11189 version_type=linux
11190 need_lib_prefix=no
11191 need_version=no
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 shlibpath_overrides_runpath=no
11195 hardcode_into_libs=yes
11196 ;;
11197
11198 uts4*)
11199 version_type=linux
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11201 soname_spec='${libname}${release}${shared_ext}$major'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 ;;
11204
11205 # Shared libraries for VwWorks, >= 7 only at this stage
11206 # and (fpic) still incompatible with "large" code models
11207 # in a few configurations. Only for RTP mode in any case,
11208 # and upon explicit request at configure time.
11209 vxworks7*)
11210 dynamic_linker=no
11211 case ${with_multisubdir}-${enable_shared} in
11212 *large*)
11213 ;;
11214 *mrtp*-yes)
11215 version_type=linux
11216 need_lib_prefix=no
11217 need_version=no
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219 soname_spec='${libname}${release}${shared_ext}$major'
11220 dynamic_linker="$host_os module_loader"
11221 ;;
11222 esac
11223 ;;
11224 *)
11225 dynamic_linker=no
11226 ;;
11227 esac
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11229 $as_echo "$dynamic_linker" >&6; }
11230 test "$dynamic_linker" = no && can_build_shared=no
11231
11232 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11233 if test "$GCC" = yes; then
11234 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11235 fi
11236
11237 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11238 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11239 fi
11240 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11241 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11242 fi
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11336 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11337 hardcode_action=
11338 if test -n "$hardcode_libdir_flag_spec" ||
11339 test -n "$runpath_var" ||
11340 test "X$hardcode_automatic" = "Xyes" ; then
11341
11342 # We can hardcode non-existent directories.
11343 if test "$hardcode_direct" != no &&
11344 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11345 # have to relink, otherwise we might link with an installed library
11346 # when we should be linking with a yet-to-be-installed one
11347 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11348 test "$hardcode_minus_L" != no; then
11349 # Linking always hardcodes the temporary library directory.
11350 hardcode_action=relink
11351 else
11352 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11353 hardcode_action=immediate
11354 fi
11355 else
11356 # We cannot hardcode anything, or else we can only hardcode existing
11357 # directories.
11358 hardcode_action=unsupported
11359 fi
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11361 $as_echo "$hardcode_action" >&6; }
11362
11363 if test "$hardcode_action" = relink ||
11364 test "$inherit_rpath" = yes; then
11365 # Fast installation is not supported
11366 enable_fast_install=no
11367 elif test "$shlibpath_overrides_runpath" = yes ||
11368 test "$enable_shared" = no; then
11369 # Fast installation is not necessary
11370 enable_fast_install=needless
11371 fi
11372
11373
11374
11375
11376
11377
11378 if test "x$enable_dlopen" != xyes; then
11379 enable_dlopen=unknown
11380 enable_dlopen_self=unknown
11381 enable_dlopen_self_static=unknown
11382 else
11383 lt_cv_dlopen=no
11384 lt_cv_dlopen_libs=
11385
11386 case $host_os in
11387 beos*)
11388 lt_cv_dlopen="load_add_on"
11389 lt_cv_dlopen_libs=
11390 lt_cv_dlopen_self=yes
11391 ;;
11392
11393 mingw* | pw32* | cegcc*)
11394 lt_cv_dlopen="LoadLibrary"
11395 lt_cv_dlopen_libs=
11396 ;;
11397
11398 cygwin*)
11399 lt_cv_dlopen="dlopen"
11400 lt_cv_dlopen_libs=
11401 ;;
11402
11403 darwin*)
11404 # if libdl is installed we need to link against it
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11406 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11407 if ${ac_cv_lib_dl_dlopen+:} false; then :
11408 $as_echo_n "(cached) " >&6
11409 else
11410 ac_check_lib_save_LIBS=$LIBS
11411 LIBS="-ldl $LIBS"
11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11413 /* end confdefs.h. */
11414
11415 /* Override any GCC internal prototype to avoid an error.
11416 Use char because int might match the return type of a GCC
11417 builtin and then its argument prototype would still apply. */
11418 #ifdef __cplusplus
11419 extern "C"
11420 #endif
11421 char dlopen ();
11422 int
11423 main ()
11424 {
11425 return dlopen ();
11426 ;
11427 return 0;
11428 }
11429 _ACEOF
11430 if ac_fn_c_try_link "$LINENO"; then :
11431 ac_cv_lib_dl_dlopen=yes
11432 else
11433 ac_cv_lib_dl_dlopen=no
11434 fi
11435 rm -f core conftest.err conftest.$ac_objext \
11436 conftest$ac_exeext conftest.$ac_ext
11437 LIBS=$ac_check_lib_save_LIBS
11438 fi
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11440 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11441 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11442 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11443 else
11444
11445 lt_cv_dlopen="dyld"
11446 lt_cv_dlopen_libs=
11447 lt_cv_dlopen_self=yes
11448
11449 fi
11450
11451 ;;
11452
11453 *)
11454 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11455 if test "x$ac_cv_func_shl_load" = xyes; then :
11456 lt_cv_dlopen="shl_load"
11457 else
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11459 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11460 if ${ac_cv_lib_dld_shl_load+:} false; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463 ac_check_lib_save_LIBS=$LIBS
11464 LIBS="-ldld $LIBS"
11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466 /* end confdefs.h. */
11467
11468 /* Override any GCC internal prototype to avoid an error.
11469 Use char because int might match the return type of a GCC
11470 builtin and then its argument prototype would still apply. */
11471 #ifdef __cplusplus
11472 extern "C"
11473 #endif
11474 char shl_load ();
11475 int
11476 main ()
11477 {
11478 return shl_load ();
11479 ;
11480 return 0;
11481 }
11482 _ACEOF
11483 if ac_fn_c_try_link "$LINENO"; then :
11484 ac_cv_lib_dld_shl_load=yes
11485 else
11486 ac_cv_lib_dld_shl_load=no
11487 fi
11488 rm -f core conftest.err conftest.$ac_objext \
11489 conftest$ac_exeext conftest.$ac_ext
11490 LIBS=$ac_check_lib_save_LIBS
11491 fi
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11493 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11494 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11495 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11496 else
11497 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11498 if test "x$ac_cv_func_dlopen" = xyes; then :
11499 lt_cv_dlopen="dlopen"
11500 else
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11502 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11503 if ${ac_cv_lib_dl_dlopen+:} false; then :
11504 $as_echo_n "(cached) " >&6
11505 else
11506 ac_check_lib_save_LIBS=$LIBS
11507 LIBS="-ldl $LIBS"
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11510
11511 /* Override any GCC internal prototype to avoid an error.
11512 Use char because int might match the return type of a GCC
11513 builtin and then its argument prototype would still apply. */
11514 #ifdef __cplusplus
11515 extern "C"
11516 #endif
11517 char dlopen ();
11518 int
11519 main ()
11520 {
11521 return dlopen ();
11522 ;
11523 return 0;
11524 }
11525 _ACEOF
11526 if ac_fn_c_try_link "$LINENO"; then :
11527 ac_cv_lib_dl_dlopen=yes
11528 else
11529 ac_cv_lib_dl_dlopen=no
11530 fi
11531 rm -f core conftest.err conftest.$ac_objext \
11532 conftest$ac_exeext conftest.$ac_ext
11533 LIBS=$ac_check_lib_save_LIBS
11534 fi
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11536 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11537 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11538 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11539 else
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11541 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11542 if ${ac_cv_lib_svld_dlopen+:} false; then :
11543 $as_echo_n "(cached) " >&6
11544 else
11545 ac_check_lib_save_LIBS=$LIBS
11546 LIBS="-lsvld $LIBS"
11547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548 /* end confdefs.h. */
11549
11550 /* Override any GCC internal prototype to avoid an error.
11551 Use char because int might match the return type of a GCC
11552 builtin and then its argument prototype would still apply. */
11553 #ifdef __cplusplus
11554 extern "C"
11555 #endif
11556 char dlopen ();
11557 int
11558 main ()
11559 {
11560 return dlopen ();
11561 ;
11562 return 0;
11563 }
11564 _ACEOF
11565 if ac_fn_c_try_link "$LINENO"; then :
11566 ac_cv_lib_svld_dlopen=yes
11567 else
11568 ac_cv_lib_svld_dlopen=no
11569 fi
11570 rm -f core conftest.err conftest.$ac_objext \
11571 conftest$ac_exeext conftest.$ac_ext
11572 LIBS=$ac_check_lib_save_LIBS
11573 fi
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11575 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11576 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11577 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11578 else
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11580 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11581 if ${ac_cv_lib_dld_dld_link+:} false; then :
11582 $as_echo_n "(cached) " >&6
11583 else
11584 ac_check_lib_save_LIBS=$LIBS
11585 LIBS="-ldld $LIBS"
11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587 /* end confdefs.h. */
11588
11589 /* Override any GCC internal prototype to avoid an error.
11590 Use char because int might match the return type of a GCC
11591 builtin and then its argument prototype would still apply. */
11592 #ifdef __cplusplus
11593 extern "C"
11594 #endif
11595 char dld_link ();
11596 int
11597 main ()
11598 {
11599 return dld_link ();
11600 ;
11601 return 0;
11602 }
11603 _ACEOF
11604 if ac_fn_c_try_link "$LINENO"; then :
11605 ac_cv_lib_dld_dld_link=yes
11606 else
11607 ac_cv_lib_dld_dld_link=no
11608 fi
11609 rm -f core conftest.err conftest.$ac_objext \
11610 conftest$ac_exeext conftest.$ac_ext
11611 LIBS=$ac_check_lib_save_LIBS
11612 fi
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11614 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11615 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11616 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11617 fi
11618
11619
11620 fi
11621
11622
11623 fi
11624
11625
11626 fi
11627
11628
11629 fi
11630
11631
11632 fi
11633
11634 ;;
11635 esac
11636
11637 if test "x$lt_cv_dlopen" != xno; then
11638 enable_dlopen=yes
11639 else
11640 enable_dlopen=no
11641 fi
11642
11643 case $lt_cv_dlopen in
11644 dlopen)
11645 save_CPPFLAGS="$CPPFLAGS"
11646 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11647
11648 save_LDFLAGS="$LDFLAGS"
11649 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11650
11651 save_LIBS="$LIBS"
11652 LIBS="$lt_cv_dlopen_libs $LIBS"
11653
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11655 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11656 if ${lt_cv_dlopen_self+:} false; then :
11657 $as_echo_n "(cached) " >&6
11658 else
11659 if test "$cross_compiling" = yes; then :
11660 lt_cv_dlopen_self=cross
11661 else
11662 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11663 lt_status=$lt_dlunknown
11664 cat > conftest.$ac_ext <<_LT_EOF
11665 #line 11665 "configure"
11666 #include "confdefs.h"
11667
11668 #if HAVE_DLFCN_H
11669 #include <dlfcn.h>
11670 #endif
11671
11672 #include <stdio.h>
11673
11674 #ifdef RTLD_GLOBAL
11675 # define LT_DLGLOBAL RTLD_GLOBAL
11676 #else
11677 # ifdef DL_GLOBAL
11678 # define LT_DLGLOBAL DL_GLOBAL
11679 # else
11680 # define LT_DLGLOBAL 0
11681 # endif
11682 #endif
11683
11684 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11685 find out it does not work in some platform. */
11686 #ifndef LT_DLLAZY_OR_NOW
11687 # ifdef RTLD_LAZY
11688 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11689 # else
11690 # ifdef DL_LAZY
11691 # define LT_DLLAZY_OR_NOW DL_LAZY
11692 # else
11693 # ifdef RTLD_NOW
11694 # define LT_DLLAZY_OR_NOW RTLD_NOW
11695 # else
11696 # ifdef DL_NOW
11697 # define LT_DLLAZY_OR_NOW DL_NOW
11698 # else
11699 # define LT_DLLAZY_OR_NOW 0
11700 # endif
11701 # endif
11702 # endif
11703 # endif
11704 #endif
11705
11706 /* When -fvisbility=hidden is used, assume the code has been annotated
11707 correspondingly for the symbols needed. */
11708 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11709 void fnord () __attribute__((visibility("default")));
11710 #endif
11711
11712 void fnord () { int i=42; }
11713 int main ()
11714 {
11715 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11716 int status = $lt_dlunknown;
11717
11718 if (self)
11719 {
11720 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11721 else
11722 {
11723 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11724 else puts (dlerror ());
11725 }
11726 /* dlclose (self); */
11727 }
11728 else
11729 puts (dlerror ());
11730
11731 return status;
11732 }
11733 _LT_EOF
11734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11735 (eval $ac_link) 2>&5
11736 ac_status=$?
11737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11738 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11739 (./conftest; exit; ) >&5 2>/dev/null
11740 lt_status=$?
11741 case x$lt_status in
11742 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11743 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11744 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11745 esac
11746 else :
11747 # compilation failed
11748 lt_cv_dlopen_self=no
11749 fi
11750 fi
11751 rm -fr conftest*
11752
11753
11754 fi
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11756 $as_echo "$lt_cv_dlopen_self" >&6; }
11757
11758 if test "x$lt_cv_dlopen_self" = xyes; then
11759 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11761 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11762 if ${lt_cv_dlopen_self_static+:} false; then :
11763 $as_echo_n "(cached) " >&6
11764 else
11765 if test "$cross_compiling" = yes; then :
11766 lt_cv_dlopen_self_static=cross
11767 else
11768 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11769 lt_status=$lt_dlunknown
11770 cat > conftest.$ac_ext <<_LT_EOF
11771 #line 11771 "configure"
11772 #include "confdefs.h"
11773
11774 #if HAVE_DLFCN_H
11775 #include <dlfcn.h>
11776 #endif
11777
11778 #include <stdio.h>
11779
11780 #ifdef RTLD_GLOBAL
11781 # define LT_DLGLOBAL RTLD_GLOBAL
11782 #else
11783 # ifdef DL_GLOBAL
11784 # define LT_DLGLOBAL DL_GLOBAL
11785 # else
11786 # define LT_DLGLOBAL 0
11787 # endif
11788 #endif
11789
11790 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11791 find out it does not work in some platform. */
11792 #ifndef LT_DLLAZY_OR_NOW
11793 # ifdef RTLD_LAZY
11794 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11795 # else
11796 # ifdef DL_LAZY
11797 # define LT_DLLAZY_OR_NOW DL_LAZY
11798 # else
11799 # ifdef RTLD_NOW
11800 # define LT_DLLAZY_OR_NOW RTLD_NOW
11801 # else
11802 # ifdef DL_NOW
11803 # define LT_DLLAZY_OR_NOW DL_NOW
11804 # else
11805 # define LT_DLLAZY_OR_NOW 0
11806 # endif
11807 # endif
11808 # endif
11809 # endif
11810 #endif
11811
11812 /* When -fvisbility=hidden is used, assume the code has been annotated
11813 correspondingly for the symbols needed. */
11814 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11815 void fnord () __attribute__((visibility("default")));
11816 #endif
11817
11818 void fnord () { int i=42; }
11819 int main ()
11820 {
11821 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11822 int status = $lt_dlunknown;
11823
11824 if (self)
11825 {
11826 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11827 else
11828 {
11829 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11830 else puts (dlerror ());
11831 }
11832 /* dlclose (self); */
11833 }
11834 else
11835 puts (dlerror ());
11836
11837 return status;
11838 }
11839 _LT_EOF
11840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11841 (eval $ac_link) 2>&5
11842 ac_status=$?
11843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11844 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11845 (./conftest; exit; ) >&5 2>/dev/null
11846 lt_status=$?
11847 case x$lt_status in
11848 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11849 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11850 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11851 esac
11852 else :
11853 # compilation failed
11854 lt_cv_dlopen_self_static=no
11855 fi
11856 fi
11857 rm -fr conftest*
11858
11859
11860 fi
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11862 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11863 fi
11864
11865 CPPFLAGS="$save_CPPFLAGS"
11866 LDFLAGS="$save_LDFLAGS"
11867 LIBS="$save_LIBS"
11868 ;;
11869 esac
11870
11871 case $lt_cv_dlopen_self in
11872 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11873 *) enable_dlopen_self=unknown ;;
11874 esac
11875
11876 case $lt_cv_dlopen_self_static in
11877 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11878 *) enable_dlopen_self_static=unknown ;;
11879 esac
11880 fi
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898 striplib=
11899 old_striplib=
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11901 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11902 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11903 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11904 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11906 $as_echo "yes" >&6; }
11907 else
11908 # FIXME - insert some real tests, host_os isn't really good enough
11909 case $host_os in
11910 darwin*)
11911 if test -n "$STRIP" ; then
11912 striplib="$STRIP -x"
11913 old_striplib="$STRIP -S"
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11915 $as_echo "yes" >&6; }
11916 else
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11919 fi
11920 ;;
11921 *)
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923 $as_echo "no" >&6; }
11924 ;;
11925 esac
11926 fi
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939 # Report which library types will actually be built
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11941 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11943 $as_echo "$can_build_shared" >&6; }
11944
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11946 $as_echo_n "checking whether to build shared libraries... " >&6; }
11947 test "$can_build_shared" = "no" && enable_shared=no
11948
11949 # On AIX, shared libraries and static libraries use the same namespace, and
11950 # are all built from PIC.
11951 case $host_os in
11952 aix3*)
11953 test "$enable_shared" = yes && enable_static=no
11954 if test -n "$RANLIB"; then
11955 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11956 postinstall_cmds='$RANLIB $lib'
11957 fi
11958 ;;
11959
11960 aix[4-9]*)
11961 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11962 test "$enable_shared" = yes && enable_static=no
11963 fi
11964 ;;
11965 esac
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11967 $as_echo "$enable_shared" >&6; }
11968
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11970 $as_echo_n "checking whether to build static libraries... " >&6; }
11971 # Make sure either enable_shared or enable_static is yes.
11972 test "$enable_shared" = yes || enable_static=yes
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11974 $as_echo "$enable_static" >&6; }
11975
11976
11977
11978
11979 fi
11980 ac_ext=c
11981 ac_cpp='$CPP $CPPFLAGS'
11982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11985
11986 CC="$lt_save_CC"
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000 ac_config_commands="$ac_config_commands libtool"
12001
12002
12003
12004
12005 # Only expand once:
12006
12007
12008 # Check whether --enable-largefile was given.
12009 if test "${enable_largefile+set}" = set; then :
12010 enableval=$enable_largefile;
12011 fi
12012
12013 if test "$enable_largefile" != no; then
12014
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12016 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12017 if ${ac_cv_sys_largefile_CC+:} false; then :
12018 $as_echo_n "(cached) " >&6
12019 else
12020 ac_cv_sys_largefile_CC=no
12021 if test "$GCC" != yes; then
12022 ac_save_CC=$CC
12023 while :; do
12024 # IRIX 6.2 and later do not support large files by default,
12025 # so use the C compiler's -n32 option if that helps.
12026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12027 /* end confdefs.h. */
12028 #include <sys/types.h>
12029 /* Check that off_t can represent 2**63 - 1 correctly.
12030 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12031 since some C++ compilers masquerading as C compilers
12032 incorrectly reject 9223372036854775807. */
12033 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12034 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12035 && LARGE_OFF_T % 2147483647 == 1)
12036 ? 1 : -1];
12037 int
12038 main ()
12039 {
12040
12041 ;
12042 return 0;
12043 }
12044 _ACEOF
12045 if ac_fn_c_try_compile "$LINENO"; then :
12046 break
12047 fi
12048 rm -f core conftest.err conftest.$ac_objext
12049 CC="$CC -n32"
12050 if ac_fn_c_try_compile "$LINENO"; then :
12051 ac_cv_sys_largefile_CC=' -n32'; break
12052 fi
12053 rm -f core conftest.err conftest.$ac_objext
12054 break
12055 done
12056 CC=$ac_save_CC
12057 rm -f conftest.$ac_ext
12058 fi
12059 fi
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12061 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12062 if test "$ac_cv_sys_largefile_CC" != no; then
12063 CC=$CC$ac_cv_sys_largefile_CC
12064 fi
12065
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12067 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12068 if ${ac_cv_sys_file_offset_bits+:} false; then :
12069 $as_echo_n "(cached) " >&6
12070 else
12071 while :; do
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074 #include <sys/types.h>
12075 /* Check that off_t can represent 2**63 - 1 correctly.
12076 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12077 since some C++ compilers masquerading as C compilers
12078 incorrectly reject 9223372036854775807. */
12079 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12080 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12081 && LARGE_OFF_T % 2147483647 == 1)
12082 ? 1 : -1];
12083 int
12084 main ()
12085 {
12086
12087 ;
12088 return 0;
12089 }
12090 _ACEOF
12091 if ac_fn_c_try_compile "$LINENO"; then :
12092 ac_cv_sys_file_offset_bits=no; break
12093 fi
12094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096 /* end confdefs.h. */
12097 #define _FILE_OFFSET_BITS 64
12098 #include <sys/types.h>
12099 /* Check that off_t can represent 2**63 - 1 correctly.
12100 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12101 since some C++ compilers masquerading as C compilers
12102 incorrectly reject 9223372036854775807. */
12103 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12104 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12105 && LARGE_OFF_T % 2147483647 == 1)
12106 ? 1 : -1];
12107 int
12108 main ()
12109 {
12110
12111 ;
12112 return 0;
12113 }
12114 _ACEOF
12115 if ac_fn_c_try_compile "$LINENO"; then :
12116 ac_cv_sys_file_offset_bits=64; break
12117 fi
12118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12119 ac_cv_sys_file_offset_bits=unknown
12120 break
12121 done
12122 fi
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12124 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12125 case $ac_cv_sys_file_offset_bits in #(
12126 no | unknown) ;;
12127 *)
12128 cat >>confdefs.h <<_ACEOF
12129 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12130 _ACEOF
12131 ;;
12132 esac
12133 rm -rf conftest*
12134 if test $ac_cv_sys_file_offset_bits = unknown; then
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12136 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12137 if ${ac_cv_sys_large_files+:} false; then :
12138 $as_echo_n "(cached) " >&6
12139 else
12140 while :; do
12141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12142 /* end confdefs.h. */
12143 #include <sys/types.h>
12144 /* Check that off_t can represent 2**63 - 1 correctly.
12145 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12146 since some C++ compilers masquerading as C compilers
12147 incorrectly reject 9223372036854775807. */
12148 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12149 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12150 && LARGE_OFF_T % 2147483647 == 1)
12151 ? 1 : -1];
12152 int
12153 main ()
12154 {
12155
12156 ;
12157 return 0;
12158 }
12159 _ACEOF
12160 if ac_fn_c_try_compile "$LINENO"; then :
12161 ac_cv_sys_large_files=no; break
12162 fi
12163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166 #define _LARGE_FILES 1
12167 #include <sys/types.h>
12168 /* Check that off_t can represent 2**63 - 1 correctly.
12169 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12170 since some C++ compilers masquerading as C compilers
12171 incorrectly reject 9223372036854775807. */
12172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12173 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12174 && LARGE_OFF_T % 2147483647 == 1)
12175 ? 1 : -1];
12176 int
12177 main ()
12178 {
12179
12180 ;
12181 return 0;
12182 }
12183 _ACEOF
12184 if ac_fn_c_try_compile "$LINENO"; then :
12185 ac_cv_sys_large_files=1; break
12186 fi
12187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12188 ac_cv_sys_large_files=unknown
12189 break
12190 done
12191 fi
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12193 $as_echo "$ac_cv_sys_large_files" >&6; }
12194 case $ac_cv_sys_large_files in #(
12195 no | unknown) ;;
12196 *)
12197 cat >>confdefs.h <<_ACEOF
12198 #define _LARGE_FILES $ac_cv_sys_large_files
12199 _ACEOF
12200 ;;
12201 esac
12202 rm -rf conftest*
12203 fi
12204
12205
12206 fi
12207
12208 : ${CONFIG_LT=./config.lt}
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
12210 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
12211 as_write_fail=0
12212 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
12213 #! $SHELL
12214 # Generated by $as_me.
12215 # Run this file to recreate a libtool stub with the current configuration.
12216 SHELL=\${CONFIG_SHELL-$SHELL}
12217 export SHELL
12218 _ASEOF
12219 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
12220 ## -------------------- ##
12221 ## M4sh Initialization. ##
12222 ## -------------------- ##
12223
12224 # Be more Bourne compatible
12225 DUALCASE=1; export DUALCASE # for MKS sh
12226 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12227 emulate sh
12228 NULLCMD=:
12229 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12230 # is contrary to our usage. Disable this feature.
12231 alias -g '${1+"$@"}'='"$@"'
12232 setopt NO_GLOB_SUBST
12233 else
12234 case `(set -o) 2>/dev/null` in #(
12235 *posix*) :
12236 set -o posix ;; #(
12237 *) :
12238 ;;
12239 esac
12240 fi
12241
12242
12243 as_nl='
12244 '
12245 export as_nl
12246 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12247 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12248 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12249 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12250 # Prefer a ksh shell builtin over an external printf program on Solaris,
12251 # but without wasting forks for bash or zsh.
12252 if test -z "$BASH_VERSION$ZSH_VERSION" \
12253 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12254 as_echo='print -r --'
12255 as_echo_n='print -rn --'
12256 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12257 as_echo='printf %s\n'
12258 as_echo_n='printf %s'
12259 else
12260 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12261 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12262 as_echo_n='/usr/ucb/echo -n'
12263 else
12264 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12265 as_echo_n_body='eval
12266 arg=$1;
12267 case $arg in #(
12268 *"$as_nl"*)
12269 expr "X$arg" : "X\\(.*\\)$as_nl";
12270 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12271 esac;
12272 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12273 '
12274 export as_echo_n_body
12275 as_echo_n='sh -c $as_echo_n_body as_echo'
12276 fi
12277 export as_echo_body
12278 as_echo='sh -c $as_echo_body as_echo'
12279 fi
12280
12281 # The user is always right.
12282 if test "${PATH_SEPARATOR+set}" != set; then
12283 PATH_SEPARATOR=:
12284 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12285 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12286 PATH_SEPARATOR=';'
12287 }
12288 fi
12289
12290
12291 # IFS
12292 # We need space, tab and new line, in precisely that order. Quoting is
12293 # there to prevent editors from complaining about space-tab.
12294 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12295 # splitting by setting IFS to empty value.)
12296 IFS=" "" $as_nl"
12297
12298 # Find who we are. Look in the path if we contain no directory separator.
12299 as_myself=
12300 case $0 in #((
12301 *[\\/]* ) as_myself=$0 ;;
12302 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303 for as_dir in $PATH
12304 do
12305 IFS=$as_save_IFS
12306 test -z "$as_dir" && as_dir=.
12307 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12308 done
12309 IFS=$as_save_IFS
12310
12311 ;;
12312 esac
12313 # We did not find ourselves, most probably we were run as `sh COMMAND'
12314 # in which case we are not to be found in the path.
12315 if test "x$as_myself" = x; then
12316 as_myself=$0
12317 fi
12318 if test ! -f "$as_myself"; then
12319 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12320 exit 1
12321 fi
12322
12323 # Unset variables that we do not need and which cause bugs (e.g. in
12324 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12325 # suppresses any "Segmentation fault" message there. '((' could
12326 # trigger a bug in pdksh 5.2.14.
12327 for as_var in BASH_ENV ENV MAIL MAILPATH
12328 do eval test x\${$as_var+set} = xset \
12329 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12330 done
12331 PS1='$ '
12332 PS2='> '
12333 PS4='+ '
12334
12335 # NLS nuisances.
12336 LC_ALL=C
12337 export LC_ALL
12338 LANGUAGE=C
12339 export LANGUAGE
12340
12341 # CDPATH.
12342 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12343
12344
12345 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12346 # ----------------------------------------
12347 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12348 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12349 # script with STATUS, using 1 if that was 0.
12350 as_fn_error ()
12351 {
12352 as_status=$1; test $as_status -eq 0 && as_status=1
12353 if test "$4"; then
12354 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12355 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12356 fi
12357 $as_echo "$as_me: error: $2" >&2
12358 as_fn_exit $as_status
12359 } # as_fn_error
12360
12361
12362 # as_fn_set_status STATUS
12363 # -----------------------
12364 # Set $? to STATUS, without forking.
12365 as_fn_set_status ()
12366 {
12367 return $1
12368 } # as_fn_set_status
12369
12370 # as_fn_exit STATUS
12371 # -----------------
12372 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12373 as_fn_exit ()
12374 {
12375 set +e
12376 as_fn_set_status $1
12377 exit $1
12378 } # as_fn_exit
12379
12380 # as_fn_unset VAR
12381 # ---------------
12382 # Portably unset VAR.
12383 as_fn_unset ()
12384 {
12385 { eval $1=; unset $1;}
12386 }
12387 as_unset=as_fn_unset
12388 # as_fn_append VAR VALUE
12389 # ----------------------
12390 # Append the text in VALUE to the end of the definition contained in VAR. Take
12391 # advantage of any shell optimizations that allow amortized linear growth over
12392 # repeated appends, instead of the typical quadratic growth present in naive
12393 # implementations.
12394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12395 eval 'as_fn_append ()
12396 {
12397 eval $1+=\$2
12398 }'
12399 else
12400 as_fn_append ()
12401 {
12402 eval $1=\$$1\$2
12403 }
12404 fi # as_fn_append
12405
12406 # as_fn_arith ARG...
12407 # ------------------
12408 # Perform arithmetic evaluation on the ARGs, and store the result in the
12409 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12410 # must be portable across $(()) and expr.
12411 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12412 eval 'as_fn_arith ()
12413 {
12414 as_val=$(( $* ))
12415 }'
12416 else
12417 as_fn_arith ()
12418 {
12419 as_val=`expr "$@" || test $? -eq 1`
12420 }
12421 fi # as_fn_arith
12422
12423
12424 if expr a : '\(a\)' >/dev/null 2>&1 &&
12425 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12426 as_expr=expr
12427 else
12428 as_expr=false
12429 fi
12430
12431 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12432 as_basename=basename
12433 else
12434 as_basename=false
12435 fi
12436
12437 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12438 as_dirname=dirname
12439 else
12440 as_dirname=false
12441 fi
12442
12443 as_me=`$as_basename -- "$0" ||
12444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12445 X"$0" : 'X\(//\)$' \| \
12446 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12447 $as_echo X/"$0" |
12448 sed '/^.*\/\([^/][^/]*\)\/*$/{
12449 s//\1/
12450 q
12451 }
12452 /^X\/\(\/\/\)$/{
12453 s//\1/
12454 q
12455 }
12456 /^X\/\(\/\).*/{
12457 s//\1/
12458 q
12459 }
12460 s/.*/./; q'`
12461
12462 # Avoid depending upon Character Ranges.
12463 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12464 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12465 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12466 as_cr_digits='0123456789'
12467 as_cr_alnum=$as_cr_Letters$as_cr_digits
12468
12469 ECHO_C= ECHO_N= ECHO_T=
12470 case `echo -n x` in #(((((
12471 -n*)
12472 case `echo 'xy\c'` in
12473 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12474 xy) ECHO_C='\c';;
12475 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12476 ECHO_T=' ';;
12477 esac;;
12478 *)
12479 ECHO_N='-n';;
12480 esac
12481
12482 rm -f conf$$ conf$$.exe conf$$.file
12483 if test -d conf$$.dir; then
12484 rm -f conf$$.dir/conf$$.file
12485 else
12486 rm -f conf$$.dir
12487 mkdir conf$$.dir 2>/dev/null
12488 fi
12489 if (echo >conf$$.file) 2>/dev/null; then
12490 if ln -s conf$$.file conf$$ 2>/dev/null; then
12491 as_ln_s='ln -s'
12492 # ... but there are two gotchas:
12493 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12494 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12495 # In both cases, we have to default to `cp -pR'.
12496 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12497 as_ln_s='cp -pR'
12498 elif ln conf$$.file conf$$ 2>/dev/null; then
12499 as_ln_s=ln
12500 else
12501 as_ln_s='cp -pR'
12502 fi
12503 else
12504 as_ln_s='cp -pR'
12505 fi
12506 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12507 rmdir conf$$.dir 2>/dev/null
12508
12509
12510 # as_fn_mkdir_p
12511 # -------------
12512 # Create "$as_dir" as a directory, including parents if necessary.
12513 as_fn_mkdir_p ()
12514 {
12515
12516 case $as_dir in #(
12517 -*) as_dir=./$as_dir;;
12518 esac
12519 test -d "$as_dir" || eval $as_mkdir_p || {
12520 as_dirs=
12521 while :; do
12522 case $as_dir in #(
12523 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12524 *) as_qdir=$as_dir;;
12525 esac
12526 as_dirs="'$as_qdir' $as_dirs"
12527 as_dir=`$as_dirname -- "$as_dir" ||
12528 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12529 X"$as_dir" : 'X\(//\)[^/]' \| \
12530 X"$as_dir" : 'X\(//\)$' \| \
12531 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12532 $as_echo X"$as_dir" |
12533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12534 s//\1/
12535 q
12536 }
12537 /^X\(\/\/\)[^/].*/{
12538 s//\1/
12539 q
12540 }
12541 /^X\(\/\/\)$/{
12542 s//\1/
12543 q
12544 }
12545 /^X\(\/\).*/{
12546 s//\1/
12547 q
12548 }
12549 s/.*/./; q'`
12550 test -d "$as_dir" && break
12551 done
12552 test -z "$as_dirs" || eval "mkdir $as_dirs"
12553 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12554
12555
12556 } # as_fn_mkdir_p
12557 if mkdir -p . 2>/dev/null; then
12558 as_mkdir_p='mkdir -p "$as_dir"'
12559 else
12560 test -d ./-p && rmdir ./-p
12561 as_mkdir_p=false
12562 fi
12563
12564
12565 # as_fn_executable_p FILE
12566 # -----------------------
12567 # Test if FILE is an executable regular file.
12568 as_fn_executable_p ()
12569 {
12570 test -f "$1" && test -x "$1"
12571 } # as_fn_executable_p
12572 as_test_x='test -x'
12573 as_executable_p=as_fn_executable_p
12574
12575 # Sed expression to map a string onto a valid CPP name.
12576 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12577
12578 # Sed expression to map a string onto a valid variable name.
12579 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12580
12581
12582 exec 6>&1
12583 ## --------------------------------- ##
12584 ## Main body of "$CONFIG_LT" script. ##
12585 ## --------------------------------- ##
12586 _ASEOF
12587 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
12588
12589 cat >>"$CONFIG_LT" <<\_LTEOF
12590 lt_cl_silent=false
12591 exec 5>>config.log
12592 {
12593 echo
12594 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12595 ## Running $as_me. ##
12596 _ASBOX
12597 } >&5
12598
12599 lt_cl_help="\
12600 \`$as_me' creates a local libtool stub from the current configuration,
12601 for use in further configure time tests before the real libtool is
12602 generated.
12603
12604 Usage: $0 [OPTIONS]
12605
12606 -h, --help print this help, then exit
12607 -V, --version print version number, then exit
12608 -q, --quiet do not print progress messages
12609 -d, --debug don't remove temporary files
12610
12611 Report bugs to <bug-libtool@gnu.org>."
12612
12613 lt_cl_version="\
12614 libctf config.lt 1.2.0
12615 configured by $0, generated by GNU Autoconf 2.69.
12616
12617 Copyright (C) 2009 Free Software Foundation, Inc.
12618 This config.lt script is free software; the Free Software Foundation
12619 gives unlimited permision to copy, distribute and modify it."
12620
12621 while test $# != 0
12622 do
12623 case $1 in
12624 --version | --v* | -V )
12625 echo "$lt_cl_version"; exit 0 ;;
12626 --help | --h* | -h )
12627 echo "$lt_cl_help"; exit 0 ;;
12628 --debug | --d* | -d )
12629 debug=: ;;
12630 --quiet | --q* | --silent | --s* | -q )
12631 lt_cl_silent=: ;;
12632
12633 -*) as_fn_error $? "unrecognized option: $1
12634 Try \`$0 --help' for more information." "$LINENO" 5 ;;
12635
12636 *) as_fn_error $? "unrecognized argument: $1
12637 Try \`$0 --help' for more information." "$LINENO" 5 ;;
12638 esac
12639 shift
12640 done
12641
12642 if $lt_cl_silent; then
12643 exec 6>/dev/null
12644 fi
12645 _LTEOF
12646
12647 cat >>"$CONFIG_LT" <<_LTEOF
12648
12649
12650 # The HP-UX ksh and POSIX shell print the target directory to stdout
12651 # if CDPATH is set.
12652 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12653
12654 sed_quote_subst='$sed_quote_subst'
12655 double_quote_subst='$double_quote_subst'
12656 delay_variable_subst='$delay_variable_subst'
12657 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12658 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12659 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12660 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12661 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12662 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12663 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12664 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12665 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12666 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12667 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12668 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12669 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12670 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12671 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12672 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12673 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12674 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12675 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12676 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12677 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12678 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12679 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12680 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12681 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12682 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12683 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12684 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12685 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12686 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12687 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12688 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12689 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12690 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12691 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12692 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12693 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12694 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12695 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12696 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12697 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12698 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12699 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12700 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12701 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12702 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12703 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12704 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12705 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"`'
12706 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12707 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12708 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12709 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12710 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12711 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12712 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12713 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12714 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12715 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12716 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12717 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12718 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12719 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12720 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12721 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12722 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12723 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12724 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12725 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12726 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12727 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12728 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12729 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12730 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12731 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12732 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12733 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12734 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12735 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12736 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12737 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12738 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12739 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12740 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12741 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12742 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12743 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12744 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12745 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12746 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12747 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12748 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12749 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12750 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12751 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12752 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12753 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12754 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12755 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12756 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12757 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12758 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12759 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12760 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12761 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12762 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12763 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12764 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12765 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12766 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12767 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12768 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12769 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12770 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12771 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12772 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12773 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12774 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12775 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12776 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12777
12778 LTCC='$LTCC'
12779 LTCFLAGS='$LTCFLAGS'
12780 compiler='$compiler_DEFAULT'
12781
12782 # A function that is used when there is no print builtin or printf.
12783 func_fallback_echo ()
12784 {
12785 eval 'cat <<_LTECHO_EOF
12786 \$1
12787 _LTECHO_EOF'
12788 }
12789
12790 # Quote evaled strings.
12791 for var in SHELL \
12792 ECHO \
12793 SED \
12794 GREP \
12795 EGREP \
12796 FGREP \
12797 LD \
12798 NM \
12799 LN_S \
12800 lt_SP2NL \
12801 lt_NL2SP \
12802 reload_flag \
12803 OBJDUMP \
12804 deplibs_check_method \
12805 file_magic_cmd \
12806 AR \
12807 AR_FLAGS \
12808 STRIP \
12809 RANLIB \
12810 CC \
12811 CFLAGS \
12812 compiler \
12813 lt_cv_sys_global_symbol_pipe \
12814 lt_cv_sys_global_symbol_to_cdecl \
12815 lt_cv_sys_global_symbol_to_c_name_address \
12816 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12817 lt_prog_compiler_no_builtin_flag \
12818 lt_prog_compiler_wl \
12819 lt_prog_compiler_pic \
12820 lt_prog_compiler_static \
12821 lt_cv_prog_compiler_c_o \
12822 need_locks \
12823 DSYMUTIL \
12824 NMEDIT \
12825 LIPO \
12826 OTOOL \
12827 OTOOL64 \
12828 shrext_cmds \
12829 export_dynamic_flag_spec \
12830 whole_archive_flag_spec \
12831 compiler_needs_object \
12832 with_gnu_ld \
12833 allow_undefined_flag \
12834 no_undefined_flag \
12835 hardcode_libdir_flag_spec \
12836 hardcode_libdir_flag_spec_ld \
12837 hardcode_libdir_separator \
12838 fix_srcfile_path \
12839 exclude_expsyms \
12840 include_expsyms \
12841 file_list_spec \
12842 variables_saved_for_relink \
12843 libname_spec \
12844 library_names_spec \
12845 soname_spec \
12846 install_override_mode \
12847 finish_eval \
12848 old_striplib \
12849 striplib; do
12850 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12851 *[\\\\\\\`\\"\\\$]*)
12852 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12853 ;;
12854 *)
12855 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12856 ;;
12857 esac
12858 done
12859
12860 # Double-quote double-evaled strings.
12861 for var in reload_cmds \
12862 old_postinstall_cmds \
12863 old_postuninstall_cmds \
12864 old_archive_cmds \
12865 extract_expsyms_cmds \
12866 old_archive_from_new_cmds \
12867 old_archive_from_expsyms_cmds \
12868 archive_cmds \
12869 archive_expsym_cmds \
12870 module_cmds \
12871 module_expsym_cmds \
12872 export_symbols_cmds \
12873 prelink_cmds \
12874 postinstall_cmds \
12875 postuninstall_cmds \
12876 finish_cmds \
12877 sys_lib_search_path_spec \
12878 sys_lib_dlsearch_path_spec; do
12879 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12880 *[\\\\\\\`\\"\\\$]*)
12881 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12882 ;;
12883 *)
12884 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12885 ;;
12886 esac
12887 done
12888
12889 ac_aux_dir='$ac_aux_dir'
12890 xsi_shell='$xsi_shell'
12891 lt_shell_append='$lt_shell_append'
12892
12893 # See if we are running on zsh, and set the options which allow our
12894 # commands through without removal of \ escapes INIT.
12895 if test -n "\${ZSH_VERSION+set}" ; then
12896 setopt NO_GLOB_SUBST
12897 fi
12898
12899
12900 PACKAGE='$PACKAGE'
12901 VERSION='$VERSION'
12902 TIMESTAMP='$TIMESTAMP'
12903 RM='$RM'
12904 ofile='$ofile'
12905
12906
12907
12908 _LTEOF
12909
12910 cat >>"$CONFIG_LT" <<\_LTEOF
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
12912 $as_echo "$as_me: creating $ofile" >&6;}
12913
12914
12915 # See if we are running on zsh, and set the options which allow our
12916 # commands through without removal of \ escapes.
12917 if test -n "${ZSH_VERSION+set}" ; then
12918 setopt NO_GLOB_SUBST
12919 fi
12920
12921 cfgfile="${ofile}T"
12922 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12923 $RM "$cfgfile"
12924
12925 cat <<_LT_EOF >> "$cfgfile"
12926 #! $SHELL
12927
12928 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12929 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12930 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12931 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12932 #
12933 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12934 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12935 # Written by Gordon Matzigkeit, 1996
12936 #
12937 # This file is part of GNU Libtool.
12938 #
12939 # GNU Libtool is free software; you can redistribute it and/or
12940 # modify it under the terms of the GNU General Public License as
12941 # published by the Free Software Foundation; either version 2 of
12942 # the License, or (at your option) any later version.
12943 #
12944 # As a special exception to the GNU General Public License,
12945 # if you distribute this file as part of a program or library that
12946 # is built using GNU Libtool, you may include this file under the
12947 # same distribution terms that you use for the rest of that program.
12948 #
12949 # GNU Libtool is distributed in the hope that it will be useful,
12950 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12951 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12952 # GNU General Public License for more details.
12953 #
12954 # You should have received a copy of the GNU General Public License
12955 # along with GNU Libtool; see the file COPYING. If not, a copy
12956 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12957 # obtained by writing to the Free Software Foundation, Inc.,
12958 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12959
12960
12961 # The names of the tagged configurations supported by this script.
12962 available_tags=""
12963
12964 # ### BEGIN LIBTOOL CONFIG
12965
12966 # Whether or not to build shared libraries.
12967 build_libtool_libs=$enable_shared
12968
12969 # Which release of libtool.m4 was used?
12970 macro_version=$macro_version
12971 macro_revision=$macro_revision
12972
12973 # Whether or not to build static libraries.
12974 build_old_libs=$enable_static
12975
12976 # What type of objects to build.
12977 pic_mode=$pic_mode
12978
12979 # Whether or not to optimize for fast installation.
12980 fast_install=$enable_fast_install
12981
12982 # Shell to use when invoking shell scripts.
12983 SHELL=$lt_SHELL
12984
12985 # An echo program that protects backslashes.
12986 ECHO=$lt_ECHO
12987
12988 # The host system.
12989 host_alias=$host_alias
12990 host=$host
12991 host_os=$host_os
12992
12993 # The build system.
12994 build_alias=$build_alias
12995 build=$build
12996 build_os=$build_os
12997
12998 # A sed program that does not truncate output.
12999 SED=$lt_SED
13000
13001 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13002 Xsed="\$SED -e 1s/^X//"
13003
13004 # A grep program that handles long lines.
13005 GREP=$lt_GREP
13006
13007 # An ERE matcher.
13008 EGREP=$lt_EGREP
13009
13010 # A literal string matcher.
13011 FGREP=$lt_FGREP
13012
13013 # A BSD- or MS-compatible name lister.
13014 NM=$lt_NM
13015
13016 # Whether we need soft or hard links.
13017 LN_S=$lt_LN_S
13018
13019 # What is the maximum length of a command?
13020 max_cmd_len=$max_cmd_len
13021
13022 # Object file suffix (normally "o").
13023 objext=$ac_objext
13024
13025 # Executable file suffix (normally "").
13026 exeext=$exeext
13027
13028 # whether the shell understands "unset".
13029 lt_unset=$lt_unset
13030
13031 # turn spaces into newlines.
13032 SP2NL=$lt_lt_SP2NL
13033
13034 # turn newlines into spaces.
13035 NL2SP=$lt_lt_NL2SP
13036
13037 # An object symbol dumper.
13038 OBJDUMP=$lt_OBJDUMP
13039
13040 # Method to check whether dependent libraries are shared objects.
13041 deplibs_check_method=$lt_deplibs_check_method
13042
13043 # Command to use when deplibs_check_method == "file_magic".
13044 file_magic_cmd=$lt_file_magic_cmd
13045
13046 # The archiver.
13047 AR=$lt_AR
13048 AR_FLAGS=$lt_AR_FLAGS
13049
13050 # A symbol stripping program.
13051 STRIP=$lt_STRIP
13052
13053 # Commands used to install an old-style archive.
13054 RANLIB=$lt_RANLIB
13055 old_postinstall_cmds=$lt_old_postinstall_cmds
13056 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13057
13058 # Whether to use a lock for old archive extraction.
13059 lock_old_archive_extraction=$lock_old_archive_extraction
13060
13061 # A C compiler.
13062 LTCC=$lt_CC
13063
13064 # LTCC compiler flags.
13065 LTCFLAGS=$lt_CFLAGS
13066
13067 # Take the output of nm and produce a listing of raw symbols and C names.
13068 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13069
13070 # Transform the output of nm in a proper C declaration.
13071 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13072
13073 # Transform the output of nm in a C name address pair.
13074 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13075
13076 # Transform the output of nm in a C name address pair when lib prefix is needed.
13077 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13078
13079 # The name of the directory that contains temporary libtool files.
13080 objdir=$objdir
13081
13082 # Used to examine libraries when file_magic_cmd begins with "file".
13083 MAGIC_CMD=$MAGIC_CMD
13084
13085 # Must we lock files when doing compilation?
13086 need_locks=$lt_need_locks
13087
13088 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13089 DSYMUTIL=$lt_DSYMUTIL
13090
13091 # Tool to change global to local symbols on Mac OS X.
13092 NMEDIT=$lt_NMEDIT
13093
13094 # Tool to manipulate fat objects and archives on Mac OS X.
13095 LIPO=$lt_LIPO
13096
13097 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13098 OTOOL=$lt_OTOOL
13099
13100 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13101 OTOOL64=$lt_OTOOL64
13102
13103 # Old archive suffix (normally "a").
13104 libext=$libext
13105
13106 # Shared library suffix (normally ".so").
13107 shrext_cmds=$lt_shrext_cmds
13108
13109 # The commands to extract the exported symbol list from a shared archive.
13110 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13111
13112 # Variables whose values should be saved in libtool wrapper scripts and
13113 # restored at link time.
13114 variables_saved_for_relink=$lt_variables_saved_for_relink
13115
13116 # Do we need the "lib" prefix for modules?
13117 need_lib_prefix=$need_lib_prefix
13118
13119 # Do we need a version for libraries?
13120 need_version=$need_version
13121
13122 # Library versioning type.
13123 version_type=$version_type
13124
13125 # Shared library runtime path variable.
13126 runpath_var=$runpath_var
13127
13128 # Shared library path variable.
13129 shlibpath_var=$shlibpath_var
13130
13131 # Is shlibpath searched before the hard-coded library search path?
13132 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13133
13134 # Format of library name prefix.
13135 libname_spec=$lt_libname_spec
13136
13137 # List of archive names. First name is the real one, the rest are links.
13138 # The last name is the one that the linker finds with -lNAME
13139 library_names_spec=$lt_library_names_spec
13140
13141 # The coded name of the library, if different from the real name.
13142 soname_spec=$lt_soname_spec
13143
13144 # Permission mode override for installation of shared libraries.
13145 install_override_mode=$lt_install_override_mode
13146
13147 # Command to use after installation of a shared archive.
13148 postinstall_cmds=$lt_postinstall_cmds
13149
13150 # Command to use after uninstallation of a shared archive.
13151 postuninstall_cmds=$lt_postuninstall_cmds
13152
13153 # Commands used to finish a libtool library installation in a directory.
13154 finish_cmds=$lt_finish_cmds
13155
13156 # As "finish_cmds", except a single script fragment to be evaled but
13157 # not shown.
13158 finish_eval=$lt_finish_eval
13159
13160 # Whether we should hardcode library paths into libraries.
13161 hardcode_into_libs=$hardcode_into_libs
13162
13163 # Compile-time system search path for libraries.
13164 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13165
13166 # Run-time system search path for libraries.
13167 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13168
13169 # Whether dlopen is supported.
13170 dlopen_support=$enable_dlopen
13171
13172 # Whether dlopen of programs is supported.
13173 dlopen_self=$enable_dlopen_self
13174
13175 # Whether dlopen of statically linked programs is supported.
13176 dlopen_self_static=$enable_dlopen_self_static
13177
13178 # Commands to strip libraries.
13179 old_striplib=$lt_old_striplib
13180 striplib=$lt_striplib
13181
13182
13183 # The linker used to build libraries.
13184 LD=$lt_LD
13185
13186 # How to create reloadable object files.
13187 reload_flag=$lt_reload_flag
13188 reload_cmds=$lt_reload_cmds
13189
13190 # Commands used to build an old-style archive.
13191 old_archive_cmds=$lt_old_archive_cmds
13192
13193 # A language specific compiler.
13194 CC=$lt_compiler
13195
13196 # Is the compiler the GNU compiler?
13197 with_gcc=$GCC
13198
13199 # Compiler flag to turn off builtin functions.
13200 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13201
13202 # How to pass a linker flag through the compiler.
13203 wl=$lt_lt_prog_compiler_wl
13204
13205 # Additional compiler flags for building library objects.
13206 pic_flag=$lt_lt_prog_compiler_pic
13207
13208 # Compiler flag to prevent dynamic linking.
13209 link_static_flag=$lt_lt_prog_compiler_static
13210
13211 # Does compiler simultaneously support -c and -o options?
13212 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13213
13214 # Whether or not to add -lc for building shared libraries.
13215 build_libtool_need_lc=$archive_cmds_need_lc
13216
13217 # Whether or not to disallow shared libs when runtime libs are static.
13218 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13219
13220 # Compiler flag to allow reflexive dlopens.
13221 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13222
13223 # Compiler flag to generate shared objects directly from archives.
13224 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13225
13226 # Whether the compiler copes with passing no objects directly.
13227 compiler_needs_object=$lt_compiler_needs_object
13228
13229 # Create an old-style archive from a shared archive.
13230 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13231
13232 # Create a temporary old-style archive to link instead of a shared archive.
13233 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13234
13235 # Commands used to build a shared archive.
13236 archive_cmds=$lt_archive_cmds
13237 archive_expsym_cmds=$lt_archive_expsym_cmds
13238
13239 # Commands used to build a loadable module if different from building
13240 # a shared archive.
13241 module_cmds=$lt_module_cmds
13242 module_expsym_cmds=$lt_module_expsym_cmds
13243
13244 # Whether we are building with GNU ld or not.
13245 with_gnu_ld=$lt_with_gnu_ld
13246
13247 # Flag that allows shared libraries with undefined symbols to be built.
13248 allow_undefined_flag=$lt_allow_undefined_flag
13249
13250 # Flag that enforces no undefined symbols.
13251 no_undefined_flag=$lt_no_undefined_flag
13252
13253 # Flag to hardcode \$libdir into a binary during linking.
13254 # This must work even if \$libdir does not exist
13255 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13256
13257 # If ld is used when linking, flag to hardcode \$libdir into a binary
13258 # during linking. This must work even if \$libdir does not exist.
13259 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13260
13261 # Whether we need a single "-rpath" flag with a separated argument.
13262 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13263
13264 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13265 # DIR into the resulting binary.
13266 hardcode_direct=$hardcode_direct
13267
13268 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13269 # DIR into the resulting binary and the resulting library dependency is
13270 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13271 # library is relocated.
13272 hardcode_direct_absolute=$hardcode_direct_absolute
13273
13274 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13275 # into the resulting binary.
13276 hardcode_minus_L=$hardcode_minus_L
13277
13278 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13279 # into the resulting binary.
13280 hardcode_shlibpath_var=$hardcode_shlibpath_var
13281
13282 # Set to "yes" if building a shared library automatically hardcodes DIR
13283 # into the library and all subsequent libraries and executables linked
13284 # against it.
13285 hardcode_automatic=$hardcode_automatic
13286
13287 # Set to yes if linker adds runtime paths of dependent libraries
13288 # to runtime path list.
13289 inherit_rpath=$inherit_rpath
13290
13291 # Whether libtool must link a program against all its dependency libraries.
13292 link_all_deplibs=$link_all_deplibs
13293
13294 # Fix the shell variable \$srcfile for the compiler.
13295 fix_srcfile_path=$lt_fix_srcfile_path
13296
13297 # Set to "yes" if exported symbols are required.
13298 always_export_symbols=$always_export_symbols
13299
13300 # The commands to list exported symbols.
13301 export_symbols_cmds=$lt_export_symbols_cmds
13302
13303 # Symbols that should not be listed in the preloaded symbols.
13304 exclude_expsyms=$lt_exclude_expsyms
13305
13306 # Symbols that must always be exported.
13307 include_expsyms=$lt_include_expsyms
13308
13309 # Commands necessary for linking programs (against libraries) with templates.
13310 prelink_cmds=$lt_prelink_cmds
13311
13312 # Specify filename containing input files.
13313 file_list_spec=$lt_file_list_spec
13314
13315 # How to hardcode a shared library path into an executable.
13316 hardcode_action=$hardcode_action
13317
13318 # ### END LIBTOOL CONFIG
13319
13320 _LT_EOF
13321
13322 case $host_os in
13323 aix3*)
13324 cat <<\_LT_EOF >> "$cfgfile"
13325 # AIX sometimes has problems with the GCC collect2 program. For some
13326 # reason, if we set the COLLECT_NAMES environment variable, the problems
13327 # vanish in a puff of smoke.
13328 if test "X${COLLECT_NAMES+set}" != Xset; then
13329 COLLECT_NAMES=
13330 export COLLECT_NAMES
13331 fi
13332 _LT_EOF
13333 ;;
13334 esac
13335
13336
13337 ltmain="$ac_aux_dir/ltmain.sh"
13338
13339
13340 # We use sed instead of cat because bash on DJGPP gets confused if
13341 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13342 # text mode, it properly converts lines to CR/LF. This bash problem
13343 # is reportedly fixed, but why not run on old versions too?
13344 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13345 || (rm -f "$cfgfile"; exit 1)
13346
13347 case $xsi_shell in
13348 yes)
13349 cat << \_LT_EOF >> "$cfgfile"
13350
13351 # func_dirname file append nondir_replacement
13352 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13353 # otherwise set result to NONDIR_REPLACEMENT.
13354 func_dirname ()
13355 {
13356 case ${1} in
13357 */*) func_dirname_result="${1%/*}${2}" ;;
13358 * ) func_dirname_result="${3}" ;;
13359 esac
13360 }
13361
13362 # func_basename file
13363 func_basename ()
13364 {
13365 func_basename_result="${1##*/}"
13366 }
13367
13368 # func_dirname_and_basename file append nondir_replacement
13369 # perform func_basename and func_dirname in a single function
13370 # call:
13371 # dirname: Compute the dirname of FILE. If nonempty,
13372 # add APPEND to the result, otherwise set result
13373 # to NONDIR_REPLACEMENT.
13374 # value returned in "$func_dirname_result"
13375 # basename: Compute filename of FILE.
13376 # value retuned in "$func_basename_result"
13377 # Implementation must be kept synchronized with func_dirname
13378 # and func_basename. For efficiency, we do not delegate to
13379 # those functions but instead duplicate the functionality here.
13380 func_dirname_and_basename ()
13381 {
13382 case ${1} in
13383 */*) func_dirname_result="${1%/*}${2}" ;;
13384 * ) func_dirname_result="${3}" ;;
13385 esac
13386 func_basename_result="${1##*/}"
13387 }
13388
13389 # func_stripname prefix suffix name
13390 # strip PREFIX and SUFFIX off of NAME.
13391 # PREFIX and SUFFIX must not contain globbing or regex special
13392 # characters, hashes, percent signs, but SUFFIX may contain a leading
13393 # dot (in which case that matches only a dot).
13394 func_stripname ()
13395 {
13396 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13397 # positional parameters, so assign one to ordinary parameter first.
13398 func_stripname_result=${3}
13399 func_stripname_result=${func_stripname_result#"${1}"}
13400 func_stripname_result=${func_stripname_result%"${2}"}
13401 }
13402
13403 # func_opt_split
13404 func_opt_split ()
13405 {
13406 func_opt_split_opt=${1%%=*}
13407 func_opt_split_arg=${1#*=}
13408 }
13409
13410 # func_lo2o object
13411 func_lo2o ()
13412 {
13413 case ${1} in
13414 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13415 *) func_lo2o_result=${1} ;;
13416 esac
13417 }
13418
13419 # func_xform libobj-or-source
13420 func_xform ()
13421 {
13422 func_xform_result=${1%.*}.lo
13423 }
13424
13425 # func_arith arithmetic-term...
13426 func_arith ()
13427 {
13428 func_arith_result=$(( $* ))
13429 }
13430
13431 # func_len string
13432 # STRING may not start with a hyphen.
13433 func_len ()
13434 {
13435 func_len_result=${#1}
13436 }
13437
13438 _LT_EOF
13439 ;;
13440 *) # Bourne compatible functions.
13441 cat << \_LT_EOF >> "$cfgfile"
13442
13443 # func_dirname file append nondir_replacement
13444 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13445 # otherwise set result to NONDIR_REPLACEMENT.
13446 func_dirname ()
13447 {
13448 # Extract subdirectory from the argument.
13449 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13450 if test "X$func_dirname_result" = "X${1}"; then
13451 func_dirname_result="${3}"
13452 else
13453 func_dirname_result="$func_dirname_result${2}"
13454 fi
13455 }
13456
13457 # func_basename file
13458 func_basename ()
13459 {
13460 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13461 }
13462
13463
13464 # func_stripname prefix suffix name
13465 # strip PREFIX and SUFFIX off of NAME.
13466 # PREFIX and SUFFIX must not contain globbing or regex special
13467 # characters, hashes, percent signs, but SUFFIX may contain a leading
13468 # dot (in which case that matches only a dot).
13469 # func_strip_suffix prefix name
13470 func_stripname ()
13471 {
13472 case ${2} in
13473 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13474 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13475 esac
13476 }
13477
13478 # sed scripts:
13479 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13480 my_sed_long_arg='1s/^-[^=]*=//'
13481
13482 # func_opt_split
13483 func_opt_split ()
13484 {
13485 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13486 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13487 }
13488
13489 # func_lo2o object
13490 func_lo2o ()
13491 {
13492 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13493 }
13494
13495 # func_xform libobj-or-source
13496 func_xform ()
13497 {
13498 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13499 }
13500
13501 # func_arith arithmetic-term...
13502 func_arith ()
13503 {
13504 func_arith_result=`expr "$@"`
13505 }
13506
13507 # func_len string
13508 # STRING may not start with a hyphen.
13509 func_len ()
13510 {
13511 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13512 }
13513
13514 _LT_EOF
13515 esac
13516
13517 case $lt_shell_append in
13518 yes)
13519 cat << \_LT_EOF >> "$cfgfile"
13520
13521 # func_append var value
13522 # Append VALUE to the end of shell variable VAR.
13523 func_append ()
13524 {
13525 eval "$1+=\$2"
13526 }
13527 _LT_EOF
13528 ;;
13529 *)
13530 cat << \_LT_EOF >> "$cfgfile"
13531
13532 # func_append var value
13533 # Append VALUE to the end of shell variable VAR.
13534 func_append ()
13535 {
13536 eval "$1=\$$1\$2"
13537 }
13538
13539 _LT_EOF
13540 ;;
13541 esac
13542
13543
13544 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13545 || (rm -f "$cfgfile"; exit 1)
13546
13547 mv -f "$cfgfile" "$ofile" ||
13548 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13549 chmod +x "$ofile"
13550
13551
13552 as_fn_exit 0
13553 _LTEOF
13554 chmod +x "$CONFIG_LT"
13555
13556 # configure is writing to config.log, but config.lt does its own redirection,
13557 # appending to config.log, which fails on DOS, as config.log is still kept
13558 # open by configure. Here we exec the FD to /dev/null, effectively closing
13559 # config.log, so it can be properly (re)opened and appended to by config.lt.
13560 lt_cl_success=:
13561 test "$silent" = yes &&
13562 lt_config_lt_args="$lt_config_lt_args --quiet"
13563 exec 5>/dev/null
13564 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
13565 exec 5>>config.log
13566 $lt_cl_success || as_fn_exit 1
13567
13568
13569 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
13570 for ac_prog in aclocal
13571 do
13572 # Extract the first word of "$ac_prog", so it can be a program name with args.
13573 set dummy $ac_prog; ac_word=$2
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13575 $as_echo_n "checking for $ac_word... " >&6; }
13576 if ${ac_cv_prog_ACLOCAL+:} false; then :
13577 $as_echo_n "(cached) " >&6
13578 else
13579 if test -n "$ACLOCAL"; then
13580 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
13581 else
13582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13583 for as_dir in $PATH
13584 do
13585 IFS=$as_save_IFS
13586 test -z "$as_dir" && as_dir=.
13587 for ac_exec_ext in '' $ac_executable_extensions; do
13588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13589 ac_cv_prog_ACLOCAL="$ac_prog"
13590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13591 break 2
13592 fi
13593 done
13594 done
13595 IFS=$as_save_IFS
13596
13597 fi
13598 fi
13599 ACLOCAL=$ac_cv_prog_ACLOCAL
13600 if test -n "$ACLOCAL"; then
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
13602 $as_echo "$ACLOCAL" >&6; }
13603 else
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13605 $as_echo "no" >&6; }
13606 fi
13607
13608
13609 test -n "$ACLOCAL" && break
13610 done
13611 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
13612
13613 for ac_prog in autoconf
13614 do
13615 # Extract the first word of "$ac_prog", so it can be a program name with args.
13616 set dummy $ac_prog; ac_word=$2
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13618 $as_echo_n "checking for $ac_word... " >&6; }
13619 if ${ac_cv_prog_AUTOCONF+:} false; then :
13620 $as_echo_n "(cached) " >&6
13621 else
13622 if test -n "$AUTOCONF"; then
13623 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
13624 else
13625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13626 for as_dir in $PATH
13627 do
13628 IFS=$as_save_IFS
13629 test -z "$as_dir" && as_dir=.
13630 for ac_exec_ext in '' $ac_executable_extensions; do
13631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13632 ac_cv_prog_AUTOCONF="$ac_prog"
13633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13634 break 2
13635 fi
13636 done
13637 done
13638 IFS=$as_save_IFS
13639
13640 fi
13641 fi
13642 AUTOCONF=$ac_cv_prog_AUTOCONF
13643 if test -n "$AUTOCONF"; then
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
13645 $as_echo "$AUTOCONF" >&6; }
13646 else
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13648 $as_echo "no" >&6; }
13649 fi
13650
13651
13652 test -n "$AUTOCONF" && break
13653 done
13654 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
13655
13656 for ac_prog in autoheader
13657 do
13658 # Extract the first word of "$ac_prog", so it can be a program name with args.
13659 set dummy $ac_prog; ac_word=$2
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13661 $as_echo_n "checking for $ac_word... " >&6; }
13662 if ${ac_cv_prog_AUTOHEADER+:} false; then :
13663 $as_echo_n "(cached) " >&6
13664 else
13665 if test -n "$AUTOHEADER"; then
13666 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
13667 else
13668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13669 for as_dir in $PATH
13670 do
13671 IFS=$as_save_IFS
13672 test -z "$as_dir" && as_dir=.
13673 for ac_exec_ext in '' $ac_executable_extensions; do
13674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13675 ac_cv_prog_AUTOHEADER="$ac_prog"
13676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13677 break 2
13678 fi
13679 done
13680 done
13681 IFS=$as_save_IFS
13682
13683 fi
13684 fi
13685 AUTOHEADER=$ac_cv_prog_AUTOHEADER
13686 if test -n "$AUTOHEADER"; then
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
13688 $as_echo "$AUTOHEADER" >&6; }
13689 else
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13691 $as_echo "no" >&6; }
13692 fi
13693
13694
13695 test -n "$AUTOHEADER" && break
13696 done
13697 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
13698
13699
13700 # Figure out what compiler warnings we can enable.
13701 # See config/warnings.m4 for details.
13702
13703 ac_ext=c
13704 ac_cpp='$CPP $CPPFLAGS'
13705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13708
13709 warn=
13710 save_CFLAGS="$CFLAGS"
13711 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
13712 -Wmissing-format-attribute; do
13713 # Do the check with the no- prefix removed since gcc silently
13714 # accepts any -Wno-* option on purpose
13715 case $real_option in
13716 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
13717 *) option=$real_option ;;
13718 esac
13719 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
13720
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
13722 $as_echo_n "checking whether $CC supports $option... " >&6; }
13723 if eval \${$as_acx_Woption+:} false; then :
13724 $as_echo_n "(cached) " >&6
13725 else
13726 CFLAGS="$option"
13727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13728 /* end confdefs.h. */
13729
13730 int
13731 main ()
13732 {
13733
13734 ;
13735 return 0;
13736 }
13737 _ACEOF
13738 if ac_fn_c_try_compile "$LINENO"; then :
13739 eval "$as_acx_Woption=yes"
13740 else
13741 eval "$as_acx_Woption=no"
13742 fi
13743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13744
13745 fi
13746 eval ac_res=\$$as_acx_Woption
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13748 $as_echo "$ac_res" >&6; }
13749 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
13750 warn="$warn${warn:+ }$real_option"
13751 fi
13752 done
13753 CFLAGS="$save_CFLAGS"
13754 ac_ext=c
13755 ac_cpp='$CPP $CPPFLAGS'
13756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13759
13760
13761 ac_ext=c
13762 ac_cpp='$CPP $CPPFLAGS'
13763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13766
13767 c_warn=
13768 save_CFLAGS="$CFLAGS"
13769 for real_option in -Wstrict-prototypes -Wmissing-prototypes \
13770 -Wold-style-definition; do
13771 # Do the check with the no- prefix removed since gcc silently
13772 # accepts any -Wno-* option on purpose
13773 case $real_option in
13774 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
13775 *) option=$real_option ;;
13776 esac
13777 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
13778
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
13780 $as_echo_n "checking whether $CC supports $option... " >&6; }
13781 if eval \${$as_acx_Woption+:} false; then :
13782 $as_echo_n "(cached) " >&6
13783 else
13784 CFLAGS="$option"
13785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h. */
13787
13788 int
13789 main ()
13790 {
13791
13792 ;
13793 return 0;
13794 }
13795 _ACEOF
13796 if ac_fn_c_try_compile "$LINENO"; then :
13797 eval "$as_acx_Woption=yes"
13798 else
13799 eval "$as_acx_Woption=no"
13800 fi
13801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13802
13803 fi
13804 eval ac_res=\$$as_acx_Woption
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13806 $as_echo "$ac_res" >&6; }
13807 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
13808 c_warn="$c_warn${c_warn:+ }$real_option"
13809 fi
13810 done
13811 CFLAGS="$save_CFLAGS"
13812 ac_ext=c
13813 ac_cpp='$CPP $CPPFLAGS'
13814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13817
13818
13819 ac_ext=c
13820 ac_cpp='$CPP $CPPFLAGS'
13821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13824
13825 WARN_PEDANTIC=
13826 # Do the check with the no- prefix removed from the warning options
13827 # since gcc silently accepts any -Wno-* option on purpose
13828 if test "$GCC" = yes; then :
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
13830 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
13831 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
13832 $as_echo_n "(cached) " >&6
13833 else
13834 save_CFLAGS="$CFLAGS"
13835 CFLAGS="-pedantic -Wlong-long"
13836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13837 /* end confdefs.h. */
13838
13839 int
13840 main ()
13841 {
13842
13843 ;
13844 return 0;
13845 }
13846 _ACEOF
13847 if ac_fn_c_try_compile "$LINENO"; then :
13848 acx_cv_prog_cc_pedantic__Wlong_long=yes
13849 else
13850 acx_cv_prog_cc_pedantic__Wlong_long=no
13851 fi
13852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13853 CFLAGS="$save_CFLAGS"
13854 fi
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
13856 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
13857 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
13858 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
13859 fi
13860
13861 fi
13862 ac_ext=c
13863 ac_cpp='$CPP $CPPFLAGS'
13864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13867
13868
13869
13870 # Only enable with --enable-werror-always until existing warnings are
13871 # corrected.
13872 ac_ext=c
13873 ac_cpp='$CPP $CPPFLAGS'
13874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13877
13878 WERROR=
13879 # Check whether --enable-werror-always was given.
13880 if test "${enable_werror_always+set}" = set; then :
13881 enableval=$enable_werror_always;
13882 else
13883 enable_werror_always=no
13884 fi
13885
13886 if test $enable_werror_always = yes; then :
13887 WERROR="$WERROR${WERROR:+ }-Werror"
13888 fi
13889
13890 ac_ext=c
13891 ac_cpp='$CPP $CPPFLAGS'
13892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13895
13896
13897
13898
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13900 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13901 # Check whether --enable-maintainer-mode was given.
13902 if test "${enable_maintainer_mode+set}" = set; then :
13903 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13904 else
13905 USE_MAINTAINER_MODE=no
13906 fi
13907
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13909 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13910 if test $USE_MAINTAINER_MODE = yes; then
13911 MAINTAINER_MODE_TRUE=
13912 MAINTAINER_MODE_FALSE='#'
13913 else
13914 MAINTAINER_MODE_TRUE='#'
13915 MAINTAINER_MODE_FALSE=
13916 fi
13917
13918 MAINT=$MAINTAINER_MODE_TRUE
13919
13920
13921 case ${build_alias} in
13922 "") build_noncanonical=${build} ;;
13923 *) build_noncanonical=${build_alias} ;;
13924 esac
13925
13926 case ${host_alias} in
13927 "") host_noncanonical=${build_noncanonical} ;;
13928 *) host_noncanonical=${host_alias} ;;
13929 esac
13930
13931 case ${target_alias} in
13932 "") target_noncanonical=${host_noncanonical} ;;
13933 *) target_noncanonical=${target_alias} ;;
13934 esac
13935
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
13937 $as_echo_n "checking whether to install libbfd... " >&6; }
13938 # Check whether --enable-install-libbfd was given.
13939 if test "${enable_install_libbfd+set}" = set; then :
13940 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
13941 else
13942 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
13943 install_libbfd_p=yes
13944 else
13945 install_libbfd_p=no
13946 fi
13947 fi
13948
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
13950 $as_echo "$install_libbfd_p" >&6; }
13951 if test $install_libbfd_p = yes; then
13952 INSTALL_LIBBFD_TRUE=
13953 INSTALL_LIBBFD_FALSE='#'
13954 else
13955 INSTALL_LIBBFD_TRUE='#'
13956 INSTALL_LIBBFD_FALSE=
13957 fi
13958
13959 # Need _noncanonical variables for this.
13960
13961
13962
13963
13964 # libbfd.a is a host library containing target dependent code
13965 bfdlibdir='$(libdir)'
13966 bfdincludedir='$(includedir)'
13967 if test "${host}" != "${target}"; then
13968 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
13969 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
13970 fi
13971
13972
13973
13974
13975
13976
13977 ac_ext=c
13978 ac_cpp='$CPP $CPPFLAGS'
13979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13982
13983 ac_libctf_warn_cflags=
13984 save_CFLAGS="$CFLAGS"
13985 for real_option in -Wall; do
13986 # Do the check with the no- prefix removed since gcc silently
13987 # accepts any -Wno-* option on purpose
13988 case $real_option in
13989 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
13990 *) option=$real_option ;;
13991 esac
13992 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
13993
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
13995 $as_echo_n "checking whether $CC supports $option... " >&6; }
13996 if eval \${$as_acx_Woption+:} false; then :
13997 $as_echo_n "(cached) " >&6
13998 else
13999 CFLAGS="$option"
14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h. */
14002
14003 int
14004 main ()
14005 {
14006
14007 ;
14008 return 0;
14009 }
14010 _ACEOF
14011 if ac_fn_c_try_compile "$LINENO"; then :
14012 eval "$as_acx_Woption=yes"
14013 else
14014 eval "$as_acx_Woption=no"
14015 fi
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017
14018 fi
14019 eval ac_res=\$$as_acx_Woption
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14021 $as_echo "$ac_res" >&6; }
14022 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
14023 ac_libctf_warn_cflags="$ac_libctf_warn_cflags${ac_libctf_warn_cflags:+ }$real_option"
14024 fi
14025 done
14026 CFLAGS="$save_CFLAGS"
14027 ac_ext=c
14028 ac_cpp='$CPP $CPPFLAGS'
14029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14032
14033
14034
14035
14036
14037
14038 for ac_header in $ac_header_list
14039 do :
14040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14041 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14042 "
14043 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14044 cat >>confdefs.h <<_ACEOF
14045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14046 _ACEOF
14047
14048 fi
14049
14050 done
14051
14052
14053
14054
14055
14056
14057
14058
14059 for ac_func in getpagesize
14060 do :
14061 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14062 if test "x$ac_cv_func_getpagesize" = xyes; then :
14063 cat >>confdefs.h <<_ACEOF
14064 #define HAVE_GETPAGESIZE 1
14065 _ACEOF
14066
14067 fi
14068 done
14069
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14071 $as_echo_n "checking for working mmap... " >&6; }
14072 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14073 $as_echo_n "(cached) " >&6
14074 else
14075 if test "$cross_compiling" = yes; then :
14076 ac_cv_func_mmap_fixed_mapped=no
14077 else
14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14080 $ac_includes_default
14081 /* malloc might have been renamed as rpl_malloc. */
14082 #undef malloc
14083
14084 /* Thanks to Mike Haertel and Jim Avera for this test.
14085 Here is a matrix of mmap possibilities:
14086 mmap private not fixed
14087 mmap private fixed at somewhere currently unmapped
14088 mmap private fixed at somewhere already mapped
14089 mmap shared not fixed
14090 mmap shared fixed at somewhere currently unmapped
14091 mmap shared fixed at somewhere already mapped
14092 For private mappings, we should verify that changes cannot be read()
14093 back from the file, nor mmap's back from the file at a different
14094 address. (There have been systems where private was not correctly
14095 implemented like the infamous i386 svr4.0, and systems where the
14096 VM page cache was not coherent with the file system buffer cache
14097 like early versions of FreeBSD and possibly contemporary NetBSD.)
14098 For shared mappings, we should conversely verify that changes get
14099 propagated back to all the places they're supposed to be.
14100
14101 Grep wants private fixed already mapped.
14102 The main things grep needs to know about mmap are:
14103 * does it exist and is it safe to write into the mmap'd area
14104 * how to use it (BSD variants) */
14105
14106 #include <fcntl.h>
14107 #include <sys/mman.h>
14108
14109 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14110 char *malloc ();
14111 #endif
14112
14113 /* This mess was copied from the GNU getpagesize.h. */
14114 #ifndef HAVE_GETPAGESIZE
14115 # ifdef _SC_PAGESIZE
14116 # define getpagesize() sysconf(_SC_PAGESIZE)
14117 # else /* no _SC_PAGESIZE */
14118 # ifdef HAVE_SYS_PARAM_H
14119 # include <sys/param.h>
14120 # ifdef EXEC_PAGESIZE
14121 # define getpagesize() EXEC_PAGESIZE
14122 # else /* no EXEC_PAGESIZE */
14123 # ifdef NBPG
14124 # define getpagesize() NBPG * CLSIZE
14125 # ifndef CLSIZE
14126 # define CLSIZE 1
14127 # endif /* no CLSIZE */
14128 # else /* no NBPG */
14129 # ifdef NBPC
14130 # define getpagesize() NBPC
14131 # else /* no NBPC */
14132 # ifdef PAGESIZE
14133 # define getpagesize() PAGESIZE
14134 # endif /* PAGESIZE */
14135 # endif /* no NBPC */
14136 # endif /* no NBPG */
14137 # endif /* no EXEC_PAGESIZE */
14138 # else /* no HAVE_SYS_PARAM_H */
14139 # define getpagesize() 8192 /* punt totally */
14140 # endif /* no HAVE_SYS_PARAM_H */
14141 # endif /* no _SC_PAGESIZE */
14142
14143 #endif /* no HAVE_GETPAGESIZE */
14144
14145 int
14146 main ()
14147 {
14148 char *data, *data2, *data3;
14149 const char *cdata2;
14150 int i, pagesize;
14151 int fd, fd2;
14152
14153 pagesize = getpagesize ();
14154
14155 /* First, make a file with some known garbage in it. */
14156 data = (char *) malloc (pagesize);
14157 if (!data)
14158 return 1;
14159 for (i = 0; i < pagesize; ++i)
14160 *(data + i) = rand ();
14161 umask (0);
14162 fd = creat ("conftest.mmap", 0600);
14163 if (fd < 0)
14164 return 2;
14165 if (write (fd, data, pagesize) != pagesize)
14166 return 3;
14167 close (fd);
14168
14169 /* Next, check that the tail of a page is zero-filled. File must have
14170 non-zero length, otherwise we risk SIGBUS for entire page. */
14171 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14172 if (fd2 < 0)
14173 return 4;
14174 cdata2 = "";
14175 if (write (fd2, cdata2, 1) != 1)
14176 return 5;
14177 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14178 if (data2 == MAP_FAILED)
14179 return 6;
14180 for (i = 0; i < pagesize; ++i)
14181 if (*(data2 + i))
14182 return 7;
14183 close (fd2);
14184 if (munmap (data2, pagesize))
14185 return 8;
14186
14187 /* Next, try to mmap the file at a fixed address which already has
14188 something else allocated at it. If we can, also make sure that
14189 we see the same garbage. */
14190 fd = open ("conftest.mmap", O_RDWR);
14191 if (fd < 0)
14192 return 9;
14193 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14194 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14195 return 10;
14196 for (i = 0; i < pagesize; ++i)
14197 if (*(data + i) != *(data2 + i))
14198 return 11;
14199
14200 /* Finally, make sure that changes to the mapped area do not
14201 percolate back to the file as seen by read(). (This is a bug on
14202 some variants of i386 svr4.0.) */
14203 for (i = 0; i < pagesize; ++i)
14204 *(data2 + i) = *(data2 + i) + 1;
14205 data3 = (char *) malloc (pagesize);
14206 if (!data3)
14207 return 12;
14208 if (read (fd, data3, pagesize) != pagesize)
14209 return 13;
14210 for (i = 0; i < pagesize; ++i)
14211 if (*(data + i) != *(data3 + i))
14212 return 14;
14213 close (fd);
14214 return 0;
14215 }
14216 _ACEOF
14217 if ac_fn_c_try_run "$LINENO"; then :
14218 ac_cv_func_mmap_fixed_mapped=yes
14219 else
14220 ac_cv_func_mmap_fixed_mapped=no
14221 fi
14222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14223 conftest.$ac_objext conftest.beam conftest.$ac_ext
14224 fi
14225
14226 fi
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14228 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14229 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14230
14231 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14232
14233 fi
14234 rm -f conftest.mmap conftest.txt
14235
14236 # Needed for BFD capability checks.
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
14238 $as_echo_n "checking for library containing dlsym... " >&6; }
14239 if ${ac_cv_search_dlsym+:} false; then :
14240 $as_echo_n "(cached) " >&6
14241 else
14242 ac_func_search_save_LIBS=$LIBS
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14245
14246 /* Override any GCC internal prototype to avoid an error.
14247 Use char because int might match the return type of a GCC
14248 builtin and then its argument prototype would still apply. */
14249 #ifdef __cplusplus
14250 extern "C"
14251 #endif
14252 char dlsym ();
14253 int
14254 main ()
14255 {
14256 return dlsym ();
14257 ;
14258 return 0;
14259 }
14260 _ACEOF
14261 for ac_lib in '' dl; do
14262 if test -z "$ac_lib"; then
14263 ac_res="none required"
14264 else
14265 ac_res=-l$ac_lib
14266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14267 fi
14268 if ac_fn_c_try_link "$LINENO"; then :
14269 ac_cv_search_dlsym=$ac_res
14270 fi
14271 rm -f core conftest.err conftest.$ac_objext \
14272 conftest$ac_exeext
14273 if ${ac_cv_search_dlsym+:} false; then :
14274 break
14275 fi
14276 done
14277 if ${ac_cv_search_dlsym+:} false; then :
14278
14279 else
14280 ac_cv_search_dlsym=no
14281 fi
14282 rm conftest.$ac_ext
14283 LIBS=$ac_func_search_save_LIBS
14284 fi
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
14286 $as_echo "$ac_cv_search_dlsym" >&6; }
14287 ac_res=$ac_cv_search_dlsym
14288 if test "$ac_res" != no; then :
14289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14290
14291 fi
14292
14293
14294 # Use the system's zlib library.
14295 zlibdir="-L\$(top_builddir)/../zlib"
14296 zlibinc="-I\$(top_srcdir)/../zlib"
14297
14298 # Check whether --with-system-zlib was given.
14299 if test "${with_system_zlib+set}" = set; then :
14300 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14301 zlibdir=
14302 zlibinc=
14303 fi
14304
14305 fi
14306
14307
14308
14309
14310
14311 # Check whether --enable-libctf-hash-debugging was given.
14312 if test "${enable_libctf_hash_debugging+set}" = set; then :
14313 enableval=$enable_libctf_hash_debugging;
14314 case "$enableval" in
14315 yes|no) ;;
14316 *) as_fn_error $? "Argument to enable/disable libctf-hash-debugging must be yes or no" "$LINENO" 5 ;;
14317 esac
14318
14319 else
14320 enable_libctf_hash_debugging=no
14321 fi
14322
14323
14324 if test "${enable_libctf_hash_debugging}" = yes; then
14325
14326 $as_echo "#define ENABLE_LIBCTF_HASH_DEBUGGING 1" >>confdefs.h
14327
14328 fi
14329 if test "${enable_libctf_hash_debugging}" = yes; then
14330 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE=
14331 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE='#'
14332 else
14333 ENABLE_LIBCTF_HASH_DEBUGGING_TRUE='#'
14334 ENABLE_LIBCTF_HASH_DEBUGGING_FALSE=
14335 fi
14336
14337
14338 # Similar to GDB_AC_CHECK_BFD.
14339 OLD_CFLAGS=$CFLAGS
14340 OLD_LDFLAGS=$LDFLAGS
14341 OLD_LIBS=$LIBS
14342 OLD_CC=$CC
14343 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
14344 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
14345 # always want our bfd.
14346 CC="./libtool --quiet --mode=link $OLD_CC"
14347 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
14348 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
14349 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14350 LIBS="-lbfd -liberty $intl $LIBS"
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14352 $as_echo_n "checking for ELF support in BFD... " >&6; }
14353 if ${ac_cv_libctf_bfd_elf+:} false; then :
14354 $as_echo_n "(cached) " >&6
14355 else
14356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14357 /* end confdefs.h. */
14358 #include <stdlib.h>
14359 #include <string.h>
14360 #include "bfd.h"
14361 #include "elf-bfd.h"
14362 int
14363 main ()
14364 {
14365 (void) bfd_section_from_elf_index (NULL, 0);
14366 return 0;
14367 ;
14368 return 0;
14369 }
14370 _ACEOF
14371 if ac_fn_c_try_link "$LINENO"; then :
14372 ac_cv_libctf_bfd_elf=yes
14373 else
14374 ac_cv_libctf_bfd_elf=no
14375 fi
14376 rm -f core conftest.err conftest.$ac_objext \
14377 conftest$ac_exeext conftest.$ac_ext
14378 fi
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_bfd_elf" >&5
14380 $as_echo "$ac_cv_libctf_bfd_elf" >&6; }
14381 CFLAGS=$OLD_CFLAGS
14382 LDFLAGS=$OLD_LDFLAGS
14383 LIBS=$OLD_LIBS
14384 CC=$OLD_CC
14385
14386 if test $ac_cv_libctf_bfd_elf = yes; then
14387
14388 $as_echo "#define HAVE_BFD_ELF 1" >>confdefs.h
14389
14390 fi
14391
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14393 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14394 if ${ac_cv_c_bigendian+:} false; then :
14395 $as_echo_n "(cached) " >&6
14396 else
14397 ac_cv_c_bigendian=unknown
14398 # See if we're dealing with a universal compiler.
14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h. */
14401 #ifndef __APPLE_CC__
14402 not a universal capable compiler
14403 #endif
14404 typedef int dummy;
14405
14406 _ACEOF
14407 if ac_fn_c_try_compile "$LINENO"; then :
14408
14409 # Check for potential -arch flags. It is not universal unless
14410 # there are at least two -arch flags with different values.
14411 ac_arch=
14412 ac_prev=
14413 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14414 if test -n "$ac_prev"; then
14415 case $ac_word in
14416 i?86 | x86_64 | ppc | ppc64)
14417 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14418 ac_arch=$ac_word
14419 else
14420 ac_cv_c_bigendian=universal
14421 break
14422 fi
14423 ;;
14424 esac
14425 ac_prev=
14426 elif test "x$ac_word" = "x-arch"; then
14427 ac_prev=arch
14428 fi
14429 done
14430 fi
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432 if test $ac_cv_c_bigendian = unknown; then
14433 # See if sys/param.h defines the BYTE_ORDER macro.
14434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14435 /* end confdefs.h. */
14436 #include <sys/types.h>
14437 #include <sys/param.h>
14438
14439 int
14440 main ()
14441 {
14442 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14443 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14444 && LITTLE_ENDIAN)
14445 bogus endian macros
14446 #endif
14447
14448 ;
14449 return 0;
14450 }
14451 _ACEOF
14452 if ac_fn_c_try_compile "$LINENO"; then :
14453 # It does; now see whether it defined to BIG_ENDIAN or not.
14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455 /* end confdefs.h. */
14456 #include <sys/types.h>
14457 #include <sys/param.h>
14458
14459 int
14460 main ()
14461 {
14462 #if BYTE_ORDER != BIG_ENDIAN
14463 not big endian
14464 #endif
14465
14466 ;
14467 return 0;
14468 }
14469 _ACEOF
14470 if ac_fn_c_try_compile "$LINENO"; then :
14471 ac_cv_c_bigendian=yes
14472 else
14473 ac_cv_c_bigendian=no
14474 fi
14475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14476 fi
14477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14478 fi
14479 if test $ac_cv_c_bigendian = unknown; then
14480 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14482 /* end confdefs.h. */
14483 #include <limits.h>
14484
14485 int
14486 main ()
14487 {
14488 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14489 bogus endian macros
14490 #endif
14491
14492 ;
14493 return 0;
14494 }
14495 _ACEOF
14496 if ac_fn_c_try_compile "$LINENO"; then :
14497 # It does; now see whether it defined to _BIG_ENDIAN or not.
14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14499 /* end confdefs.h. */
14500 #include <limits.h>
14501
14502 int
14503 main ()
14504 {
14505 #ifndef _BIG_ENDIAN
14506 not big endian
14507 #endif
14508
14509 ;
14510 return 0;
14511 }
14512 _ACEOF
14513 if ac_fn_c_try_compile "$LINENO"; then :
14514 ac_cv_c_bigendian=yes
14515 else
14516 ac_cv_c_bigendian=no
14517 fi
14518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14519 fi
14520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14521 fi
14522 if test $ac_cv_c_bigendian = unknown; then
14523 # Compile a test program.
14524 if test "$cross_compiling" = yes; then :
14525 # Try to guess by grepping values from an object file.
14526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14527 /* end confdefs.h. */
14528 short int ascii_mm[] =
14529 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14530 short int ascii_ii[] =
14531 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14532 int use_ascii (int i) {
14533 return ascii_mm[i] + ascii_ii[i];
14534 }
14535 short int ebcdic_ii[] =
14536 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14537 short int ebcdic_mm[] =
14538 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14539 int use_ebcdic (int i) {
14540 return ebcdic_mm[i] + ebcdic_ii[i];
14541 }
14542 extern int foo;
14543
14544 int
14545 main ()
14546 {
14547 return use_ascii (foo) == use_ebcdic (foo);
14548 ;
14549 return 0;
14550 }
14551 _ACEOF
14552 if ac_fn_c_try_compile "$LINENO"; then :
14553 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14554 ac_cv_c_bigendian=yes
14555 fi
14556 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14557 if test "$ac_cv_c_bigendian" = unknown; then
14558 ac_cv_c_bigendian=no
14559 else
14560 # finding both strings is unlikely to happen, but who knows?
14561 ac_cv_c_bigendian=unknown
14562 fi
14563 fi
14564 fi
14565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14566 else
14567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14568 /* end confdefs.h. */
14569 $ac_includes_default
14570 int
14571 main ()
14572 {
14573
14574 /* Are we little or big endian? From Harbison&Steele. */
14575 union
14576 {
14577 long int l;
14578 char c[sizeof (long int)];
14579 } u;
14580 u.l = 1;
14581 return u.c[sizeof (long int) - 1] == 1;
14582
14583 ;
14584 return 0;
14585 }
14586 _ACEOF
14587 if ac_fn_c_try_run "$LINENO"; then :
14588 ac_cv_c_bigendian=no
14589 else
14590 ac_cv_c_bigendian=yes
14591 fi
14592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14593 conftest.$ac_objext conftest.beam conftest.$ac_ext
14594 fi
14595
14596 fi
14597 fi
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14599 $as_echo "$ac_cv_c_bigendian" >&6; }
14600 case $ac_cv_c_bigendian in #(
14601 yes)
14602 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14603 ;; #(
14604 no)
14605 ;; #(
14606 universal)
14607
14608 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14609
14610 ;; #(
14611 *)
14612 as_fn_error $? "unknown endianness
14613 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14614 esac
14615
14616 for ac_header in byteswap.h endian.h
14617 do :
14618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14619 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14620 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14621 cat >>confdefs.h <<_ACEOF
14622 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14623 _ACEOF
14624
14625 fi
14626
14627 done
14628
14629 for ac_func in pread
14630 do :
14631 ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
14632 if test "x$ac_cv_func_pread" = xyes; then :
14633 cat >>confdefs.h <<_ACEOF
14634 #define HAVE_PREAD 1
14635 _ACEOF
14636
14637 fi
14638 done
14639
14640
14641 ac_fn_c_check_decl "$LINENO" "bswap_16" "ac_cv_have_decl_bswap_16" "#include <byteswap.h>
14642 "
14643 if test "x$ac_cv_have_decl_bswap_16" = xyes; then :
14644 ac_have_decl=1
14645 else
14646 ac_have_decl=0
14647 fi
14648
14649 cat >>confdefs.h <<_ACEOF
14650 #define HAVE_DECL_BSWAP_16 $ac_have_decl
14651 _ACEOF
14652 ac_fn_c_check_decl "$LINENO" "bswap_32" "ac_cv_have_decl_bswap_32" "#include <byteswap.h>
14653 "
14654 if test "x$ac_cv_have_decl_bswap_32" = xyes; then :
14655 ac_have_decl=1
14656 else
14657 ac_have_decl=0
14658 fi
14659
14660 cat >>confdefs.h <<_ACEOF
14661 #define HAVE_DECL_BSWAP_32 $ac_have_decl
14662 _ACEOF
14663 ac_fn_c_check_decl "$LINENO" "bswap_64" "ac_cv_have_decl_bswap_64" "#include <byteswap.h>
14664 "
14665 if test "x$ac_cv_have_decl_bswap_64" = xyes; then :
14666 ac_have_decl=1
14667 else
14668 ac_have_decl=0
14669 fi
14670
14671 cat >>confdefs.h <<_ACEOF
14672 #define HAVE_DECL_BSWAP_64 $ac_have_decl
14673 _ACEOF
14674
14675 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14676 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
14677 ac_have_decl=1
14678 else
14679 ac_have_decl=0
14680 fi
14681
14682 cat >>confdefs.h <<_ACEOF
14683 #define HAVE_DECL_ASPRINTF $ac_have_decl
14684 _ACEOF
14685 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
14686 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
14687 ac_have_decl=1
14688 else
14689 ac_have_decl=0
14690 fi
14691
14692 cat >>confdefs.h <<_ACEOF
14693 #define HAVE_DECL_VASPRINTF $ac_have_decl
14694 _ACEOF
14695 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14696 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
14697 ac_have_decl=1
14698 else
14699 ac_have_decl=0
14700 fi
14701
14702 cat >>confdefs.h <<_ACEOF
14703 #define HAVE_DECL_STPCPY $ac_have_decl
14704 _ACEOF
14705
14706
14707
14708
14709
14710 for ac_func in $ac_func_list
14711 do :
14712 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14713 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14714 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14715 cat >>confdefs.h <<_ACEOF
14716 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14717 _ACEOF
14718
14719 fi
14720 done
14721
14722
14723
14724
14725 if test $ac_cv_func_qsort_r = yes; then
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for qsort_r signature" >&5
14727 $as_echo_n "checking for qsort_r signature... " >&6; }
14728 if ${ac_cv_libctf_qsort_r_signature+:} false; then :
14729 $as_echo_n "(cached) " >&6
14730 else
14731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14732 /* end confdefs.h. */
14733 #undef qsort_r
14734 #include <stdlib.h>
14735 void qsort_r (void *, size_t, size_t,
14736 int (*) (void const *, void const *,
14737 void *),
14738 void *);
14739 void (*p) (void *, size_t, size_t,
14740 int (*) (void const *, void const *,
14741 void *),
14742 void *) = qsort_r;
14743
14744 int
14745 main ()
14746 {
14747
14748 ;
14749 return 0;
14750 }
14751 _ACEOF
14752 if ac_fn_c_try_link "$LINENO"; then :
14753 ac_cv_libctf_qsort_r_signature=GNU
14754 else
14755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14756 /* end confdefs.h. */
14757 #undef qsort_r
14758 #include <stdlib.h>
14759 void qsort_r (void *, size_t, size_t, void *,
14760 int (*) (void *,
14761 void const *,
14762 void const *));
14763 void (*p) (void *, size_t, size_t, void *,
14764 int (*) (void *, void const *,
14765 void const *)) = qsort_r;
14766
14767 int
14768 main ()
14769 {
14770
14771 ;
14772 return 0;
14773 }
14774 _ACEOF
14775 if ac_fn_c_try_link "$LINENO"; then :
14776 ac_cv_libctf_qsort_r_signature=BSD
14777 else
14778 ac_cv_libctf_qsort_r_signature=unknown
14779 fi
14780 rm -f core conftest.err conftest.$ac_objext \
14781 conftest$ac_exeext conftest.$ac_ext
14782 fi
14783 rm -f core conftest.err conftest.$ac_objext \
14784 conftest$ac_exeext conftest.$ac_ext
14785 fi
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_qsort_r_signature" >&5
14787 $as_echo "$ac_cv_libctf_qsort_r_signature" >&6; }
14788 fi
14789
14790 case x$ac_cv_libctf_qsort_r_signature in
14791 xGNU)
14792 $as_echo "#define HAVE_QSORT_R_ARG_LAST 1" >>confdefs.h
14793 ;;
14794 xBSD)
14795 $as_echo "#define HAVE_QSORT_R_COMPAR_LAST 1" >>confdefs.h
14796 ;;
14797 *) ac_cv_libctf_qsort_r_signature=unknown;;
14798 esac
14799
14800 if test "${ac_cv_libctf_qsort_r_signature}" = unknown; then
14801 NEED_CTF_QSORT_R_TRUE=
14802 NEED_CTF_QSORT_R_FALSE='#'
14803 else
14804 NEED_CTF_QSORT_R_TRUE='#'
14805 NEED_CTF_QSORT_R_FALSE=
14806 fi
14807
14808
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
14810 $as_echo_n "checking for O_CLOEXEC... " >&6; }
14811 if ${ac_cv_libctf_macro_O_CLOEXEC+:} false; then :
14812 $as_echo_n "(cached) " >&6
14813 else
14814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14815 /* end confdefs.h. */
14816 #include <fcntl.h>
14817 #ifndef O_CLOEXEC
14818 choke me;
14819 #endif
14820
14821 int
14822 main ()
14823 {
14824 return O_CLOEXEC;
14825 ;
14826 return 0;
14827 }
14828 _ACEOF
14829 if ac_fn_c_try_link "$LINENO"; then :
14830 ac_cv_libctf_macro_O_CLOEXEC=yes
14831 else
14832 ac_cv_libctf_macro_O_CLOEXEC=no
14833 fi
14834 rm -f core conftest.err conftest.$ac_objext \
14835 conftest$ac_exeext conftest.$ac_ext
14836 fi
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_macro_O_CLOEXEC" >&5
14838 $as_echo "$ac_cv_libctf_macro_O_CLOEXEC" >&6; }
14839
14840 if test $ac_cv_libctf_macro_O_CLOEXEC = yes; then
14841
14842 $as_echo "#define HAVE_O_CLOEXEC 1" >>confdefs.h
14843
14844 fi
14845
14846 build_info=
14847 makeinfo_too_old=
14848 for ac_prog in makeinfo
14849 do
14850 # Extract the first word of "$ac_prog", so it can be a program name with args.
14851 set dummy $ac_prog; ac_word=$2
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14853 $as_echo_n "checking for $ac_word... " >&6; }
14854 if ${ac_cv_prog_MAKEINFO+:} false; then :
14855 $as_echo_n "(cached) " >&6
14856 else
14857 if test -n "$MAKEINFO"; then
14858 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
14859 else
14860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14861 for as_dir in $PATH
14862 do
14863 IFS=$as_save_IFS
14864 test -z "$as_dir" && as_dir=.
14865 for ac_exec_ext in '' $ac_executable_extensions; do
14866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14867 ac_cv_prog_MAKEINFO="$ac_prog"
14868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14869 break 2
14870 fi
14871 done
14872 done
14873 IFS=$as_save_IFS
14874
14875 fi
14876 fi
14877 MAKEINFO=$ac_cv_prog_MAKEINFO
14878 if test -n "$MAKEINFO"; then
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
14880 $as_echo "$MAKEINFO" >&6; }
14881 else
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14883 $as_echo "no" >&6; }
14884 fi
14885
14886
14887 test -n "$MAKEINFO" && break
14888 done
14889 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
14890
14891 case " $build_configdirs " in
14892 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
14893 esac
14894
14895 # We require texinfo to be 6.3 or later, for a working synindex
14896 # and validatemenus: otherwise we fall back to /bin/true.
14897 if ${MAKEINFO} --version \
14898 | egrep 'texinfo[^0-9]*(6\.[3-9]|[7-9]|[1-6][0-9])' >/dev/null 2>&1; then
14899 build_info=yes
14900 else
14901 build_info=
14902 makeinfo_too_old=t
14903 fi
14904
14905 if test -n "$makeinfo_too_old"; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14907 *** Makeinfo is too old. Info documentation will not be built." >&5
14908 $as_echo "$as_me: WARNING:
14909 *** Makeinfo is too old. Info documentation will not be built." >&2;}
14910 fi
14911
14912 if test "${build_info}" = yes; then
14913 BUILD_INFO_TRUE=
14914 BUILD_INFO_FALSE='#'
14915 else
14916 BUILD_INFO_TRUE='#'
14917 BUILD_INFO_FALSE=
14918 fi
14919
14920
14921 CTF_LIBADD="-L`pwd`/../libiberty -liberty"
14922 SHARED_LDFLAGS=
14923
14924 # Horrible hacks to build DLLs on Windows and a shared library elsewhere.
14925 if test "$enable_shared" = "yes"; then
14926 # When building a shared libctf, link against the pic version of libiberty
14927 # so that apps that use libctf won't need libiberty just to satisfy any
14928 # libctf references. We can't do that if a pic libiberty is unavailable
14929 # since including non-pic # code would insert text relocations into libctf.
14930 # Note that linking against libbfd as we do here, which is itself linked
14931 # against libiberty, may not satisfy all the libctf libiberty references
14932 # since libbfd may not pull in the entirety of libiberty.
14933 # Also, jam libintl into the right place in all of this: after libiberty,
14934 # which uses it, but before -lcygwin, which it uses.
14935 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
14936 if test -n "$x"; then
14937 CTF_LIBADD="-L`pwd`/../libiberty/pic -liberty"
14938 fi
14939 fi
14940
14941 CTF_LIBADD="$CTF_LIBADD $LIBINTL"
14942
14943 if test "$enable_shared" = "yes"; then
14944 case "${host}" in
14945 # More hacks to build DLLs on Windows.
14946 *-*-cygwin*)
14947 SHARED_LDFLAGS="-no-undefined"
14948 CTF_LIBADD="$CTF_LIBADD -lcygwin"
14949 ;;
14950 esac
14951 fi
14952
14953
14954
14955 # Extract the first word of "expect", so it can be a program name with args.
14956 set dummy expect; ac_word=$2
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14958 $as_echo_n "checking for $ac_word... " >&6; }
14959 if ${ac_cv_path_EXPECT+:} false; then :
14960 $as_echo_n "(cached) " >&6
14961 else
14962 case $EXPECT in
14963 [\\/]* | ?:[\\/]*)
14964 ac_cv_path_EXPECT="$EXPECT" # Let the user override the test with a path.
14965 ;;
14966 *)
14967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14968 for as_dir in $PATH
14969 do
14970 IFS=$as_save_IFS
14971 test -z "$as_dir" && as_dir=.
14972 for ac_exec_ext in '' $ac_executable_extensions; do
14973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14974 ac_cv_path_EXPECT="$as_dir/$ac_word$ac_exec_ext"
14975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14976 break 2
14977 fi
14978 done
14979 done
14980 IFS=$as_save_IFS
14981
14982 ;;
14983 esac
14984 fi
14985 EXPECT=$ac_cv_path_EXPECT
14986 if test -n "$EXPECT"; then
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
14988 $as_echo "$EXPECT" >&6; }
14989 else
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14991 $as_echo "no" >&6; }
14992 fi
14993
14994
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl supporting try/catch" >&5
14996 $as_echo_n "checking for Tcl supporting try/catch... " >&6; }
14997 if ${ac_cv_libctf_tcl_try+:} false; then :
14998 $as_echo_n "(cached) " >&6
14999 else
15000 ac_cv_libctf_tcl_try=`if test -z $EXPECT; then echo no; else $EXPECT << EOF
15001 if [llength [info commands try]] then { puts yes } else { puts no }
15002 EOF
15003 fi`
15004
15005 fi
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_tcl_try" >&5
15007 $as_echo "$ac_cv_libctf_tcl_try" >&6; }
15008
15009 HAVE_TCL_TRY=false
15010 if test "${ac_cv_libctf_tcl_try}" = "yes"; then
15011 HAVE_TCL_TRY=true
15012 fi
15013
15014
15015 # Use a version script, if possible, or an -export-symbols-regex otherwise.
15016 decommented_version_script=
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker versioning flags" >&5
15018 $as_echo_n "checking for linker versioning flags... " >&6; }
15019 if ${ac_cv_libctf_version_script+:} false; then :
15020 $as_echo_n "(cached) " >&6
15021 else
15022 echo 'FOO { global: mai*; local: ctf_fo*; };' > conftest.ver
15023 old_LDFLAGS="$LDFLAGS"
15024 old_CFLAGS="$CFLAGS"
15025 LDFLAGS="$LDFLAGS -shared -Wl,--version-script=conftest.ver"
15026 CFLAGS="$CFLAGS -fPIC"
15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15029 int ctf_foo (void) { return 0; }
15030 int main (void) { return ctf_foo(); }
15031 _ACEOF
15032 if ac_fn_c_try_link "$LINENO"; then :
15033 ac_cv_libctf_version_script="-Wl,--version-script='$srcdir/libctf.ver'"
15034 fi
15035 rm -f core conftest.err conftest.$ac_objext \
15036 conftest$ac_exeext conftest.$ac_ext
15037 LDFLAGS="$old_LDFLAGS"
15038
15039 if test -z "$ac_cv_libctf_version_script"; then
15040 LDFLAGS="$LDFLAGS -shared -Wl,-B,local -Wl,-z,gnu-version-script=conftest.ver"
15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042 /* end confdefs.h. */
15043 int ctf_foo (void) { return 0; }
15044 int main (void) { return ctf_foo(); }
15045 _ACEOF
15046 if ac_fn_c_try_link "$LINENO"; then :
15047 ac_cv_libctf_version_script="-Wl,-B,local -Wl,-z,gnu-version-script"
15048 decommented_version_script=t
15049 fi
15050 rm -f core conftest.err conftest.$ac_objext \
15051 conftest$ac_exeext conftest.$ac_ext
15052 LDFLAGS="$old_LDFLAGS"
15053 fi
15054 CFLAGS="$old_CFLAGS"
15055
15056 if test -z "$ac_cv_libctf_version_script"; then
15057 ac_cv_libctf_version_script='-export-symbols-regex ctf_.*'
15058 fi
15059 rm -f conftest.ver
15060 fi
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libctf_version_script" >&5
15062 $as_echo "$ac_cv_libctf_version_script" >&6; }
15063 if test -n "$decommented_version_script"; then
15064 # Solaris's version scripts use shell-style comments rather than the C-style
15065 # used by GNU ld. Use cpp to strip the comments out. (cpp exists under this
15066 # name on all platforms that support ld -z gnu-version-script.)
15067 # Also ensure that no symbols exist in the version script for libctf-nobfd.so
15068 # that do not exist in the shared library itself, since some linkers add such
15069 # symbols with type NOTYPE.
15070 /lib/cpp < $srcdir/libctf.ver > libctf-decommented.ver
15071 grep -v 'libctf only' $srcdir/libctf.ver | /lib/cpp > libctf-nobfd-decommented.ver
15072 VERSION_FLAGS="$ac_cv_libctf_version_script='libctf-decommented.ver'"
15073 VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script='libctf-nobfd-decommented.ver'"
15074 else
15075 VERSION_FLAGS="$ac_cv_libctf_version_script"
15076 VERSION_FLAGS_NOBFD="$ac_cv_libctf_version_script"
15077 fi
15078
15079
15080
15081 ac_config_files="$ac_config_files Makefile"
15082
15083 ac_config_headers="$ac_config_headers config.h"
15084
15085 cat >confcache <<\_ACEOF
15086 # This file is a shell script that caches the results of configure
15087 # tests run on this system so they can be shared between configure
15088 # scripts and configure runs, see configure's option --config-cache.
15089 # It is not useful on other systems. If it contains results you don't
15090 # want to keep, you may remove or edit it.
15091 #
15092 # config.status only pays attention to the cache file if you give it
15093 # the --recheck option to rerun configure.
15094 #
15095 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15096 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15097 # following values.
15098
15099 _ACEOF
15100
15101 # The following way of writing the cache mishandles newlines in values,
15102 # but we know of no workaround that is simple, portable, and efficient.
15103 # So, we kill variables containing newlines.
15104 # Ultrix sh set writes to stderr and can't be redirected directly,
15105 # and sets the high bit in the cache file unless we assign to the vars.
15106 (
15107 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15108 eval ac_val=\$$ac_var
15109 case $ac_val in #(
15110 *${as_nl}*)
15111 case $ac_var in #(
15112 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15113 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15114 esac
15115 case $ac_var in #(
15116 _ | IFS | as_nl) ;; #(
15117 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15118 *) { eval $ac_var=; unset $ac_var;} ;;
15119 esac ;;
15120 esac
15121 done
15122
15123 (set) 2>&1 |
15124 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15125 *${as_nl}ac_space=\ *)
15126 # `set' does not quote correctly, so add quotes: double-quote
15127 # substitution turns \\\\ into \\, and sed turns \\ into \.
15128 sed -n \
15129 "s/'/'\\\\''/g;
15130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15131 ;; #(
15132 *)
15133 # `set' quotes correctly as required by POSIX, so do not add quotes.
15134 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15135 ;;
15136 esac |
15137 sort
15138 ) |
15139 sed '
15140 /^ac_cv_env_/b end
15141 t clear
15142 :clear
15143 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15144 t end
15145 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15146 :end' >>confcache
15147 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15148 if test -w "$cache_file"; then
15149 if test "x$cache_file" != "x/dev/null"; then
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15151 $as_echo "$as_me: updating cache $cache_file" >&6;}
15152 if test ! -f "$cache_file" || test -h "$cache_file"; then
15153 cat confcache >"$cache_file"
15154 else
15155 case $cache_file in #(
15156 */* | ?:*)
15157 mv -f confcache "$cache_file"$$ &&
15158 mv -f "$cache_file"$$ "$cache_file" ;; #(
15159 *)
15160 mv -f confcache "$cache_file" ;;
15161 esac
15162 fi
15163 fi
15164 else
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15166 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15167 fi
15168 fi
15169 rm -f confcache
15170
15171 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15172 # Let make expand exec_prefix.
15173 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15174
15175 DEFS=-DHAVE_CONFIG_H
15176
15177 ac_libobjs=
15178 ac_ltlibobjs=
15179 U=
15180 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15181 # 1. Remove the extension, and $U if already installed.
15182 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15183 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15184 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15185 # will be set to the directory where LIBOBJS objects are built.
15186 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15187 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15188 done
15189 LIBOBJS=$ac_libobjs
15190
15191 LTLIBOBJS=$ac_ltlibobjs
15192
15193
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15195 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15196 if test -n "$am_sleep_pid"; then
15197 # Hide warnings about reused PIDs.
15198 wait $am_sleep_pid 2>/dev/null
15199 fi
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15201 $as_echo "done" >&6; }
15202 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15203 as_fn_error $? "conditional \"AMDEP\" was never defined.
15204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15205 fi
15206 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15207 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15209 fi
15210 if test -n "$EXEEXT"; then
15211 am__EXEEXT_TRUE=
15212 am__EXEEXT_FALSE='#'
15213 else
15214 am__EXEEXT_TRUE='#'
15215 am__EXEEXT_FALSE=
15216 fi
15217
15218 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15219 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15221 fi
15222 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
15223 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
15224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15225 fi
15226 if test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_TRUE}" && test -z "${ENABLE_LIBCTF_HASH_DEBUGGING_FALSE}"; then
15227 as_fn_error $? "conditional \"ENABLE_LIBCTF_HASH_DEBUGGING\" was never defined.
15228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15229 fi
15230
15231 if test -z "${NEED_CTF_QSORT_R_TRUE}" && test -z "${NEED_CTF_QSORT_R_FALSE}"; then
15232 as_fn_error $? "conditional \"NEED_CTF_QSORT_R\" was never defined.
15233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15234 fi
15235 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
15236 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
15237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15238 fi
15239
15240 : "${CONFIG_STATUS=./config.status}"
15241 ac_write_fail=0
15242 ac_clean_files_save=$ac_clean_files
15243 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15245 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15246 as_write_fail=0
15247 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15248 #! $SHELL
15249 # Generated by $as_me.
15250 # Run this file to recreate the current configuration.
15251 # Compiler output produced by configure, useful for debugging
15252 # configure, is in config.log if it exists.
15253
15254 debug=false
15255 ac_cs_recheck=false
15256 ac_cs_silent=false
15257
15258 SHELL=\${CONFIG_SHELL-$SHELL}
15259 export SHELL
15260 _ASEOF
15261 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15262 ## -------------------- ##
15263 ## M4sh Initialization. ##
15264 ## -------------------- ##
15265
15266 # Be more Bourne compatible
15267 DUALCASE=1; export DUALCASE # for MKS sh
15268 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15269 emulate sh
15270 NULLCMD=:
15271 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15272 # is contrary to our usage. Disable this feature.
15273 alias -g '${1+"$@"}'='"$@"'
15274 setopt NO_GLOB_SUBST
15275 else
15276 case `(set -o) 2>/dev/null` in #(
15277 *posix*) :
15278 set -o posix ;; #(
15279 *) :
15280 ;;
15281 esac
15282 fi
15283
15284
15285 as_nl='
15286 '
15287 export as_nl
15288 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15289 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15290 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15291 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15292 # Prefer a ksh shell builtin over an external printf program on Solaris,
15293 # but without wasting forks for bash or zsh.
15294 if test -z "$BASH_VERSION$ZSH_VERSION" \
15295 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15296 as_echo='print -r --'
15297 as_echo_n='print -rn --'
15298 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15299 as_echo='printf %s\n'
15300 as_echo_n='printf %s'
15301 else
15302 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15303 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15304 as_echo_n='/usr/ucb/echo -n'
15305 else
15306 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15307 as_echo_n_body='eval
15308 arg=$1;
15309 case $arg in #(
15310 *"$as_nl"*)
15311 expr "X$arg" : "X\\(.*\\)$as_nl";
15312 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15313 esac;
15314 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15315 '
15316 export as_echo_n_body
15317 as_echo_n='sh -c $as_echo_n_body as_echo'
15318 fi
15319 export as_echo_body
15320 as_echo='sh -c $as_echo_body as_echo'
15321 fi
15322
15323 # The user is always right.
15324 if test "${PATH_SEPARATOR+set}" != set; then
15325 PATH_SEPARATOR=:
15326 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15327 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15328 PATH_SEPARATOR=';'
15329 }
15330 fi
15331
15332
15333 # IFS
15334 # We need space, tab and new line, in precisely that order. Quoting is
15335 # there to prevent editors from complaining about space-tab.
15336 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15337 # splitting by setting IFS to empty value.)
15338 IFS=" "" $as_nl"
15339
15340 # Find who we are. Look in the path if we contain no directory separator.
15341 as_myself=
15342 case $0 in #((
15343 *[\\/]* ) as_myself=$0 ;;
15344 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15345 for as_dir in $PATH
15346 do
15347 IFS=$as_save_IFS
15348 test -z "$as_dir" && as_dir=.
15349 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15350 done
15351 IFS=$as_save_IFS
15352
15353 ;;
15354 esac
15355 # We did not find ourselves, most probably we were run as `sh COMMAND'
15356 # in which case we are not to be found in the path.
15357 if test "x$as_myself" = x; then
15358 as_myself=$0
15359 fi
15360 if test ! -f "$as_myself"; then
15361 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15362 exit 1
15363 fi
15364
15365 # Unset variables that we do not need and which cause bugs (e.g. in
15366 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15367 # suppresses any "Segmentation fault" message there. '((' could
15368 # trigger a bug in pdksh 5.2.14.
15369 for as_var in BASH_ENV ENV MAIL MAILPATH
15370 do eval test x\${$as_var+set} = xset \
15371 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15372 done
15373 PS1='$ '
15374 PS2='> '
15375 PS4='+ '
15376
15377 # NLS nuisances.
15378 LC_ALL=C
15379 export LC_ALL
15380 LANGUAGE=C
15381 export LANGUAGE
15382
15383 # CDPATH.
15384 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15385
15386
15387 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15388 # ----------------------------------------
15389 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15390 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15391 # script with STATUS, using 1 if that was 0.
15392 as_fn_error ()
15393 {
15394 as_status=$1; test $as_status -eq 0 && as_status=1
15395 if test "$4"; then
15396 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15397 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15398 fi
15399 $as_echo "$as_me: error: $2" >&2
15400 as_fn_exit $as_status
15401 } # as_fn_error
15402
15403
15404 # as_fn_set_status STATUS
15405 # -----------------------
15406 # Set $? to STATUS, without forking.
15407 as_fn_set_status ()
15408 {
15409 return $1
15410 } # as_fn_set_status
15411
15412 # as_fn_exit STATUS
15413 # -----------------
15414 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15415 as_fn_exit ()
15416 {
15417 set +e
15418 as_fn_set_status $1
15419 exit $1
15420 } # as_fn_exit
15421
15422 # as_fn_unset VAR
15423 # ---------------
15424 # Portably unset VAR.
15425 as_fn_unset ()
15426 {
15427 { eval $1=; unset $1;}
15428 }
15429 as_unset=as_fn_unset
15430 # as_fn_append VAR VALUE
15431 # ----------------------
15432 # Append the text in VALUE to the end of the definition contained in VAR. Take
15433 # advantage of any shell optimizations that allow amortized linear growth over
15434 # repeated appends, instead of the typical quadratic growth present in naive
15435 # implementations.
15436 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15437 eval 'as_fn_append ()
15438 {
15439 eval $1+=\$2
15440 }'
15441 else
15442 as_fn_append ()
15443 {
15444 eval $1=\$$1\$2
15445 }
15446 fi # as_fn_append
15447
15448 # as_fn_arith ARG...
15449 # ------------------
15450 # Perform arithmetic evaluation on the ARGs, and store the result in the
15451 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15452 # must be portable across $(()) and expr.
15453 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15454 eval 'as_fn_arith ()
15455 {
15456 as_val=$(( $* ))
15457 }'
15458 else
15459 as_fn_arith ()
15460 {
15461 as_val=`expr "$@" || test $? -eq 1`
15462 }
15463 fi # as_fn_arith
15464
15465
15466 if expr a : '\(a\)' >/dev/null 2>&1 &&
15467 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15468 as_expr=expr
15469 else
15470 as_expr=false
15471 fi
15472
15473 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15474 as_basename=basename
15475 else
15476 as_basename=false
15477 fi
15478
15479 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15480 as_dirname=dirname
15481 else
15482 as_dirname=false
15483 fi
15484
15485 as_me=`$as_basename -- "$0" ||
15486 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15487 X"$0" : 'X\(//\)$' \| \
15488 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15489 $as_echo X/"$0" |
15490 sed '/^.*\/\([^/][^/]*\)\/*$/{
15491 s//\1/
15492 q
15493 }
15494 /^X\/\(\/\/\)$/{
15495 s//\1/
15496 q
15497 }
15498 /^X\/\(\/\).*/{
15499 s//\1/
15500 q
15501 }
15502 s/.*/./; q'`
15503
15504 # Avoid depending upon Character Ranges.
15505 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15506 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15507 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15508 as_cr_digits='0123456789'
15509 as_cr_alnum=$as_cr_Letters$as_cr_digits
15510
15511 ECHO_C= ECHO_N= ECHO_T=
15512 case `echo -n x` in #(((((
15513 -n*)
15514 case `echo 'xy\c'` in
15515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15516 xy) ECHO_C='\c';;
15517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15518 ECHO_T=' ';;
15519 esac;;
15520 *)
15521 ECHO_N='-n';;
15522 esac
15523
15524 rm -f conf$$ conf$$.exe conf$$.file
15525 if test -d conf$$.dir; then
15526 rm -f conf$$.dir/conf$$.file
15527 else
15528 rm -f conf$$.dir
15529 mkdir conf$$.dir 2>/dev/null
15530 fi
15531 if (echo >conf$$.file) 2>/dev/null; then
15532 if ln -s conf$$.file conf$$ 2>/dev/null; then
15533 as_ln_s='ln -s'
15534 # ... but there are two gotchas:
15535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15537 # In both cases, we have to default to `cp -pR'.
15538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15539 as_ln_s='cp -pR'
15540 elif ln conf$$.file conf$$ 2>/dev/null; then
15541 as_ln_s=ln
15542 else
15543 as_ln_s='cp -pR'
15544 fi
15545 else
15546 as_ln_s='cp -pR'
15547 fi
15548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15549 rmdir conf$$.dir 2>/dev/null
15550
15551
15552 # as_fn_mkdir_p
15553 # -------------
15554 # Create "$as_dir" as a directory, including parents if necessary.
15555 as_fn_mkdir_p ()
15556 {
15557
15558 case $as_dir in #(
15559 -*) as_dir=./$as_dir;;
15560 esac
15561 test -d "$as_dir" || eval $as_mkdir_p || {
15562 as_dirs=
15563 while :; do
15564 case $as_dir in #(
15565 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15566 *) as_qdir=$as_dir;;
15567 esac
15568 as_dirs="'$as_qdir' $as_dirs"
15569 as_dir=`$as_dirname -- "$as_dir" ||
15570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15571 X"$as_dir" : 'X\(//\)[^/]' \| \
15572 X"$as_dir" : 'X\(//\)$' \| \
15573 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15574 $as_echo X"$as_dir" |
15575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15576 s//\1/
15577 q
15578 }
15579 /^X\(\/\/\)[^/].*/{
15580 s//\1/
15581 q
15582 }
15583 /^X\(\/\/\)$/{
15584 s//\1/
15585 q
15586 }
15587 /^X\(\/\).*/{
15588 s//\1/
15589 q
15590 }
15591 s/.*/./; q'`
15592 test -d "$as_dir" && break
15593 done
15594 test -z "$as_dirs" || eval "mkdir $as_dirs"
15595 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15596
15597
15598 } # as_fn_mkdir_p
15599 if mkdir -p . 2>/dev/null; then
15600 as_mkdir_p='mkdir -p "$as_dir"'
15601 else
15602 test -d ./-p && rmdir ./-p
15603 as_mkdir_p=false
15604 fi
15605
15606
15607 # as_fn_executable_p FILE
15608 # -----------------------
15609 # Test if FILE is an executable regular file.
15610 as_fn_executable_p ()
15611 {
15612 test -f "$1" && test -x "$1"
15613 } # as_fn_executable_p
15614 as_test_x='test -x'
15615 as_executable_p=as_fn_executable_p
15616
15617 # Sed expression to map a string onto a valid CPP name.
15618 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15619
15620 # Sed expression to map a string onto a valid variable name.
15621 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15622
15623
15624 exec 6>&1
15625 ## ----------------------------------- ##
15626 ## Main body of $CONFIG_STATUS script. ##
15627 ## ----------------------------------- ##
15628 _ASEOF
15629 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15630
15631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15632 # Save the log message, to keep $0 and so on meaningful, and to
15633 # report actual input values of CONFIG_FILES etc. instead of their
15634 # values after options handling.
15635 ac_log="
15636 This file was extended by libctf $as_me 1.2.0, which was
15637 generated by GNU Autoconf 2.69. Invocation command line was
15638
15639 CONFIG_FILES = $CONFIG_FILES
15640 CONFIG_HEADERS = $CONFIG_HEADERS
15641 CONFIG_LINKS = $CONFIG_LINKS
15642 CONFIG_COMMANDS = $CONFIG_COMMANDS
15643 $ $0 $@
15644
15645 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15646 "
15647
15648 _ACEOF
15649
15650 case $ac_config_files in *"
15651 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15652 esac
15653
15654 case $ac_config_headers in *"
15655 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15656 esac
15657
15658
15659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15660 # Files that config.status was made for.
15661 config_files="$ac_config_files"
15662 config_headers="$ac_config_headers"
15663 config_commands="$ac_config_commands"
15664
15665 _ACEOF
15666
15667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15668 ac_cs_usage="\
15669 \`$as_me' instantiates files and other configuration actions
15670 from templates according to the current configuration. Unless the files
15671 and actions are specified as TAGs, all are instantiated by default.
15672
15673 Usage: $0 [OPTION]... [TAG]...
15674
15675 -h, --help print this help, then exit
15676 -V, --version print version number and configuration settings, then exit
15677 --config print configuration, then exit
15678 -q, --quiet, --silent
15679 do not print progress messages
15680 -d, --debug don't remove temporary files
15681 --recheck update $as_me by reconfiguring in the same conditions
15682 --file=FILE[:TEMPLATE]
15683 instantiate the configuration file FILE
15684 --header=FILE[:TEMPLATE]
15685 instantiate the configuration header FILE
15686
15687 Configuration files:
15688 $config_files
15689
15690 Configuration headers:
15691 $config_headers
15692
15693 Configuration commands:
15694 $config_commands
15695
15696 Report bugs to the package provider."
15697
15698 _ACEOF
15699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15700 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15701 ac_cs_version="\\
15702 libctf config.status 1.2.0
15703 configured by $0, generated by GNU Autoconf 2.69,
15704 with options \\"\$ac_cs_config\\"
15705
15706 Copyright (C) 2012 Free Software Foundation, Inc.
15707 This config.status script is free software; the Free Software Foundation
15708 gives unlimited permission to copy, distribute and modify it."
15709
15710 ac_pwd='$ac_pwd'
15711 srcdir='$srcdir'
15712 INSTALL='$INSTALL'
15713 MKDIR_P='$MKDIR_P'
15714 AWK='$AWK'
15715 test -n "\$AWK" || AWK=awk
15716 _ACEOF
15717
15718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15719 # The default lists apply if the user does not specify any file.
15720 ac_need_defaults=:
15721 while test $# != 0
15722 do
15723 case $1 in
15724 --*=?*)
15725 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15726 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15727 ac_shift=:
15728 ;;
15729 --*=)
15730 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15731 ac_optarg=
15732 ac_shift=:
15733 ;;
15734 *)
15735 ac_option=$1
15736 ac_optarg=$2
15737 ac_shift=shift
15738 ;;
15739 esac
15740
15741 case $ac_option in
15742 # Handling of the options.
15743 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15744 ac_cs_recheck=: ;;
15745 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15746 $as_echo "$ac_cs_version"; exit ;;
15747 --config | --confi | --conf | --con | --co | --c )
15748 $as_echo "$ac_cs_config"; exit ;;
15749 --debug | --debu | --deb | --de | --d | -d )
15750 debug=: ;;
15751 --file | --fil | --fi | --f )
15752 $ac_shift
15753 case $ac_optarg in
15754 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15755 '') as_fn_error $? "missing file argument" ;;
15756 esac
15757 as_fn_append CONFIG_FILES " '$ac_optarg'"
15758 ac_need_defaults=false;;
15759 --header | --heade | --head | --hea )
15760 $ac_shift
15761 case $ac_optarg in
15762 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15763 esac
15764 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15765 ac_need_defaults=false;;
15766 --he | --h)
15767 # Conflict between --help and --header
15768 as_fn_error $? "ambiguous option: \`$1'
15769 Try \`$0 --help' for more information.";;
15770 --help | --hel | -h )
15771 $as_echo "$ac_cs_usage"; exit ;;
15772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15773 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15774 ac_cs_silent=: ;;
15775
15776 # This is an error.
15777 -*) as_fn_error $? "unrecognized option: \`$1'
15778 Try \`$0 --help' for more information." ;;
15779
15780 *) as_fn_append ac_config_targets " $1"
15781 ac_need_defaults=false ;;
15782
15783 esac
15784 shift
15785 done
15786
15787 ac_configure_extra_args=
15788
15789 if $ac_cs_silent; then
15790 exec 6>/dev/null
15791 ac_configure_extra_args="$ac_configure_extra_args --silent"
15792 fi
15793
15794 _ACEOF
15795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15796 if \$ac_cs_recheck; then
15797 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15798 shift
15799 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15800 CONFIG_SHELL='$SHELL'
15801 export CONFIG_SHELL
15802 exec "\$@"
15803 fi
15804
15805 _ACEOF
15806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15807 exec 5>>config.log
15808 {
15809 echo
15810 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15811 ## Running $as_me. ##
15812 _ASBOX
15813 $as_echo "$ac_log"
15814 } >&5
15815
15816 _ACEOF
15817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15818 #
15819 # INIT-COMMANDS
15820 #
15821 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15822
15823
15824 # The HP-UX ksh and POSIX shell print the target directory to stdout
15825 # if CDPATH is set.
15826 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15827
15828 sed_quote_subst='$sed_quote_subst'
15829 double_quote_subst='$double_quote_subst'
15830 delay_variable_subst='$delay_variable_subst'
15831 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15832 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15833 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15834 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15835 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15836 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15837 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15838 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15839 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15840 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15841 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15842 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15843 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15844 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15845 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15846 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15847 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15848 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15849 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15850 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15851 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15852 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15853 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15854 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15855 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15856 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15857 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15858 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15859 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15860 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15861 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15862 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15863 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15864 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15865 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15866 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15867 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15868 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15869 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15870 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15871 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15872 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15873 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15874 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15875 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15876 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15877 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15878 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15879 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"`'
15880 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15881 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15882 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15883 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15884 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15885 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15886 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15887 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15888 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15889 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15890 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15891 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15892 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15893 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15894 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15895 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15896 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15897 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15898 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15899 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15900 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15901 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15902 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15903 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15904 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15905 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15906 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15907 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15908 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15909 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15910 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15911 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15912 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15913 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15914 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15915 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15916 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15917 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15918 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15919 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15920 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15921 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15922 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15923 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15924 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15925 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15926 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15927 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15928 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15929 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15930 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15931 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15932 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15933 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15934 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15935 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15936 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15937 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15938 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15939 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15940 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15941 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15942 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15943 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15944 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15945 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15946 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15947 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15948 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15949 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15950 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15951
15952 LTCC='$LTCC'
15953 LTCFLAGS='$LTCFLAGS'
15954 compiler='$compiler_DEFAULT'
15955
15956 # A function that is used when there is no print builtin or printf.
15957 func_fallback_echo ()
15958 {
15959 eval 'cat <<_LTECHO_EOF
15960 \$1
15961 _LTECHO_EOF'
15962 }
15963
15964 # Quote evaled strings.
15965 for var in SHELL \
15966 ECHO \
15967 SED \
15968 GREP \
15969 EGREP \
15970 FGREP \
15971 LD \
15972 NM \
15973 LN_S \
15974 lt_SP2NL \
15975 lt_NL2SP \
15976 reload_flag \
15977 OBJDUMP \
15978 deplibs_check_method \
15979 file_magic_cmd \
15980 AR \
15981 AR_FLAGS \
15982 STRIP \
15983 RANLIB \
15984 CC \
15985 CFLAGS \
15986 compiler \
15987 lt_cv_sys_global_symbol_pipe \
15988 lt_cv_sys_global_symbol_to_cdecl \
15989 lt_cv_sys_global_symbol_to_c_name_address \
15990 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15991 lt_prog_compiler_no_builtin_flag \
15992 lt_prog_compiler_wl \
15993 lt_prog_compiler_pic \
15994 lt_prog_compiler_static \
15995 lt_cv_prog_compiler_c_o \
15996 need_locks \
15997 DSYMUTIL \
15998 NMEDIT \
15999 LIPO \
16000 OTOOL \
16001 OTOOL64 \
16002 shrext_cmds \
16003 export_dynamic_flag_spec \
16004 whole_archive_flag_spec \
16005 compiler_needs_object \
16006 with_gnu_ld \
16007 allow_undefined_flag \
16008 no_undefined_flag \
16009 hardcode_libdir_flag_spec \
16010 hardcode_libdir_flag_spec_ld \
16011 hardcode_libdir_separator \
16012 fix_srcfile_path \
16013 exclude_expsyms \
16014 include_expsyms \
16015 file_list_spec \
16016 variables_saved_for_relink \
16017 libname_spec \
16018 library_names_spec \
16019 soname_spec \
16020 install_override_mode \
16021 finish_eval \
16022 old_striplib \
16023 striplib; do
16024 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16025 *[\\\\\\\`\\"\\\$]*)
16026 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16027 ;;
16028 *)
16029 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16030 ;;
16031 esac
16032 done
16033
16034 # Double-quote double-evaled strings.
16035 for var in reload_cmds \
16036 old_postinstall_cmds \
16037 old_postuninstall_cmds \
16038 old_archive_cmds \
16039 extract_expsyms_cmds \
16040 old_archive_from_new_cmds \
16041 old_archive_from_expsyms_cmds \
16042 archive_cmds \
16043 archive_expsym_cmds \
16044 module_cmds \
16045 module_expsym_cmds \
16046 export_symbols_cmds \
16047 prelink_cmds \
16048 postinstall_cmds \
16049 postuninstall_cmds \
16050 finish_cmds \
16051 sys_lib_search_path_spec \
16052 sys_lib_dlsearch_path_spec; do
16053 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16054 *[\\\\\\\`\\"\\\$]*)
16055 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16056 ;;
16057 *)
16058 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16059 ;;
16060 esac
16061 done
16062
16063 ac_aux_dir='$ac_aux_dir'
16064 xsi_shell='$xsi_shell'
16065 lt_shell_append='$lt_shell_append'
16066
16067 # See if we are running on zsh, and set the options which allow our
16068 # commands through without removal of \ escapes INIT.
16069 if test -n "\${ZSH_VERSION+set}" ; then
16070 setopt NO_GLOB_SUBST
16071 fi
16072
16073
16074 PACKAGE='$PACKAGE'
16075 VERSION='$VERSION'
16076 TIMESTAMP='$TIMESTAMP'
16077 RM='$RM'
16078 ofile='$ofile'
16079
16080 ac_aux_dir='$ac_aux_dir'
16081
16082
16083
16084 _ACEOF
16085
16086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16087
16088 # Handling of arguments.
16089 for ac_config_target in $ac_config_targets
16090 do
16091 case $ac_config_target in
16092 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16093 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16094 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16095 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16096
16097 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16098 esac
16099 done
16100
16101
16102 # If the user did not use the arguments to specify the items to instantiate,
16103 # then the envvar interface is used. Set only those that are not.
16104 # We use the long form for the default assignment because of an extremely
16105 # bizarre bug on SunOS 4.1.3.
16106 if $ac_need_defaults; then
16107 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16108 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16109 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16110 fi
16111
16112 # Have a temporary directory for convenience. Make it in the build tree
16113 # simply because there is no reason against having it here, and in addition,
16114 # creating and moving files from /tmp can sometimes cause problems.
16115 # Hook for its removal unless debugging.
16116 # Note that there is a small window in which the directory will not be cleaned:
16117 # after its creation but before its name has been assigned to `$tmp'.
16118 $debug ||
16119 {
16120 tmp= ac_tmp=
16121 trap 'exit_status=$?
16122 : "${ac_tmp:=$tmp}"
16123 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16124 ' 0
16125 trap 'as_fn_exit 1' 1 2 13 15
16126 }
16127 # Create a (secure) tmp directory for tmp files.
16128
16129 {
16130 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16131 test -d "$tmp"
16132 } ||
16133 {
16134 tmp=./conf$$-$RANDOM
16135 (umask 077 && mkdir "$tmp")
16136 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16137 ac_tmp=$tmp
16138
16139 # Set up the scripts for CONFIG_FILES section.
16140 # No need to generate them if there are no CONFIG_FILES.
16141 # This happens for instance with `./config.status config.h'.
16142 if test -n "$CONFIG_FILES"; then
16143
16144
16145 ac_cr=`echo X | tr X '\015'`
16146 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16147 # But we know of no other shell where ac_cr would be empty at this
16148 # point, so we can use a bashism as a fallback.
16149 if test "x$ac_cr" = x; then
16150 eval ac_cr=\$\'\\r\'
16151 fi
16152 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16153 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16154 ac_cs_awk_cr='\\r'
16155 else
16156 ac_cs_awk_cr=$ac_cr
16157 fi
16158
16159 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16160 _ACEOF
16161
16162
16163 {
16164 echo "cat >conf$$subs.awk <<_ACEOF" &&
16165 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16166 echo "_ACEOF"
16167 } >conf$$subs.sh ||
16168 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16169 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16170 ac_delim='%!_!# '
16171 for ac_last_try in false false false false false :; do
16172 . ./conf$$subs.sh ||
16173 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16174
16175 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16176 if test $ac_delim_n = $ac_delim_num; then
16177 break
16178 elif $ac_last_try; then
16179 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16180 else
16181 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16182 fi
16183 done
16184 rm -f conf$$subs.sh
16185
16186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16187 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16188 _ACEOF
16189 sed -n '
16190 h
16191 s/^/S["/; s/!.*/"]=/
16192 p
16193 g
16194 s/^[^!]*!//
16195 :repl
16196 t repl
16197 s/'"$ac_delim"'$//
16198 t delim
16199 :nl
16200 h
16201 s/\(.\{148\}\)..*/\1/
16202 t more1
16203 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16204 p
16205 n
16206 b repl
16207 :more1
16208 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16209 p
16210 g
16211 s/.\{148\}//
16212 t nl
16213 :delim
16214 h
16215 s/\(.\{148\}\)..*/\1/
16216 t more2
16217 s/["\\]/\\&/g; s/^/"/; s/$/"/
16218 p
16219 b
16220 :more2
16221 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16222 p
16223 g
16224 s/.\{148\}//
16225 t delim
16226 ' <conf$$subs.awk | sed '
16227 /^[^""]/{
16228 N
16229 s/\n//
16230 }
16231 ' >>$CONFIG_STATUS || ac_write_fail=1
16232 rm -f conf$$subs.awk
16233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16234 _ACAWK
16235 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16236 for (key in S) S_is_set[key] = 1
16237 FS = "\a"
16238
16239 }
16240 {
16241 line = $ 0
16242 nfields = split(line, field, "@")
16243 substed = 0
16244 len = length(field[1])
16245 for (i = 2; i < nfields; i++) {
16246 key = field[i]
16247 keylen = length(key)
16248 if (S_is_set[key]) {
16249 value = S[key]
16250 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16251 len += length(value) + length(field[++i])
16252 substed = 1
16253 } else
16254 len += 1 + keylen
16255 }
16256
16257 print line
16258 }
16259
16260 _ACAWK
16261 _ACEOF
16262 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16263 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16264 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16265 else
16266 cat
16267 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16268 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16269 _ACEOF
16270
16271 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16272 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16273 # trailing colons and then remove the whole line if VPATH becomes empty
16274 # (actually we leave an empty line to preserve line numbers).
16275 if test "x$srcdir" = x.; then
16276 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16277 h
16278 s///
16279 s/^/:/
16280 s/[ ]*$/:/
16281 s/:\$(srcdir):/:/g
16282 s/:\${srcdir}:/:/g
16283 s/:@srcdir@:/:/g
16284 s/^:*//
16285 s/:*$//
16286 x
16287 s/\(=[ ]*\).*/\1/
16288 G
16289 s/\n//
16290 s/^[^=]*=[ ]*$//
16291 }'
16292 fi
16293
16294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16295 fi # test -n "$CONFIG_FILES"
16296
16297 # Set up the scripts for CONFIG_HEADERS section.
16298 # No need to generate them if there are no CONFIG_HEADERS.
16299 # This happens for instance with `./config.status Makefile'.
16300 if test -n "$CONFIG_HEADERS"; then
16301 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16302 BEGIN {
16303 _ACEOF
16304
16305 # Transform confdefs.h into an awk script `defines.awk', embedded as
16306 # here-document in config.status, that substitutes the proper values into
16307 # config.h.in to produce config.h.
16308
16309 # Create a delimiter string that does not exist in confdefs.h, to ease
16310 # handling of long lines.
16311 ac_delim='%!_!# '
16312 for ac_last_try in false false :; do
16313 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16314 if test -z "$ac_tt"; then
16315 break
16316 elif $ac_last_try; then
16317 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16318 else
16319 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16320 fi
16321 done
16322
16323 # For the awk script, D is an array of macro values keyed by name,
16324 # likewise P contains macro parameters if any. Preserve backslash
16325 # newline sequences.
16326
16327 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16328 sed -n '
16329 s/.\{148\}/&'"$ac_delim"'/g
16330 t rset
16331 :rset
16332 s/^[ ]*#[ ]*define[ ][ ]*/ /
16333 t def
16334 d
16335 :def
16336 s/\\$//
16337 t bsnl
16338 s/["\\]/\\&/g
16339 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16340 D["\1"]=" \3"/p
16341 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16342 d
16343 :bsnl
16344 s/["\\]/\\&/g
16345 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16346 D["\1"]=" \3\\\\\\n"\\/p
16347 t cont
16348 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16349 t cont
16350 d
16351 :cont
16352 n
16353 s/.\{148\}/&'"$ac_delim"'/g
16354 t clear
16355 :clear
16356 s/\\$//
16357 t bsnlc
16358 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16359 d
16360 :bsnlc
16361 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16362 b cont
16363 ' <confdefs.h | sed '
16364 s/'"$ac_delim"'/"\\\
16365 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16366
16367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16368 for (key in D) D_is_set[key] = 1
16369 FS = "\a"
16370 }
16371 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16372 line = \$ 0
16373 split(line, arg, " ")
16374 if (arg[1] == "#") {
16375 defundef = arg[2]
16376 mac1 = arg[3]
16377 } else {
16378 defundef = substr(arg[1], 2)
16379 mac1 = arg[2]
16380 }
16381 split(mac1, mac2, "(") #)
16382 macro = mac2[1]
16383 prefix = substr(line, 1, index(line, defundef) - 1)
16384 if (D_is_set[macro]) {
16385 # Preserve the white space surrounding the "#".
16386 print prefix "define", macro P[macro] D[macro]
16387 next
16388 } else {
16389 # Replace #undef with comments. This is necessary, for example,
16390 # in the case of _POSIX_SOURCE, which is predefined and required
16391 # on some systems where configure will not decide to define it.
16392 if (defundef == "undef") {
16393 print "/*", prefix defundef, macro, "*/"
16394 next
16395 }
16396 }
16397 }
16398 { print }
16399 _ACAWK
16400 _ACEOF
16401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16402 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16403 fi # test -n "$CONFIG_HEADERS"
16404
16405
16406 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16407 shift
16408 for ac_tag
16409 do
16410 case $ac_tag in
16411 :[FHLC]) ac_mode=$ac_tag; continue;;
16412 esac
16413 case $ac_mode$ac_tag in
16414 :[FHL]*:*);;
16415 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16416 :[FH]-) ac_tag=-:-;;
16417 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16418 esac
16419 ac_save_IFS=$IFS
16420 IFS=:
16421 set x $ac_tag
16422 IFS=$ac_save_IFS
16423 shift
16424 ac_file=$1
16425 shift
16426
16427 case $ac_mode in
16428 :L) ac_source=$1;;
16429 :[FH])
16430 ac_file_inputs=
16431 for ac_f
16432 do
16433 case $ac_f in
16434 -) ac_f="$ac_tmp/stdin";;
16435 *) # Look for the file first in the build tree, then in the source tree
16436 # (if the path is not absolute). The absolute path cannot be DOS-style,
16437 # because $ac_f cannot contain `:'.
16438 test -f "$ac_f" ||
16439 case $ac_f in
16440 [\\/$]*) false;;
16441 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16442 esac ||
16443 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16444 esac
16445 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16446 as_fn_append ac_file_inputs " '$ac_f'"
16447 done
16448
16449 # Let's still pretend it is `configure' which instantiates (i.e., don't
16450 # use $as_me), people would be surprised to read:
16451 # /* config.h. Generated by config.status. */
16452 configure_input='Generated from '`
16453 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16454 `' by configure.'
16455 if test x"$ac_file" != x-; then
16456 configure_input="$ac_file. $configure_input"
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16458 $as_echo "$as_me: creating $ac_file" >&6;}
16459 fi
16460 # Neutralize special characters interpreted by sed in replacement strings.
16461 case $configure_input in #(
16462 *\&* | *\|* | *\\* )
16463 ac_sed_conf_input=`$as_echo "$configure_input" |
16464 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16465 *) ac_sed_conf_input=$configure_input;;
16466 esac
16467
16468 case $ac_tag in
16469 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16470 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16471 esac
16472 ;;
16473 esac
16474
16475 ac_dir=`$as_dirname -- "$ac_file" ||
16476 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16477 X"$ac_file" : 'X\(//\)[^/]' \| \
16478 X"$ac_file" : 'X\(//\)$' \| \
16479 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16480 $as_echo X"$ac_file" |
16481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16482 s//\1/
16483 q
16484 }
16485 /^X\(\/\/\)[^/].*/{
16486 s//\1/
16487 q
16488 }
16489 /^X\(\/\/\)$/{
16490 s//\1/
16491 q
16492 }
16493 /^X\(\/\).*/{
16494 s//\1/
16495 q
16496 }
16497 s/.*/./; q'`
16498 as_dir="$ac_dir"; as_fn_mkdir_p
16499 ac_builddir=.
16500
16501 case "$ac_dir" in
16502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16503 *)
16504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16505 # A ".." for each directory in $ac_dir_suffix.
16506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16507 case $ac_top_builddir_sub in
16508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16510 esac ;;
16511 esac
16512 ac_abs_top_builddir=$ac_pwd
16513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16514 # for backward compatibility:
16515 ac_top_builddir=$ac_top_build_prefix
16516
16517 case $srcdir in
16518 .) # We are building in place.
16519 ac_srcdir=.
16520 ac_top_srcdir=$ac_top_builddir_sub
16521 ac_abs_top_srcdir=$ac_pwd ;;
16522 [\\/]* | ?:[\\/]* ) # Absolute name.
16523 ac_srcdir=$srcdir$ac_dir_suffix;
16524 ac_top_srcdir=$srcdir
16525 ac_abs_top_srcdir=$srcdir ;;
16526 *) # Relative name.
16527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16528 ac_top_srcdir=$ac_top_build_prefix$srcdir
16529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16530 esac
16531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16532
16533
16534 case $ac_mode in
16535 :F)
16536 #
16537 # CONFIG_FILE
16538 #
16539
16540 case $INSTALL in
16541 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16542 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16543 esac
16544 ac_MKDIR_P=$MKDIR_P
16545 case $MKDIR_P in
16546 [\\/$]* | ?:[\\/]* ) ;;
16547 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16548 esac
16549 _ACEOF
16550
16551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16552 # If the template does not know about datarootdir, expand it.
16553 # FIXME: This hack should be removed a few years after 2.60.
16554 ac_datarootdir_hack=; ac_datarootdir_seen=
16555 ac_sed_dataroot='
16556 /datarootdir/ {
16557 p
16558 q
16559 }
16560 /@datadir@/p
16561 /@docdir@/p
16562 /@infodir@/p
16563 /@localedir@/p
16564 /@mandir@/p'
16565 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16566 *datarootdir*) ac_datarootdir_seen=yes;;
16567 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16569 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16570 _ACEOF
16571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16572 ac_datarootdir_hack='
16573 s&@datadir@&$datadir&g
16574 s&@docdir@&$docdir&g
16575 s&@infodir@&$infodir&g
16576 s&@localedir@&$localedir&g
16577 s&@mandir@&$mandir&g
16578 s&\\\${datarootdir}&$datarootdir&g' ;;
16579 esac
16580 _ACEOF
16581
16582 # Neutralize VPATH when `$srcdir' = `.'.
16583 # Shell code in configure.ac might set extrasub.
16584 # FIXME: do we really want to maintain this feature?
16585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16586 ac_sed_extra="$ac_vpsub
16587 $extrasub
16588 _ACEOF
16589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16590 :t
16591 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16592 s|@configure_input@|$ac_sed_conf_input|;t t
16593 s&@top_builddir@&$ac_top_builddir_sub&;t t
16594 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16595 s&@srcdir@&$ac_srcdir&;t t
16596 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16597 s&@top_srcdir@&$ac_top_srcdir&;t t
16598 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16599 s&@builddir@&$ac_builddir&;t t
16600 s&@abs_builddir@&$ac_abs_builddir&;t t
16601 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16602 s&@INSTALL@&$ac_INSTALL&;t t
16603 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16604 $ac_datarootdir_hack
16605 "
16606 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16607 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16608
16609 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16610 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16611 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16612 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16614 which seems to be undefined. Please make sure it is defined" >&5
16615 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16616 which seems to be undefined. Please make sure it is defined" >&2;}
16617
16618 rm -f "$ac_tmp/stdin"
16619 case $ac_file in
16620 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16621 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16622 esac \
16623 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16624 ;;
16625 :H)
16626 #
16627 # CONFIG_HEADER
16628 #
16629 if test x"$ac_file" != x-; then
16630 {
16631 $as_echo "/* $configure_input */" \
16632 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16633 } >"$ac_tmp/config.h" \
16634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16635 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16637 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16638 else
16639 rm -f "$ac_file"
16640 mv "$ac_tmp/config.h" "$ac_file" \
16641 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16642 fi
16643 else
16644 $as_echo "/* $configure_input */" \
16645 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16646 || as_fn_error $? "could not create -" "$LINENO" 5
16647 fi
16648 # Compute "$ac_file"'s index in $config_headers.
16649 _am_arg="$ac_file"
16650 _am_stamp_count=1
16651 for _am_header in $config_headers :; do
16652 case $_am_header in
16653 $_am_arg | $_am_arg:* )
16654 break ;;
16655 * )
16656 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16657 esac
16658 done
16659 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16660 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16661 X"$_am_arg" : 'X\(//\)[^/]' \| \
16662 X"$_am_arg" : 'X\(//\)$' \| \
16663 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16664 $as_echo X"$_am_arg" |
16665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16666 s//\1/
16667 q
16668 }
16669 /^X\(\/\/\)[^/].*/{
16670 s//\1/
16671 q
16672 }
16673 /^X\(\/\/\)$/{
16674 s//\1/
16675 q
16676 }
16677 /^X\(\/\).*/{
16678 s//\1/
16679 q
16680 }
16681 s/.*/./; q'`/stamp-h$_am_stamp_count
16682 ;;
16683
16684 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16685 $as_echo "$as_me: executing $ac_file commands" >&6;}
16686 ;;
16687 esac
16688
16689
16690 case $ac_file$ac_mode in
16691 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16692 # Older Autoconf quotes --file arguments for eval, but not when files
16693 # are listed without --file. Let's play safe and only enable the eval
16694 # if we detect the quoting.
16695 case $CONFIG_FILES in
16696 *\'*) eval set x "$CONFIG_FILES" ;;
16697 *) set x $CONFIG_FILES ;;
16698 esac
16699 shift
16700 for mf
16701 do
16702 # Strip MF so we end up with the name of the file.
16703 mf=`echo "$mf" | sed -e 's/:.*$//'`
16704 # Check whether this is an Automake generated Makefile or not.
16705 # We used to match only the files named 'Makefile.in', but
16706 # some people rename them; so instead we look at the file content.
16707 # Grep'ing the first line is not enough: some people post-process
16708 # each Makefile.in and add a new line on top of each file to say so.
16709 # Grep'ing the whole file is not good either: AIX grep has a line
16710 # limit of 2048, but all sed's we know have understand at least 4000.
16711 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16712 dirpart=`$as_dirname -- "$mf" ||
16713 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16714 X"$mf" : 'X\(//\)[^/]' \| \
16715 X"$mf" : 'X\(//\)$' \| \
16716 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16717 $as_echo X"$mf" |
16718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16719 s//\1/
16720 q
16721 }
16722 /^X\(\/\/\)[^/].*/{
16723 s//\1/
16724 q
16725 }
16726 /^X\(\/\/\)$/{
16727 s//\1/
16728 q
16729 }
16730 /^X\(\/\).*/{
16731 s//\1/
16732 q
16733 }
16734 s/.*/./; q'`
16735 else
16736 continue
16737 fi
16738 # Extract the definition of DEPDIR, am__include, and am__quote
16739 # from the Makefile without running 'make'.
16740 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16741 test -z "$DEPDIR" && continue
16742 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16743 test -z "$am__include" && continue
16744 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16745 # Find all dependency output files, they are included files with
16746 # $(DEPDIR) in their names. We invoke sed twice because it is the
16747 # simplest approach to changing $(DEPDIR) to its actual value in the
16748 # expansion.
16749 for file in `sed -n "
16750 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16751 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16752 # Make sure the directory exists.
16753 test -f "$dirpart/$file" && continue
16754 fdir=`$as_dirname -- "$file" ||
16755 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16756 X"$file" : 'X\(//\)[^/]' \| \
16757 X"$file" : 'X\(//\)$' \| \
16758 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16759 $as_echo X"$file" |
16760 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16761 s//\1/
16762 q
16763 }
16764 /^X\(\/\/\)[^/].*/{
16765 s//\1/
16766 q
16767 }
16768 /^X\(\/\/\)$/{
16769 s//\1/
16770 q
16771 }
16772 /^X\(\/\).*/{
16773 s//\1/
16774 q
16775 }
16776 s/.*/./; q'`
16777 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16778 # echo "creating $dirpart/$file"
16779 echo '# dummy' > "$dirpart/$file"
16780 done
16781 done
16782 }
16783 ;;
16784 "libtool":C)
16785
16786 # See if we are running on zsh, and set the options which allow our
16787 # commands through without removal of \ escapes.
16788 if test -n "${ZSH_VERSION+set}" ; then
16789 setopt NO_GLOB_SUBST
16790 fi
16791
16792 cfgfile="${ofile}T"
16793 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16794 $RM "$cfgfile"
16795
16796 cat <<_LT_EOF >> "$cfgfile"
16797 #! $SHELL
16798
16799 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16800 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16801 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16802 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16803 #
16804 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16805 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16806 # Written by Gordon Matzigkeit, 1996
16807 #
16808 # This file is part of GNU Libtool.
16809 #
16810 # GNU Libtool is free software; you can redistribute it and/or
16811 # modify it under the terms of the GNU General Public License as
16812 # published by the Free Software Foundation; either version 2 of
16813 # the License, or (at your option) any later version.
16814 #
16815 # As a special exception to the GNU General Public License,
16816 # if you distribute this file as part of a program or library that
16817 # is built using GNU Libtool, you may include this file under the
16818 # same distribution terms that you use for the rest of that program.
16819 #
16820 # GNU Libtool is distributed in the hope that it will be useful,
16821 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16822 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16823 # GNU General Public License for more details.
16824 #
16825 # You should have received a copy of the GNU General Public License
16826 # along with GNU Libtool; see the file COPYING. If not, a copy
16827 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16828 # obtained by writing to the Free Software Foundation, Inc.,
16829 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16830
16831
16832 # The names of the tagged configurations supported by this script.
16833 available_tags=""
16834
16835 # ### BEGIN LIBTOOL CONFIG
16836
16837 # Whether or not to build shared libraries.
16838 build_libtool_libs=$enable_shared
16839
16840 # Which release of libtool.m4 was used?
16841 macro_version=$macro_version
16842 macro_revision=$macro_revision
16843
16844 # Whether or not to build static libraries.
16845 build_old_libs=$enable_static
16846
16847 # What type of objects to build.
16848 pic_mode=$pic_mode
16849
16850 # Whether or not to optimize for fast installation.
16851 fast_install=$enable_fast_install
16852
16853 # Shell to use when invoking shell scripts.
16854 SHELL=$lt_SHELL
16855
16856 # An echo program that protects backslashes.
16857 ECHO=$lt_ECHO
16858
16859 # The host system.
16860 host_alias=$host_alias
16861 host=$host
16862 host_os=$host_os
16863
16864 # The build system.
16865 build_alias=$build_alias
16866 build=$build
16867 build_os=$build_os
16868
16869 # A sed program that does not truncate output.
16870 SED=$lt_SED
16871
16872 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16873 Xsed="\$SED -e 1s/^X//"
16874
16875 # A grep program that handles long lines.
16876 GREP=$lt_GREP
16877
16878 # An ERE matcher.
16879 EGREP=$lt_EGREP
16880
16881 # A literal string matcher.
16882 FGREP=$lt_FGREP
16883
16884 # A BSD- or MS-compatible name lister.
16885 NM=$lt_NM
16886
16887 # Whether we need soft or hard links.
16888 LN_S=$lt_LN_S
16889
16890 # What is the maximum length of a command?
16891 max_cmd_len=$max_cmd_len
16892
16893 # Object file suffix (normally "o").
16894 objext=$ac_objext
16895
16896 # Executable file suffix (normally "").
16897 exeext=$exeext
16898
16899 # whether the shell understands "unset".
16900 lt_unset=$lt_unset
16901
16902 # turn spaces into newlines.
16903 SP2NL=$lt_lt_SP2NL
16904
16905 # turn newlines into spaces.
16906 NL2SP=$lt_lt_NL2SP
16907
16908 # An object symbol dumper.
16909 OBJDUMP=$lt_OBJDUMP
16910
16911 # Method to check whether dependent libraries are shared objects.
16912 deplibs_check_method=$lt_deplibs_check_method
16913
16914 # Command to use when deplibs_check_method == "file_magic".
16915 file_magic_cmd=$lt_file_magic_cmd
16916
16917 # The archiver.
16918 AR=$lt_AR
16919 AR_FLAGS=$lt_AR_FLAGS
16920
16921 # A symbol stripping program.
16922 STRIP=$lt_STRIP
16923
16924 # Commands used to install an old-style archive.
16925 RANLIB=$lt_RANLIB
16926 old_postinstall_cmds=$lt_old_postinstall_cmds
16927 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16928
16929 # Whether to use a lock for old archive extraction.
16930 lock_old_archive_extraction=$lock_old_archive_extraction
16931
16932 # A C compiler.
16933 LTCC=$lt_CC
16934
16935 # LTCC compiler flags.
16936 LTCFLAGS=$lt_CFLAGS
16937
16938 # Take the output of nm and produce a listing of raw symbols and C names.
16939 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16940
16941 # Transform the output of nm in a proper C declaration.
16942 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16943
16944 # Transform the output of nm in a C name address pair.
16945 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16946
16947 # Transform the output of nm in a C name address pair when lib prefix is needed.
16948 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16949
16950 # The name of the directory that contains temporary libtool files.
16951 objdir=$objdir
16952
16953 # Used to examine libraries when file_magic_cmd begins with "file".
16954 MAGIC_CMD=$MAGIC_CMD
16955
16956 # Must we lock files when doing compilation?
16957 need_locks=$lt_need_locks
16958
16959 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16960 DSYMUTIL=$lt_DSYMUTIL
16961
16962 # Tool to change global to local symbols on Mac OS X.
16963 NMEDIT=$lt_NMEDIT
16964
16965 # Tool to manipulate fat objects and archives on Mac OS X.
16966 LIPO=$lt_LIPO
16967
16968 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16969 OTOOL=$lt_OTOOL
16970
16971 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16972 OTOOL64=$lt_OTOOL64
16973
16974 # Old archive suffix (normally "a").
16975 libext=$libext
16976
16977 # Shared library suffix (normally ".so").
16978 shrext_cmds=$lt_shrext_cmds
16979
16980 # The commands to extract the exported symbol list from a shared archive.
16981 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16982
16983 # Variables whose values should be saved in libtool wrapper scripts and
16984 # restored at link time.
16985 variables_saved_for_relink=$lt_variables_saved_for_relink
16986
16987 # Do we need the "lib" prefix for modules?
16988 need_lib_prefix=$need_lib_prefix
16989
16990 # Do we need a version for libraries?
16991 need_version=$need_version
16992
16993 # Library versioning type.
16994 version_type=$version_type
16995
16996 # Shared library runtime path variable.
16997 runpath_var=$runpath_var
16998
16999 # Shared library path variable.
17000 shlibpath_var=$shlibpath_var
17001
17002 # Is shlibpath searched before the hard-coded library search path?
17003 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17004
17005 # Format of library name prefix.
17006 libname_spec=$lt_libname_spec
17007
17008 # List of archive names. First name is the real one, the rest are links.
17009 # The last name is the one that the linker finds with -lNAME
17010 library_names_spec=$lt_library_names_spec
17011
17012 # The coded name of the library, if different from the real name.
17013 soname_spec=$lt_soname_spec
17014
17015 # Permission mode override for installation of shared libraries.
17016 install_override_mode=$lt_install_override_mode
17017
17018 # Command to use after installation of a shared archive.
17019 postinstall_cmds=$lt_postinstall_cmds
17020
17021 # Command to use after uninstallation of a shared archive.
17022 postuninstall_cmds=$lt_postuninstall_cmds
17023
17024 # Commands used to finish a libtool library installation in a directory.
17025 finish_cmds=$lt_finish_cmds
17026
17027 # As "finish_cmds", except a single script fragment to be evaled but
17028 # not shown.
17029 finish_eval=$lt_finish_eval
17030
17031 # Whether we should hardcode library paths into libraries.
17032 hardcode_into_libs=$hardcode_into_libs
17033
17034 # Compile-time system search path for libraries.
17035 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17036
17037 # Run-time system search path for libraries.
17038 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17039
17040 # Whether dlopen is supported.
17041 dlopen_support=$enable_dlopen
17042
17043 # Whether dlopen of programs is supported.
17044 dlopen_self=$enable_dlopen_self
17045
17046 # Whether dlopen of statically linked programs is supported.
17047 dlopen_self_static=$enable_dlopen_self_static
17048
17049 # Commands to strip libraries.
17050 old_striplib=$lt_old_striplib
17051 striplib=$lt_striplib
17052
17053
17054 # The linker used to build libraries.
17055 LD=$lt_LD
17056
17057 # How to create reloadable object files.
17058 reload_flag=$lt_reload_flag
17059 reload_cmds=$lt_reload_cmds
17060
17061 # Commands used to build an old-style archive.
17062 old_archive_cmds=$lt_old_archive_cmds
17063
17064 # A language specific compiler.
17065 CC=$lt_compiler
17066
17067 # Is the compiler the GNU compiler?
17068 with_gcc=$GCC
17069
17070 # Compiler flag to turn off builtin functions.
17071 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17072
17073 # How to pass a linker flag through the compiler.
17074 wl=$lt_lt_prog_compiler_wl
17075
17076 # Additional compiler flags for building library objects.
17077 pic_flag=$lt_lt_prog_compiler_pic
17078
17079 # Compiler flag to prevent dynamic linking.
17080 link_static_flag=$lt_lt_prog_compiler_static
17081
17082 # Does compiler simultaneously support -c and -o options?
17083 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17084
17085 # Whether or not to add -lc for building shared libraries.
17086 build_libtool_need_lc=$archive_cmds_need_lc
17087
17088 # Whether or not to disallow shared libs when runtime libs are static.
17089 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17090
17091 # Compiler flag to allow reflexive dlopens.
17092 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17093
17094 # Compiler flag to generate shared objects directly from archives.
17095 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17096
17097 # Whether the compiler copes with passing no objects directly.
17098 compiler_needs_object=$lt_compiler_needs_object
17099
17100 # Create an old-style archive from a shared archive.
17101 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17102
17103 # Create a temporary old-style archive to link instead of a shared archive.
17104 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17105
17106 # Commands used to build a shared archive.
17107 archive_cmds=$lt_archive_cmds
17108 archive_expsym_cmds=$lt_archive_expsym_cmds
17109
17110 # Commands used to build a loadable module if different from building
17111 # a shared archive.
17112 module_cmds=$lt_module_cmds
17113 module_expsym_cmds=$lt_module_expsym_cmds
17114
17115 # Whether we are building with GNU ld or not.
17116 with_gnu_ld=$lt_with_gnu_ld
17117
17118 # Flag that allows shared libraries with undefined symbols to be built.
17119 allow_undefined_flag=$lt_allow_undefined_flag
17120
17121 # Flag that enforces no undefined symbols.
17122 no_undefined_flag=$lt_no_undefined_flag
17123
17124 # Flag to hardcode \$libdir into a binary during linking.
17125 # This must work even if \$libdir does not exist
17126 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17127
17128 # If ld is used when linking, flag to hardcode \$libdir into a binary
17129 # during linking. This must work even if \$libdir does not exist.
17130 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17131
17132 # Whether we need a single "-rpath" flag with a separated argument.
17133 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17134
17135 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17136 # DIR into the resulting binary.
17137 hardcode_direct=$hardcode_direct
17138
17139 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17140 # DIR into the resulting binary and the resulting library dependency is
17141 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17142 # library is relocated.
17143 hardcode_direct_absolute=$hardcode_direct_absolute
17144
17145 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17146 # into the resulting binary.
17147 hardcode_minus_L=$hardcode_minus_L
17148
17149 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17150 # into the resulting binary.
17151 hardcode_shlibpath_var=$hardcode_shlibpath_var
17152
17153 # Set to "yes" if building a shared library automatically hardcodes DIR
17154 # into the library and all subsequent libraries and executables linked
17155 # against it.
17156 hardcode_automatic=$hardcode_automatic
17157
17158 # Set to yes if linker adds runtime paths of dependent libraries
17159 # to runtime path list.
17160 inherit_rpath=$inherit_rpath
17161
17162 # Whether libtool must link a program against all its dependency libraries.
17163 link_all_deplibs=$link_all_deplibs
17164
17165 # Fix the shell variable \$srcfile for the compiler.
17166 fix_srcfile_path=$lt_fix_srcfile_path
17167
17168 # Set to "yes" if exported symbols are required.
17169 always_export_symbols=$always_export_symbols
17170
17171 # The commands to list exported symbols.
17172 export_symbols_cmds=$lt_export_symbols_cmds
17173
17174 # Symbols that should not be listed in the preloaded symbols.
17175 exclude_expsyms=$lt_exclude_expsyms
17176
17177 # Symbols that must always be exported.
17178 include_expsyms=$lt_include_expsyms
17179
17180 # Commands necessary for linking programs (against libraries) with templates.
17181 prelink_cmds=$lt_prelink_cmds
17182
17183 # Specify filename containing input files.
17184 file_list_spec=$lt_file_list_spec
17185
17186 # How to hardcode a shared library path into an executable.
17187 hardcode_action=$hardcode_action
17188
17189 # ### END LIBTOOL CONFIG
17190
17191 _LT_EOF
17192
17193 case $host_os in
17194 aix3*)
17195 cat <<\_LT_EOF >> "$cfgfile"
17196 # AIX sometimes has problems with the GCC collect2 program. For some
17197 # reason, if we set the COLLECT_NAMES environment variable, the problems
17198 # vanish in a puff of smoke.
17199 if test "X${COLLECT_NAMES+set}" != Xset; then
17200 COLLECT_NAMES=
17201 export COLLECT_NAMES
17202 fi
17203 _LT_EOF
17204 ;;
17205 esac
17206
17207
17208 ltmain="$ac_aux_dir/ltmain.sh"
17209
17210
17211 # We use sed instead of cat because bash on DJGPP gets confused if
17212 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17213 # text mode, it properly converts lines to CR/LF. This bash problem
17214 # is reportedly fixed, but why not run on old versions too?
17215 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17216 || (rm -f "$cfgfile"; exit 1)
17217
17218 case $xsi_shell in
17219 yes)
17220 cat << \_LT_EOF >> "$cfgfile"
17221
17222 # func_dirname file append nondir_replacement
17223 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17224 # otherwise set result to NONDIR_REPLACEMENT.
17225 func_dirname ()
17226 {
17227 case ${1} in
17228 */*) func_dirname_result="${1%/*}${2}" ;;
17229 * ) func_dirname_result="${3}" ;;
17230 esac
17231 }
17232
17233 # func_basename file
17234 func_basename ()
17235 {
17236 func_basename_result="${1##*/}"
17237 }
17238
17239 # func_dirname_and_basename file append nondir_replacement
17240 # perform func_basename and func_dirname in a single function
17241 # call:
17242 # dirname: Compute the dirname of FILE. If nonempty,
17243 # add APPEND to the result, otherwise set result
17244 # to NONDIR_REPLACEMENT.
17245 # value returned in "$func_dirname_result"
17246 # basename: Compute filename of FILE.
17247 # value retuned in "$func_basename_result"
17248 # Implementation must be kept synchronized with func_dirname
17249 # and func_basename. For efficiency, we do not delegate to
17250 # those functions but instead duplicate the functionality here.
17251 func_dirname_and_basename ()
17252 {
17253 case ${1} in
17254 */*) func_dirname_result="${1%/*}${2}" ;;
17255 * ) func_dirname_result="${3}" ;;
17256 esac
17257 func_basename_result="${1##*/}"
17258 }
17259
17260 # func_stripname prefix suffix name
17261 # strip PREFIX and SUFFIX off of NAME.
17262 # PREFIX and SUFFIX must not contain globbing or regex special
17263 # characters, hashes, percent signs, but SUFFIX may contain a leading
17264 # dot (in which case that matches only a dot).
17265 func_stripname ()
17266 {
17267 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17268 # positional parameters, so assign one to ordinary parameter first.
17269 func_stripname_result=${3}
17270 func_stripname_result=${func_stripname_result#"${1}"}
17271 func_stripname_result=${func_stripname_result%"${2}"}
17272 }
17273
17274 # func_opt_split
17275 func_opt_split ()
17276 {
17277 func_opt_split_opt=${1%%=*}
17278 func_opt_split_arg=${1#*=}
17279 }
17280
17281 # func_lo2o object
17282 func_lo2o ()
17283 {
17284 case ${1} in
17285 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17286 *) func_lo2o_result=${1} ;;
17287 esac
17288 }
17289
17290 # func_xform libobj-or-source
17291 func_xform ()
17292 {
17293 func_xform_result=${1%.*}.lo
17294 }
17295
17296 # func_arith arithmetic-term...
17297 func_arith ()
17298 {
17299 func_arith_result=$(( $* ))
17300 }
17301
17302 # func_len string
17303 # STRING may not start with a hyphen.
17304 func_len ()
17305 {
17306 func_len_result=${#1}
17307 }
17308
17309 _LT_EOF
17310 ;;
17311 *) # Bourne compatible functions.
17312 cat << \_LT_EOF >> "$cfgfile"
17313
17314 # func_dirname file append nondir_replacement
17315 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17316 # otherwise set result to NONDIR_REPLACEMENT.
17317 func_dirname ()
17318 {
17319 # Extract subdirectory from the argument.
17320 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17321 if test "X$func_dirname_result" = "X${1}"; then
17322 func_dirname_result="${3}"
17323 else
17324 func_dirname_result="$func_dirname_result${2}"
17325 fi
17326 }
17327
17328 # func_basename file
17329 func_basename ()
17330 {
17331 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17332 }
17333
17334
17335 # func_stripname prefix suffix name
17336 # strip PREFIX and SUFFIX off of NAME.
17337 # PREFIX and SUFFIX must not contain globbing or regex special
17338 # characters, hashes, percent signs, but SUFFIX may contain a leading
17339 # dot (in which case that matches only a dot).
17340 # func_strip_suffix prefix name
17341 func_stripname ()
17342 {
17343 case ${2} in
17344 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17345 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17346 esac
17347 }
17348
17349 # sed scripts:
17350 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17351 my_sed_long_arg='1s/^-[^=]*=//'
17352
17353 # func_opt_split
17354 func_opt_split ()
17355 {
17356 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17357 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17358 }
17359
17360 # func_lo2o object
17361 func_lo2o ()
17362 {
17363 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17364 }
17365
17366 # func_xform libobj-or-source
17367 func_xform ()
17368 {
17369 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17370 }
17371
17372 # func_arith arithmetic-term...
17373 func_arith ()
17374 {
17375 func_arith_result=`expr "$@"`
17376 }
17377
17378 # func_len string
17379 # STRING may not start with a hyphen.
17380 func_len ()
17381 {
17382 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17383 }
17384
17385 _LT_EOF
17386 esac
17387
17388 case $lt_shell_append in
17389 yes)
17390 cat << \_LT_EOF >> "$cfgfile"
17391
17392 # func_append var value
17393 # Append VALUE to the end of shell variable VAR.
17394 func_append ()
17395 {
17396 eval "$1+=\$2"
17397 }
17398 _LT_EOF
17399 ;;
17400 *)
17401 cat << \_LT_EOF >> "$cfgfile"
17402
17403 # func_append var value
17404 # Append VALUE to the end of shell variable VAR.
17405 func_append ()
17406 {
17407 eval "$1=\$$1\$2"
17408 }
17409
17410 _LT_EOF
17411 ;;
17412 esac
17413
17414
17415 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17416 || (rm -f "$cfgfile"; exit 1)
17417
17418 mv -f "$cfgfile" "$ofile" ||
17419 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17420 chmod +x "$ofile"
17421
17422 ;;
17423
17424 esac
17425 done # for ac_tag
17426
17427
17428 as_fn_exit 0
17429 _ACEOF
17430 ac_clean_files=$ac_clean_files_save
17431
17432 test $ac_write_fail = 0 ||
17433 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17434
17435
17436 # configure is writing to config.log, and then calls config.status.
17437 # config.status does its own redirection, appending to config.log.
17438 # Unfortunately, on DOS this fails, as config.log is still kept open
17439 # by configure, so config.status won't be able to write to it; its
17440 # output is simply discarded. So we exec the FD to /dev/null,
17441 # effectively closing config.log, so it can be properly (re)opened and
17442 # appended to by config.status. When coming back to configure, we
17443 # need to make the FD available again.
17444 if test "$no_create" != yes; then
17445 ac_cs_success=:
17446 ac_config_status_args=
17447 test "$silent" = yes &&
17448 ac_config_status_args="$ac_config_status_args --quiet"
17449 exec 5>/dev/null
17450 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17451 exec 5>>config.log
17452 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17453 # would make configure fail if this is the last instruction.
17454 $ac_cs_success || as_fn_exit 1
17455 fi
17456 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17458 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17459 fi
17460
17461
17462
17463 touch config.status.tmp
17464 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
17465 sed '/as_fn_exit 0/i \
17466 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
17467 touch --reference=Makefile Makefile.tmp \
17468 mv Makefile.tmp Makefile \
17469 ' config.status > config.status.tmp
17470 touch --reference=config.status config.status.tmp
17471 mv config.status.tmp config.status
17472 chmod +x config.status
17473 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
17474 touch --reference=Makefile Makefile.tmp
17475 mv Makefile.tmp Makefile
17476 else
17477 rm -f config.status.tmp
17478 fi