]> git.ipfire.org Git - thirdparty/gcc.git/blob - libbacktrace/configure
configure.ac: Check whether strnlen is declared.
[thirdparty/gcc.git] / libbacktrace / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libbacktrace'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="backtrace.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 NATIVE_FALSE
606 NATIVE_TRUE
607 BACKTRACE_USES_MALLOC
608 ALLOC_FILE
609 VIEW_FILE
610 BACKTRACE_SUPPORTED
611 FORMAT_FILE
612 BACKTRACE_SUPPORTS_THREADS
613 PIC_FLAG
614 WARN_FLAGS
615 BACKTRACE_FILE
616 multi_basedir
617 CPP
618 OTOOL64
619 OTOOL
620 LIPO
621 NMEDIT
622 DSYMUTIL
623 AR
624 OBJDUMP
625 LN_S
626 NM
627 ac_ct_DUMPBIN
628 DUMPBIN
629 LD
630 FGREP
631 EGREP
632 GREP
633 SED
634 LIBTOOL
635 RANLIB
636 am__fastdepCC_FALSE
637 am__fastdepCC_TRUE
638 CCDEPMODE
639 AMDEPBACKSLASH
640 AMDEP_FALSE
641 AMDEP_TRUE
642 am__quote
643 am__include
644 DEPDIR
645 OBJEXT
646 EXEEXT
647 ac_ct_CC
648 CPPFLAGS
649 LDFLAGS
650 CFLAGS
651 CC
652 MAINT
653 MAINTAINER_MODE_FALSE
654 MAINTAINER_MODE_TRUE
655 am__untar
656 am__tar
657 AMTAR
658 am__leading_dot
659 SET_MAKE
660 AWK
661 mkdir_p
662 MKDIR_P
663 INSTALL_STRIP_PROGRAM
664 STRIP
665 install_sh
666 MAKEINFO
667 AUTOHEADER
668 AUTOMAKE
669 AUTOCONF
670 ACLOCAL
671 VERSION
672 PACKAGE
673 CYGPATH_W
674 am__isrc
675 INSTALL_DATA
676 INSTALL_SCRIPT
677 INSTALL_PROGRAM
678 libtool_VERSION
679 target_os
680 target_vendor
681 target_cpu
682 target
683 host_os
684 host_vendor
685 host_cpu
686 host
687 build_os
688 build_vendor
689 build_cpu
690 build
691 target_alias
692 host_alias
693 build_alias
694 LIBS
695 ECHO_T
696 ECHO_N
697 ECHO_C
698 DEFS
699 mandir
700 localedir
701 libdir
702 psdir
703 pdfdir
704 dvidir
705 htmldir
706 infodir
707 docdir
708 oldincludedir
709 includedir
710 localstatedir
711 sharedstatedir
712 sysconfdir
713 datadir
714 datarootdir
715 libexecdir
716 sbindir
717 bindir
718 program_transform_name
719 prefix
720 exec_prefix
721 PACKAGE_URL
722 PACKAGE_BUGREPORT
723 PACKAGE_STRING
724 PACKAGE_VERSION
725 PACKAGE_TARNAME
726 PACKAGE_NAME
727 PATH_SEPARATOR
728 SHELL'
729 ac_subst_files=''
730 ac_user_opts='
731 enable_option_checking
732 enable_maintainer_mode
733 with_target_subdir
734 enable_dependency_tracking
735 enable_shared
736 enable_static
737 with_pic
738 enable_fast_install
739 with_gnu_ld
740 enable_libtool_lock
741 enable_multilib
742 with_system_libunwind
743 '
744 ac_precious_vars='build_alias
745 host_alias
746 target_alias
747 CPP
748 CPPFLAGS'
749
750
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 ac_unrecognized_opts=
755 ac_unrecognized_sep=
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
758 cache_file=/dev/null
759 exec_prefix=NONE
760 no_create=
761 no_recursion=
762 prefix=NONE
763 program_prefix=NONE
764 program_suffix=NONE
765 program_transform_name=s,x,x,
766 silent=
767 site=
768 srcdir=
769 verbose=
770 x_includes=NONE
771 x_libraries=NONE
772
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir='${exec_prefix}/bin'
780 sbindir='${exec_prefix}/sbin'
781 libexecdir='${exec_prefix}/libexec'
782 datarootdir='${prefix}/share'
783 datadir='${datarootdir}'
784 sysconfdir='${prefix}/etc'
785 sharedstatedir='${prefix}/com'
786 localstatedir='${prefix}/var'
787 includedir='${prefix}/include'
788 oldincludedir='/usr/include'
789 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
790 infodir='${datarootdir}/info'
791 htmldir='${docdir}'
792 dvidir='${docdir}'
793 pdfdir='${docdir}'
794 psdir='${docdir}'
795 libdir='${exec_prefix}/lib'
796 localedir='${datarootdir}/locale'
797 mandir='${datarootdir}/man'
798
799 ac_prev=
800 ac_dashdash=
801 for ac_option
802 do
803 # If the previous option needs an argument, assign it.
804 if test -n "$ac_prev"; then
805 eval $ac_prev=\$ac_option
806 ac_prev=
807 continue
808 fi
809
810 case $ac_option in
811 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
812 *) ac_optarg=yes ;;
813 esac
814
815 # Accept the important Cygnus configure options, so we can diagnose typos.
816
817 case $ac_dashdash$ac_option in
818 --)
819 ac_dashdash=yes ;;
820
821 -bindir | --bindir | --bindi | --bind | --bin | --bi)
822 ac_prev=bindir ;;
823 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824 bindir=$ac_optarg ;;
825
826 -build | --build | --buil | --bui | --bu)
827 ac_prev=build_alias ;;
828 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
829 build_alias=$ac_optarg ;;
830
831 -cache-file | --cache-file | --cache-fil | --cache-fi \
832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
833 ac_prev=cache_file ;;
834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
836 cache_file=$ac_optarg ;;
837
838 --config-cache | -C)
839 cache_file=config.cache ;;
840
841 -datadir | --datadir | --datadi | --datad)
842 ac_prev=datadir ;;
843 -datadir=* | --datadir=* | --datadi=* | --datad=*)
844 datadir=$ac_optarg ;;
845
846 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
847 | --dataroo | --dataro | --datar)
848 ac_prev=datarootdir ;;
849 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
850 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
851 datarootdir=$ac_optarg ;;
852
853 -disable-* | --disable-*)
854 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
857 as_fn_error "invalid feature name: $ac_useropt"
858 ac_useropt_orig=$ac_useropt
859 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860 case $ac_user_opts in
861 *"
862 "enable_$ac_useropt"
863 "*) ;;
864 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
865 ac_unrecognized_sep=', ';;
866 esac
867 eval enable_$ac_useropt=no ;;
868
869 -docdir | --docdir | --docdi | --doc | --do)
870 ac_prev=docdir ;;
871 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
872 docdir=$ac_optarg ;;
873
874 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
875 ac_prev=dvidir ;;
876 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
877 dvidir=$ac_optarg ;;
878
879 -enable-* | --enable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 as_fn_error "invalid feature name: $ac_useropt"
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
887 *"
888 "enable_$ac_useropt"
889 "*) ;;
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
892 esac
893 eval enable_$ac_useropt=\$ac_optarg ;;
894
895 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
896 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
897 | --exec | --exe | --ex)
898 ac_prev=exec_prefix ;;
899 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
900 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
901 | --exec=* | --exe=* | --ex=*)
902 exec_prefix=$ac_optarg ;;
903
904 -gas | --gas | --ga | --g)
905 # Obsolete; use --with-gas.
906 with_gas=yes ;;
907
908 -help | --help | --hel | --he | -h)
909 ac_init_help=long ;;
910 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
911 ac_init_help=recursive ;;
912 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
913 ac_init_help=short ;;
914
915 -host | --host | --hos | --ho)
916 ac_prev=host_alias ;;
917 -host=* | --host=* | --hos=* | --ho=*)
918 host_alias=$ac_optarg ;;
919
920 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
921 ac_prev=htmldir ;;
922 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
923 | --ht=*)
924 htmldir=$ac_optarg ;;
925
926 -includedir | --includedir | --includedi | --included | --include \
927 | --includ | --inclu | --incl | --inc)
928 ac_prev=includedir ;;
929 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
930 | --includ=* | --inclu=* | --incl=* | --inc=*)
931 includedir=$ac_optarg ;;
932
933 -infodir | --infodir | --infodi | --infod | --info | --inf)
934 ac_prev=infodir ;;
935 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
936 infodir=$ac_optarg ;;
937
938 -libdir | --libdir | --libdi | --libd)
939 ac_prev=libdir ;;
940 -libdir=* | --libdir=* | --libdi=* | --libd=*)
941 libdir=$ac_optarg ;;
942
943 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
944 | --libexe | --libex | --libe)
945 ac_prev=libexecdir ;;
946 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
947 | --libexe=* | --libex=* | --libe=*)
948 libexecdir=$ac_optarg ;;
949
950 -localedir | --localedir | --localedi | --localed | --locale)
951 ac_prev=localedir ;;
952 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
953 localedir=$ac_optarg ;;
954
955 -localstatedir | --localstatedir | --localstatedi | --localstated \
956 | --localstate | --localstat | --localsta | --localst | --locals)
957 ac_prev=localstatedir ;;
958 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
959 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
960 localstatedir=$ac_optarg ;;
961
962 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
963 ac_prev=mandir ;;
964 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
965 mandir=$ac_optarg ;;
966
967 -nfp | --nfp | --nf)
968 # Obsolete; use --without-fp.
969 with_fp=no ;;
970
971 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
972 | --no-cr | --no-c | -n)
973 no_create=yes ;;
974
975 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
976 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
977 no_recursion=yes ;;
978
979 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
980 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
981 | --oldin | --oldi | --old | --ol | --o)
982 ac_prev=oldincludedir ;;
983 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
984 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
985 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
986 oldincludedir=$ac_optarg ;;
987
988 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
989 ac_prev=prefix ;;
990 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
991 prefix=$ac_optarg ;;
992
993 -program-prefix | --program-prefix | --program-prefi | --program-pref \
994 | --program-pre | --program-pr | --program-p)
995 ac_prev=program_prefix ;;
996 -program-prefix=* | --program-prefix=* | --program-prefi=* \
997 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
998 program_prefix=$ac_optarg ;;
999
1000 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1001 | --program-suf | --program-su | --program-s)
1002 ac_prev=program_suffix ;;
1003 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1004 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1005 program_suffix=$ac_optarg ;;
1006
1007 -program-transform-name | --program-transform-name \
1008 | --program-transform-nam | --program-transform-na \
1009 | --program-transform-n | --program-transform- \
1010 | --program-transform | --program-transfor \
1011 | --program-transfo | --program-transf \
1012 | --program-trans | --program-tran \
1013 | --progr-tra | --program-tr | --program-t)
1014 ac_prev=program_transform_name ;;
1015 -program-transform-name=* | --program-transform-name=* \
1016 | --program-transform-nam=* | --program-transform-na=* \
1017 | --program-transform-n=* | --program-transform-=* \
1018 | --program-transform=* | --program-transfor=* \
1019 | --program-transfo=* | --program-transf=* \
1020 | --program-trans=* | --program-tran=* \
1021 | --progr-tra=* | --program-tr=* | --program-t=*)
1022 program_transform_name=$ac_optarg ;;
1023
1024 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1025 ac_prev=pdfdir ;;
1026 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1027 pdfdir=$ac_optarg ;;
1028
1029 -psdir | --psdir | --psdi | --psd | --ps)
1030 ac_prev=psdir ;;
1031 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1032 psdir=$ac_optarg ;;
1033
1034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1035 | -silent | --silent | --silen | --sile | --sil)
1036 silent=yes ;;
1037
1038 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1039 ac_prev=sbindir ;;
1040 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1041 | --sbi=* | --sb=*)
1042 sbindir=$ac_optarg ;;
1043
1044 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1045 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1046 | --sharedst | --shareds | --shared | --share | --shar \
1047 | --sha | --sh)
1048 ac_prev=sharedstatedir ;;
1049 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1050 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1051 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1052 | --sha=* | --sh=*)
1053 sharedstatedir=$ac_optarg ;;
1054
1055 -site | --site | --sit)
1056 ac_prev=site ;;
1057 -site=* | --site=* | --sit=*)
1058 site=$ac_optarg ;;
1059
1060 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1061 ac_prev=srcdir ;;
1062 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1063 srcdir=$ac_optarg ;;
1064
1065 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1066 | --syscon | --sysco | --sysc | --sys | --sy)
1067 ac_prev=sysconfdir ;;
1068 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1069 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1070 sysconfdir=$ac_optarg ;;
1071
1072 -target | --target | --targe | --targ | --tar | --ta | --t)
1073 ac_prev=target_alias ;;
1074 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1075 target_alias=$ac_optarg ;;
1076
1077 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1078 verbose=yes ;;
1079
1080 -version | --version | --versio | --versi | --vers | -V)
1081 ac_init_version=: ;;
1082
1083 -with-* | --with-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error "invalid package name: $ac_useropt"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1091 *"
1092 "with_$ac_useropt"
1093 "*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval with_$ac_useropt=\$ac_optarg ;;
1098
1099 -without-* | --without-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "with_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=no ;;
1114
1115 --x)
1116 # Obsolete; use --with-x.
1117 with_x=yes ;;
1118
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124 x_includes=$ac_optarg ;;
1125
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131 x_libraries=$ac_optarg ;;
1132
1133 -*) as_fn_error "unrecognized option: \`$ac_option'
1134 Try \`$0 --help' for more information."
1135 ;;
1136
1137 *=*)
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 case $ac_envvar in #(
1141 '' | [0-9]* | *[!_$as_cr_alnum]* )
1142 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1143 esac
1144 eval $ac_envvar=\$ac_optarg
1145 export $ac_envvar ;;
1146
1147 *)
1148 # FIXME: should be removed in autoconf 3.0.
1149 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1153 ;;
1154
1155 esac
1156 done
1157
1158 if test -n "$ac_prev"; then
1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160 as_fn_error "missing argument to $ac_option"
1161 fi
1162
1163 if test -n "$ac_unrecognized_opts"; then
1164 case $enable_option_checking in
1165 no) ;;
1166 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1167 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1168 esac
1169 fi
1170
1171 # Check all directory arguments for consistency.
1172 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173 datadir sysconfdir sharedstatedir localstatedir includedir \
1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175 libdir localedir mandir
1176 do
1177 eval ac_val=\$$ac_var
1178 # Remove trailing slashes.
1179 case $ac_val in
1180 */ )
1181 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1182 eval $ac_var=\$ac_val;;
1183 esac
1184 # Be sure to have absolute directory names.
1185 case $ac_val in
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188 esac
1189 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1190 done
1191
1192 # There might be people who depend on the old broken behavior: `$host'
1193 # used to hold the argument of --host etc.
1194 # FIXME: To remove some day.
1195 build=$build_alias
1196 host=$host_alias
1197 target=$target_alias
1198
1199 # FIXME: To remove some day.
1200 if test "x$host_alias" != x; then
1201 if test "x$build_alias" = x; then
1202 cross_compiling=maybe
1203 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1204 If a cross compiler is detected then cross compile mode will be used." >&2
1205 elif test "x$build_alias" != "x$host_alias"; then
1206 cross_compiling=yes
1207 fi
1208 fi
1209
1210 ac_tool_prefix=
1211 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212
1213 test "$silent" = yes && exec 6>/dev/null
1214
1215
1216 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1217 ac_ls_di=`ls -di .` &&
1218 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1219 as_fn_error "working directory cannot be determined"
1220 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1221 as_fn_error "pwd does not report name of working directory"
1222
1223
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226 ac_srcdir_defaulted=yes
1227 # Try the directory containing this script, then the parent directory.
1228 ac_confdir=`$as_dirname -- "$as_myself" ||
1229 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$as_myself" : 'X\(//\)[^/]' \| \
1231 X"$as_myself" : 'X\(//\)$' \| \
1232 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1233 $as_echo X"$as_myself" |
1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 s//\1/
1236 q
1237 }
1238 /^X\(\/\/\)[^/].*/{
1239 s//\1/
1240 q
1241 }
1242 /^X\(\/\/\)$/{
1243 s//\1/
1244 q
1245 }
1246 /^X\(\/\).*/{
1247 s//\1/
1248 q
1249 }
1250 s/.*/./; q'`
1251 srcdir=$ac_confdir
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 srcdir=..
1254 fi
1255 else
1256 ac_srcdir_defaulted=no
1257 fi
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1261 fi
1262 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263 ac_abs_confdir=`(
1264 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1265 pwd)`
1266 # When building in place, set srcdir=.
1267 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 srcdir=.
1269 fi
1270 # Remove unnecessary trailing slashes from srcdir.
1271 # Double slashes in file names in object file debugging info
1272 # mess up M-x gdb in Emacs.
1273 case $srcdir in
1274 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275 esac
1276 for ac_var in $ac_precious_vars; do
1277 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_env_${ac_var}_value=\$${ac_var}
1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281 done
1282
1283 #
1284 # Report the --help message.
1285 #
1286 if test "$ac_init_help" = "long"; then
1287 # Omit some internal or obsolete options to make the list less imposing.
1288 # This message is too long to be a string in the A/UX 3.1 sh.
1289 cat <<_ACEOF
1290 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1291
1292 Usage: $0 [OPTION]... [VAR=VALUE]...
1293
1294 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295 VAR=VALUE. See below for descriptions of some of the useful variables.
1296
1297 Defaults for the options are specified in brackets.
1298
1299 Configuration:
1300 -h, --help display this help and exit
1301 --help=short display options specific to this package
1302 --help=recursive display the short help of all the included packages
1303 -V, --version display version information and exit
1304 -q, --quiet, --silent do not print \`checking...' messages
1305 --cache-file=FILE cache test results in FILE [disabled]
1306 -C, --config-cache alias for \`--cache-file=config.cache'
1307 -n, --no-create do not create output files
1308 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309
1310 Installation directories:
1311 --prefix=PREFIX install architecture-independent files in PREFIX
1312 [$ac_default_prefix]
1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1314 [PREFIX]
1315
1316 By default, \`make install' will install all the files in
1317 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1318 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319 for instance \`--prefix=\$HOME'.
1320
1321 For better control, use the options below.
1322
1323 Fine tuning of the installation directories:
1324 --bindir=DIR user executables [EPREFIX/bin]
1325 --sbindir=DIR system admin executables [EPREFIX/sbin]
1326 --libexecdir=DIR program executables [EPREFIX/libexec]
1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1330 --libdir=DIR object code libraries [EPREFIX/lib]
1331 --includedir=DIR C header files [PREFIX/include]
1332 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1335 --infodir=DIR info documentation [DATAROOTDIR/info]
1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1337 --mandir=DIR man documentation [DATAROOTDIR/man]
1338 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1339 --htmldir=DIR html documentation [DOCDIR]
1340 --dvidir=DIR dvi documentation [DOCDIR]
1341 --pdfdir=DIR pdf documentation [DOCDIR]
1342 --psdir=DIR ps documentation [DOCDIR]
1343 _ACEOF
1344
1345 cat <<\_ACEOF
1346
1347 Program names:
1348 --program-prefix=PREFIX prepend PREFIX to installed program names
1349 --program-suffix=SUFFIX append SUFFIX to installed program names
1350 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1351
1352 System types:
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1355 --target=TARGET configure for building compilers for TARGET [HOST]
1356 _ACEOF
1357 fi
1358
1359 if test -n "$ac_init_help"; then
1360 case $ac_init_help in
1361 short | recursive ) echo "Configuration of package-unused version-unused:";;
1362 esac
1363 cat <<\_ACEOF
1364
1365 Optional Features:
1366 --disable-option-checking ignore unrecognized --enable/--with options
1367 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1368 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1369 --enable-maintainer-mode enable make rules and dependencies not useful
1370 (and sometimes confusing) to the casual installer
1371 --disable-dependency-tracking speeds up one-time build
1372 --enable-dependency-tracking do not reject slow dependency extractors
1373 --enable-shared[=PKGS] build shared libraries [default=no]
1374 --enable-static[=PKGS] build static libraries [default=yes]
1375 --enable-fast-install[=PKGS]
1376 optimize for fast installation [default=yes]
1377 --disable-libtool-lock avoid locking (might break parallel builds)
1378 --enable-multilib build many library versions (default)
1379
1380 Optional Packages:
1381 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1382 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1383 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1384 --with-pic try to use only PIC/non-PIC objects [default=use
1385 both]
1386 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1387 --with-system-libunwind use installed libunwind
1388
1389 Some influential environment variables:
1390 CC C compiler command
1391 CFLAGS C compiler flags
1392 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1393 nonstandard directory <lib dir>
1394 LIBS libraries to pass to the linker, e.g. -l<library>
1395 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1396 you have headers in a nonstandard directory <include dir>
1397 CPP C preprocessor
1398
1399 Use these variables to override the choices made by `configure' or to help
1400 it to find libraries and programs with nonstandard names/locations.
1401
1402 Report bugs to the package provider.
1403 _ACEOF
1404 ac_status=$?
1405 fi
1406
1407 if test "$ac_init_help" = "recursive"; then
1408 # If there are subdirs, report their specific --help.
1409 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1410 test -d "$ac_dir" ||
1411 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1412 continue
1413 ac_builddir=.
1414
1415 case "$ac_dir" in
1416 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 *)
1418 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1419 # A ".." for each directory in $ac_dir_suffix.
1420 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1421 case $ac_top_builddir_sub in
1422 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1424 esac ;;
1425 esac
1426 ac_abs_top_builddir=$ac_pwd
1427 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1428 # for backward compatibility:
1429 ac_top_builddir=$ac_top_build_prefix
1430
1431 case $srcdir in
1432 .) # We are building in place.
1433 ac_srcdir=.
1434 ac_top_srcdir=$ac_top_builddir_sub
1435 ac_abs_top_srcdir=$ac_pwd ;;
1436 [\\/]* | ?:[\\/]* ) # Absolute name.
1437 ac_srcdir=$srcdir$ac_dir_suffix;
1438 ac_top_srcdir=$srcdir
1439 ac_abs_top_srcdir=$srcdir ;;
1440 *) # Relative name.
1441 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1442 ac_top_srcdir=$ac_top_build_prefix$srcdir
1443 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1444 esac
1445 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1446
1447 cd "$ac_dir" || { ac_status=$?; continue; }
1448 # Check for guested configure.
1449 if test -f "$ac_srcdir/configure.gnu"; then
1450 echo &&
1451 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1452 elif test -f "$ac_srcdir/configure"; then
1453 echo &&
1454 $SHELL "$ac_srcdir/configure" --help=recursive
1455 else
1456 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1457 fi || ac_status=$?
1458 cd "$ac_pwd" || { ac_status=$?; break; }
1459 done
1460 fi
1461
1462 test -n "$ac_init_help" && exit $ac_status
1463 if $ac_init_version; then
1464 cat <<\_ACEOF
1465 package-unused configure version-unused
1466 generated by GNU Autoconf 2.64
1467
1468 Copyright (C) 2009 Free Software Foundation, Inc.
1469 This configure script is free software; the Free Software Foundation
1470 gives unlimited permission to copy, distribute and modify it.
1471 _ACEOF
1472 exit
1473 fi
1474
1475 ## ------------------------ ##
1476 ## Autoconf initialization. ##
1477 ## ------------------------ ##
1478
1479 # ac_fn_c_try_compile LINENO
1480 # --------------------------
1481 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1482 ac_fn_c_try_compile ()
1483 {
1484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1485 rm -f conftest.$ac_objext
1486 if { { ac_try="$ac_compile"
1487 case "(($ac_try" in
1488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1489 *) ac_try_echo=$ac_try;;
1490 esac
1491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1492 $as_echo "$ac_try_echo"; } >&5
1493 (eval "$ac_compile") 2>conftest.err
1494 ac_status=$?
1495 if test -s conftest.err; then
1496 grep -v '^ *+' conftest.err >conftest.er1
1497 cat conftest.er1 >&5
1498 mv -f conftest.er1 conftest.err
1499 fi
1500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1501 test $ac_status = 0; } && {
1502 test -z "$ac_c_werror_flag" ||
1503 test ! -s conftest.err
1504 } && test -s conftest.$ac_objext; then :
1505 ac_retval=0
1506 else
1507 $as_echo "$as_me: failed program was:" >&5
1508 sed 's/^/| /' conftest.$ac_ext >&5
1509
1510 ac_retval=1
1511 fi
1512 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1513 return $ac_retval
1514
1515 } # ac_fn_c_try_compile
1516
1517 # ac_fn_c_try_link LINENO
1518 # -----------------------
1519 # Try to link conftest.$ac_ext, and return whether this succeeded.
1520 ac_fn_c_try_link ()
1521 {
1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523 rm -f conftest.$ac_objext conftest$ac_exeext
1524 if { { ac_try="$ac_link"
1525 case "(($ac_try" in
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1528 esac
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_link") 2>conftest.err
1532 ac_status=$?
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1537 fi
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } && {
1540 test -z "$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1542 } && test -s conftest$ac_exeext && {
1543 test "$cross_compiling" = yes ||
1544 $as_test_x conftest$ac_exeext
1545 }; then :
1546 ac_retval=0
1547 else
1548 $as_echo "$as_me: failed program was:" >&5
1549 sed 's/^/| /' conftest.$ac_ext >&5
1550
1551 ac_retval=1
1552 fi
1553 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1554 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1555 # interfere with the next link command; also delete a directory that is
1556 # left behind by Apple's compiler. We do this before executing the actions.
1557 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1558 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1559 return $ac_retval
1560
1561 } # ac_fn_c_try_link
1562
1563 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1564 # -------------------------------------------------------
1565 # Tests whether HEADER exists and can be compiled using the include files in
1566 # INCLUDES, setting the cache variable VAR accordingly.
1567 ac_fn_c_check_header_compile ()
1568 {
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1571 $as_echo_n "checking for $2... " >&6; }
1572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1573 $as_echo_n "(cached) " >&6
1574 else
1575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1576 /* end confdefs.h. */
1577 $4
1578 #include <$2>
1579 _ACEOF
1580 if ac_fn_c_try_compile "$LINENO"; then :
1581 eval "$3=yes"
1582 else
1583 eval "$3=no"
1584 fi
1585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1586 fi
1587 eval ac_res=\$$3
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1589 $as_echo "$ac_res" >&6; }
1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591
1592 } # ac_fn_c_check_header_compile
1593
1594 # ac_fn_c_try_cpp LINENO
1595 # ----------------------
1596 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_cpp ()
1598 {
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 if { { ac_try="$ac_cpp conftest.$ac_ext"
1601 case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } >/dev/null && {
1616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 }; then :
1619 ac_retval=0
1620 else
1621 $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625 fi
1626 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1627 return $ac_retval
1628
1629 } # ac_fn_c_try_cpp
1630
1631 # ac_fn_c_try_run LINENO
1632 # ----------------------
1633 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1634 # that executables *can* be run.
1635 ac_fn_c_try_run ()
1636 {
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 if { { ac_try="$ac_link"
1639 case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_link") 2>&5
1646 ac_status=$?
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1649 { { case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_try") 2>&5
1656 ac_status=$?
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; }; }; then :
1659 ac_retval=0
1660 else
1661 $as_echo "$as_me: program exited with status $ac_status" >&5
1662 $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1664
1665 ac_retval=$ac_status
1666 fi
1667 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 return $ac_retval
1670
1671 } # ac_fn_c_try_run
1672
1673 # ac_fn_c_check_func LINENO FUNC VAR
1674 # ----------------------------------
1675 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1676 ac_fn_c_check_func ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682 $as_echo_n "(cached) " >&6
1683 else
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1686 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1688 #define $2 innocuous_$2
1689
1690 /* System header to define __stub macros and hopefully few prototypes,
1691 which can conflict with char $2 (); below.
1692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1693 <limits.h> exists even on freestanding compilers. */
1694
1695 #ifdef __STDC__
1696 # include <limits.h>
1697 #else
1698 # include <assert.h>
1699 #endif
1700
1701 #undef $2
1702
1703 /* Override any GCC internal prototype to avoid an error.
1704 Use char because int might match the return type of a GCC
1705 builtin and then its argument prototype would still apply. */
1706 #ifdef __cplusplus
1707 extern "C"
1708 #endif
1709 char $2 ();
1710 /* The GNU C library defines this for functions which it implements
1711 to always fail with ENOSYS. Some functions are actually named
1712 something starting with __ and the normal name is an alias. */
1713 #if defined __stub_$2 || defined __stub___$2
1714 choke me
1715 #endif
1716
1717 int
1718 main ()
1719 {
1720 return $2 ();
1721 ;
1722 return 0;
1723 }
1724 _ACEOF
1725 if ac_fn_c_try_link "$LINENO"; then :
1726 eval "$3=yes"
1727 else
1728 eval "$3=no"
1729 fi
1730 rm -f core conftest.err conftest.$ac_objext \
1731 conftest$ac_exeext conftest.$ac_ext
1732 fi
1733 eval ac_res=\$$3
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1736 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737
1738 } # ac_fn_c_check_func
1739
1740 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1741 # -------------------------------------------------------
1742 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1743 # the include files in INCLUDES and setting the cache variable VAR
1744 # accordingly.
1745 ac_fn_c_check_header_mongrel ()
1746 {
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1752 $as_echo_n "(cached) " >&6
1753 fi
1754 eval ac_res=\$$3
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1757 else
1758 # Is the header compilable?
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1760 $as_echo_n "checking $2 usability... " >&6; }
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 $4
1764 #include <$2>
1765 _ACEOF
1766 if ac_fn_c_try_compile "$LINENO"; then :
1767 ac_header_compiler=yes
1768 else
1769 ac_header_compiler=no
1770 fi
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1773 $as_echo "$ac_header_compiler" >&6; }
1774
1775 # Is the header present?
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1777 $as_echo_n "checking $2 presence... " >&6; }
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 #include <$2>
1781 _ACEOF
1782 if ac_fn_c_try_cpp "$LINENO"; then :
1783 ac_header_preproc=yes
1784 else
1785 ac_header_preproc=no
1786 fi
1787 rm -f conftest.err conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1789 $as_echo "$ac_header_preproc" >&6; }
1790
1791 # So? What about this header?
1792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1793 yes:no: )
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1795 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1797 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1798 ;;
1799 no:yes:* )
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1801 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1803 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1805 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1807 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1810 ;;
1811 esac
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813 $as_echo_n "checking for $2... " >&6; }
1814 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1815 $as_echo_n "(cached) " >&6
1816 else
1817 eval "$3=\$ac_header_compiler"
1818 fi
1819 eval ac_res=\$$3
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822 fi
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824
1825 } # ac_fn_c_check_header_mongrel
1826
1827 # ac_fn_c_check_decl LINENO SYMBOL VAR
1828 # ------------------------------------
1829 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1830 ac_fn_c_check_decl ()
1831 {
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 as_decl_name=`echo $2|sed 's/ *(.*//'`
1834 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1836 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1837 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1838 $as_echo_n "(cached) " >&6
1839 else
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1842 $4
1843 int
1844 main ()
1845 {
1846 #ifndef $as_decl_name
1847 #ifdef __cplusplus
1848 (void) $as_decl_use;
1849 #else
1850 (void) $as_decl_name;
1851 #endif
1852 #endif
1853
1854 ;
1855 return 0;
1856 }
1857 _ACEOF
1858 if ac_fn_c_try_compile "$LINENO"; then :
1859 eval "$3=yes"
1860 else
1861 eval "$3=no"
1862 fi
1863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 fi
1865 eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869
1870 } # ac_fn_c_check_decl
1871 cat >config.log <<_ACEOF
1872 This file contains any messages produced by compilers while
1873 running configure, to aid debugging if configure makes a mistake.
1874
1875 It was created by package-unused $as_me version-unused, which was
1876 generated by GNU Autoconf 2.64. Invocation command line was
1877
1878 $ $0 $@
1879
1880 _ACEOF
1881 exec 5>>config.log
1882 {
1883 cat <<_ASUNAME
1884 ## --------- ##
1885 ## Platform. ##
1886 ## --------- ##
1887
1888 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1889 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1890 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1891 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1892 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1893
1894 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1895 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1896
1897 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1898 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1899 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1900 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1901 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1902 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1903 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1904
1905 _ASUNAME
1906
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 for as_dir in $PATH
1909 do
1910 IFS=$as_save_IFS
1911 test -z "$as_dir" && as_dir=.
1912 $as_echo "PATH: $as_dir"
1913 done
1914 IFS=$as_save_IFS
1915
1916 } >&5
1917
1918 cat >&5 <<_ACEOF
1919
1920
1921 ## ----------- ##
1922 ## Core tests. ##
1923 ## ----------- ##
1924
1925 _ACEOF
1926
1927
1928 # Keep a trace of the command line.
1929 # Strip out --no-create and --no-recursion so they do not pile up.
1930 # Strip out --silent because we don't want to record it for future runs.
1931 # Also quote any args containing shell meta-characters.
1932 # Make two passes to allow for proper duplicate-argument suppression.
1933 ac_configure_args=
1934 ac_configure_args0=
1935 ac_configure_args1=
1936 ac_must_keep_next=false
1937 for ac_pass in 1 2
1938 do
1939 for ac_arg
1940 do
1941 case $ac_arg in
1942 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1944 | -silent | --silent | --silen | --sile | --sil)
1945 continue ;;
1946 *\'*)
1947 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1948 esac
1949 case $ac_pass in
1950 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1951 2)
1952 as_fn_append ac_configure_args1 " '$ac_arg'"
1953 if test $ac_must_keep_next = true; then
1954 ac_must_keep_next=false # Got value, back to normal.
1955 else
1956 case $ac_arg in
1957 *=* | --config-cache | -C | -disable-* | --disable-* \
1958 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1959 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1960 | -with-* | --with-* | -without-* | --without-* | --x)
1961 case "$ac_configure_args0 " in
1962 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1963 esac
1964 ;;
1965 -* ) ac_must_keep_next=true ;;
1966 esac
1967 fi
1968 as_fn_append ac_configure_args " '$ac_arg'"
1969 ;;
1970 esac
1971 done
1972 done
1973 { ac_configure_args0=; unset ac_configure_args0;}
1974 { ac_configure_args1=; unset ac_configure_args1;}
1975
1976 # When interrupted or exit'd, cleanup temporary files, and complete
1977 # config.log. We remove comments because anyway the quotes in there
1978 # would cause problems or look ugly.
1979 # WARNING: Use '\'' to represent an apostrophe within the trap.
1980 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1981 trap 'exit_status=$?
1982 # Save into config.log some information that might help in debugging.
1983 {
1984 echo
1985
1986 cat <<\_ASBOX
1987 ## ---------------- ##
1988 ## Cache variables. ##
1989 ## ---------------- ##
1990 _ASBOX
1991 echo
1992 # The following way of writing the cache mishandles newlines in values,
1993 (
1994 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1995 eval ac_val=\$$ac_var
1996 case $ac_val in #(
1997 *${as_nl}*)
1998 case $ac_var in #(
1999 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2000 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2001 esac
2002 case $ac_var in #(
2003 _ | IFS | as_nl) ;; #(
2004 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2005 *) { eval $ac_var=; unset $ac_var;} ;;
2006 esac ;;
2007 esac
2008 done
2009 (set) 2>&1 |
2010 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2011 *${as_nl}ac_space=\ *)
2012 sed -n \
2013 "s/'\''/'\''\\\\'\'''\''/g;
2014 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2015 ;; #(
2016 *)
2017 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2018 ;;
2019 esac |
2020 sort
2021 )
2022 echo
2023
2024 cat <<\_ASBOX
2025 ## ----------------- ##
2026 ## Output variables. ##
2027 ## ----------------- ##
2028 _ASBOX
2029 echo
2030 for ac_var in $ac_subst_vars
2031 do
2032 eval ac_val=\$$ac_var
2033 case $ac_val in
2034 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2035 esac
2036 $as_echo "$ac_var='\''$ac_val'\''"
2037 done | sort
2038 echo
2039
2040 if test -n "$ac_subst_files"; then
2041 cat <<\_ASBOX
2042 ## ------------------- ##
2043 ## File substitutions. ##
2044 ## ------------------- ##
2045 _ASBOX
2046 echo
2047 for ac_var in $ac_subst_files
2048 do
2049 eval ac_val=\$$ac_var
2050 case $ac_val in
2051 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052 esac
2053 $as_echo "$ac_var='\''$ac_val'\''"
2054 done | sort
2055 echo
2056 fi
2057
2058 if test -s confdefs.h; then
2059 cat <<\_ASBOX
2060 ## ----------- ##
2061 ## confdefs.h. ##
2062 ## ----------- ##
2063 _ASBOX
2064 echo
2065 cat confdefs.h
2066 echo
2067 fi
2068 test "$ac_signal" != 0 &&
2069 $as_echo "$as_me: caught signal $ac_signal"
2070 $as_echo "$as_me: exit $exit_status"
2071 } >&5
2072 rm -f core *.core core.conftest.* &&
2073 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2074 exit $exit_status
2075 ' 0
2076 for ac_signal in 1 2 13 15; do
2077 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2078 done
2079 ac_signal=0
2080
2081 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2082 rm -f -r conftest* confdefs.h
2083
2084 $as_echo "/* confdefs.h */" > confdefs.h
2085
2086 # Predefined preprocessor variables.
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_NAME "$PACKAGE_NAME"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_STRING "$PACKAGE_STRING"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_URL "$PACKAGE_URL"
2110 _ACEOF
2111
2112
2113 # Let the site file select an alternate cache file if it wants to.
2114 # Prefer an explicitly selected file to automatically selected ones.
2115 ac_site_file1=NONE
2116 ac_site_file2=NONE
2117 if test -n "$CONFIG_SITE"; then
2118 ac_site_file1=$CONFIG_SITE
2119 elif test "x$prefix" != xNONE; then
2120 ac_site_file1=$prefix/share/config.site
2121 ac_site_file2=$prefix/etc/config.site
2122 else
2123 ac_site_file1=$ac_default_prefix/share/config.site
2124 ac_site_file2=$ac_default_prefix/etc/config.site
2125 fi
2126 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2127 do
2128 test "x$ac_site_file" = xNONE && continue
2129 if test -r "$ac_site_file"; then
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2131 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2132 sed 's/^/| /' "$ac_site_file" >&5
2133 . "$ac_site_file"
2134 fi
2135 done
2136
2137 if test -r "$cache_file"; then
2138 # Some versions of bash will fail to source /dev/null (special
2139 # files actually), so we avoid doing that.
2140 if test -f "$cache_file"; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2142 $as_echo "$as_me: loading cache $cache_file" >&6;}
2143 case $cache_file in
2144 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2145 *) . "./$cache_file";;
2146 esac
2147 fi
2148 else
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2150 $as_echo "$as_me: creating cache $cache_file" >&6;}
2151 >$cache_file
2152 fi
2153
2154 # Check that the precious variables saved in the cache have kept the same
2155 # value.
2156 ac_cache_corrupted=false
2157 for ac_var in $ac_precious_vars; do
2158 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2159 eval ac_new_set=\$ac_env_${ac_var}_set
2160 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2161 eval ac_new_val=\$ac_env_${ac_var}_value
2162 case $ac_old_set,$ac_new_set in
2163 set,)
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2165 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2166 ac_cache_corrupted=: ;;
2167 ,set)
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2169 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2170 ac_cache_corrupted=: ;;
2171 ,);;
2172 *)
2173 if test "x$ac_old_val" != "x$ac_new_val"; then
2174 # differences in whitespace do not lead to failure.
2175 ac_old_val_w=`echo x $ac_old_val`
2176 ac_new_val_w=`echo x $ac_new_val`
2177 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2179 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2180 ac_cache_corrupted=:
2181 else
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2183 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2184 eval $ac_var=\$ac_old_val
2185 fi
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2187 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2189 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2190 fi;;
2191 esac
2192 # Pass precious variables to config.status.
2193 if test "$ac_new_set" = set; then
2194 case $ac_new_val in
2195 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2196 *) ac_arg=$ac_var=$ac_new_val ;;
2197 esac
2198 case " $ac_configure_args " in
2199 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2200 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2201 esac
2202 fi
2203 done
2204 if $ac_cache_corrupted; then
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2208 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2209 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2210 fi
2211 ## -------------------- ##
2212 ## Main body of script. ##
2213 ## -------------------- ##
2214
2215 ac_ext=c
2216 ac_cpp='$CPP $CPPFLAGS'
2217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2220
2221
2222
2223
2224
2225
2226 ac_config_headers="$ac_config_headers config.h"
2227
2228
2229 ac_aux_dir=
2230 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2231 for ac_t in install-sh install.sh shtool; do
2232 if test -f "$ac_dir/$ac_t"; then
2233 ac_aux_dir=$ac_dir
2234 ac_install_sh="$ac_aux_dir/$ac_t -c"
2235 break 2
2236 fi
2237 done
2238 done
2239 if test -z "$ac_aux_dir"; then
2240 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2241 fi
2242
2243 # These three variables are undocumented and unsupported,
2244 # and are intended to be withdrawn in a future Autoconf release.
2245 # They can cause serious problems if a builder's source tree is in a directory
2246 # whose full name contains unusual characters.
2247 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2248 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2249 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2250
2251
2252 # Make sure we can run config.sub.
2253 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2254 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2255
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2257 $as_echo_n "checking build system type... " >&6; }
2258 if test "${ac_cv_build+set}" = set; then :
2259 $as_echo_n "(cached) " >&6
2260 else
2261 ac_build_alias=$build_alias
2262 test "x$ac_build_alias" = x &&
2263 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2264 test "x$ac_build_alias" = x &&
2265 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2266 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2267 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2268
2269 fi
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2271 $as_echo "$ac_cv_build" >&6; }
2272 case $ac_cv_build in
2273 *-*-*) ;;
2274 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2275 esac
2276 build=$ac_cv_build
2277 ac_save_IFS=$IFS; IFS='-'
2278 set x $ac_cv_build
2279 shift
2280 build_cpu=$1
2281 build_vendor=$2
2282 shift; shift
2283 # Remember, the first character of IFS is used to create $*,
2284 # except with old shells:
2285 build_os=$*
2286 IFS=$ac_save_IFS
2287 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2288
2289
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2291 $as_echo_n "checking host system type... " >&6; }
2292 if test "${ac_cv_host+set}" = set; then :
2293 $as_echo_n "(cached) " >&6
2294 else
2295 if test "x$host_alias" = x; then
2296 ac_cv_host=$ac_cv_build
2297 else
2298 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2299 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2300 fi
2301
2302 fi
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2304 $as_echo "$ac_cv_host" >&6; }
2305 case $ac_cv_host in
2306 *-*-*) ;;
2307 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2308 esac
2309 host=$ac_cv_host
2310 ac_save_IFS=$IFS; IFS='-'
2311 set x $ac_cv_host
2312 shift
2313 host_cpu=$1
2314 host_vendor=$2
2315 shift; shift
2316 # Remember, the first character of IFS is used to create $*,
2317 # except with old shells:
2318 host_os=$*
2319 IFS=$ac_save_IFS
2320 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2321
2322
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2324 $as_echo_n "checking target system type... " >&6; }
2325 if test "${ac_cv_target+set}" = set; then :
2326 $as_echo_n "(cached) " >&6
2327 else
2328 if test "x$target_alias" = x; then
2329 ac_cv_target=$ac_cv_host
2330 else
2331 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2332 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2333 fi
2334
2335 fi
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2337 $as_echo "$ac_cv_target" >&6; }
2338 case $ac_cv_target in
2339 *-*-*) ;;
2340 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2341 esac
2342 target=$ac_cv_target
2343 ac_save_IFS=$IFS; IFS='-'
2344 set x $ac_cv_target
2345 shift
2346 target_cpu=$1
2347 target_vendor=$2
2348 shift; shift
2349 # Remember, the first character of IFS is used to create $*,
2350 # except with old shells:
2351 target_os=$*
2352 IFS=$ac_save_IFS
2353 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2354
2355
2356 # The aliases save the names the user supplied, while $host etc.
2357 # will get canonicalized.
2358 test -n "$target_alias" &&
2359 test "$program_prefix$program_suffix$program_transform_name" = \
2360 NONENONEs,x,x, &&
2361 program_prefix=${target_alias}-
2362
2363 target_alias=${target_alias-$host_alias}
2364
2365 libtool_VERSION=1:0:0
2366
2367
2368 am__api_version='1.11'
2369
2370 # Find a good install program. We prefer a C program (faster),
2371 # so one script is as good as another. But avoid the broken or
2372 # incompatible versions:
2373 # SysV /etc/install, /usr/sbin/install
2374 # SunOS /usr/etc/install
2375 # IRIX /sbin/install
2376 # AIX /bin/install
2377 # AmigaOS /C/install, which installs bootblocks on floppy discs
2378 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2379 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2380 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2381 # OS/2's system install, which has a completely different semantic
2382 # ./install, which can be erroneously created by make from ./install.sh.
2383 # Reject install programs that cannot install multiple files.
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2385 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2386 if test -z "$INSTALL"; then
2387 if test "${ac_cv_path_install+set}" = set; then :
2388 $as_echo_n "(cached) " >&6
2389 else
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2392 do
2393 IFS=$as_save_IFS
2394 test -z "$as_dir" && as_dir=.
2395 # Account for people who put trailing slashes in PATH elements.
2396 case $as_dir/ in #((
2397 ./ | .// | /[cC]/* | \
2398 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2399 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2400 /usr/ucb/* ) ;;
2401 *)
2402 # OSF1 and SCO ODT 3.0 have their own names for install.
2403 # Don't use installbsd from OSF since it installs stuff as root
2404 # by default.
2405 for ac_prog in ginstall scoinst install; do
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2408 if test $ac_prog = install &&
2409 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2410 # AIX install. It has an incompatible calling convention.
2411 :
2412 elif test $ac_prog = install &&
2413 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2414 # program-specific install script used by HP pwplus--don't use.
2415 :
2416 else
2417 rm -rf conftest.one conftest.two conftest.dir
2418 echo one > conftest.one
2419 echo two > conftest.two
2420 mkdir conftest.dir
2421 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2422 test -s conftest.one && test -s conftest.two &&
2423 test -s conftest.dir/conftest.one &&
2424 test -s conftest.dir/conftest.two
2425 then
2426 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2427 break 3
2428 fi
2429 fi
2430 fi
2431 done
2432 done
2433 ;;
2434 esac
2435
2436 done
2437 IFS=$as_save_IFS
2438
2439 rm -rf conftest.one conftest.two conftest.dir
2440
2441 fi
2442 if test "${ac_cv_path_install+set}" = set; then
2443 INSTALL=$ac_cv_path_install
2444 else
2445 # As a last resort, use the slow shell script. Don't cache a
2446 # value for INSTALL within a source directory, because that will
2447 # break other packages using the cache if that directory is
2448 # removed, or if the value is a relative name.
2449 INSTALL=$ac_install_sh
2450 fi
2451 fi
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2453 $as_echo "$INSTALL" >&6; }
2454
2455 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2456 # It thinks the first close brace ends the variable substitution.
2457 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2458
2459 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2460
2461 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2462
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2464 $as_echo_n "checking whether build environment is sane... " >&6; }
2465 # Just in case
2466 sleep 1
2467 echo timestamp > conftest.file
2468 # Reject unsafe characters in $srcdir or the absolute working directory
2469 # name. Accept space and tab only in the latter.
2470 am_lf='
2471 '
2472 case `pwd` in
2473 *[\\\"\#\$\&\'\`$am_lf]*)
2474 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2475 esac
2476 case $srcdir in
2477 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2478 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2479 esac
2480
2481 # Do `set' in a subshell so we don't clobber the current shell's
2482 # arguments. Must try -L first in case configure is actually a
2483 # symlink; some systems play weird games with the mod time of symlinks
2484 # (eg FreeBSD returns the mod time of the symlink's containing
2485 # directory).
2486 if (
2487 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2488 if test "$*" = "X"; then
2489 # -L didn't work.
2490 set X `ls -t "$srcdir/configure" conftest.file`
2491 fi
2492 rm -f conftest.file
2493 if test "$*" != "X $srcdir/configure conftest.file" \
2494 && test "$*" != "X conftest.file $srcdir/configure"; then
2495
2496 # If neither matched, then we have a broken ls. This can happen
2497 # if, for instance, CONFIG_SHELL is bash and it inherits a
2498 # broken ls alias from the environment. This has actually
2499 # happened. Such a system could not be considered "sane".
2500 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2501 alias in your environment" "$LINENO" 5
2502 fi
2503
2504 test "$2" = conftest.file
2505 )
2506 then
2507 # Ok.
2508 :
2509 else
2510 as_fn_error "newly created file is older than distributed files!
2511 Check your system clock" "$LINENO" 5
2512 fi
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2514 $as_echo "yes" >&6; }
2515 test "$program_prefix" != NONE &&
2516 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2517 # Use a double $ so make ignores it.
2518 test "$program_suffix" != NONE &&
2519 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2520 # Double any \ or $.
2521 # By default was `s,x,x', remove it if useless.
2522 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2523 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2524
2525 # expand $ac_aux_dir to an absolute path
2526 am_aux_dir=`cd $ac_aux_dir && pwd`
2527
2528 if test x"${MISSING+set}" != xset; then
2529 case $am_aux_dir in
2530 *\ * | *\ *)
2531 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2532 *)
2533 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2534 esac
2535 fi
2536 # Use eval to expand $SHELL
2537 if eval "$MISSING --run true"; then
2538 am_missing_run="$MISSING --run "
2539 else
2540 am_missing_run=
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2542 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2543 fi
2544
2545 if test x"${install_sh}" != xset; then
2546 case $am_aux_dir in
2547 *\ * | *\ *)
2548 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2549 *)
2550 install_sh="\${SHELL} $am_aux_dir/install-sh"
2551 esac
2552 fi
2553
2554 # Installed binaries are usually stripped using `strip' when the user
2555 # run `make install-strip'. However `strip' might not be the right
2556 # tool to use in cross-compilation environments, therefore Automake
2557 # will honor the `STRIP' environment variable to overrule this program.
2558 if test "$cross_compiling" != no; then
2559 if test -n "$ac_tool_prefix"; then
2560 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2561 set dummy ${ac_tool_prefix}strip; ac_word=$2
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563 $as_echo_n "checking for $ac_word... " >&6; }
2564 if test "${ac_cv_prog_STRIP+set}" = set; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 if test -n "$STRIP"; then
2568 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2572 do
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 break 2
2580 fi
2581 done
2582 done
2583 IFS=$as_save_IFS
2584
2585 fi
2586 fi
2587 STRIP=$ac_cv_prog_STRIP
2588 if test -n "$STRIP"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2590 $as_echo "$STRIP" >&6; }
2591 else
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593 $as_echo "no" >&6; }
2594 fi
2595
2596
2597 fi
2598 if test -z "$ac_cv_prog_STRIP"; then
2599 ac_ct_STRIP=$STRIP
2600 # Extract the first word of "strip", so it can be a program name with args.
2601 set dummy strip; ac_word=$2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2605 $as_echo_n "(cached) " >&6
2606 else
2607 if test -n "$ac_ct_STRIP"; then
2608 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617 ac_cv_prog_ac_ct_STRIP="strip"
2618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2620 fi
2621 done
2622 done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2628 if test -n "$ac_ct_STRIP"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2630 $as_echo "$ac_ct_STRIP" >&6; }
2631 else
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633 $as_echo "no" >&6; }
2634 fi
2635
2636 if test "x$ac_ct_STRIP" = x; then
2637 STRIP=":"
2638 else
2639 case $cross_compiling:$ac_tool_warned in
2640 yes:)
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2643 ac_tool_warned=yes ;;
2644 esac
2645 STRIP=$ac_ct_STRIP
2646 fi
2647 else
2648 STRIP="$ac_cv_prog_STRIP"
2649 fi
2650
2651 fi
2652 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2653
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2655 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2656 if test -z "$MKDIR_P"; then
2657 if test "${ac_cv_path_mkdir+set}" = set; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2662 do
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
2665 for ac_prog in mkdir gmkdir; do
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2668 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2669 'mkdir (GNU coreutils) '* | \
2670 'mkdir (coreutils) '* | \
2671 'mkdir (fileutils) '4.1*)
2672 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2673 break 3;;
2674 esac
2675 done
2676 done
2677 done
2678 IFS=$as_save_IFS
2679
2680 fi
2681
2682 if test "${ac_cv_path_mkdir+set}" = set; then
2683 MKDIR_P="$ac_cv_path_mkdir -p"
2684 else
2685 # As a last resort, use the slow shell script. Don't cache a
2686 # value for MKDIR_P within a source directory, because that will
2687 # break other packages using the cache if that directory is
2688 # removed, or if the value is a relative name.
2689 test -d ./--version && rmdir ./--version
2690 MKDIR_P="$ac_install_sh -d"
2691 fi
2692 fi
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2694 $as_echo "$MKDIR_P" >&6; }
2695
2696 mkdir_p="$MKDIR_P"
2697 case $mkdir_p in
2698 [\\/$]* | ?:[\\/]*) ;;
2699 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2700 esac
2701
2702 for ac_prog in gawk mawk nawk awk
2703 do
2704 # Extract the first word of "$ac_prog", so it can be a program name with args.
2705 set dummy $ac_prog; ac_word=$2
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if test "${ac_cv_prog_AWK+set}" = set; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 if test -n "$AWK"; then
2712 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721 ac_cv_prog_AWK="$ac_prog"
2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 break 2
2724 fi
2725 done
2726 done
2727 IFS=$as_save_IFS
2728
2729 fi
2730 fi
2731 AWK=$ac_cv_prog_AWK
2732 if test -n "$AWK"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2734 $as_echo "$AWK" >&6; }
2735 else
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 $as_echo "no" >&6; }
2738 fi
2739
2740
2741 test -n "$AWK" && break
2742 done
2743
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2745 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2746 set x ${MAKE-make}
2747 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2748 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2749 $as_echo_n "(cached) " >&6
2750 else
2751 cat >conftest.make <<\_ACEOF
2752 SHELL = /bin/sh
2753 all:
2754 @echo '@@@%%%=$(MAKE)=@@@%%%'
2755 _ACEOF
2756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2757 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2758 *@@@%%%=?*=@@@%%%*)
2759 eval ac_cv_prog_make_${ac_make}_set=yes;;
2760 *)
2761 eval ac_cv_prog_make_${ac_make}_set=no;;
2762 esac
2763 rm -f conftest.make
2764 fi
2765 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2767 $as_echo "yes" >&6; }
2768 SET_MAKE=
2769 else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2772 SET_MAKE="MAKE=${MAKE-make}"
2773 fi
2774
2775 rm -rf .tst 2>/dev/null
2776 mkdir .tst 2>/dev/null
2777 if test -d .tst; then
2778 am__leading_dot=.
2779 else
2780 am__leading_dot=_
2781 fi
2782 rmdir .tst 2>/dev/null
2783
2784 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2785 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2786 # is not polluted with repeated "-I."
2787 am__isrc=' -I$(srcdir)'
2788 # test to see if srcdir already configured
2789 if test -f $srcdir/config.status; then
2790 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2791 fi
2792 fi
2793
2794 # test whether we have cygpath
2795 if test -z "$CYGPATH_W"; then
2796 if (cygpath --version) >/dev/null 2>/dev/null; then
2797 CYGPATH_W='cygpath -w'
2798 else
2799 CYGPATH_W=echo
2800 fi
2801 fi
2802
2803
2804 # Define the identity of the package.
2805 PACKAGE='libbacktrace'
2806 VERSION='version-unused'
2807
2808
2809 # Some tools Automake needs.
2810
2811 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2812
2813
2814 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2815
2816
2817 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2818
2819
2820 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2821
2822
2823 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2824
2825 # We need awk for the "check" target. The system "awk" is bad on
2826 # some platforms.
2827 # Always define AMTAR for backward compatibility.
2828
2829 AMTAR=${AMTAR-"${am_missing_run}tar"}
2830
2831 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2832
2833
2834
2835
2836
2837
2838
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2840 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2841 # Check whether --enable-maintainer-mode was given.
2842 if test "${enable_maintainer_mode+set}" = set; then :
2843 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2844 else
2845 USE_MAINTAINER_MODE=no
2846 fi
2847
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2849 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2850 if test $USE_MAINTAINER_MODE = yes; then
2851 MAINTAINER_MODE_TRUE=
2852 MAINTAINER_MODE_FALSE='#'
2853 else
2854 MAINTAINER_MODE_TRUE='#'
2855 MAINTAINER_MODE_FALSE=
2856 fi
2857
2858 MAINT=$MAINTAINER_MODE_TRUE
2859
2860
2861
2862
2863 # Check whether --with-target-subdir was given.
2864 if test "${with_target_subdir+set}" = set; then :
2865 withval=$with_target_subdir;
2866 fi
2867
2868
2869 # We must force CC to /not/ be precious variables; otherwise
2870 # the wrong, non-multilib-adjusted value will be used in multilibs.
2871 # As a side effect, we have to subst CFLAGS ourselves.
2872
2873
2874 ac_ext=c
2875 ac_cpp='$CPP $CPPFLAGS'
2876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879 if test -n "$ac_tool_prefix"; then
2880 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2881 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if test "${ac_cv_prog_CC+set}" = set; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test -n "$CC"; then
2888 ac_cv_prog_CC="$CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2900 fi
2901 done
2902 done
2903 IFS=$as_save_IFS
2904
2905 fi
2906 fi
2907 CC=$ac_cv_prog_CC
2908 if test -n "$CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2910 $as_echo "$CC" >&6; }
2911 else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2914 fi
2915
2916
2917 fi
2918 if test -z "$ac_cv_prog_CC"; then
2919 ac_ct_CC=$CC
2920 # Extract the first word of "gcc", so it can be a program name with args.
2921 set dummy gcc; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 if test -n "$ac_ct_CC"; then
2928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933 IFS=$as_save_IFS
2934 test -z "$as_dir" && as_dir=.
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937 ac_cv_prog_ac_ct_CC="gcc"
2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939 break 2
2940 fi
2941 done
2942 done
2943 IFS=$as_save_IFS
2944
2945 fi
2946 fi
2947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2948 if test -n "$ac_ct_CC"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2950 $as_echo "$ac_ct_CC" >&6; }
2951 else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2954 fi
2955
2956 if test "x$ac_ct_CC" = x; then
2957 CC=""
2958 else
2959 case $cross_compiling:$ac_tool_warned in
2960 yes:)
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963 ac_tool_warned=yes ;;
2964 esac
2965 CC=$ac_ct_CC
2966 fi
2967 else
2968 CC="$ac_cv_prog_CC"
2969 fi
2970
2971 if test -z "$CC"; then
2972 if test -n "$ac_tool_prefix"; then
2973 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2974 set dummy ${ac_tool_prefix}cc; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if test "${ac_cv_prog_CC+set}" = set; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 if test -n "$CC"; then
2981 ac_cv_prog_CC="$CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990 ac_cv_prog_CC="${ac_tool_prefix}cc"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994 done
2995 done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 CC=$ac_cv_prog_CC
3001 if test -n "$CC"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3003 $as_echo "$CC" >&6; }
3004 else
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3007 fi
3008
3009
3010 fi
3011 fi
3012 if test -z "$CC"; then
3013 # Extract the first word of "cc", so it can be a program name with args.
3014 set dummy cc; ac_word=$2
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016 $as_echo_n "checking for $ac_word... " >&6; }
3017 if test "${ac_cv_prog_CC+set}" = set; then :
3018 $as_echo_n "(cached) " >&6
3019 else
3020 if test -n "$CC"; then
3021 ac_cv_prog_CC="$CC" # Let the user override the test.
3022 else
3023 ac_prog_rejected=no
3024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
3029 for ac_exec_ext in '' $ac_executable_extensions; do
3030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3031 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3032 ac_prog_rejected=yes
3033 continue
3034 fi
3035 ac_cv_prog_CC="cc"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 break 2
3038 fi
3039 done
3040 done
3041 IFS=$as_save_IFS
3042
3043 if test $ac_prog_rejected = yes; then
3044 # We found a bogon in the path, so make sure we never use it.
3045 set dummy $ac_cv_prog_CC
3046 shift
3047 if test $# != 0; then
3048 # We chose a different compiler from the bogus one.
3049 # However, it has the same basename, so the bogon will be chosen
3050 # first if we set CC to just the basename; use the full file name.
3051 shift
3052 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3053 fi
3054 fi
3055 fi
3056 fi
3057 CC=$ac_cv_prog_CC
3058 if test -n "$CC"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3060 $as_echo "$CC" >&6; }
3061 else
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3064 fi
3065
3066
3067 fi
3068 if test -z "$CC"; then
3069 if test -n "$ac_tool_prefix"; then
3070 for ac_prog in cl.exe
3071 do
3072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3073 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if test "${ac_cv_prog_CC+set}" = set; then :
3077 $as_echo_n "(cached) " >&6
3078 else
3079 if test -n "$CC"; then
3080 ac_cv_prog_CC="$CC" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3092 fi
3093 done
3094 done
3095 IFS=$as_save_IFS
3096
3097 fi
3098 fi
3099 CC=$ac_cv_prog_CC
3100 if test -n "$CC"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3102 $as_echo "$CC" >&6; }
3103 else
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3106 fi
3107
3108
3109 test -n "$CC" && break
3110 done
3111 fi
3112 if test -z "$CC"; then
3113 ac_ct_CC=$CC
3114 for ac_prog in cl.exe
3115 do
3116 # Extract the first word of "$ac_prog", so it can be a program name with args.
3117 set dummy $ac_prog; ac_word=$2
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119 $as_echo_n "checking for $ac_word... " >&6; }
3120 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3121 $as_echo_n "(cached) " >&6
3122 else
3123 if test -n "$ac_ct_CC"; then
3124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3133 ac_cv_prog_ac_ct_CC="$ac_prog"
3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 break 2
3136 fi
3137 done
3138 done
3139 IFS=$as_save_IFS
3140
3141 fi
3142 fi
3143 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3144 if test -n "$ac_ct_CC"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3146 $as_echo "$ac_ct_CC" >&6; }
3147 else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 fi
3151
3152
3153 test -n "$ac_ct_CC" && break
3154 done
3155
3156 if test "x$ac_ct_CC" = x; then
3157 CC=""
3158 else
3159 case $cross_compiling:$ac_tool_warned in
3160 yes:)
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3163 ac_tool_warned=yes ;;
3164 esac
3165 CC=$ac_ct_CC
3166 fi
3167 fi
3168
3169 fi
3170
3171
3172 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3174 as_fn_error "no acceptable C compiler found in \$PATH
3175 See \`config.log' for more details." "$LINENO" 5; }
3176
3177 # Provide some information about the compiler.
3178 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3179 set X $ac_compile
3180 ac_compiler=$2
3181 for ac_option in --version -v -V -qversion; do
3182 { { ac_try="$ac_compiler $ac_option >&5"
3183 case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3186 esac
3187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3188 $as_echo "$ac_try_echo"; } >&5
3189 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3190 ac_status=$?
3191 if test -s conftest.err; then
3192 sed '10a\
3193 ... rest of stderr output deleted ...
3194 10q' conftest.err >conftest.er1
3195 cat conftest.er1 >&5
3196 rm -f conftest.er1 conftest.err
3197 fi
3198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3199 test $ac_status = 0; }
3200 done
3201
3202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203 /* end confdefs.h. */
3204
3205 int
3206 main ()
3207 {
3208
3209 ;
3210 return 0;
3211 }
3212 _ACEOF
3213 ac_clean_files_save=$ac_clean_files
3214 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3215 # Try to create an executable without -o first, disregard a.out.
3216 # It will help us diagnose broken compilers, and finding out an intuition
3217 # of exeext.
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3219 $as_echo_n "checking for C compiler default output file name... " >&6; }
3220 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3221
3222 # The possible output files:
3223 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3224
3225 ac_rmfiles=
3226 for ac_file in $ac_files
3227 do
3228 case $ac_file in
3229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3230 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3231 esac
3232 done
3233 rm -f $ac_rmfiles
3234
3235 if { { ac_try="$ac_link_default"
3236 case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242 (eval "$ac_link_default") 2>&5
3243 ac_status=$?
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245 test $ac_status = 0; }; then :
3246 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3247 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3248 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3249 # so that the user can short-circuit this test for compilers unknown to
3250 # Autoconf.
3251 for ac_file in $ac_files ''
3252 do
3253 test -f "$ac_file" || continue
3254 case $ac_file in
3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3256 ;;
3257 [ab].out )
3258 # We found the default executable, but exeext='' is most
3259 # certainly right.
3260 break;;
3261 *.* )
3262 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3263 then :; else
3264 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3265 fi
3266 # We set ac_cv_exeext here because the later test for it is not
3267 # safe: cross compilers may not add the suffix if given an `-o'
3268 # argument, so we may need to know it at that point already.
3269 # Even if this section looks crufty: it has the advantage of
3270 # actually working.
3271 break;;
3272 * )
3273 break;;
3274 esac
3275 done
3276 test "$ac_cv_exeext" = no && ac_cv_exeext=
3277
3278 else
3279 ac_file=''
3280 fi
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3282 $as_echo "$ac_file" >&6; }
3283 if test -z "$ac_file"; then :
3284 $as_echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3286
3287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289 { as_fn_set_status 77
3290 as_fn_error "C compiler cannot create executables
3291 See \`config.log' for more details." "$LINENO" 5; }; }
3292 fi
3293 ac_exeext=$ac_cv_exeext
3294
3295 # Check that the compiler produces executables we can run. If not, either
3296 # the compiler is broken, or we cross compile.
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3298 $as_echo_n "checking whether the C compiler works... " >&6; }
3299 # If not cross compiling, check that we can run a simple program.
3300 if test "$cross_compiling" != yes; then
3301 if { ac_try='./$ac_file'
3302 { { case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305 esac
3306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307 $as_echo "$ac_try_echo"; } >&5
3308 (eval "$ac_try") 2>&5
3309 ac_status=$?
3310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3311 test $ac_status = 0; }; }; then
3312 cross_compiling=no
3313 else
3314 if test "$cross_compiling" = maybe; then
3315 cross_compiling=yes
3316 else
3317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error "cannot run C compiled programs.
3320 If you meant to cross compile, use \`--host'.
3321 See \`config.log' for more details." "$LINENO" 5; }
3322 fi
3323 fi
3324 fi
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3326 $as_echo "yes" >&6; }
3327
3328 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3329 ac_clean_files=$ac_clean_files_save
3330 # Check that the compiler produces executables we can run. If not, either
3331 # the compiler is broken, or we cross compile.
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3333 $as_echo_n "checking whether we are cross compiling... " >&6; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3335 $as_echo "$cross_compiling" >&6; }
3336
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3338 $as_echo_n "checking for suffix of executables... " >&6; }
3339 if { { ac_try="$ac_link"
3340 case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343 esac
3344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345 $as_echo "$ac_try_echo"; } >&5
3346 (eval "$ac_link") 2>&5
3347 ac_status=$?
3348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349 test $ac_status = 0; }; then :
3350 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3351 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3352 # work properly (i.e., refer to `conftest.exe'), while it won't with
3353 # `rm'.
3354 for ac_file in conftest.exe conftest conftest.*; do
3355 test -f "$ac_file" || continue
3356 case $ac_file in
3357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3358 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3359 break;;
3360 * ) break;;
3361 esac
3362 done
3363 else
3364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3366 as_fn_error "cannot compute suffix of executables: cannot compile and link
3367 See \`config.log' for more details." "$LINENO" 5; }
3368 fi
3369 rm -f conftest$ac_cv_exeext
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3371 $as_echo "$ac_cv_exeext" >&6; }
3372
3373 rm -f conftest.$ac_ext
3374 EXEEXT=$ac_cv_exeext
3375 ac_exeext=$EXEEXT
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3377 $as_echo_n "checking for suffix of object files... " >&6; }
3378 if test "${ac_cv_objext+set}" = set; then :
3379 $as_echo_n "(cached) " >&6
3380 else
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3383
3384 int
3385 main ()
3386 {
3387
3388 ;
3389 return 0;
3390 }
3391 _ACEOF
3392 rm -f conftest.o conftest.obj
3393 if { { ac_try="$ac_compile"
3394 case "(($ac_try" in
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3397 esac
3398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3399 $as_echo "$ac_try_echo"; } >&5
3400 (eval "$ac_compile") 2>&5
3401 ac_status=$?
3402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3403 test $ac_status = 0; }; then :
3404 for ac_file in conftest.o conftest.obj conftest.*; do
3405 test -f "$ac_file" || continue;
3406 case $ac_file in
3407 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3408 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3409 break;;
3410 esac
3411 done
3412 else
3413 $as_echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error "cannot compute suffix of object files: cannot compile
3419 See \`config.log' for more details." "$LINENO" 5; }
3420 fi
3421 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3422 fi
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3424 $as_echo "$ac_cv_objext" >&6; }
3425 OBJEXT=$ac_cv_objext
3426 ac_objext=$OBJEXT
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3428 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3429 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3430 $as_echo_n "(cached) " >&6
3431 else
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3434
3435 int
3436 main ()
3437 {
3438 #ifndef __GNUC__
3439 choke me
3440 #endif
3441
3442 ;
3443 return 0;
3444 }
3445 _ACEOF
3446 if ac_fn_c_try_compile "$LINENO"; then :
3447 ac_compiler_gnu=yes
3448 else
3449 ac_compiler_gnu=no
3450 fi
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3453
3454 fi
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3456 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3457 if test $ac_compiler_gnu = yes; then
3458 GCC=yes
3459 else
3460 GCC=
3461 fi
3462 ac_test_CFLAGS=${CFLAGS+set}
3463 ac_save_CFLAGS=$CFLAGS
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3465 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3466 if test "${ac_cv_prog_cc_g+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 ac_save_c_werror_flag=$ac_c_werror_flag
3470 ac_c_werror_flag=yes
3471 ac_cv_prog_cc_g=no
3472 CFLAGS="-g"
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3475
3476 int
3477 main ()
3478 {
3479
3480 ;
3481 return 0;
3482 }
3483 _ACEOF
3484 if ac_fn_c_try_compile "$LINENO"; then :
3485 ac_cv_prog_cc_g=yes
3486 else
3487 CFLAGS=""
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3490
3491 int
3492 main ()
3493 {
3494
3495 ;
3496 return 0;
3497 }
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500
3501 else
3502 ac_c_werror_flag=$ac_save_c_werror_flag
3503 CFLAGS="-g"
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3506
3507 int
3508 main ()
3509 {
3510
3511 ;
3512 return 0;
3513 }
3514 _ACEOF
3515 if ac_fn_c_try_compile "$LINENO"; then :
3516 ac_cv_prog_cc_g=yes
3517 fi
3518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519 fi
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521 fi
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 ac_c_werror_flag=$ac_save_c_werror_flag
3524 fi
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3526 $as_echo "$ac_cv_prog_cc_g" >&6; }
3527 if test "$ac_test_CFLAGS" = set; then
3528 CFLAGS=$ac_save_CFLAGS
3529 elif test $ac_cv_prog_cc_g = yes; then
3530 if test "$GCC" = yes; then
3531 CFLAGS="-g -O2"
3532 else
3533 CFLAGS="-g"
3534 fi
3535 else
3536 if test "$GCC" = yes; then
3537 CFLAGS="-O2"
3538 else
3539 CFLAGS=
3540 fi
3541 fi
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3543 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3544 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 ac_cv_prog_cc_c89=no
3548 ac_save_CC=$CC
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3551 #include <stdarg.h>
3552 #include <stdio.h>
3553 #include <sys/types.h>
3554 #include <sys/stat.h>
3555 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3556 struct buf { int x; };
3557 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3558 static char *e (p, i)
3559 char **p;
3560 int i;
3561 {
3562 return p[i];
3563 }
3564 static char *f (char * (*g) (char **, int), char **p, ...)
3565 {
3566 char *s;
3567 va_list v;
3568 va_start (v,p);
3569 s = g (p, va_arg (v,int));
3570 va_end (v);
3571 return s;
3572 }
3573
3574 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3575 function prototypes and stuff, but not '\xHH' hex character constants.
3576 These don't provoke an error unfortunately, instead are silently treated
3577 as 'x'. The following induces an error, until -std is added to get
3578 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3579 array size at least. It's necessary to write '\x00'==0 to get something
3580 that's true only with -std. */
3581 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3582
3583 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3584 inside strings and character constants. */
3585 #define FOO(x) 'x'
3586 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3587
3588 int test (int i, double x);
3589 struct s1 {int (*f) (int a);};
3590 struct s2 {int (*f) (double a);};
3591 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3592 int argc;
3593 char **argv;
3594 int
3595 main ()
3596 {
3597 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3598 ;
3599 return 0;
3600 }
3601 _ACEOF
3602 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3603 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3604 do
3605 CC="$ac_save_CC $ac_arg"
3606 if ac_fn_c_try_compile "$LINENO"; then :
3607 ac_cv_prog_cc_c89=$ac_arg
3608 fi
3609 rm -f core conftest.err conftest.$ac_objext
3610 test "x$ac_cv_prog_cc_c89" != "xno" && break
3611 done
3612 rm -f conftest.$ac_ext
3613 CC=$ac_save_CC
3614
3615 fi
3616 # AC_CACHE_VAL
3617 case "x$ac_cv_prog_cc_c89" in
3618 x)
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3620 $as_echo "none needed" >&6; } ;;
3621 xno)
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3623 $as_echo "unsupported" >&6; } ;;
3624 *)
3625 CC="$CC $ac_cv_prog_cc_c89"
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3627 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3628 esac
3629 if test "x$ac_cv_prog_cc_c89" != xno; then :
3630
3631 fi
3632
3633 ac_ext=c
3634 ac_cpp='$CPP $CPPFLAGS'
3635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638 DEPDIR="${am__leading_dot}deps"
3639
3640 ac_config_commands="$ac_config_commands depfiles"
3641
3642
3643 am_make=${MAKE-make}
3644 cat > confinc << 'END'
3645 am__doit:
3646 @echo this is the am__doit target
3647 .PHONY: am__doit
3648 END
3649 # If we don't find an include directive, just comment out the code.
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3651 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3652 am__include="#"
3653 am__quote=
3654 _am_result=none
3655 # First try GNU make style include.
3656 echo "include confinc" > confmf
3657 # Ignore all kinds of additional output from `make'.
3658 case `$am_make -s -f confmf 2> /dev/null` in #(
3659 *the\ am__doit\ target*)
3660 am__include=include
3661 am__quote=
3662 _am_result=GNU
3663 ;;
3664 esac
3665 # Now try BSD make style include.
3666 if test "$am__include" = "#"; then
3667 echo '.include "confinc"' > confmf
3668 case `$am_make -s -f confmf 2> /dev/null` in #(
3669 *the\ am__doit\ target*)
3670 am__include=.include
3671 am__quote="\""
3672 _am_result=BSD
3673 ;;
3674 esac
3675 fi
3676
3677
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3679 $as_echo "$_am_result" >&6; }
3680 rm -f confinc confmf
3681
3682 # Check whether --enable-dependency-tracking was given.
3683 if test "${enable_dependency_tracking+set}" = set; then :
3684 enableval=$enable_dependency_tracking;
3685 fi
3686
3687 if test "x$enable_dependency_tracking" != xno; then
3688 am_depcomp="$ac_aux_dir/depcomp"
3689 AMDEPBACKSLASH='\'
3690 fi
3691 if test "x$enable_dependency_tracking" != xno; then
3692 AMDEP_TRUE=
3693 AMDEP_FALSE='#'
3694 else
3695 AMDEP_TRUE='#'
3696 AMDEP_FALSE=
3697 fi
3698
3699
3700
3701 depcc="$CC" am_compiler_list=
3702
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3704 $as_echo_n "checking dependency style of $depcc... " >&6; }
3705 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3709 # We make a subdir and do the tests there. Otherwise we can end up
3710 # making bogus files that we don't know about and never remove. For
3711 # instance it was reported that on HP-UX the gcc test will end up
3712 # making a dummy file named `D' -- because `-MD' means `put the output
3713 # in D'.
3714 mkdir conftest.dir
3715 # Copy depcomp to subdir because otherwise we won't find it if we're
3716 # using a relative directory.
3717 cp "$am_depcomp" conftest.dir
3718 cd conftest.dir
3719 # We will build objects and dependencies in a subdirectory because
3720 # it helps to detect inapplicable dependency modes. For instance
3721 # both Tru64's cc and ICC support -MD to output dependencies as a
3722 # side effect of compilation, but ICC will put the dependencies in
3723 # the current directory while Tru64 will put them in the object
3724 # directory.
3725 mkdir sub
3726
3727 am_cv_CC_dependencies_compiler_type=none
3728 if test "$am_compiler_list" = ""; then
3729 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3730 fi
3731 am__universal=false
3732 case " $depcc " in #(
3733 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3734 esac
3735
3736 for depmode in $am_compiler_list; do
3737 # Setup a source with many dependencies, because some compilers
3738 # like to wrap large dependency lists on column 80 (with \), and
3739 # we should not choose a depcomp mode which is confused by this.
3740 #
3741 # We need to recreate these files for each test, as the compiler may
3742 # overwrite some of them when testing with obscure command lines.
3743 # This happens at least with the AIX C compiler.
3744 : > sub/conftest.c
3745 for i in 1 2 3 4 5 6; do
3746 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3747 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3748 # Solaris 8's {/usr,}/bin/sh.
3749 touch sub/conftst$i.h
3750 done
3751 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3752
3753 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3754 # mode. It turns out that the SunPro C++ compiler does not properly
3755 # handle `-M -o', and we need to detect this. Also, some Intel
3756 # versions had trouble with output in subdirs
3757 am__obj=sub/conftest.${OBJEXT-o}
3758 am__minus_obj="-o $am__obj"
3759 case $depmode in
3760 gcc)
3761 # This depmode causes a compiler race in universal mode.
3762 test "$am__universal" = false || continue
3763 ;;
3764 nosideeffect)
3765 # after this tag, mechanisms are not by side-effect, so they'll
3766 # only be used when explicitly requested
3767 if test "x$enable_dependency_tracking" = xyes; then
3768 continue
3769 else
3770 break
3771 fi
3772 ;;
3773 msvisualcpp | msvcmsys)
3774 # This compiler won't grok `-c -o', but also, the minuso test has
3775 # not run yet. These depmodes are late enough in the game, and
3776 # so weak that their functioning should not be impacted.
3777 am__obj=conftest.${OBJEXT-o}
3778 am__minus_obj=
3779 ;;
3780 none) break ;;
3781 esac
3782 if depmode=$depmode \
3783 source=sub/conftest.c object=$am__obj \
3784 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3785 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3786 >/dev/null 2>conftest.err &&
3787 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3788 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3789 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3790 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3791 # icc doesn't choke on unknown options, it will just issue warnings
3792 # or remarks (even with -Werror). So we grep stderr for any message
3793 # that says an option was ignored or not supported.
3794 # When given -MP, icc 7.0 and 7.1 complain thusly:
3795 # icc: Command line warning: ignoring option '-M'; no argument required
3796 # The diagnosis changed in icc 8.0:
3797 # icc: Command line remark: option '-MP' not supported
3798 if (grep 'ignoring option' conftest.err ||
3799 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3800 am_cv_CC_dependencies_compiler_type=$depmode
3801 break
3802 fi
3803 fi
3804 done
3805
3806 cd ..
3807 rm -rf conftest.dir
3808 else
3809 am_cv_CC_dependencies_compiler_type=none
3810 fi
3811
3812 fi
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3814 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3815 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3816
3817 if
3818 test "x$enable_dependency_tracking" != xno \
3819 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3820 am__fastdepCC_TRUE=
3821 am__fastdepCC_FALSE='#'
3822 else
3823 am__fastdepCC_TRUE='#'
3824 am__fastdepCC_FALSE=
3825 fi
3826
3827
3828
3829
3830
3831
3832 if test -n "$ac_tool_prefix"; then
3833 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3834 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3838 $as_echo_n "(cached) " >&6
3839 else
3840 if test -n "$RANLIB"; then
3841 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3842 else
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3845 do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3850 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 break 2
3853 fi
3854 done
3855 done
3856 IFS=$as_save_IFS
3857
3858 fi
3859 fi
3860 RANLIB=$ac_cv_prog_RANLIB
3861 if test -n "$RANLIB"; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3863 $as_echo "$RANLIB" >&6; }
3864 else
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3867 fi
3868
3869
3870 fi
3871 if test -z "$ac_cv_prog_RANLIB"; then
3872 ac_ct_RANLIB=$RANLIB
3873 # Extract the first word of "ranlib", so it can be a program name with args.
3874 set dummy ranlib; ac_word=$2
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3878 $as_echo_n "(cached) " >&6
3879 else
3880 if test -n "$ac_ct_RANLIB"; then
3881 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3882 else
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH
3885 do
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3890 ac_cv_prog_ac_ct_RANLIB="ranlib"
3891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3892 break 2
3893 fi
3894 done
3895 done
3896 IFS=$as_save_IFS
3897
3898 fi
3899 fi
3900 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3901 if test -n "$ac_ct_RANLIB"; then
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3903 $as_echo "$ac_ct_RANLIB" >&6; }
3904 else
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 $as_echo "no" >&6; }
3907 fi
3908
3909 if test "x$ac_ct_RANLIB" = x; then
3910 RANLIB=":"
3911 else
3912 case $cross_compiling:$ac_tool_warned in
3913 yes:)
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3916 ac_tool_warned=yes ;;
3917 esac
3918 RANLIB=$ac_ct_RANLIB
3919 fi
3920 else
3921 RANLIB="$ac_cv_prog_RANLIB"
3922 fi
3923
3924
3925 for ac_prog in gawk mawk nawk awk
3926 do
3927 # Extract the first word of "$ac_prog", so it can be a program name with args.
3928 set dummy $ac_prog; ac_word=$2
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930 $as_echo_n "checking for $ac_word... " >&6; }
3931 if test "${ac_cv_prog_AWK+set}" = set; then :
3932 $as_echo_n "(cached) " >&6
3933 else
3934 if test -n "$AWK"; then
3935 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3936 else
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 for as_dir in $PATH
3939 do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944 ac_cv_prog_AWK="$ac_prog"
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
3947 fi
3948 done
3949 done
3950 IFS=$as_save_IFS
3951
3952 fi
3953 fi
3954 AWK=$ac_cv_prog_AWK
3955 if test -n "$AWK"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3957 $as_echo "$AWK" >&6; }
3958 else
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3961 fi
3962
3963
3964 test -n "$AWK" && break
3965 done
3966
3967 case "$AWK" in
3968 "") as_fn_error "can't build without awk" "$LINENO" 5 ;;
3969 esac
3970
3971 case `pwd` in
3972 *\ * | *\ *)
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3974 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3975 esac
3976
3977
3978
3979 macro_version='2.2.7a'
3980 macro_revision='1.3134'
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994 ltmain="$ac_aux_dir/ltmain.sh"
3995
3996 # Backslashify metacharacters that are still active within
3997 # double-quoted strings.
3998 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3999
4000 # Same as above, but do not quote variable references.
4001 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4002
4003 # Sed substitution to delay expansion of an escaped shell variable in a
4004 # double_quote_subst'ed string.
4005 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4006
4007 # Sed substitution to delay expansion of an escaped single quote.
4008 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4009
4010 # Sed substitution to avoid accidental globbing in evaled expressions
4011 no_glob_subst='s/\*/\\\*/g'
4012
4013 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4014 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4015 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4016
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4018 $as_echo_n "checking how to print strings... " >&6; }
4019 # Test print first, because it will be a builtin if present.
4020 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4021 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4022 ECHO='print -r --'
4023 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4024 ECHO='printf %s\n'
4025 else
4026 # Use this function as a fallback that always works.
4027 func_fallback_echo ()
4028 {
4029 eval 'cat <<_LTECHO_EOF
4030 $1
4031 _LTECHO_EOF'
4032 }
4033 ECHO='func_fallback_echo'
4034 fi
4035
4036 # func_echo_all arg...
4037 # Invoke $ECHO with all args, space-separated.
4038 func_echo_all ()
4039 {
4040 $ECHO ""
4041 }
4042
4043 case "$ECHO" in
4044 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4045 $as_echo "printf" >&6; } ;;
4046 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4047 $as_echo "print -r" >&6; } ;;
4048 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4049 $as_echo "cat" >&6; } ;;
4050 esac
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4066 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4067 if test "${ac_cv_path_SED+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
4069 else
4070 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4071 for ac_i in 1 2 3 4 5 6 7; do
4072 ac_script="$ac_script$as_nl$ac_script"
4073 done
4074 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4075 { ac_script=; unset ac_script;}
4076 if test -z "$SED"; then
4077 ac_path_SED_found=false
4078 # Loop through the user's path and test for each of PROGNAME-LIST
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH
4081 do
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
4084 for ac_prog in sed gsed; do
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4087 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4088 # Check for GNU ac_path_SED and select it if it is found.
4089 # Check for GNU $ac_path_SED
4090 case `"$ac_path_SED" --version 2>&1` in
4091 *GNU*)
4092 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4093 *)
4094 ac_count=0
4095 $as_echo_n 0123456789 >"conftest.in"
4096 while :
4097 do
4098 cat "conftest.in" "conftest.in" >"conftest.tmp"
4099 mv "conftest.tmp" "conftest.in"
4100 cp "conftest.in" "conftest.nl"
4101 $as_echo '' >> "conftest.nl"
4102 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4103 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4104 as_fn_arith $ac_count + 1 && ac_count=$as_val
4105 if test $ac_count -gt ${ac_path_SED_max-0}; then
4106 # Best one so far, save it but keep looking for a better one
4107 ac_cv_path_SED="$ac_path_SED"
4108 ac_path_SED_max=$ac_count
4109 fi
4110 # 10*(2^10) chars as input seems more than enough
4111 test $ac_count -gt 10 && break
4112 done
4113 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4114 esac
4115
4116 $ac_path_SED_found && break 3
4117 done
4118 done
4119 done
4120 IFS=$as_save_IFS
4121 if test -z "$ac_cv_path_SED"; then
4122 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4123 fi
4124 else
4125 ac_cv_path_SED=$SED
4126 fi
4127
4128 fi
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4130 $as_echo "$ac_cv_path_SED" >&6; }
4131 SED="$ac_cv_path_SED"
4132 rm -f conftest.sed
4133
4134 test -z "$SED" && SED=sed
4135 Xsed="$SED -e 1s/^X//"
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4148 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4149 if test "${ac_cv_path_GREP+set}" = set; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if test -z "$GREP"; then
4153 ac_path_GREP_found=false
4154 # Loop through the user's path and test for each of PROGNAME-LIST
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4157 do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_prog in grep ggrep; do
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4163 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4164 # Check for GNU ac_path_GREP and select it if it is found.
4165 # Check for GNU $ac_path_GREP
4166 case `"$ac_path_GREP" --version 2>&1` in
4167 *GNU*)
4168 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4169 *)
4170 ac_count=0
4171 $as_echo_n 0123456789 >"conftest.in"
4172 while :
4173 do
4174 cat "conftest.in" "conftest.in" >"conftest.tmp"
4175 mv "conftest.tmp" "conftest.in"
4176 cp "conftest.in" "conftest.nl"
4177 $as_echo 'GREP' >> "conftest.nl"
4178 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4180 as_fn_arith $ac_count + 1 && ac_count=$as_val
4181 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4182 # Best one so far, save it but keep looking for a better one
4183 ac_cv_path_GREP="$ac_path_GREP"
4184 ac_path_GREP_max=$ac_count
4185 fi
4186 # 10*(2^10) chars as input seems more than enough
4187 test $ac_count -gt 10 && break
4188 done
4189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4190 esac
4191
4192 $ac_path_GREP_found && break 3
4193 done
4194 done
4195 done
4196 IFS=$as_save_IFS
4197 if test -z "$ac_cv_path_GREP"; then
4198 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4199 fi
4200 else
4201 ac_cv_path_GREP=$GREP
4202 fi
4203
4204 fi
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4206 $as_echo "$ac_cv_path_GREP" >&6; }
4207 GREP="$ac_cv_path_GREP"
4208
4209
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4211 $as_echo_n "checking for egrep... " >&6; }
4212 if test "${ac_cv_path_EGREP+set}" = set; then :
4213 $as_echo_n "(cached) " >&6
4214 else
4215 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4216 then ac_cv_path_EGREP="$GREP -E"
4217 else
4218 if test -z "$EGREP"; then
4219 ac_path_EGREP_found=false
4220 # Loop through the user's path and test for each of PROGNAME-LIST
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4223 do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_prog in egrep; do
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4229 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4230 # Check for GNU ac_path_EGREP and select it if it is found.
4231 # Check for GNU $ac_path_EGREP
4232 case `"$ac_path_EGREP" --version 2>&1` in
4233 *GNU*)
4234 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4235 *)
4236 ac_count=0
4237 $as_echo_n 0123456789 >"conftest.in"
4238 while :
4239 do
4240 cat "conftest.in" "conftest.in" >"conftest.tmp"
4241 mv "conftest.tmp" "conftest.in"
4242 cp "conftest.in" "conftest.nl"
4243 $as_echo 'EGREP' >> "conftest.nl"
4244 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4246 as_fn_arith $ac_count + 1 && ac_count=$as_val
4247 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4248 # Best one so far, save it but keep looking for a better one
4249 ac_cv_path_EGREP="$ac_path_EGREP"
4250 ac_path_EGREP_max=$ac_count
4251 fi
4252 # 10*(2^10) chars as input seems more than enough
4253 test $ac_count -gt 10 && break
4254 done
4255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4256 esac
4257
4258 $ac_path_EGREP_found && break 3
4259 done
4260 done
4261 done
4262 IFS=$as_save_IFS
4263 if test -z "$ac_cv_path_EGREP"; then
4264 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4265 fi
4266 else
4267 ac_cv_path_EGREP=$EGREP
4268 fi
4269
4270 fi
4271 fi
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4273 $as_echo "$ac_cv_path_EGREP" >&6; }
4274 EGREP="$ac_cv_path_EGREP"
4275
4276
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4278 $as_echo_n "checking for fgrep... " >&6; }
4279 if test "${ac_cv_path_FGREP+set}" = set; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4283 then ac_cv_path_FGREP="$GREP -F"
4284 else
4285 if test -z "$FGREP"; then
4286 ac_path_FGREP_found=false
4287 # Loop through the user's path and test for each of PROGNAME-LIST
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4290 do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_prog in fgrep; do
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4296 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4297 # Check for GNU ac_path_FGREP and select it if it is found.
4298 # Check for GNU $ac_path_FGREP
4299 case `"$ac_path_FGREP" --version 2>&1` in
4300 *GNU*)
4301 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4302 *)
4303 ac_count=0
4304 $as_echo_n 0123456789 >"conftest.in"
4305 while :
4306 do
4307 cat "conftest.in" "conftest.in" >"conftest.tmp"
4308 mv "conftest.tmp" "conftest.in"
4309 cp "conftest.in" "conftest.nl"
4310 $as_echo 'FGREP' >> "conftest.nl"
4311 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4312 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4313 as_fn_arith $ac_count + 1 && ac_count=$as_val
4314 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4315 # Best one so far, save it but keep looking for a better one
4316 ac_cv_path_FGREP="$ac_path_FGREP"
4317 ac_path_FGREP_max=$ac_count
4318 fi
4319 # 10*(2^10) chars as input seems more than enough
4320 test $ac_count -gt 10 && break
4321 done
4322 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4323 esac
4324
4325 $ac_path_FGREP_found && break 3
4326 done
4327 done
4328 done
4329 IFS=$as_save_IFS
4330 if test -z "$ac_cv_path_FGREP"; then
4331 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4332 fi
4333 else
4334 ac_cv_path_FGREP=$FGREP
4335 fi
4336
4337 fi
4338 fi
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4340 $as_echo "$ac_cv_path_FGREP" >&6; }
4341 FGREP="$ac_cv_path_FGREP"
4342
4343
4344 test -z "$GREP" && GREP=grep
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364 # Check whether --with-gnu-ld was given.
4365 if test "${with_gnu_ld+set}" = set; then :
4366 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4367 else
4368 with_gnu_ld=no
4369 fi
4370
4371 ac_prog=ld
4372 if test "$GCC" = yes; then
4373 # Check if gcc -print-prog-name=ld gives a path.
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4375 $as_echo_n "checking for ld used by $CC... " >&6; }
4376 case $host in
4377 *-*-mingw*)
4378 # gcc leaves a trailing carriage return which upsets mingw
4379 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4380 *)
4381 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4382 esac
4383 case $ac_prog in
4384 # Accept absolute paths.
4385 [\\/]* | ?:[\\/]*)
4386 re_direlt='/[^/][^/]*/\.\./'
4387 # Canonicalize the pathname of ld
4388 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4389 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4390 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4391 done
4392 test -z "$LD" && LD="$ac_prog"
4393 ;;
4394 "")
4395 # If it fails, then pretend we aren't using GCC.
4396 ac_prog=ld
4397 ;;
4398 *)
4399 # If it is relative, then search for the first ld in PATH.
4400 with_gnu_ld=unknown
4401 ;;
4402 esac
4403 elif test "$with_gnu_ld" = yes; then
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4405 $as_echo_n "checking for GNU ld... " >&6; }
4406 else
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4408 $as_echo_n "checking for non-GNU ld... " >&6; }
4409 fi
4410 if test "${lt_cv_path_LD+set}" = set; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 if test -z "$LD"; then
4414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4415 for ac_dir in $PATH; do
4416 IFS="$lt_save_ifs"
4417 test -z "$ac_dir" && ac_dir=.
4418 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4419 lt_cv_path_LD="$ac_dir/$ac_prog"
4420 # Check to see if the program is GNU ld. I'd rather use --version,
4421 # but apparently some variants of GNU ld only accept -v.
4422 # Break only if it was the GNU/non-GNU ld that we prefer.
4423 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4424 *GNU* | *'with BFD'*)
4425 test "$with_gnu_ld" != no && break
4426 ;;
4427 *)
4428 test "$with_gnu_ld" != yes && break
4429 ;;
4430 esac
4431 fi
4432 done
4433 IFS="$lt_save_ifs"
4434 else
4435 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4436 fi
4437 fi
4438
4439 LD="$lt_cv_path_LD"
4440 if test -n "$LD"; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4442 $as_echo "$LD" >&6; }
4443 else
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4446 fi
4447 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4449 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4450 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4451 $as_echo_n "(cached) " >&6
4452 else
4453 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4454 case `$LD -v 2>&1 </dev/null` in
4455 *GNU* | *'with BFD'*)
4456 lt_cv_prog_gnu_ld=yes
4457 ;;
4458 *)
4459 lt_cv_prog_gnu_ld=no
4460 ;;
4461 esac
4462 fi
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4464 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4465 with_gnu_ld=$lt_cv_prog_gnu_ld
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4476 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4477 if test "${lt_cv_path_NM+set}" = set; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 if test -n "$NM"; then
4481 # Let the user override the test.
4482 lt_cv_path_NM="$NM"
4483 else
4484 lt_nm_to_check="${ac_tool_prefix}nm"
4485 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4486 lt_nm_to_check="$lt_nm_to_check nm"
4487 fi
4488 for lt_tmp_nm in $lt_nm_to_check; do
4489 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4490 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4491 IFS="$lt_save_ifs"
4492 test -z "$ac_dir" && ac_dir=.
4493 tmp_nm="$ac_dir/$lt_tmp_nm"
4494 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4495 # Check to see if the nm accepts a BSD-compat flag.
4496 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4497 # nm: unknown option "B" ignored
4498 # Tru64's nm complains that /dev/null is an invalid object file
4499 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4500 */dev/null* | *'Invalid file or object type'*)
4501 lt_cv_path_NM="$tmp_nm -B"
4502 break
4503 ;;
4504 *)
4505 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4506 */dev/null*)
4507 lt_cv_path_NM="$tmp_nm -p"
4508 break
4509 ;;
4510 *)
4511 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4512 continue # so that we can try to find one that supports BSD flags
4513 ;;
4514 esac
4515 ;;
4516 esac
4517 fi
4518 done
4519 IFS="$lt_save_ifs"
4520 done
4521 : ${lt_cv_path_NM=no}
4522 fi
4523 fi
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4525 $as_echo "$lt_cv_path_NM" >&6; }
4526 if test "$lt_cv_path_NM" != "no"; then
4527 NM="$lt_cv_path_NM"
4528 else
4529 # Didn't find any BSD compatible name lister, look for dumpbin.
4530 if test -n "$DUMPBIN"; then :
4531 # Let the user override the test.
4532 else
4533 if test -n "$ac_tool_prefix"; then
4534 for ac_prog in dumpbin "link -dump"
4535 do
4536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539 $as_echo_n "checking for $ac_word... " >&6; }
4540 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 if test -n "$DUMPBIN"; then
4544 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4545 else
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $PATH
4548 do
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4553 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 break 2
4556 fi
4557 done
4558 done
4559 IFS=$as_save_IFS
4560
4561 fi
4562 fi
4563 DUMPBIN=$ac_cv_prog_DUMPBIN
4564 if test -n "$DUMPBIN"; then
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4566 $as_echo "$DUMPBIN" >&6; }
4567 else
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 $as_echo "no" >&6; }
4570 fi
4571
4572
4573 test -n "$DUMPBIN" && break
4574 done
4575 fi
4576 if test -z "$DUMPBIN"; then
4577 ac_ct_DUMPBIN=$DUMPBIN
4578 for ac_prog in dumpbin "link -dump"
4579 do
4580 # Extract the first word of "$ac_prog", so it can be a program name with args.
4581 set dummy $ac_prog; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -n "$ac_ct_DUMPBIN"; then
4588 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4592 do
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4600 fi
4601 done
4602 done
4603 IFS=$as_save_IFS
4604
4605 fi
4606 fi
4607 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4608 if test -n "$ac_ct_DUMPBIN"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4610 $as_echo "$ac_ct_DUMPBIN" >&6; }
4611 else
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4614 fi
4615
4616
4617 test -n "$ac_ct_DUMPBIN" && break
4618 done
4619
4620 if test "x$ac_ct_DUMPBIN" = x; then
4621 DUMPBIN=":"
4622 else
4623 case $cross_compiling:$ac_tool_warned in
4624 yes:)
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4627 ac_tool_warned=yes ;;
4628 esac
4629 DUMPBIN=$ac_ct_DUMPBIN
4630 fi
4631 fi
4632
4633 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4634 *COFF*)
4635 DUMPBIN="$DUMPBIN -symbols"
4636 ;;
4637 *)
4638 DUMPBIN=:
4639 ;;
4640 esac
4641 fi
4642
4643 if test "$DUMPBIN" != ":"; then
4644 NM="$DUMPBIN"
4645 fi
4646 fi
4647 test -z "$NM" && NM=nm
4648
4649
4650
4651
4652
4653
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4655 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4656 if test "${lt_cv_nm_interface+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 lt_cv_nm_interface="BSD nm"
4660 echo "int some_variable = 0;" > conftest.$ac_ext
4661 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4662 (eval "$ac_compile" 2>conftest.err)
4663 cat conftest.err >&5
4664 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4665 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4666 cat conftest.err >&5
4667 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4668 cat conftest.out >&5
4669 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4670 lt_cv_nm_interface="MS dumpbin"
4671 fi
4672 rm -f conftest*
4673 fi
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4675 $as_echo "$lt_cv_nm_interface" >&6; }
4676
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4678 $as_echo_n "checking whether ln -s works... " >&6; }
4679 LN_S=$as_ln_s
4680 if test "$LN_S" = "ln -s"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4682 $as_echo "yes" >&6; }
4683 else
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4685 $as_echo "no, using $LN_S" >&6; }
4686 fi
4687
4688 # find the maximum length of command line arguments
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4690 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4691 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 i=0
4695 teststring="ABCD"
4696
4697 case $build_os in
4698 msdosdjgpp*)
4699 # On DJGPP, this test can blow up pretty badly due to problems in libc
4700 # (any single argument exceeding 2000 bytes causes a buffer overrun
4701 # during glob expansion). Even if it were fixed, the result of this
4702 # check would be larger than it should be.
4703 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4704 ;;
4705
4706 gnu*)
4707 # Under GNU Hurd, this test is not required because there is
4708 # no limit to the length of command line arguments.
4709 # Libtool will interpret -1 as no limit whatsoever
4710 lt_cv_sys_max_cmd_len=-1;
4711 ;;
4712
4713 cygwin* | mingw* | cegcc*)
4714 # On Win9x/ME, this test blows up -- it succeeds, but takes
4715 # about 5 minutes as the teststring grows exponentially.
4716 # Worse, since 9x/ME are not pre-emptively multitasking,
4717 # you end up with a "frozen" computer, even though with patience
4718 # the test eventually succeeds (with a max line length of 256k).
4719 # Instead, let's just punt: use the minimum linelength reported by
4720 # all of the supported platforms: 8192 (on NT/2K/XP).
4721 lt_cv_sys_max_cmd_len=8192;
4722 ;;
4723
4724 mint*)
4725 # On MiNT this can take a long time and run out of memory.
4726 lt_cv_sys_max_cmd_len=8192;
4727 ;;
4728
4729 amigaos*)
4730 # On AmigaOS with pdksh, this test takes hours, literally.
4731 # So we just punt and use a minimum line length of 8192.
4732 lt_cv_sys_max_cmd_len=8192;
4733 ;;
4734
4735 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4736 # This has been around since 386BSD, at least. Likely further.
4737 if test -x /sbin/sysctl; then
4738 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4739 elif test -x /usr/sbin/sysctl; then
4740 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4741 else
4742 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4743 fi
4744 # And add a safety zone
4745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4747 ;;
4748
4749 interix*)
4750 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4751 lt_cv_sys_max_cmd_len=196608
4752 ;;
4753
4754 osf*)
4755 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4756 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4757 # nice to cause kernel panics so lets avoid the loop below.
4758 # First set a reasonable default.
4759 lt_cv_sys_max_cmd_len=16384
4760 #
4761 if test -x /sbin/sysconfig; then
4762 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4763 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4764 esac
4765 fi
4766 ;;
4767 sco3.2v5*)
4768 lt_cv_sys_max_cmd_len=102400
4769 ;;
4770 sysv5* | sco5v6* | sysv4.2uw2*)
4771 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4772 if test -n "$kargmax"; then
4773 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4774 else
4775 lt_cv_sys_max_cmd_len=32768
4776 fi
4777 ;;
4778 *)
4779 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4780 if test -n "$lt_cv_sys_max_cmd_len"; then
4781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4783 else
4784 # Make teststring a little bigger before we do anything with it.
4785 # a 1K string should be a reasonable start.
4786 for i in 1 2 3 4 5 6 7 8 ; do
4787 teststring=$teststring$teststring
4788 done
4789 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4790 # If test is not a shell built-in, we'll probably end up computing a
4791 # maximum length that is only half of the actual maximum length, but
4792 # we can't tell.
4793 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4794 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4795 test $i != 17 # 1/2 MB should be enough
4796 do
4797 i=`expr $i + 1`
4798 teststring=$teststring$teststring
4799 done
4800 # Only check the string length outside the loop.
4801 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4802 teststring=
4803 # Add a significant safety factor because C++ compilers can tack on
4804 # massive amounts of additional arguments before passing them to the
4805 # linker. It appears as though 1/2 is a usable value.
4806 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4807 fi
4808 ;;
4809 esac
4810
4811 fi
4812
4813 if test -n $lt_cv_sys_max_cmd_len ; then
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4815 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4816 else
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4818 $as_echo "none" >&6; }
4819 fi
4820 max_cmd_len=$lt_cv_sys_max_cmd_len
4821
4822
4823
4824
4825
4826
4827 : ${CP="cp -f"}
4828 : ${MV="mv -f"}
4829 : ${RM="rm -f"}
4830
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4832 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4833 # Try some XSI features
4834 xsi_shell=no
4835 ( _lt_dummy="a/b/c"
4836 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4837 = c,a/b,, \
4838 && eval 'test $(( 1 + 1 )) -eq 2 \
4839 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4840 && xsi_shell=yes
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4842 $as_echo "$xsi_shell" >&6; }
4843
4844
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4846 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4847 lt_shell_append=no
4848 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4849 >/dev/null 2>&1 \
4850 && lt_shell_append=yes
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4852 $as_echo "$lt_shell_append" >&6; }
4853
4854
4855 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4856 lt_unset=unset
4857 else
4858 lt_unset=false
4859 fi
4860
4861
4862
4863
4864
4865 # test EBCDIC or ASCII
4866 case `echo X|tr X '\101'` in
4867 A) # ASCII based system
4868 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4869 lt_SP2NL='tr \040 \012'
4870 lt_NL2SP='tr \015\012 \040\040'
4871 ;;
4872 *) # EBCDIC based system
4873 lt_SP2NL='tr \100 \n'
4874 lt_NL2SP='tr \r\n \100\100'
4875 ;;
4876 esac
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4887 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4888 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 lt_cv_ld_reload_flag='-r'
4892 fi
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4894 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4895 reload_flag=$lt_cv_ld_reload_flag
4896 case $reload_flag in
4897 "" | " "*) ;;
4898 *) reload_flag=" $reload_flag" ;;
4899 esac
4900 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4901 case $host_os in
4902 darwin*)
4903 if test "$GCC" = yes; then
4904 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4905 else
4906 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4907 fi
4908 ;;
4909 esac
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919 if test -n "$ac_tool_prefix"; then
4920 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4921 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923 $as_echo_n "checking for $ac_word... " >&6; }
4924 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 if test -n "$OBJDUMP"; then
4928 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4929 else
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4932 do
4933 IFS=$as_save_IFS
4934 test -z "$as_dir" && as_dir=.
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4937 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 break 2
4940 fi
4941 done
4942 done
4943 IFS=$as_save_IFS
4944
4945 fi
4946 fi
4947 OBJDUMP=$ac_cv_prog_OBJDUMP
4948 if test -n "$OBJDUMP"; then
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4950 $as_echo "$OBJDUMP" >&6; }
4951 else
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953 $as_echo "no" >&6; }
4954 fi
4955
4956
4957 fi
4958 if test -z "$ac_cv_prog_OBJDUMP"; then
4959 ac_ct_OBJDUMP=$OBJDUMP
4960 # Extract the first word of "objdump", so it can be a program name with args.
4961 set dummy objdump; ac_word=$2
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963 $as_echo_n "checking for $ac_word... " >&6; }
4964 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4967 if test -n "$ac_ct_OBJDUMP"; then
4968 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4969 else
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4972 do
4973 IFS=$as_save_IFS
4974 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4979 break 2
4980 fi
4981 done
4982 done
4983 IFS=$as_save_IFS
4984
4985 fi
4986 fi
4987 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4988 if test -n "$ac_ct_OBJDUMP"; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4990 $as_echo "$ac_ct_OBJDUMP" >&6; }
4991 else
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4994 fi
4995
4996 if test "x$ac_ct_OBJDUMP" = x; then
4997 OBJDUMP="false"
4998 else
4999 case $cross_compiling:$ac_tool_warned in
5000 yes:)
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5003 ac_tool_warned=yes ;;
5004 esac
5005 OBJDUMP=$ac_ct_OBJDUMP
5006 fi
5007 else
5008 OBJDUMP="$ac_cv_prog_OBJDUMP"
5009 fi
5010
5011 test -z "$OBJDUMP" && OBJDUMP=objdump
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5022 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5023 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5024 $as_echo_n "(cached) " >&6
5025 else
5026 lt_cv_file_magic_cmd='$MAGIC_CMD'
5027 lt_cv_file_magic_test_file=
5028 lt_cv_deplibs_check_method='unknown'
5029 # Need to set the preceding variable on all platforms that support
5030 # interlibrary dependencies.
5031 # 'none' -- dependencies not supported.
5032 # `unknown' -- same as none, but documents that we really don't know.
5033 # 'pass_all' -- all dependencies passed with no checks.
5034 # 'test_compile' -- check by making test program.
5035 # 'file_magic [[regex]]' -- check by looking for files in library path
5036 # which responds to the $file_magic_cmd with a given extended regex.
5037 # If you have `file' or equivalent on your system and you're not sure
5038 # whether `pass_all' will *always* work, you probably want this one.
5039
5040 case $host_os in
5041 aix[4-9]*)
5042 lt_cv_deplibs_check_method=pass_all
5043 ;;
5044
5045 beos*)
5046 lt_cv_deplibs_check_method=pass_all
5047 ;;
5048
5049 bsdi[45]*)
5050 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5051 lt_cv_file_magic_cmd='/usr/bin/file -L'
5052 lt_cv_file_magic_test_file=/shlib/libc.so
5053 ;;
5054
5055 cygwin*)
5056 # func_win32_libid is a shell function defined in ltmain.sh
5057 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5058 lt_cv_file_magic_cmd='func_win32_libid'
5059 ;;
5060
5061 mingw* | pw32*)
5062 # Base MSYS/MinGW do not provide the 'file' command needed by
5063 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5064 # unless we find 'file', for example because we are cross-compiling.
5065 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5066 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5067 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5068 lt_cv_file_magic_cmd='func_win32_libid'
5069 else
5070 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5071 lt_cv_file_magic_cmd='$OBJDUMP -f'
5072 fi
5073 ;;
5074
5075 cegcc*)
5076 # use the weaker test based on 'objdump'. See mingw*.
5077 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5078 lt_cv_file_magic_cmd='$OBJDUMP -f'
5079 ;;
5080
5081 darwin* | rhapsody*)
5082 lt_cv_deplibs_check_method=pass_all
5083 ;;
5084
5085 freebsd* | dragonfly*)
5086 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5087 case $host_cpu in
5088 i*86 )
5089 # Not sure whether the presence of OpenBSD here was a mistake.
5090 # Let's accept both of them until this is cleared up.
5091 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5092 lt_cv_file_magic_cmd=/usr/bin/file
5093 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5094 ;;
5095 esac
5096 else
5097 lt_cv_deplibs_check_method=pass_all
5098 fi
5099 ;;
5100
5101 gnu*)
5102 lt_cv_deplibs_check_method=pass_all
5103 ;;
5104
5105 haiku*)
5106 lt_cv_deplibs_check_method=pass_all
5107 ;;
5108
5109 hpux10.20* | hpux11*)
5110 lt_cv_file_magic_cmd=/usr/bin/file
5111 case $host_cpu in
5112 ia64*)
5113 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5114 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5115 ;;
5116 hppa*64*)
5117 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]'
5118 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5119 ;;
5120 *)
5121 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5122 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5123 ;;
5124 esac
5125 ;;
5126
5127 interix[3-9]*)
5128 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5130 ;;
5131
5132 irix5* | irix6* | nonstopux*)
5133 case $LD in
5134 *-32|*"-32 ") libmagic=32-bit;;
5135 *-n32|*"-n32 ") libmagic=N32;;
5136 *-64|*"-64 ") libmagic=64-bit;;
5137 *) libmagic=never-match;;
5138 esac
5139 lt_cv_deplibs_check_method=pass_all
5140 ;;
5141
5142 # This must be Linux ELF.
5143 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5144 lt_cv_deplibs_check_method=pass_all
5145 ;;
5146
5147 netbsd*)
5148 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5150 else
5151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5152 fi
5153 ;;
5154
5155 newos6*)
5156 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5157 lt_cv_file_magic_cmd=/usr/bin/file
5158 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5159 ;;
5160
5161 *nto* | *qnx*)
5162 lt_cv_deplibs_check_method=pass_all
5163 ;;
5164
5165 openbsd*)
5166 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5168 else
5169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5170 fi
5171 ;;
5172
5173 osf3* | osf4* | osf5*)
5174 lt_cv_deplibs_check_method=pass_all
5175 ;;
5176
5177 rdos*)
5178 lt_cv_deplibs_check_method=pass_all
5179 ;;
5180
5181 solaris*)
5182 lt_cv_deplibs_check_method=pass_all
5183 ;;
5184
5185 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5186 lt_cv_deplibs_check_method=pass_all
5187 ;;
5188
5189 sysv4 | sysv4.3*)
5190 case $host_vendor in
5191 motorola)
5192 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]'
5193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5194 ;;
5195 ncr)
5196 lt_cv_deplibs_check_method=pass_all
5197 ;;
5198 sequent)
5199 lt_cv_file_magic_cmd='/bin/file'
5200 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5201 ;;
5202 sni)
5203 lt_cv_file_magic_cmd='/bin/file'
5204 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5205 lt_cv_file_magic_test_file=/lib/libc.so
5206 ;;
5207 siemens)
5208 lt_cv_deplibs_check_method=pass_all
5209 ;;
5210 pc)
5211 lt_cv_deplibs_check_method=pass_all
5212 ;;
5213 esac
5214 ;;
5215
5216 tpf*)
5217 lt_cv_deplibs_check_method=pass_all
5218 ;;
5219 esac
5220
5221 fi
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5223 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5224 file_magic_cmd=$lt_cv_file_magic_cmd
5225 deplibs_check_method=$lt_cv_deplibs_check_method
5226 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239 if test -n "$ac_tool_prefix"; then
5240 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5241 set dummy ${ac_tool_prefix}ar; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if test "${ac_cv_prog_AR+set}" = set; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 if test -n "$AR"; then
5248 ac_cv_prog_AR="$AR" # Let the user override the test.
5249 else
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5252 do
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5257 ac_cv_prog_AR="${ac_tool_prefix}ar"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5260 fi
5261 done
5262 done
5263 IFS=$as_save_IFS
5264
5265 fi
5266 fi
5267 AR=$ac_cv_prog_AR
5268 if test -n "$AR"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5270 $as_echo "$AR" >&6; }
5271 else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5274 fi
5275
5276
5277 fi
5278 if test -z "$ac_cv_prog_AR"; then
5279 ac_ct_AR=$AR
5280 # Extract the first word of "ar", so it can be a program name with args.
5281 set dummy ar; ac_word=$2
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 if test -n "$ac_ct_AR"; then
5288 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5289 else
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297 ac_cv_prog_ac_ct_AR="ar"
5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 break 2
5300 fi
5301 done
5302 done
5303 IFS=$as_save_IFS
5304
5305 fi
5306 fi
5307 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5308 if test -n "$ac_ct_AR"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5310 $as_echo "$ac_ct_AR" >&6; }
5311 else
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5314 fi
5315
5316 if test "x$ac_ct_AR" = x; then
5317 AR="false"
5318 else
5319 case $cross_compiling:$ac_tool_warned in
5320 yes:)
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5323 ac_tool_warned=yes ;;
5324 esac
5325 AR=$ac_ct_AR
5326 fi
5327 else
5328 AR="$ac_cv_prog_AR"
5329 fi
5330
5331 test -z "$AR" && AR=ar
5332 test -z "$AR_FLAGS" && AR_FLAGS=cru
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344 if test -n "$ac_tool_prefix"; then
5345 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5346 set dummy ${ac_tool_prefix}strip; ac_word=$2
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if test "${ac_cv_prog_STRIP+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 if test -n "$STRIP"; then
5353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364 break 2
5365 fi
5366 done
5367 done
5368 IFS=$as_save_IFS
5369
5370 fi
5371 fi
5372 STRIP=$ac_cv_prog_STRIP
5373 if test -n "$STRIP"; then
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5375 $as_echo "$STRIP" >&6; }
5376 else
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5379 fi
5380
5381
5382 fi
5383 if test -z "$ac_cv_prog_STRIP"; then
5384 ac_ct_STRIP=$STRIP
5385 # Extract the first word of "strip", so it can be a program name with args.
5386 set dummy strip; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5390 $as_echo_n "(cached) " >&6
5391 else
5392 if test -n "$ac_ct_STRIP"; then
5393 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5397 do
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402 ac_cv_prog_ac_ct_STRIP="strip"
5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 break 2
5405 fi
5406 done
5407 done
5408 IFS=$as_save_IFS
5409
5410 fi
5411 fi
5412 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5413 if test -n "$ac_ct_STRIP"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5415 $as_echo "$ac_ct_STRIP" >&6; }
5416 else
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5419 fi
5420
5421 if test "x$ac_ct_STRIP" = x; then
5422 STRIP=":"
5423 else
5424 case $cross_compiling:$ac_tool_warned in
5425 yes:)
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5428 ac_tool_warned=yes ;;
5429 esac
5430 STRIP=$ac_ct_STRIP
5431 fi
5432 else
5433 STRIP="$ac_cv_prog_STRIP"
5434 fi
5435
5436 test -z "$STRIP" && STRIP=:
5437
5438
5439
5440
5441
5442
5443 if test -n "$ac_tool_prefix"; then
5444 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5445 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447 $as_echo_n "checking for $ac_word... " >&6; }
5448 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 if test -n "$RANLIB"; then
5452 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5453 else
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5456 do
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_exec_ext in '' $ac_executable_extensions; do
5460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5461 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463 break 2
5464 fi
5465 done
5466 done
5467 IFS=$as_save_IFS
5468
5469 fi
5470 fi
5471 RANLIB=$ac_cv_prog_RANLIB
5472 if test -n "$RANLIB"; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5474 $as_echo "$RANLIB" >&6; }
5475 else
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5478 fi
5479
5480
5481 fi
5482 if test -z "$ac_cv_prog_RANLIB"; then
5483 ac_ct_RANLIB=$RANLIB
5484 # Extract the first word of "ranlib", so it can be a program name with args.
5485 set dummy ranlib; ac_word=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 if test -n "$ac_ct_RANLIB"; then
5492 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5493 else
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5496 do
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5501 ac_cv_prog_ac_ct_RANLIB="ranlib"
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 break 2
5504 fi
5505 done
5506 done
5507 IFS=$as_save_IFS
5508
5509 fi
5510 fi
5511 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5512 if test -n "$ac_ct_RANLIB"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5514 $as_echo "$ac_ct_RANLIB" >&6; }
5515 else
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5518 fi
5519
5520 if test "x$ac_ct_RANLIB" = x; then
5521 RANLIB=":"
5522 else
5523 case $cross_compiling:$ac_tool_warned in
5524 yes:)
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5527 ac_tool_warned=yes ;;
5528 esac
5529 RANLIB=$ac_ct_RANLIB
5530 fi
5531 else
5532 RANLIB="$ac_cv_prog_RANLIB"
5533 fi
5534
5535 test -z "$RANLIB" && RANLIB=:
5536
5537
5538
5539
5540
5541
5542 # Determine commands to create old-style static archives.
5543 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5544 old_postinstall_cmds='chmod 644 $oldlib'
5545 old_postuninstall_cmds=
5546
5547 if test -n "$RANLIB"; then
5548 case $host_os in
5549 openbsd*)
5550 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5551 ;;
5552 *)
5553 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5554 ;;
5555 esac
5556 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5557 fi
5558
5559 case $host_os in
5560 darwin*)
5561 lock_old_archive_extraction=yes ;;
5562 *)
5563 lock_old_archive_extraction=no ;;
5564 esac
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604 # If no C compiler was specified, use CC.
5605 LTCC=${LTCC-"$CC"}
5606
5607 # If no C compiler flags were specified, use CFLAGS.
5608 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5609
5610 # Allow CC to be a program name with arguments.
5611 compiler=$CC
5612
5613
5614 # Check for command to grab the raw symbol name followed by C symbol from nm.
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5616 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5617 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620
5621 # These are sane defaults that work on at least a few old systems.
5622 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5623
5624 # Character class describing NM global symbol codes.
5625 symcode='[BCDEGRST]'
5626
5627 # Regexp to match symbols that can be accessed directly from C.
5628 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5629
5630 # Define system-specific variables.
5631 case $host_os in
5632 aix*)
5633 symcode='[BCDT]'
5634 ;;
5635 cygwin* | mingw* | pw32* | cegcc*)
5636 symcode='[ABCDGISTW]'
5637 ;;
5638 hpux*)
5639 if test "$host_cpu" = ia64; then
5640 symcode='[ABCDEGRST]'
5641 fi
5642 ;;
5643 irix* | nonstopux*)
5644 symcode='[BCDEGRST]'
5645 ;;
5646 osf*)
5647 symcode='[BCDEGQRST]'
5648 ;;
5649 solaris*)
5650 symcode='[BDRT]'
5651 ;;
5652 sco3.2v5*)
5653 symcode='[DT]'
5654 ;;
5655 sysv4.2uw2*)
5656 symcode='[DT]'
5657 ;;
5658 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5659 symcode='[ABDT]'
5660 ;;
5661 sysv4)
5662 symcode='[DFNSTU]'
5663 ;;
5664 esac
5665
5666 # If we're using GNU nm, then use its standard symbol codes.
5667 case `$NM -V 2>&1` in
5668 *GNU* | *'with BFD'*)
5669 symcode='[ABCDGIRSTW]' ;;
5670 esac
5671
5672 # Transform an extracted symbol line into a proper C declaration.
5673 # Some systems (esp. on ia64) link data and code symbols differently,
5674 # so use this general approach.
5675 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5676
5677 # Transform an extracted symbol line into symbol name and symbol address
5678 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5679 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'"
5680
5681 # Handle CRLF in mingw tool chain
5682 opt_cr=
5683 case $build_os in
5684 mingw*)
5685 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5686 ;;
5687 esac
5688
5689 # Try without a prefix underscore, then with it.
5690 for ac_symprfx in "" "_"; do
5691
5692 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5693 symxfrm="\\1 $ac_symprfx\\2 \\2"
5694
5695 # Write the raw and C identifiers.
5696 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5697 # Fake it for dumpbin and say T for any non-static function
5698 # and D for any global variable.
5699 # Also find C++ and __fastcall symbols from MSVC++,
5700 # which start with @ or ?.
5701 lt_cv_sys_global_symbol_pipe="$AWK '"\
5702 " {last_section=section; section=\$ 3};"\
5703 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5704 " \$ 0!~/External *\|/{next};"\
5705 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5706 " {if(hide[section]) next};"\
5707 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5708 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5709 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5710 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5711 " ' prfx=^$ac_symprfx"
5712 else
5713 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5714 fi
5715
5716 # Check to see that the pipe works correctly.
5717 pipe_works=no
5718
5719 rm -f conftest*
5720 cat > conftest.$ac_ext <<_LT_EOF
5721 #ifdef __cplusplus
5722 extern "C" {
5723 #endif
5724 char nm_test_var;
5725 void nm_test_func(void);
5726 void nm_test_func(void){}
5727 #ifdef __cplusplus
5728 }
5729 #endif
5730 int main(){nm_test_var='a';nm_test_func();return(0);}
5731 _LT_EOF
5732
5733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5734 (eval $ac_compile) 2>&5
5735 ac_status=$?
5736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5737 test $ac_status = 0; }; then
5738 # Now try to grab the symbols.
5739 nlist=conftest.nm
5740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5741 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5742 ac_status=$?
5743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5744 test $ac_status = 0; } && test -s "$nlist"; then
5745 # Try sorting and uniquifying the output.
5746 if sort "$nlist" | uniq > "$nlist"T; then
5747 mv -f "$nlist"T "$nlist"
5748 else
5749 rm -f "$nlist"T
5750 fi
5751
5752 # Make sure that we snagged all the symbols we need.
5753 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5754 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5755 cat <<_LT_EOF > conftest.$ac_ext
5756 #ifdef __cplusplus
5757 extern "C" {
5758 #endif
5759
5760 _LT_EOF
5761 # Now generate the symbol file.
5762 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5763
5764 cat <<_LT_EOF >> conftest.$ac_ext
5765
5766 /* The mapping between symbol names and symbols. */
5767 const struct {
5768 const char *name;
5769 void *address;
5770 }
5771 lt__PROGRAM__LTX_preloaded_symbols[] =
5772 {
5773 { "@PROGRAM@", (void *) 0 },
5774 _LT_EOF
5775 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5776 cat <<\_LT_EOF >> conftest.$ac_ext
5777 {0, (void *) 0}
5778 };
5779
5780 /* This works around a problem in FreeBSD linker */
5781 #ifdef FREEBSD_WORKAROUND
5782 static const void *lt_preloaded_setup() {
5783 return lt__PROGRAM__LTX_preloaded_symbols;
5784 }
5785 #endif
5786
5787 #ifdef __cplusplus
5788 }
5789 #endif
5790 _LT_EOF
5791 # Now try linking the two files.
5792 mv conftest.$ac_objext conftstm.$ac_objext
5793 lt_save_LIBS="$LIBS"
5794 lt_save_CFLAGS="$CFLAGS"
5795 LIBS="conftstm.$ac_objext"
5796 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5798 (eval $ac_link) 2>&5
5799 ac_status=$?
5800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5801 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5802 pipe_works=yes
5803 fi
5804 LIBS="$lt_save_LIBS"
5805 CFLAGS="$lt_save_CFLAGS"
5806 else
5807 echo "cannot find nm_test_func in $nlist" >&5
5808 fi
5809 else
5810 echo "cannot find nm_test_var in $nlist" >&5
5811 fi
5812 else
5813 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5814 fi
5815 else
5816 echo "$progname: failed program was:" >&5
5817 cat conftest.$ac_ext >&5
5818 fi
5819 rm -rf conftest* conftst*
5820
5821 # Do not use the global_symbol_pipe unless it works.
5822 if test "$pipe_works" = yes; then
5823 break
5824 else
5825 lt_cv_sys_global_symbol_pipe=
5826 fi
5827 done
5828
5829 fi
5830
5831 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5832 lt_cv_sys_global_symbol_to_cdecl=
5833 fi
5834 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5836 $as_echo "failed" >&6; }
5837 else
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5839 $as_echo "ok" >&6; }
5840 fi
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864 # Check whether --enable-libtool-lock was given.
5865 if test "${enable_libtool_lock+set}" = set; then :
5866 enableval=$enable_libtool_lock;
5867 fi
5868
5869 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5870
5871 # Some flags need to be propagated to the compiler or linker for good
5872 # libtool support.
5873 case $host in
5874 ia64-*-hpux*)
5875 # Find out which ABI we are using.
5876 echo 'int i;' > conftest.$ac_ext
5877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5878 (eval $ac_compile) 2>&5
5879 ac_status=$?
5880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5881 test $ac_status = 0; }; then
5882 case `/usr/bin/file conftest.$ac_objext` in
5883 *ELF-32*)
5884 HPUX_IA64_MODE="32"
5885 ;;
5886 *ELF-64*)
5887 HPUX_IA64_MODE="64"
5888 ;;
5889 esac
5890 fi
5891 rm -rf conftest*
5892 ;;
5893 *-*-irix6*)
5894 # Find out which ABI we are using.
5895 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5897 (eval $ac_compile) 2>&5
5898 ac_status=$?
5899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5900 test $ac_status = 0; }; then
5901 if test "$lt_cv_prog_gnu_ld" = yes; then
5902 case `/usr/bin/file conftest.$ac_objext` in
5903 *32-bit*)
5904 LD="${LD-ld} -melf32bsmip"
5905 ;;
5906 *N32*)
5907 LD="${LD-ld} -melf32bmipn32"
5908 ;;
5909 *64-bit*)
5910 LD="${LD-ld} -melf64bmip"
5911 ;;
5912 esac
5913 else
5914 case `/usr/bin/file conftest.$ac_objext` in
5915 *32-bit*)
5916 LD="${LD-ld} -32"
5917 ;;
5918 *N32*)
5919 LD="${LD-ld} -n32"
5920 ;;
5921 *64-bit*)
5922 LD="${LD-ld} -64"
5923 ;;
5924 esac
5925 fi
5926 fi
5927 rm -rf conftest*
5928 ;;
5929
5930 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5931 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5932 # Find out which ABI we are using.
5933 echo 'int i;' > conftest.$ac_ext
5934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5935 (eval $ac_compile) 2>&5
5936 ac_status=$?
5937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5938 test $ac_status = 0; }; then
5939 case `/usr/bin/file conftest.o` in
5940 *32-bit*)
5941 case $host in
5942 x86_64-*kfreebsd*-gnu)
5943 LD="${LD-ld} -m elf_i386_fbsd"
5944 ;;
5945 x86_64-*linux*)
5946 case `/usr/bin/file conftest.o` in
5947 *x86-64*)
5948 LD="${LD-ld} -m elf32_x86_64"
5949 ;;
5950 *)
5951 LD="${LD-ld} -m elf_i386"
5952 ;;
5953 esac
5954 ;;
5955 ppc64-*linux*|powerpc64-*linux*)
5956 LD="${LD-ld} -m elf32ppclinux"
5957 ;;
5958 s390x-*linux*)
5959 LD="${LD-ld} -m elf_s390"
5960 ;;
5961 sparc64-*linux*)
5962 LD="${LD-ld} -m elf32_sparc"
5963 ;;
5964 esac
5965 ;;
5966 *64-bit*)
5967 case $host in
5968 x86_64-*kfreebsd*-gnu)
5969 LD="${LD-ld} -m elf_x86_64_fbsd"
5970 ;;
5971 x86_64-*linux*)
5972 LD="${LD-ld} -m elf_x86_64"
5973 ;;
5974 ppc*-*linux*|powerpc*-*linux*)
5975 LD="${LD-ld} -m elf64ppc"
5976 ;;
5977 s390*-*linux*|s390*-*tpf*)
5978 LD="${LD-ld} -m elf64_s390"
5979 ;;
5980 sparc*-*linux*)
5981 LD="${LD-ld} -m elf64_sparc"
5982 ;;
5983 esac
5984 ;;
5985 esac
5986 fi
5987 rm -rf conftest*
5988 ;;
5989
5990 *-*-sco3.2v5*)
5991 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5992 SAVE_CFLAGS="$CFLAGS"
5993 CFLAGS="$CFLAGS -belf"
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5995 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5996 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 ac_ext=c
6000 ac_cpp='$CPP $CPPFLAGS'
6001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6004
6005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h. */
6007
6008 int
6009 main ()
6010 {
6011
6012 ;
6013 return 0;
6014 }
6015 _ACEOF
6016 if ac_fn_c_try_link "$LINENO"; then :
6017 lt_cv_cc_needs_belf=yes
6018 else
6019 lt_cv_cc_needs_belf=no
6020 fi
6021 rm -f core conftest.err conftest.$ac_objext \
6022 conftest$ac_exeext conftest.$ac_ext
6023 ac_ext=c
6024 ac_cpp='$CPP $CPPFLAGS'
6025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6028
6029 fi
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6031 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6032 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6033 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6034 CFLAGS="$SAVE_CFLAGS"
6035 fi
6036 ;;
6037 sparc*-*solaris*)
6038 # Find out which ABI we are using.
6039 echo 'int i;' > conftest.$ac_ext
6040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6041 (eval $ac_compile) 2>&5
6042 ac_status=$?
6043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6044 test $ac_status = 0; }; then
6045 case `/usr/bin/file conftest.o` in
6046 *64-bit*)
6047 case $lt_cv_prog_gnu_ld in
6048 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6049 *)
6050 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6051 LD="${LD-ld} -64"
6052 fi
6053 ;;
6054 esac
6055 ;;
6056 esac
6057 fi
6058 rm -rf conftest*
6059 ;;
6060 esac
6061
6062 need_locks="$enable_libtool_lock"
6063
6064
6065 case $host_os in
6066 rhapsody* | darwin*)
6067 if test -n "$ac_tool_prefix"; then
6068 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6069 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 if test -n "$DSYMUTIL"; then
6076 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6085 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 break 2
6088 fi
6089 done
6090 done
6091 IFS=$as_save_IFS
6092
6093 fi
6094 fi
6095 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6096 if test -n "$DSYMUTIL"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6098 $as_echo "$DSYMUTIL" >&6; }
6099 else
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6102 fi
6103
6104
6105 fi
6106 if test -z "$ac_cv_prog_DSYMUTIL"; then
6107 ac_ct_DSYMUTIL=$DSYMUTIL
6108 # Extract the first word of "dsymutil", so it can be a program name with args.
6109 set dummy dsymutil; ac_word=$2
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6113 $as_echo_n "(cached) " >&6
6114 else
6115 if test -n "$ac_ct_DSYMUTIL"; then
6116 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6117 else
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6120 do
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6125 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127 break 2
6128 fi
6129 done
6130 done
6131 IFS=$as_save_IFS
6132
6133 fi
6134 fi
6135 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6136 if test -n "$ac_ct_DSYMUTIL"; then
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6138 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6139 else
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6142 fi
6143
6144 if test "x$ac_ct_DSYMUTIL" = x; then
6145 DSYMUTIL=":"
6146 else
6147 case $cross_compiling:$ac_tool_warned in
6148 yes:)
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6151 ac_tool_warned=yes ;;
6152 esac
6153 DSYMUTIL=$ac_ct_DSYMUTIL
6154 fi
6155 else
6156 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6157 fi
6158
6159 if test -n "$ac_tool_prefix"; then
6160 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6161 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6163 $as_echo_n "checking for $ac_word... " >&6; }
6164 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 if test -n "$NMEDIT"; then
6168 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6169 else
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6171 for as_dir in $PATH
6172 do
6173 IFS=$as_save_IFS
6174 test -z "$as_dir" && as_dir=.
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6177 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6179 break 2
6180 fi
6181 done
6182 done
6183 IFS=$as_save_IFS
6184
6185 fi
6186 fi
6187 NMEDIT=$ac_cv_prog_NMEDIT
6188 if test -n "$NMEDIT"; then
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6190 $as_echo "$NMEDIT" >&6; }
6191 else
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6193 $as_echo "no" >&6; }
6194 fi
6195
6196
6197 fi
6198 if test -z "$ac_cv_prog_NMEDIT"; then
6199 ac_ct_NMEDIT=$NMEDIT
6200 # Extract the first word of "nmedit", so it can be a program name with args.
6201 set dummy nmedit; ac_word=$2
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 if test -n "$ac_ct_NMEDIT"; then
6208 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6212 do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6217 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 break 2
6220 fi
6221 done
6222 done
6223 IFS=$as_save_IFS
6224
6225 fi
6226 fi
6227 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6228 if test -n "$ac_ct_NMEDIT"; then
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6230 $as_echo "$ac_ct_NMEDIT" >&6; }
6231 else
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 $as_echo "no" >&6; }
6234 fi
6235
6236 if test "x$ac_ct_NMEDIT" = x; then
6237 NMEDIT=":"
6238 else
6239 case $cross_compiling:$ac_tool_warned in
6240 yes:)
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6243 ac_tool_warned=yes ;;
6244 esac
6245 NMEDIT=$ac_ct_NMEDIT
6246 fi
6247 else
6248 NMEDIT="$ac_cv_prog_NMEDIT"
6249 fi
6250
6251 if test -n "$ac_tool_prefix"; then
6252 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6253 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255 $as_echo_n "checking for $ac_word... " >&6; }
6256 if test "${ac_cv_prog_LIPO+set}" = set; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 if test -n "$LIPO"; then
6260 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265 IFS=$as_save_IFS
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 break 2
6272 fi
6273 done
6274 done
6275 IFS=$as_save_IFS
6276
6277 fi
6278 fi
6279 LIPO=$ac_cv_prog_LIPO
6280 if test -n "$LIPO"; then
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6282 $as_echo "$LIPO" >&6; }
6283 else
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285 $as_echo "no" >&6; }
6286 fi
6287
6288
6289 fi
6290 if test -z "$ac_cv_prog_LIPO"; then
6291 ac_ct_LIPO=$LIPO
6292 # Extract the first word of "lipo", so it can be a program name with args.
6293 set dummy lipo; ac_word=$2
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295 $as_echo_n "checking for $ac_word... " >&6; }
6296 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6297 $as_echo_n "(cached) " >&6
6298 else
6299 if test -n "$ac_ct_LIPO"; then
6300 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6301 else
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303 for as_dir in $PATH
6304 do
6305 IFS=$as_save_IFS
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6309 ac_cv_prog_ac_ct_LIPO="lipo"
6310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311 break 2
6312 fi
6313 done
6314 done
6315 IFS=$as_save_IFS
6316
6317 fi
6318 fi
6319 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6320 if test -n "$ac_ct_LIPO"; then
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6322 $as_echo "$ac_ct_LIPO" >&6; }
6323 else
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6326 fi
6327
6328 if test "x$ac_ct_LIPO" = x; then
6329 LIPO=":"
6330 else
6331 case $cross_compiling:$ac_tool_warned in
6332 yes:)
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6335 ac_tool_warned=yes ;;
6336 esac
6337 LIPO=$ac_ct_LIPO
6338 fi
6339 else
6340 LIPO="$ac_cv_prog_LIPO"
6341 fi
6342
6343 if test -n "$ac_tool_prefix"; then
6344 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6345 set dummy ${ac_tool_prefix}otool; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6349 $as_echo_n "(cached) " >&6
6350 else
6351 if test -n "$OTOOL"; then
6352 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 break 2
6364 fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369 fi
6370 fi
6371 OTOOL=$ac_cv_prog_OTOOL
6372 if test -n "$OTOOL"; then
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6374 $as_echo "$OTOOL" >&6; }
6375 else
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6378 fi
6379
6380
6381 fi
6382 if test -z "$ac_cv_prog_OTOOL"; then
6383 ac_ct_OTOOL=$OTOOL
6384 # Extract the first word of "otool", so it can be a program name with args.
6385 set dummy otool; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 if test -n "$ac_ct_OTOOL"; then
6392 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6396 do
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_prog_ac_ct_OTOOL="otool"
6402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6404 fi
6405 done
6406 done
6407 IFS=$as_save_IFS
6408
6409 fi
6410 fi
6411 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6412 if test -n "$ac_ct_OTOOL"; then
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6414 $as_echo "$ac_ct_OTOOL" >&6; }
6415 else
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6418 fi
6419
6420 if test "x$ac_ct_OTOOL" = x; then
6421 OTOOL=":"
6422 else
6423 case $cross_compiling:$ac_tool_warned in
6424 yes:)
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6427 ac_tool_warned=yes ;;
6428 esac
6429 OTOOL=$ac_ct_OTOOL
6430 fi
6431 else
6432 OTOOL="$ac_cv_prog_OTOOL"
6433 fi
6434
6435 if test -n "$ac_tool_prefix"; then
6436 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6437 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 if test -n "$OTOOL64"; then
6444 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6456 fi
6457 done
6458 done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 OTOOL64=$ac_cv_prog_OTOOL64
6464 if test -n "$OTOOL64"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6466 $as_echo "$OTOOL64" >&6; }
6467 else
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6470 fi
6471
6472
6473 fi
6474 if test -z "$ac_cv_prog_OTOOL64"; then
6475 ac_ct_OTOOL64=$OTOOL64
6476 # Extract the first word of "otool64", so it can be a program name with args.
6477 set dummy otool64; ac_word=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 if test -n "$ac_ct_OTOOL64"; then
6484 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_prog_ac_ct_OTOOL64="otool64"
6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 break 2
6496 fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6500
6501 fi
6502 fi
6503 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6504 if test -n "$ac_ct_OTOOL64"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6506 $as_echo "$ac_ct_OTOOL64" >&6; }
6507 else
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 $as_echo "no" >&6; }
6510 fi
6511
6512 if test "x$ac_ct_OTOOL64" = x; then
6513 OTOOL64=":"
6514 else
6515 case $cross_compiling:$ac_tool_warned in
6516 yes:)
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6519 ac_tool_warned=yes ;;
6520 esac
6521 OTOOL64=$ac_ct_OTOOL64
6522 fi
6523 else
6524 OTOOL64="$ac_cv_prog_OTOOL64"
6525 fi
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6554 $as_echo_n "checking for -single_module linker flag... " >&6; }
6555 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6556 $as_echo_n "(cached) " >&6
6557 else
6558 lt_cv_apple_cc_single_mod=no
6559 if test -z "${LT_MULTI_MODULE}"; then
6560 # By default we will add the -single_module flag. You can override
6561 # by either setting the environment variable LT_MULTI_MODULE
6562 # non-empty at configure time, or by adding -multi_module to the
6563 # link flags.
6564 rm -rf libconftest.dylib*
6565 echo "int foo(void){return 1;}" > conftest.c
6566 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6567 -dynamiclib -Wl,-single_module conftest.c" >&5
6568 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6569 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6570 _lt_result=$?
6571 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6572 lt_cv_apple_cc_single_mod=yes
6573 else
6574 cat conftest.err >&5
6575 fi
6576 rm -rf libconftest.dylib*
6577 rm -f conftest.*
6578 fi
6579 fi
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6581 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6583 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6584 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 lt_cv_ld_exported_symbols_list=no
6588 save_LDFLAGS=$LDFLAGS
6589 echo "_main" > conftest.sym
6590 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6592 /* end confdefs.h. */
6593
6594 int
6595 main ()
6596 {
6597
6598 ;
6599 return 0;
6600 }
6601 _ACEOF
6602 if ac_fn_c_try_link "$LINENO"; then :
6603 lt_cv_ld_exported_symbols_list=yes
6604 else
6605 lt_cv_ld_exported_symbols_list=no
6606 fi
6607 rm -f core conftest.err conftest.$ac_objext \
6608 conftest$ac_exeext conftest.$ac_ext
6609 LDFLAGS="$save_LDFLAGS"
6610
6611 fi
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6613 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6615 $as_echo_n "checking for -force_load linker flag... " >&6; }
6616 if test "${lt_cv_ld_force_load+set}" = set; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 lt_cv_ld_force_load=no
6620 cat > conftest.c << _LT_EOF
6621 int forced_loaded() { return 2;}
6622 _LT_EOF
6623 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6624 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6625 echo "$AR cru libconftest.a conftest.o" >&5
6626 $AR cru libconftest.a conftest.o 2>&5
6627 cat > conftest.c << _LT_EOF
6628 int main() { return 0;}
6629 _LT_EOF
6630 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6631 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6632 _lt_result=$?
6633 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6634 lt_cv_ld_force_load=yes
6635 else
6636 cat conftest.err >&5
6637 fi
6638 rm -f conftest.err libconftest.a conftest conftest.c
6639 rm -rf conftest.dSYM
6640
6641 fi
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6643 $as_echo "$lt_cv_ld_force_load" >&6; }
6644 case $host_os in
6645 rhapsody* | darwin1.[012])
6646 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6647 darwin1.*)
6648 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6649 darwin*) # darwin 5.x on
6650 # if running on 10.5 or later, the deployment target defaults
6651 # to the OS version, if on x86, and 10.4, the deployment
6652 # target defaults to 10.4. Don't you love it?
6653 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6654 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6655 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6656 10.[012]*)
6657 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6658 10.*)
6659 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6660 esac
6661 ;;
6662 esac
6663 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6664 _lt_dar_single_mod='$single_module'
6665 fi
6666 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6667 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6668 else
6669 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6670 fi
6671 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6672 _lt_dsymutil='~$DSYMUTIL $lib || :'
6673 else
6674 _lt_dsymutil=
6675 fi
6676 ;;
6677 esac
6678
6679 ac_ext=c
6680 ac_cpp='$CPP $CPPFLAGS'
6681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6685 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6686 # On Suns, sometimes $CPP names a directory.
6687 if test -n "$CPP" && test -d "$CPP"; then
6688 CPP=
6689 fi
6690 if test -z "$CPP"; then
6691 if test "${ac_cv_prog_CPP+set}" = set; then :
6692 $as_echo_n "(cached) " >&6
6693 else
6694 # Double quotes because CPP needs to be expanded
6695 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6696 do
6697 ac_preproc_ok=false
6698 for ac_c_preproc_warn_flag in '' yes
6699 do
6700 # Use a header file that comes with gcc, so configuring glibc
6701 # with a fresh cross-compiler works.
6702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6703 # <limits.h> exists even on freestanding compilers.
6704 # On the NeXT, cc -E runs the code through the compiler's parser,
6705 # not just through cpp. "Syntax error" is here to catch this case.
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6708 #ifdef __STDC__
6709 # include <limits.h>
6710 #else
6711 # include <assert.h>
6712 #endif
6713 Syntax error
6714 _ACEOF
6715 if ac_fn_c_try_cpp "$LINENO"; then :
6716
6717 else
6718 # Broken: fails on valid input.
6719 continue
6720 fi
6721 rm -f conftest.err conftest.$ac_ext
6722
6723 # OK, works on sane cases. Now check whether nonexistent headers
6724 # can be detected and how.
6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726 /* end confdefs.h. */
6727 #include <ac_nonexistent.h>
6728 _ACEOF
6729 if ac_fn_c_try_cpp "$LINENO"; then :
6730 # Broken: success on invalid input.
6731 continue
6732 else
6733 # Passes both tests.
6734 ac_preproc_ok=:
6735 break
6736 fi
6737 rm -f conftest.err conftest.$ac_ext
6738
6739 done
6740 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6741 rm -f conftest.err conftest.$ac_ext
6742 if $ac_preproc_ok; then :
6743 break
6744 fi
6745
6746 done
6747 ac_cv_prog_CPP=$CPP
6748
6749 fi
6750 CPP=$ac_cv_prog_CPP
6751 else
6752 ac_cv_prog_CPP=$CPP
6753 fi
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6755 $as_echo "$CPP" >&6; }
6756 ac_preproc_ok=false
6757 for ac_c_preproc_warn_flag in '' yes
6758 do
6759 # Use a header file that comes with gcc, so configuring glibc
6760 # with a fresh cross-compiler works.
6761 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6762 # <limits.h> exists even on freestanding compilers.
6763 # On the NeXT, cc -E runs the code through the compiler's parser,
6764 # not just through cpp. "Syntax error" is here to catch this case.
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6767 #ifdef __STDC__
6768 # include <limits.h>
6769 #else
6770 # include <assert.h>
6771 #endif
6772 Syntax error
6773 _ACEOF
6774 if ac_fn_c_try_cpp "$LINENO"; then :
6775
6776 else
6777 # Broken: fails on valid input.
6778 continue
6779 fi
6780 rm -f conftest.err conftest.$ac_ext
6781
6782 # OK, works on sane cases. Now check whether nonexistent headers
6783 # can be detected and how.
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h. */
6786 #include <ac_nonexistent.h>
6787 _ACEOF
6788 if ac_fn_c_try_cpp "$LINENO"; then :
6789 # Broken: success on invalid input.
6790 continue
6791 else
6792 # Passes both tests.
6793 ac_preproc_ok=:
6794 break
6795 fi
6796 rm -f conftest.err conftest.$ac_ext
6797
6798 done
6799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6800 rm -f conftest.err conftest.$ac_ext
6801 if $ac_preproc_ok; then :
6802
6803 else
6804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6806 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6807 See \`config.log' for more details." "$LINENO" 5; }
6808 fi
6809
6810 ac_ext=c
6811 ac_cpp='$CPP $CPPFLAGS'
6812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6815
6816
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6818 $as_echo_n "checking for ANSI C header files... " >&6; }
6819 if test "${ac_cv_header_stdc+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6823 /* end confdefs.h. */
6824 #include <stdlib.h>
6825 #include <stdarg.h>
6826 #include <string.h>
6827 #include <float.h>
6828
6829 int
6830 main ()
6831 {
6832
6833 ;
6834 return 0;
6835 }
6836 _ACEOF
6837 if ac_fn_c_try_compile "$LINENO"; then :
6838 ac_cv_header_stdc=yes
6839 else
6840 ac_cv_header_stdc=no
6841 fi
6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6843
6844 if test $ac_cv_header_stdc = yes; then
6845 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 #include <string.h>
6849
6850 _ACEOF
6851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6852 $EGREP "memchr" >/dev/null 2>&1; then :
6853
6854 else
6855 ac_cv_header_stdc=no
6856 fi
6857 rm -f conftest*
6858
6859 fi
6860
6861 if test $ac_cv_header_stdc = yes; then
6862 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6865 #include <stdlib.h>
6866
6867 _ACEOF
6868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6869 $EGREP "free" >/dev/null 2>&1; then :
6870
6871 else
6872 ac_cv_header_stdc=no
6873 fi
6874 rm -f conftest*
6875
6876 fi
6877
6878 if test $ac_cv_header_stdc = yes; then
6879 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6880 if test "$cross_compiling" = yes; then :
6881 :
6882 else
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6885 #include <ctype.h>
6886 #include <stdlib.h>
6887 #if ((' ' & 0x0FF) == 0x020)
6888 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6889 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6890 #else
6891 # define ISLOWER(c) \
6892 (('a' <= (c) && (c) <= 'i') \
6893 || ('j' <= (c) && (c) <= 'r') \
6894 || ('s' <= (c) && (c) <= 'z'))
6895 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6896 #endif
6897
6898 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6899 int
6900 main ()
6901 {
6902 int i;
6903 for (i = 0; i < 256; i++)
6904 if (XOR (islower (i), ISLOWER (i))
6905 || toupper (i) != TOUPPER (i))
6906 return 2;
6907 return 0;
6908 }
6909 _ACEOF
6910 if ac_fn_c_try_run "$LINENO"; then :
6911
6912 else
6913 ac_cv_header_stdc=no
6914 fi
6915 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6916 conftest.$ac_objext conftest.beam conftest.$ac_ext
6917 fi
6918
6919 fi
6920 fi
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6922 $as_echo "$ac_cv_header_stdc" >&6; }
6923 if test $ac_cv_header_stdc = yes; then
6924
6925 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6926
6927 fi
6928
6929 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6930 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6931 inttypes.h stdint.h unistd.h
6932 do :
6933 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6934 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6935 "
6936 eval as_val=\$$as_ac_Header
6937 if test "x$as_val" = x""yes; then :
6938 cat >>confdefs.h <<_ACEOF
6939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6940 _ACEOF
6941
6942 fi
6943
6944 done
6945
6946
6947 for ac_header in dlfcn.h
6948 do :
6949 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6950 "
6951 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6952 cat >>confdefs.h <<_ACEOF
6953 #define HAVE_DLFCN_H 1
6954 _ACEOF
6955
6956 fi
6957
6958 done
6959
6960
6961
6962
6963
6964 # Set options
6965 # Check whether --enable-shared was given.
6966 if test "${enable_shared+set}" = set; then :
6967 enableval=$enable_shared; p=${PACKAGE-default}
6968 case $enableval in
6969 yes) enable_shared=yes ;;
6970 no) enable_shared=no ;;
6971 *)
6972 enable_shared=no
6973 # Look at the argument we got. We use all the common list separators.
6974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6975 for pkg in $enableval; do
6976 IFS="$lt_save_ifs"
6977 if test "X$pkg" = "X$p"; then
6978 enable_shared=yes
6979 fi
6980 done
6981 IFS="$lt_save_ifs"
6982 ;;
6983 esac
6984 else
6985 enable_shared=no
6986 fi
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997 enable_dlopen=no
6998
6999
7000 enable_win32_dll=no
7001
7002
7003
7004 # Check whether --enable-static was given.
7005 if test "${enable_static+set}" = set; then :
7006 enableval=$enable_static; p=${PACKAGE-default}
7007 case $enableval in
7008 yes) enable_static=yes ;;
7009 no) enable_static=no ;;
7010 *)
7011 enable_static=no
7012 # Look at the argument we got. We use all the common list separators.
7013 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7014 for pkg in $enableval; do
7015 IFS="$lt_save_ifs"
7016 if test "X$pkg" = "X$p"; then
7017 enable_static=yes
7018 fi
7019 done
7020 IFS="$lt_save_ifs"
7021 ;;
7022 esac
7023 else
7024 enable_static=yes
7025 fi
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036 # Check whether --with-pic was given.
7037 if test "${with_pic+set}" = set; then :
7038 withval=$with_pic; pic_mode="$withval"
7039 else
7040 pic_mode=default
7041 fi
7042
7043
7044 test -z "$pic_mode" && pic_mode=default
7045
7046
7047
7048
7049
7050
7051
7052 # Check whether --enable-fast-install was given.
7053 if test "${enable_fast_install+set}" = set; then :
7054 enableval=$enable_fast_install; p=${PACKAGE-default}
7055 case $enableval in
7056 yes) enable_fast_install=yes ;;
7057 no) enable_fast_install=no ;;
7058 *)
7059 enable_fast_install=no
7060 # Look at the argument we got. We use all the common list separators.
7061 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7062 for pkg in $enableval; do
7063 IFS="$lt_save_ifs"
7064 if test "X$pkg" = "X$p"; then
7065 enable_fast_install=yes
7066 fi
7067 done
7068 IFS="$lt_save_ifs"
7069 ;;
7070 esac
7071 else
7072 enable_fast_install=yes
7073 fi
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085 # This can be used to rebuild libtool when needed
7086 LIBTOOL_DEPS="$ltmain"
7087
7088 # Always use our own libtool.
7089 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116 test -z "$LN_S" && LN_S="ln -s"
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131 if test -n "${ZSH_VERSION+set}" ; then
7132 setopt NO_GLOB_SUBST
7133 fi
7134
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7136 $as_echo_n "checking for objdir... " >&6; }
7137 if test "${lt_cv_objdir+set}" = set; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7140 rm -f .libs 2>/dev/null
7141 mkdir .libs 2>/dev/null
7142 if test -d .libs; then
7143 lt_cv_objdir=.libs
7144 else
7145 # MS-DOS does not allow filenames that begin with a dot.
7146 lt_cv_objdir=_libs
7147 fi
7148 rmdir .libs 2>/dev/null
7149 fi
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7151 $as_echo "$lt_cv_objdir" >&6; }
7152 objdir=$lt_cv_objdir
7153
7154
7155
7156
7157
7158 cat >>confdefs.h <<_ACEOF
7159 #define LT_OBJDIR "$lt_cv_objdir/"
7160 _ACEOF
7161
7162
7163
7164
7165 case $host_os in
7166 aix3*)
7167 # AIX sometimes has problems with the GCC collect2 program. For some
7168 # reason, if we set the COLLECT_NAMES environment variable, the problems
7169 # vanish in a puff of smoke.
7170 if test "X${COLLECT_NAMES+set}" != Xset; then
7171 COLLECT_NAMES=
7172 export COLLECT_NAMES
7173 fi
7174 ;;
7175 esac
7176
7177 # Global variables:
7178 ofile=libtool
7179 can_build_shared=yes
7180
7181 # All known linkers require a `.a' archive for static linking (except MSVC,
7182 # which needs '.lib').
7183 libext=a
7184
7185 with_gnu_ld="$lt_cv_prog_gnu_ld"
7186
7187 old_CC="$CC"
7188 old_CFLAGS="$CFLAGS"
7189
7190 # Set sane defaults for various variables
7191 test -z "$CC" && CC=cc
7192 test -z "$LTCC" && LTCC=$CC
7193 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7194 test -z "$LD" && LD=ld
7195 test -z "$ac_objext" && ac_objext=o
7196
7197 for cc_temp in $compiler""; do
7198 case $cc_temp in
7199 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7200 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7201 \-*) ;;
7202 *) break;;
7203 esac
7204 done
7205 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7206
7207
7208 # Only perform the check for file, if the check method requires it
7209 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7210 case $deplibs_check_method in
7211 file_magic*)
7212 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7214 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7215 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7216 $as_echo_n "(cached) " >&6
7217 else
7218 case $MAGIC_CMD in
7219 [\\/*] | ?:[\\/]*)
7220 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7221 ;;
7222 *)
7223 lt_save_MAGIC_CMD="$MAGIC_CMD"
7224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7225 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7226 for ac_dir in $ac_dummy; do
7227 IFS="$lt_save_ifs"
7228 test -z "$ac_dir" && ac_dir=.
7229 if test -f $ac_dir/${ac_tool_prefix}file; then
7230 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7231 if test -n "$file_magic_test_file"; then
7232 case $deplibs_check_method in
7233 "file_magic "*)
7234 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7235 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7236 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7237 $EGREP "$file_magic_regex" > /dev/null; then
7238 :
7239 else
7240 cat <<_LT_EOF 1>&2
7241
7242 *** Warning: the command libtool uses to detect shared libraries,
7243 *** $file_magic_cmd, produces output that libtool cannot recognize.
7244 *** The result is that libtool may fail to recognize shared libraries
7245 *** as such. This will affect the creation of libtool libraries that
7246 *** depend on shared libraries, but programs linked with such libtool
7247 *** libraries will work regardless of this problem. Nevertheless, you
7248 *** may want to report the problem to your system manager and/or to
7249 *** bug-libtool@gnu.org
7250
7251 _LT_EOF
7252 fi ;;
7253 esac
7254 fi
7255 break
7256 fi
7257 done
7258 IFS="$lt_save_ifs"
7259 MAGIC_CMD="$lt_save_MAGIC_CMD"
7260 ;;
7261 esac
7262 fi
7263
7264 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7265 if test -n "$MAGIC_CMD"; then
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7267 $as_echo "$MAGIC_CMD" >&6; }
7268 else
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7271 fi
7272
7273
7274
7275
7276
7277 if test -z "$lt_cv_path_MAGIC_CMD"; then
7278 if test -n "$ac_tool_prefix"; then
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7280 $as_echo_n "checking for file... " >&6; }
7281 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7282 $as_echo_n "(cached) " >&6
7283 else
7284 case $MAGIC_CMD in
7285 [\\/*] | ?:[\\/]*)
7286 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7287 ;;
7288 *)
7289 lt_save_MAGIC_CMD="$MAGIC_CMD"
7290 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7291 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7292 for ac_dir in $ac_dummy; do
7293 IFS="$lt_save_ifs"
7294 test -z "$ac_dir" && ac_dir=.
7295 if test -f $ac_dir/file; then
7296 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7297 if test -n "$file_magic_test_file"; then
7298 case $deplibs_check_method in
7299 "file_magic "*)
7300 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7302 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7303 $EGREP "$file_magic_regex" > /dev/null; then
7304 :
7305 else
7306 cat <<_LT_EOF 1>&2
7307
7308 *** Warning: the command libtool uses to detect shared libraries,
7309 *** $file_magic_cmd, produces output that libtool cannot recognize.
7310 *** The result is that libtool may fail to recognize shared libraries
7311 *** as such. This will affect the creation of libtool libraries that
7312 *** depend on shared libraries, but programs linked with such libtool
7313 *** libraries will work regardless of this problem. Nevertheless, you
7314 *** may want to report the problem to your system manager and/or to
7315 *** bug-libtool@gnu.org
7316
7317 _LT_EOF
7318 fi ;;
7319 esac
7320 fi
7321 break
7322 fi
7323 done
7324 IFS="$lt_save_ifs"
7325 MAGIC_CMD="$lt_save_MAGIC_CMD"
7326 ;;
7327 esac
7328 fi
7329
7330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7331 if test -n "$MAGIC_CMD"; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7333 $as_echo "$MAGIC_CMD" >&6; }
7334 else
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7337 fi
7338
7339
7340 else
7341 MAGIC_CMD=:
7342 fi
7343 fi
7344
7345 fi
7346 ;;
7347 esac
7348
7349 # Use C for the default configuration in the libtool script
7350
7351 lt_save_CC="$CC"
7352 ac_ext=c
7353 ac_cpp='$CPP $CPPFLAGS'
7354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7357
7358
7359 # Source file extension for C test sources.
7360 ac_ext=c
7361
7362 # Object file extension for compiled C test sources.
7363 objext=o
7364 objext=$objext
7365
7366 # Code to be used in simple compile tests
7367 lt_simple_compile_test_code="int some_variable = 0;"
7368
7369 # Code to be used in simple link tests
7370 lt_simple_link_test_code='int main(){return(0);}'
7371
7372
7373
7374
7375
7376
7377
7378 # If no C compiler was specified, use CC.
7379 LTCC=${LTCC-"$CC"}
7380
7381 # If no C compiler flags were specified, use CFLAGS.
7382 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7383
7384 # Allow CC to be a program name with arguments.
7385 compiler=$CC
7386
7387 # Save the default compiler, since it gets overwritten when the other
7388 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7389 compiler_DEFAULT=$CC
7390
7391 # save warnings/boilerplate of simple test code
7392 ac_outfile=conftest.$ac_objext
7393 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7394 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7395 _lt_compiler_boilerplate=`cat conftest.err`
7396 $RM conftest*
7397
7398 ac_outfile=conftest.$ac_objext
7399 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7400 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7401 _lt_linker_boilerplate=`cat conftest.err`
7402 $RM -r conftest*
7403
7404
7405 ## CAVEAT EMPTOR:
7406 ## There is no encapsulation within the following macros, do not change
7407 ## the running order or otherwise move them around unless you know exactly
7408 ## what you are doing...
7409 if test -n "$compiler"; then
7410
7411 lt_prog_compiler_no_builtin_flag=
7412
7413 if test "$GCC" = yes; then
7414 case $cc_basename in
7415 nvcc*)
7416 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7417 *)
7418 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7419 esac
7420
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7422 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7423 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 lt_cv_prog_compiler_rtti_exceptions=no
7427 ac_outfile=conftest.$ac_objext
7428 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7429 lt_compiler_flag="-fno-rtti -fno-exceptions"
7430 # Insert the option either (1) after the last *FLAGS variable, or
7431 # (2) before a word containing "conftest.", or (3) at the end.
7432 # Note that $ac_compile itself does not contain backslashes and begins
7433 # with a dollar sign (not a hyphen), so the echo should work correctly.
7434 # The option is referenced via a variable to avoid confusing sed.
7435 lt_compile=`echo "$ac_compile" | $SED \
7436 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7437 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7438 -e 's:$: $lt_compiler_flag:'`
7439 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7440 (eval "$lt_compile" 2>conftest.err)
7441 ac_status=$?
7442 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 if (exit $ac_status) && test -s "$ac_outfile"; then
7445 # The compiler can only warn and ignore the option if not recognized
7446 # So say no if there are warnings other than the usual output.
7447 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7448 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7449 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7450 lt_cv_prog_compiler_rtti_exceptions=yes
7451 fi
7452 fi
7453 $RM conftest*
7454
7455 fi
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7457 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7458
7459 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7460 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7461 else
7462 :
7463 fi
7464
7465 fi
7466
7467
7468
7469
7470
7471
7472 lt_prog_compiler_wl=
7473 lt_prog_compiler_pic=
7474 lt_prog_compiler_static=
7475
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7477 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7478
7479 if test "$GCC" = yes; then
7480 lt_prog_compiler_wl='-Wl,'
7481 lt_prog_compiler_static='-static'
7482
7483 case $host_os in
7484 aix*)
7485 # All AIX code is PIC.
7486 if test "$host_cpu" = ia64; then
7487 # AIX 5 now supports IA64 processor
7488 lt_prog_compiler_static='-Bstatic'
7489 fi
7490 lt_prog_compiler_pic='-fPIC'
7491 ;;
7492
7493 amigaos*)
7494 case $host_cpu in
7495 powerpc)
7496 # see comment about AmigaOS4 .so support
7497 lt_prog_compiler_pic='-fPIC'
7498 ;;
7499 m68k)
7500 # FIXME: we need at least 68020 code to build shared libraries, but
7501 # adding the `-m68020' flag to GCC prevents building anything better,
7502 # like `-m68040'.
7503 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7504 ;;
7505 esac
7506 ;;
7507
7508 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7509 # PIC is the default for these OSes.
7510 ;;
7511
7512 mingw* | cygwin* | pw32* | os2* | cegcc*)
7513 # This hack is so that the source file can tell whether it is being
7514 # built for inclusion in a dll (and should export symbols for example).
7515 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7516 # (--disable-auto-import) libraries
7517 lt_prog_compiler_pic='-DDLL_EXPORT'
7518 ;;
7519
7520 darwin* | rhapsody*)
7521 # PIC is the default on this platform
7522 # Common symbols not allowed in MH_DYLIB files
7523 lt_prog_compiler_pic='-fno-common'
7524 ;;
7525
7526 haiku*)
7527 # PIC is the default for Haiku.
7528 # The "-static" flag exists, but is broken.
7529 lt_prog_compiler_static=
7530 ;;
7531
7532 hpux*)
7533 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7534 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7535 # sets the default TLS model and affects inlining.
7536 case $host_cpu in
7537 hppa*64*)
7538 # +Z the default
7539 ;;
7540 *)
7541 lt_prog_compiler_pic='-fPIC'
7542 ;;
7543 esac
7544 ;;
7545
7546 interix[3-9]*)
7547 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7548 # Instead, we relocate shared libraries at runtime.
7549 ;;
7550
7551 msdosdjgpp*)
7552 # Just because we use GCC doesn't mean we suddenly get shared libraries
7553 # on systems that don't support them.
7554 lt_prog_compiler_can_build_shared=no
7555 enable_shared=no
7556 ;;
7557
7558 *nto* | *qnx*)
7559 # QNX uses GNU C++, but need to define -shared option too, otherwise
7560 # it will coredump.
7561 lt_prog_compiler_pic='-fPIC -shared'
7562 ;;
7563
7564 sysv4*MP*)
7565 if test -d /usr/nec; then
7566 lt_prog_compiler_pic=-Kconform_pic
7567 fi
7568 ;;
7569
7570 *)
7571 lt_prog_compiler_pic='-fPIC'
7572 ;;
7573 esac
7574
7575 case $cc_basename in
7576 nvcc*) # Cuda Compiler Driver 2.2
7577 lt_prog_compiler_wl='-Xlinker '
7578 lt_prog_compiler_pic='-Xcompiler -fPIC'
7579 ;;
7580 esac
7581 else
7582 # PORTME Check for flag to pass linker flags through the system compiler.
7583 case $host_os in
7584 aix*)
7585 lt_prog_compiler_wl='-Wl,'
7586 if test "$host_cpu" = ia64; then
7587 # AIX 5 now supports IA64 processor
7588 lt_prog_compiler_static='-Bstatic'
7589 else
7590 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7591 fi
7592 ;;
7593
7594 mingw* | cygwin* | pw32* | os2* | cegcc*)
7595 # This hack is so that the source file can tell whether it is being
7596 # built for inclusion in a dll (and should export symbols for example).
7597 lt_prog_compiler_pic='-DDLL_EXPORT'
7598 ;;
7599
7600 hpux9* | hpux10* | hpux11*)
7601 lt_prog_compiler_wl='-Wl,'
7602 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7603 # not for PA HP-UX.
7604 case $host_cpu in
7605 hppa*64*|ia64*)
7606 # +Z the default
7607 ;;
7608 *)
7609 lt_prog_compiler_pic='+Z'
7610 ;;
7611 esac
7612 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7613 lt_prog_compiler_static='${wl}-a ${wl}archive'
7614 ;;
7615
7616 irix5* | irix6* | nonstopux*)
7617 lt_prog_compiler_wl='-Wl,'
7618 # PIC (with -KPIC) is the default.
7619 lt_prog_compiler_static='-non_shared'
7620 ;;
7621
7622 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7623 case $cc_basename in
7624 # old Intel for x86_64 which still supported -KPIC.
7625 ecc*)
7626 lt_prog_compiler_wl='-Wl,'
7627 lt_prog_compiler_pic='-KPIC'
7628 lt_prog_compiler_static='-static'
7629 ;;
7630 # icc used to be incompatible with GCC.
7631 # ICC 10 doesn't accept -KPIC any more.
7632 icc* | ifort*)
7633 lt_prog_compiler_wl='-Wl,'
7634 lt_prog_compiler_pic='-fPIC'
7635 lt_prog_compiler_static='-static'
7636 ;;
7637 # Lahey Fortran 8.1.
7638 lf95*)
7639 lt_prog_compiler_wl='-Wl,'
7640 lt_prog_compiler_pic='--shared'
7641 lt_prog_compiler_static='--static'
7642 ;;
7643 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7644 # Portland Group compilers (*not* the Pentium gcc compiler,
7645 # which looks to be a dead project)
7646 lt_prog_compiler_wl='-Wl,'
7647 lt_prog_compiler_pic='-fpic'
7648 lt_prog_compiler_static='-Bstatic'
7649 ;;
7650 ccc*)
7651 lt_prog_compiler_wl='-Wl,'
7652 # All Alpha code is PIC.
7653 lt_prog_compiler_static='-non_shared'
7654 ;;
7655 xl* | bgxl* | bgf* | mpixl*)
7656 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7657 lt_prog_compiler_wl='-Wl,'
7658 lt_prog_compiler_pic='-qpic'
7659 lt_prog_compiler_static='-qstaticlink'
7660 ;;
7661 *)
7662 case `$CC -V 2>&1 | sed 5q` in
7663 *Sun\ F* | *Sun*Fortran*)
7664 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7665 lt_prog_compiler_pic='-KPIC'
7666 lt_prog_compiler_static='-Bstatic'
7667 lt_prog_compiler_wl=''
7668 ;;
7669 *Sun\ C*)
7670 # Sun C 5.9
7671 lt_prog_compiler_pic='-KPIC'
7672 lt_prog_compiler_static='-Bstatic'
7673 lt_prog_compiler_wl='-Wl,'
7674 ;;
7675 esac
7676 ;;
7677 esac
7678 ;;
7679
7680 newsos6)
7681 lt_prog_compiler_pic='-KPIC'
7682 lt_prog_compiler_static='-Bstatic'
7683 ;;
7684
7685 *nto* | *qnx*)
7686 # QNX uses GNU C++, but need to define -shared option too, otherwise
7687 # it will coredump.
7688 lt_prog_compiler_pic='-fPIC -shared'
7689 ;;
7690
7691 osf3* | osf4* | osf5*)
7692 lt_prog_compiler_wl='-Wl,'
7693 # All OSF/1 code is PIC.
7694 lt_prog_compiler_static='-non_shared'
7695 ;;
7696
7697 rdos*)
7698 lt_prog_compiler_static='-non_shared'
7699 ;;
7700
7701 solaris*)
7702 lt_prog_compiler_pic='-KPIC'
7703 lt_prog_compiler_static='-Bstatic'
7704 case $cc_basename in
7705 f77* | f90* | f95*)
7706 lt_prog_compiler_wl='-Qoption ld ';;
7707 *)
7708 lt_prog_compiler_wl='-Wl,';;
7709 esac
7710 ;;
7711
7712 sunos4*)
7713 lt_prog_compiler_wl='-Qoption ld '
7714 lt_prog_compiler_pic='-PIC'
7715 lt_prog_compiler_static='-Bstatic'
7716 ;;
7717
7718 sysv4 | sysv4.2uw2* | sysv4.3*)
7719 lt_prog_compiler_wl='-Wl,'
7720 lt_prog_compiler_pic='-KPIC'
7721 lt_prog_compiler_static='-Bstatic'
7722 ;;
7723
7724 sysv4*MP*)
7725 if test -d /usr/nec ;then
7726 lt_prog_compiler_pic='-Kconform_pic'
7727 lt_prog_compiler_static='-Bstatic'
7728 fi
7729 ;;
7730
7731 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7732 lt_prog_compiler_wl='-Wl,'
7733 lt_prog_compiler_pic='-KPIC'
7734 lt_prog_compiler_static='-Bstatic'
7735 ;;
7736
7737 unicos*)
7738 lt_prog_compiler_wl='-Wl,'
7739 lt_prog_compiler_can_build_shared=no
7740 ;;
7741
7742 uts4*)
7743 lt_prog_compiler_pic='-pic'
7744 lt_prog_compiler_static='-Bstatic'
7745 ;;
7746
7747 *)
7748 lt_prog_compiler_can_build_shared=no
7749 ;;
7750 esac
7751 fi
7752
7753 case $host_os in
7754 # For platforms which do not support PIC, -DPIC is meaningless:
7755 *djgpp*)
7756 lt_prog_compiler_pic=
7757 ;;
7758 *)
7759 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7760 ;;
7761 esac
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7763 $as_echo "$lt_prog_compiler_pic" >&6; }
7764
7765
7766
7767
7768
7769
7770 #
7771 # Check to make sure the PIC flag actually works.
7772 #
7773 if test -n "$lt_prog_compiler_pic"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7775 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7776 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
7778 else
7779 lt_cv_prog_compiler_pic_works=no
7780 ac_outfile=conftest.$ac_objext
7781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7782 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7783 # Insert the option either (1) after the last *FLAGS variable, or
7784 # (2) before a word containing "conftest.", or (3) at the end.
7785 # Note that $ac_compile itself does not contain backslashes and begins
7786 # with a dollar sign (not a hyphen), so the echo should work correctly.
7787 # The option is referenced via a variable to avoid confusing sed.
7788 lt_compile=`echo "$ac_compile" | $SED \
7789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7791 -e 's:$: $lt_compiler_flag:'`
7792 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7793 (eval "$lt_compile" 2>conftest.err)
7794 ac_status=$?
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 if (exit $ac_status) && test -s "$ac_outfile"; then
7798 # The compiler can only warn and ignore the option if not recognized
7799 # So say no if there are warnings other than the usual output.
7800 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7801 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7802 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7803 lt_cv_prog_compiler_pic_works=yes
7804 fi
7805 fi
7806 $RM conftest*
7807
7808 fi
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7810 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7811
7812 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7813 case $lt_prog_compiler_pic in
7814 "" | " "*) ;;
7815 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7816 esac
7817 else
7818 lt_prog_compiler_pic=
7819 lt_prog_compiler_can_build_shared=no
7820 fi
7821
7822 fi
7823
7824
7825
7826
7827
7828
7829 #
7830 # Check to make sure the static flag actually works.
7831 #
7832 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7834 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7835 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 lt_cv_prog_compiler_static_works=no
7839 save_LDFLAGS="$LDFLAGS"
7840 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7841 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7842 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7843 # The linker can only warn and ignore the option if not recognized
7844 # So say no if there are warnings
7845 if test -s conftest.err; then
7846 # Append any errors to the config.log.
7847 cat conftest.err 1>&5
7848 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7849 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7850 if diff conftest.exp conftest.er2 >/dev/null; then
7851 lt_cv_prog_compiler_static_works=yes
7852 fi
7853 else
7854 lt_cv_prog_compiler_static_works=yes
7855 fi
7856 fi
7857 $RM -r conftest*
7858 LDFLAGS="$save_LDFLAGS"
7859
7860 fi
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7862 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7863
7864 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7865 :
7866 else
7867 lt_prog_compiler_static=
7868 fi
7869
7870
7871
7872
7873
7874
7875
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7877 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7878 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
7880 else
7881 lt_cv_prog_compiler_c_o=no
7882 $RM -r conftest 2>/dev/null
7883 mkdir conftest
7884 cd conftest
7885 mkdir out
7886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7887
7888 lt_compiler_flag="-o out/conftest2.$ac_objext"
7889 # Insert the option either (1) after the last *FLAGS variable, or
7890 # (2) before a word containing "conftest.", or (3) at the end.
7891 # Note that $ac_compile itself does not contain backslashes and begins
7892 # with a dollar sign (not a hyphen), so the echo should work correctly.
7893 lt_compile=`echo "$ac_compile" | $SED \
7894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7896 -e 's:$: $lt_compiler_flag:'`
7897 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7898 (eval "$lt_compile" 2>out/conftest.err)
7899 ac_status=$?
7900 cat out/conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7903 then
7904 # The compiler can only warn and ignore the option if not recognized
7905 # So say no if there are warnings
7906 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7907 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7908 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7909 lt_cv_prog_compiler_c_o=yes
7910 fi
7911 fi
7912 chmod u+w . 2>&5
7913 $RM conftest*
7914 # SGI C++ compiler will create directory out/ii_files/ for
7915 # template instantiation
7916 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7917 $RM out/* && rmdir out
7918 cd ..
7919 $RM -r conftest
7920 $RM conftest*
7921
7922 fi
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7924 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7925
7926
7927
7928
7929
7930
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7932 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7933 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
7935 else
7936 lt_cv_prog_compiler_c_o=no
7937 $RM -r conftest 2>/dev/null
7938 mkdir conftest
7939 cd conftest
7940 mkdir out
7941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7942
7943 lt_compiler_flag="-o out/conftest2.$ac_objext"
7944 # Insert the option either (1) after the last *FLAGS variable, or
7945 # (2) before a word containing "conftest.", or (3) at the end.
7946 # Note that $ac_compile itself does not contain backslashes and begins
7947 # with a dollar sign (not a hyphen), so the echo should work correctly.
7948 lt_compile=`echo "$ac_compile" | $SED \
7949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7951 -e 's:$: $lt_compiler_flag:'`
7952 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7953 (eval "$lt_compile" 2>out/conftest.err)
7954 ac_status=$?
7955 cat out/conftest.err >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7958 then
7959 # The compiler can only warn and ignore the option if not recognized
7960 # So say no if there are warnings
7961 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7962 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7963 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7964 lt_cv_prog_compiler_c_o=yes
7965 fi
7966 fi
7967 chmod u+w . 2>&5
7968 $RM conftest*
7969 # SGI C++ compiler will create directory out/ii_files/ for
7970 # template instantiation
7971 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7972 $RM out/* && rmdir out
7973 cd ..
7974 $RM -r conftest
7975 $RM conftest*
7976
7977 fi
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7979 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7980
7981
7982
7983
7984 hard_links="nottested"
7985 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7986 # do not overwrite the value of need_locks provided by the user
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7988 $as_echo_n "checking if we can lock with hard links... " >&6; }
7989 hard_links=yes
7990 $RM conftest*
7991 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7992 touch conftest.a
7993 ln conftest.a conftest.b 2>&5 || hard_links=no
7994 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7996 $as_echo "$hard_links" >&6; }
7997 if test "$hard_links" = no; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7999 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8000 need_locks=warn
8001 fi
8002 else
8003 need_locks=no
8004 fi
8005
8006
8007
8008
8009
8010
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8012 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8013
8014 runpath_var=
8015 allow_undefined_flag=
8016 always_export_symbols=no
8017 archive_cmds=
8018 archive_expsym_cmds=
8019 compiler_needs_object=no
8020 enable_shared_with_static_runtimes=no
8021 export_dynamic_flag_spec=
8022 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8023 hardcode_automatic=no
8024 hardcode_direct=no
8025 hardcode_direct_absolute=no
8026 hardcode_libdir_flag_spec=
8027 hardcode_libdir_flag_spec_ld=
8028 hardcode_libdir_separator=
8029 hardcode_minus_L=no
8030 hardcode_shlibpath_var=unsupported
8031 inherit_rpath=no
8032 link_all_deplibs=unknown
8033 module_cmds=
8034 module_expsym_cmds=
8035 old_archive_from_new_cmds=
8036 old_archive_from_expsyms_cmds=
8037 thread_safe_flag_spec=
8038 whole_archive_flag_spec=
8039 # include_expsyms should be a list of space-separated symbols to be *always*
8040 # included in the symbol list
8041 include_expsyms=
8042 # exclude_expsyms can be an extended regexp of symbols to exclude
8043 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8044 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8045 # as well as any symbol that contains `d'.
8046 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8047 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8048 # platforms (ab)use it in PIC code, but their linkers get confused if
8049 # the symbol is explicitly referenced. Since portable code cannot
8050 # rely on this symbol name, it's probably fine to never include it in
8051 # preloaded symbol tables.
8052 # Exclude shared library initialization/finalization symbols.
8053 extract_expsyms_cmds=
8054
8055 case $host_os in
8056 cygwin* | mingw* | pw32* | cegcc*)
8057 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8058 # When not using gcc, we currently assume that we are using
8059 # Microsoft Visual C++.
8060 if test "$GCC" != yes; then
8061 with_gnu_ld=no
8062 fi
8063 ;;
8064 interix*)
8065 # we just hope/assume this is gcc and not c89 (= MSVC++)
8066 with_gnu_ld=yes
8067 ;;
8068 openbsd*)
8069 with_gnu_ld=no
8070 ;;
8071 esac
8072
8073 ld_shlibs=yes
8074
8075 # On some targets, GNU ld is compatible enough with the native linker
8076 # that we're better off using the native interface for both.
8077 lt_use_gnu_ld_interface=no
8078 if test "$with_gnu_ld" = yes; then
8079 case $host_os in
8080 aix*)
8081 # The AIX port of GNU ld has always aspired to compatibility
8082 # with the native linker. However, as the warning in the GNU ld
8083 # block says, versions before 2.19.5* couldn't really create working
8084 # shared libraries, regardless of the interface used.
8085 case `$LD -v 2>&1` in
8086 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8087 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8088 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8089 *)
8090 lt_use_gnu_ld_interface=yes
8091 ;;
8092 esac
8093 ;;
8094 *)
8095 lt_use_gnu_ld_interface=yes
8096 ;;
8097 esac
8098 fi
8099
8100 if test "$lt_use_gnu_ld_interface" = yes; then
8101 # If archive_cmds runs LD, not CC, wlarc should be empty
8102 wlarc='${wl}'
8103
8104 # Set some defaults for GNU ld with shared library support. These
8105 # are reset later if shared libraries are not supported. Putting them
8106 # here allows them to be overridden if necessary.
8107 runpath_var=LD_RUN_PATH
8108 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8109 export_dynamic_flag_spec='${wl}--export-dynamic'
8110 # ancient GNU ld didn't support --whole-archive et. al.
8111 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8112 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8113 else
8114 whole_archive_flag_spec=
8115 fi
8116 supports_anon_versioning=no
8117 case `$LD -v 2>&1` in
8118 *GNU\ gold*) supports_anon_versioning=yes ;;
8119 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8120 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8121 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8122 *\ 2.11.*) ;; # other 2.11 versions
8123 *) supports_anon_versioning=yes ;;
8124 esac
8125
8126 # See if GNU ld supports shared libraries.
8127 case $host_os in
8128 aix[3-9]*)
8129 # On AIX/PPC, the GNU linker is very broken
8130 if test "$host_cpu" != ia64; then
8131 ld_shlibs=no
8132 cat <<_LT_EOF 1>&2
8133
8134 *** Warning: the GNU linker, at least up to release 2.19, is reported
8135 *** to be unable to reliably create shared libraries on AIX.
8136 *** Therefore, libtool is disabling shared libraries support. If you
8137 *** really care for shared libraries, you may want to install binutils
8138 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8139 *** You will then need to restart the configuration process.
8140
8141 _LT_EOF
8142 fi
8143 ;;
8144
8145 amigaos*)
8146 case $host_cpu in
8147 powerpc)
8148 # see comment about AmigaOS4 .so support
8149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8150 archive_expsym_cmds=''
8151 ;;
8152 m68k)
8153 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)'
8154 hardcode_libdir_flag_spec='-L$libdir'
8155 hardcode_minus_L=yes
8156 ;;
8157 esac
8158 ;;
8159
8160 beos*)
8161 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8162 allow_undefined_flag=unsupported
8163 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8164 # support --undefined. This deserves some investigation. FIXME
8165 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8166 else
8167 ld_shlibs=no
8168 fi
8169 ;;
8170
8171 cygwin* | mingw* | pw32* | cegcc*)
8172 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8173 # as there is no search path for DLLs.
8174 hardcode_libdir_flag_spec='-L$libdir'
8175 export_dynamic_flag_spec='${wl}--export-all-symbols'
8176 allow_undefined_flag=unsupported
8177 always_export_symbols=no
8178 enable_shared_with_static_runtimes=yes
8179 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8180
8181 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8183 # If the export-symbols file already is a .def file (1st line
8184 # is EXPORTS), use it as is; otherwise, prepend...
8185 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8186 cp $export_symbols $output_objdir/$soname.def;
8187 else
8188 echo EXPORTS > $output_objdir/$soname.def;
8189 cat $export_symbols >> $output_objdir/$soname.def;
8190 fi~
8191 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8192 else
8193 ld_shlibs=no
8194 fi
8195 ;;
8196
8197 haiku*)
8198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8199 link_all_deplibs=yes
8200 ;;
8201
8202 interix[3-9]*)
8203 hardcode_direct=no
8204 hardcode_shlibpath_var=no
8205 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8206 export_dynamic_flag_spec='${wl}-E'
8207 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8208 # Instead, shared libraries are loaded at an image base (0x10000000 by
8209 # default) and relocated if they conflict, which is a slow very memory
8210 # consuming and fragmenting process. To avoid this, we pick a random,
8211 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8212 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8213 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8214 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'
8215 ;;
8216
8217 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8218 tmp_diet=no
8219 if test "$host_os" = linux-dietlibc; then
8220 case $cc_basename in
8221 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8222 esac
8223 fi
8224 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8225 && test "$tmp_diet" = no
8226 then
8227 tmp_addflag=
8228 tmp_sharedflag='-shared'
8229 case $cc_basename,$host_cpu in
8230 pgcc*) # Portland Group C compiler
8231 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'
8232 tmp_addflag=' $pic_flag'
8233 ;;
8234 pgf77* | pgf90* | pgf95* | pgfortran*)
8235 # Portland Group f77 and f90 compilers
8236 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'
8237 tmp_addflag=' $pic_flag -Mnomain' ;;
8238 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8239 tmp_addflag=' -i_dynamic' ;;
8240 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8241 tmp_addflag=' -i_dynamic -nofor_main' ;;
8242 ifc* | ifort*) # Intel Fortran compiler
8243 tmp_addflag=' -nofor_main' ;;
8244 lf95*) # Lahey Fortran 8.1
8245 whole_archive_flag_spec=
8246 tmp_sharedflag='--shared' ;;
8247 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8248 tmp_sharedflag='-qmkshrobj'
8249 tmp_addflag= ;;
8250 nvcc*) # Cuda Compiler Driver 2.2
8251 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'
8252 compiler_needs_object=yes
8253 ;;
8254 esac
8255 case `$CC -V 2>&1 | sed 5q` in
8256 *Sun\ C*) # Sun C 5.9
8257 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'
8258 compiler_needs_object=yes
8259 tmp_sharedflag='-G' ;;
8260 *Sun\ F*) # Sun Fortran 8.3
8261 tmp_sharedflag='-G' ;;
8262 esac
8263 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8264
8265 if test "x$supports_anon_versioning" = xyes; then
8266 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8267 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8268 echo "local: *; };" >> $output_objdir/$libname.ver~
8269 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8270 fi
8271
8272 case $cc_basename in
8273 xlf* | bgf* | bgxlf* | mpixlf*)
8274 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8275 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8276 hardcode_libdir_flag_spec=
8277 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8278 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8279 if test "x$supports_anon_versioning" = xyes; then
8280 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8281 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8282 echo "local: *; };" >> $output_objdir/$libname.ver~
8283 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8284 fi
8285 ;;
8286 esac
8287 else
8288 ld_shlibs=no
8289 fi
8290 ;;
8291
8292 netbsd*)
8293 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8294 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8295 wlarc=
8296 else
8297 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8298 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8299 fi
8300 ;;
8301
8302 solaris*)
8303 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8304 ld_shlibs=no
8305 cat <<_LT_EOF 1>&2
8306
8307 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8308 *** create shared libraries on Solaris systems. Therefore, libtool
8309 *** is disabling shared libraries support. We urge you to upgrade GNU
8310 *** binutils to release 2.9.1 or newer. Another option is to modify
8311 *** your PATH or compiler configuration so that the native linker is
8312 *** used, and then restart.
8313
8314 _LT_EOF
8315 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8317 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8318 else
8319 ld_shlibs=no
8320 fi
8321 ;;
8322
8323 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8324 case `$LD -v 2>&1` in
8325 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8326 ld_shlibs=no
8327 cat <<_LT_EOF 1>&2
8328
8329 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8330 *** reliably create shared libraries on SCO systems. Therefore, libtool
8331 *** is disabling shared libraries support. We urge you to upgrade GNU
8332 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8333 *** your PATH or compiler configuration so that the native linker is
8334 *** used, and then restart.
8335
8336 _LT_EOF
8337 ;;
8338 *)
8339 # For security reasons, it is highly recommended that you always
8340 # use absolute paths for naming shared libraries, and exclude the
8341 # DT_RUNPATH tag from executables and libraries. But doing so
8342 # requires that you compile everything twice, which is a pain.
8343 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8344 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8346 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8347 else
8348 ld_shlibs=no
8349 fi
8350 ;;
8351 esac
8352 ;;
8353
8354 sunos4*)
8355 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8356 wlarc=
8357 hardcode_direct=yes
8358 hardcode_shlibpath_var=no
8359 ;;
8360
8361 *)
8362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8364 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8365 else
8366 ld_shlibs=no
8367 fi
8368 ;;
8369 esac
8370
8371 if test "$ld_shlibs" = no; then
8372 runpath_var=
8373 hardcode_libdir_flag_spec=
8374 export_dynamic_flag_spec=
8375 whole_archive_flag_spec=
8376 fi
8377 else
8378 # PORTME fill in a description of your system's linker (not GNU ld)
8379 case $host_os in
8380 aix3*)
8381 allow_undefined_flag=unsupported
8382 always_export_symbols=yes
8383 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'
8384 # Note: this linker hardcodes the directories in LIBPATH if there
8385 # are no directories specified by -L.
8386 hardcode_minus_L=yes
8387 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8388 # Neither direct hardcoding nor static linking is supported with a
8389 # broken collect2.
8390 hardcode_direct=unsupported
8391 fi
8392 ;;
8393
8394 aix[4-9]*)
8395 if test "$host_cpu" = ia64; then
8396 # On IA64, the linker does run time linking by default, so we don't
8397 # have to do anything special.
8398 aix_use_runtimelinking=no
8399 exp_sym_flag='-Bexport'
8400 no_entry_flag=""
8401 else
8402 # If we're using GNU nm, then we don't want the "-C" option.
8403 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8404 # Also, AIX nm treats weak defined symbols like other global
8405 # defined symbols, whereas GNU nm marks them as "W".
8406 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8407 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'
8408 else
8409 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8410 fi
8411 aix_use_runtimelinking=no
8412
8413 # Test if we are trying to use run time linking or normal
8414 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8415 # need to do runtime linking.
8416 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8417 for ld_flag in $LDFLAGS; do
8418 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8419 aix_use_runtimelinking=yes
8420 break
8421 fi
8422 done
8423 ;;
8424 esac
8425
8426 exp_sym_flag='-bexport'
8427 no_entry_flag='-bnoentry'
8428 fi
8429
8430 # When large executables or shared objects are built, AIX ld can
8431 # have problems creating the table of contents. If linking a library
8432 # or program results in "error TOC overflow" add -mminimal-toc to
8433 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8434 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8435
8436 archive_cmds=''
8437 hardcode_direct=yes
8438 hardcode_direct_absolute=yes
8439 hardcode_libdir_separator=':'
8440 link_all_deplibs=yes
8441 file_list_spec='${wl}-f,'
8442
8443 if test "$GCC" = yes; then
8444 case $host_os in aix4.[012]|aix4.[012].*)
8445 # We only want to do this on AIX 4.2 and lower, the check
8446 # below for broken collect2 doesn't work under 4.3+
8447 collect2name=`${CC} -print-prog-name=collect2`
8448 if test -f "$collect2name" &&
8449 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8450 then
8451 # We have reworked collect2
8452 :
8453 else
8454 # We have old collect2
8455 hardcode_direct=unsupported
8456 # It fails to find uninstalled libraries when the uninstalled
8457 # path is not listed in the libpath. Setting hardcode_minus_L
8458 # to unsupported forces relinking
8459 hardcode_minus_L=yes
8460 hardcode_libdir_flag_spec='-L$libdir'
8461 hardcode_libdir_separator=
8462 fi
8463 ;;
8464 esac
8465 shared_flag='-shared'
8466 if test "$aix_use_runtimelinking" = yes; then
8467 shared_flag="$shared_flag "'${wl}-G'
8468 fi
8469 else
8470 # not using gcc
8471 if test "$host_cpu" = ia64; then
8472 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8473 # chokes on -Wl,-G. The following line is correct:
8474 shared_flag='-G'
8475 else
8476 if test "$aix_use_runtimelinking" = yes; then
8477 shared_flag='${wl}-G'
8478 else
8479 shared_flag='${wl}-bM:SRE'
8480 fi
8481 fi
8482 fi
8483
8484 export_dynamic_flag_spec='${wl}-bexpall'
8485 # It seems that -bexpall does not export symbols beginning with
8486 # underscore (_), so it is better to generate a list of symbols to export.
8487 always_export_symbols=yes
8488 if test "$aix_use_runtimelinking" = yes; then
8489 # Warning - without using the other runtime loading flags (-brtl),
8490 # -berok will link without error, but may produce a broken library.
8491 allow_undefined_flag='-berok'
8492 # Determine the default libpath from the value encoded in an
8493 # empty executable.
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496
8497 int
8498 main ()
8499 {
8500
8501 ;
8502 return 0;
8503 }
8504 _ACEOF
8505 if ac_fn_c_try_link "$LINENO"; then :
8506
8507 lt_aix_libpath_sed='
8508 /Import File Strings/,/^$/ {
8509 /^0/ {
8510 s/^0 *\(.*\)$/\1/
8511 p
8512 }
8513 }'
8514 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8515 # Check for a 64-bit object if we didn't find anything.
8516 if test -z "$aix_libpath"; then
8517 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8518 fi
8519 fi
8520 rm -f core conftest.err conftest.$ac_objext \
8521 conftest$ac_exeext conftest.$ac_ext
8522 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8523
8524 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8525 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"
8526 else
8527 if test "$host_cpu" = ia64; then
8528 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8529 allow_undefined_flag="-z nodefs"
8530 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"
8531 else
8532 # Determine the default libpath from the value encoded in an
8533 # empty executable.
8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8535 /* end confdefs.h. */
8536
8537 int
8538 main ()
8539 {
8540
8541 ;
8542 return 0;
8543 }
8544 _ACEOF
8545 if ac_fn_c_try_link "$LINENO"; then :
8546
8547 lt_aix_libpath_sed='
8548 /Import File Strings/,/^$/ {
8549 /^0/ {
8550 s/^0 *\(.*\)$/\1/
8551 p
8552 }
8553 }'
8554 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8555 # Check for a 64-bit object if we didn't find anything.
8556 if test -z "$aix_libpath"; then
8557 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8558 fi
8559 fi
8560 rm -f core conftest.err conftest.$ac_objext \
8561 conftest$ac_exeext conftest.$ac_ext
8562 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8563
8564 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8565 # Warning - without using the other run time loading flags,
8566 # -berok will link without error, but may produce a broken library.
8567 no_undefined_flag=' ${wl}-bernotok'
8568 allow_undefined_flag=' ${wl}-berok'
8569 if test "$with_gnu_ld" = yes; then
8570 # We only use this code for GNU lds that support --whole-archive.
8571 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8572 else
8573 # Exported symbols can be pulled into shared objects from archives
8574 whole_archive_flag_spec='$convenience'
8575 fi
8576 archive_cmds_need_lc=yes
8577 # This is similar to how AIX traditionally builds its shared libraries.
8578 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'
8579 fi
8580 fi
8581 ;;
8582
8583 amigaos*)
8584 case $host_cpu in
8585 powerpc)
8586 # see comment about AmigaOS4 .so support
8587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8588 archive_expsym_cmds=''
8589 ;;
8590 m68k)
8591 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)'
8592 hardcode_libdir_flag_spec='-L$libdir'
8593 hardcode_minus_L=yes
8594 ;;
8595 esac
8596 ;;
8597
8598 bsdi[45]*)
8599 export_dynamic_flag_spec=-rdynamic
8600 ;;
8601
8602 cygwin* | mingw* | pw32* | cegcc*)
8603 # When not using gcc, we currently assume that we are using
8604 # Microsoft Visual C++.
8605 # hardcode_libdir_flag_spec is actually meaningless, as there is
8606 # no search path for DLLs.
8607 hardcode_libdir_flag_spec=' '
8608 allow_undefined_flag=unsupported
8609 # Tell ltmain to make .lib files, not .a files.
8610 libext=lib
8611 # Tell ltmain to make .dll files, not .so files.
8612 shrext_cmds=".dll"
8613 # FIXME: Setting linknames here is a bad hack.
8614 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8615 # The linker will automatically build a .lib file if we build a DLL.
8616 old_archive_from_new_cmds='true'
8617 # FIXME: Should let the user specify the lib program.
8618 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8619 fix_srcfile_path='`cygpath -w "$srcfile"`'
8620 enable_shared_with_static_runtimes=yes
8621 ;;
8622
8623 darwin* | rhapsody*)
8624
8625
8626 archive_cmds_need_lc=no
8627 hardcode_direct=no
8628 hardcode_automatic=yes
8629 hardcode_shlibpath_var=unsupported
8630 if test "$lt_cv_ld_force_load" = "yes"; then
8631 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\"`'
8632 else
8633 whole_archive_flag_spec=''
8634 fi
8635 link_all_deplibs=yes
8636 allow_undefined_flag="$_lt_dar_allow_undefined"
8637 case $cc_basename in
8638 ifort*) _lt_dar_can_shared=yes ;;
8639 *) _lt_dar_can_shared=$GCC ;;
8640 esac
8641 if test "$_lt_dar_can_shared" = "yes"; then
8642 output_verbose_link_cmd=func_echo_all
8643 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8644 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8645 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}"
8646 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}"
8647
8648 else
8649 ld_shlibs=no
8650 fi
8651
8652 ;;
8653
8654 dgux*)
8655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8656 hardcode_libdir_flag_spec='-L$libdir'
8657 hardcode_shlibpath_var=no
8658 ;;
8659
8660 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8661 # support. Future versions do this automatically, but an explicit c++rt0.o
8662 # does not break anything, and helps significantly (at the cost of a little
8663 # extra space).
8664 freebsd2.2*)
8665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8666 hardcode_libdir_flag_spec='-R$libdir'
8667 hardcode_direct=yes
8668 hardcode_shlibpath_var=no
8669 ;;
8670
8671 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8672 freebsd2.*)
8673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8674 hardcode_direct=yes
8675 hardcode_minus_L=yes
8676 hardcode_shlibpath_var=no
8677 ;;
8678
8679 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8680 freebsd* | dragonfly*)
8681 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8682 hardcode_libdir_flag_spec='-R$libdir'
8683 hardcode_direct=yes
8684 hardcode_shlibpath_var=no
8685 ;;
8686
8687 hpux9*)
8688 if test "$GCC" = yes; then
8689 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'
8690 else
8691 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'
8692 fi
8693 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8694 hardcode_libdir_separator=:
8695 hardcode_direct=yes
8696
8697 # hardcode_minus_L: Not really in the search PATH,
8698 # but as the default location of the library.
8699 hardcode_minus_L=yes
8700 export_dynamic_flag_spec='${wl}-E'
8701 ;;
8702
8703 hpux10*)
8704 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8705 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8706 else
8707 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8708 fi
8709 if test "$with_gnu_ld" = no; then
8710 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8711 hardcode_libdir_flag_spec_ld='+b $libdir'
8712 hardcode_libdir_separator=:
8713 hardcode_direct=yes
8714 hardcode_direct_absolute=yes
8715 export_dynamic_flag_spec='${wl}-E'
8716 # hardcode_minus_L: Not really in the search PATH,
8717 # but as the default location of the library.
8718 hardcode_minus_L=yes
8719 fi
8720 ;;
8721
8722 hpux11*)
8723 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8724 case $host_cpu in
8725 hppa*64*)
8726 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8727 ;;
8728 ia64*)
8729 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8730 ;;
8731 *)
8732 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8733 ;;
8734 esac
8735 else
8736 case $host_cpu in
8737 hppa*64*)
8738 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8739 ;;
8740 ia64*)
8741 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8742 ;;
8743 *)
8744
8745 # Older versions of the 11.00 compiler do not understand -b yet
8746 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8748 $as_echo_n "checking if $CC understands -b... " >&6; }
8749 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8750 $as_echo_n "(cached) " >&6
8751 else
8752 lt_cv_prog_compiler__b=no
8753 save_LDFLAGS="$LDFLAGS"
8754 LDFLAGS="$LDFLAGS -b"
8755 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8756 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8757 # The linker can only warn and ignore the option if not recognized
8758 # So say no if there are warnings
8759 if test -s conftest.err; then
8760 # Append any errors to the config.log.
8761 cat conftest.err 1>&5
8762 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8764 if diff conftest.exp conftest.er2 >/dev/null; then
8765 lt_cv_prog_compiler__b=yes
8766 fi
8767 else
8768 lt_cv_prog_compiler__b=yes
8769 fi
8770 fi
8771 $RM -r conftest*
8772 LDFLAGS="$save_LDFLAGS"
8773
8774 fi
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8776 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8777
8778 if test x"$lt_cv_prog_compiler__b" = xyes; then
8779 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8780 else
8781 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8782 fi
8783
8784 ;;
8785 esac
8786 fi
8787 if test "$with_gnu_ld" = no; then
8788 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8789 hardcode_libdir_separator=:
8790
8791 case $host_cpu in
8792 hppa*64*|ia64*)
8793 hardcode_direct=no
8794 hardcode_shlibpath_var=no
8795 ;;
8796 *)
8797 hardcode_direct=yes
8798 hardcode_direct_absolute=yes
8799 export_dynamic_flag_spec='${wl}-E'
8800
8801 # hardcode_minus_L: Not really in the search PATH,
8802 # but as the default location of the library.
8803 hardcode_minus_L=yes
8804 ;;
8805 esac
8806 fi
8807 ;;
8808
8809 irix5* | irix6* | nonstopux*)
8810 if test "$GCC" = yes; then
8811 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'
8812 # Try to use the -exported_symbol ld option, if it does not
8813 # work, assume that -exports_file does not work either and
8814 # implicitly export all symbols.
8815 save_LDFLAGS="$LDFLAGS"
8816 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818 /* end confdefs.h. */
8819 int foo(void) {}
8820 _ACEOF
8821 if ac_fn_c_try_link "$LINENO"; then :
8822 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'
8823
8824 fi
8825 rm -f core conftest.err conftest.$ac_objext \
8826 conftest$ac_exeext conftest.$ac_ext
8827 LDFLAGS="$save_LDFLAGS"
8828 else
8829 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'
8830 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'
8831 fi
8832 archive_cmds_need_lc='no'
8833 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8834 hardcode_libdir_separator=:
8835 inherit_rpath=yes
8836 link_all_deplibs=yes
8837 ;;
8838
8839 netbsd*)
8840 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8841 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8842 else
8843 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8844 fi
8845 hardcode_libdir_flag_spec='-R$libdir'
8846 hardcode_direct=yes
8847 hardcode_shlibpath_var=no
8848 ;;
8849
8850 newsos6)
8851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8852 hardcode_direct=yes
8853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8854 hardcode_libdir_separator=:
8855 hardcode_shlibpath_var=no
8856 ;;
8857
8858 *nto* | *qnx*)
8859 ;;
8860
8861 openbsd*)
8862 if test -f /usr/libexec/ld.so; then
8863 hardcode_direct=yes
8864 hardcode_shlibpath_var=no
8865 hardcode_direct_absolute=yes
8866 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8867 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8868 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8869 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8870 export_dynamic_flag_spec='${wl}-E'
8871 else
8872 case $host_os in
8873 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8874 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8875 hardcode_libdir_flag_spec='-R$libdir'
8876 ;;
8877 *)
8878 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8879 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8880 ;;
8881 esac
8882 fi
8883 else
8884 ld_shlibs=no
8885 fi
8886 ;;
8887
8888 os2*)
8889 hardcode_libdir_flag_spec='-L$libdir'
8890 hardcode_minus_L=yes
8891 allow_undefined_flag=unsupported
8892 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'
8893 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8894 ;;
8895
8896 osf3*)
8897 if test "$GCC" = yes; then
8898 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8899 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'
8900 else
8901 allow_undefined_flag=' -expect_unresolved \*'
8902 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'
8903 fi
8904 archive_cmds_need_lc='no'
8905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8906 hardcode_libdir_separator=:
8907 ;;
8908
8909 osf4* | osf5*) # as osf3* with the addition of -msym flag
8910 if test "$GCC" = yes; then
8911 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8912 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'
8913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8914 else
8915 allow_undefined_flag=' -expect_unresolved \*'
8916 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'
8917 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~
8918 $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'
8919
8920 # Both c and cxx compiler support -rpath directly
8921 hardcode_libdir_flag_spec='-rpath $libdir'
8922 fi
8923 archive_cmds_need_lc='no'
8924 hardcode_libdir_separator=:
8925 ;;
8926
8927 solaris*)
8928 no_undefined_flag=' -z defs'
8929 if test "$GCC" = yes; then
8930 wlarc='${wl}'
8931 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8932 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8933 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8934 else
8935 case `$CC -V 2>&1` in
8936 *"Compilers 5.0"*)
8937 wlarc=''
8938 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8939 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8940 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8941 ;;
8942 *)
8943 wlarc='${wl}'
8944 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8945 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8946 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8947 ;;
8948 esac
8949 fi
8950 hardcode_libdir_flag_spec='-R$libdir'
8951 hardcode_shlibpath_var=no
8952 case $host_os in
8953 solaris2.[0-5] | solaris2.[0-5].*) ;;
8954 *)
8955 # The compiler driver will combine and reorder linker options,
8956 # but understands `-z linker_flag'. GCC discards it without `$wl',
8957 # but is careful enough not to reorder.
8958 # Supported since Solaris 2.6 (maybe 2.5.1?)
8959 if test "$GCC" = yes; then
8960 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8961 else
8962 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8963 fi
8964 ;;
8965 esac
8966 link_all_deplibs=yes
8967 ;;
8968
8969 sunos4*)
8970 if test "x$host_vendor" = xsequent; then
8971 # Use $CC to link under sequent, because it throws in some extra .o
8972 # files that make .init and .fini sections work.
8973 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8974 else
8975 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8976 fi
8977 hardcode_libdir_flag_spec='-L$libdir'
8978 hardcode_direct=yes
8979 hardcode_minus_L=yes
8980 hardcode_shlibpath_var=no
8981 ;;
8982
8983 sysv4)
8984 case $host_vendor in
8985 sni)
8986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8987 hardcode_direct=yes # is this really true???
8988 ;;
8989 siemens)
8990 ## LD is ld it makes a PLAMLIB
8991 ## CC just makes a GrossModule.
8992 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8993 reload_cmds='$CC -r -o $output$reload_objs'
8994 hardcode_direct=no
8995 ;;
8996 motorola)
8997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8998 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8999 ;;
9000 esac
9001 runpath_var='LD_RUN_PATH'
9002 hardcode_shlibpath_var=no
9003 ;;
9004
9005 sysv4.3*)
9006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9007 hardcode_shlibpath_var=no
9008 export_dynamic_flag_spec='-Bexport'
9009 ;;
9010
9011 sysv4*MP*)
9012 if test -d /usr/nec; then
9013 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9014 hardcode_shlibpath_var=no
9015 runpath_var=LD_RUN_PATH
9016 hardcode_runpath_var=yes
9017 ld_shlibs=yes
9018 fi
9019 ;;
9020
9021 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9022 no_undefined_flag='${wl}-z,text'
9023 archive_cmds_need_lc=no
9024 hardcode_shlibpath_var=no
9025 runpath_var='LD_RUN_PATH'
9026
9027 if test "$GCC" = yes; then
9028 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9029 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9030 else
9031 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9032 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9033 fi
9034 ;;
9035
9036 sysv5* | sco3.2v5* | sco5v6*)
9037 # Note: We can NOT use -z defs as we might desire, because we do not
9038 # link with -lc, and that would cause any symbols used from libc to
9039 # always be unresolved, which means just about no library would
9040 # ever link correctly. If we're not using GNU ld we use -z text
9041 # though, which does catch some bad symbols but isn't as heavy-handed
9042 # as -z defs.
9043 no_undefined_flag='${wl}-z,text'
9044 allow_undefined_flag='${wl}-z,nodefs'
9045 archive_cmds_need_lc=no
9046 hardcode_shlibpath_var=no
9047 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9048 hardcode_libdir_separator=':'
9049 link_all_deplibs=yes
9050 export_dynamic_flag_spec='${wl}-Bexport'
9051 runpath_var='LD_RUN_PATH'
9052
9053 if test "$GCC" = yes; then
9054 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9055 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9056 else
9057 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9058 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9059 fi
9060 ;;
9061
9062 uts4*)
9063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9064 hardcode_libdir_flag_spec='-L$libdir'
9065 hardcode_shlibpath_var=no
9066 ;;
9067
9068 *)
9069 ld_shlibs=no
9070 ;;
9071 esac
9072
9073 if test x$host_vendor = xsni; then
9074 case $host in
9075 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9076 export_dynamic_flag_spec='${wl}-Blargedynsym'
9077 ;;
9078 esac
9079 fi
9080 fi
9081
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9083 $as_echo "$ld_shlibs" >&6; }
9084 test "$ld_shlibs" = no && can_build_shared=no
9085
9086 with_gnu_ld=$with_gnu_ld
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102 #
9103 # Do we need to explicitly link libc?
9104 #
9105 case "x$archive_cmds_need_lc" in
9106 x|xyes)
9107 # Assume -lc should be added
9108 archive_cmds_need_lc=yes
9109
9110 if test "$enable_shared" = yes && test "$GCC" = yes; then
9111 case $archive_cmds in
9112 *'~'*)
9113 # FIXME: we may have to deal with multi-command sequences.
9114 ;;
9115 '$CC '*)
9116 # Test whether the compiler implicitly links with -lc since on some
9117 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9118 # to ld, don't add -lc before -lgcc.
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9120 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9121 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9122 $as_echo_n "(cached) " >&6
9123 else
9124 $RM conftest*
9125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9126
9127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9128 (eval $ac_compile) 2>&5
9129 ac_status=$?
9130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9131 test $ac_status = 0; } 2>conftest.err; then
9132 soname=conftest
9133 lib=conftest
9134 libobjs=conftest.$ac_objext
9135 deplibs=
9136 wl=$lt_prog_compiler_wl
9137 pic_flag=$lt_prog_compiler_pic
9138 compiler_flags=-v
9139 linker_flags=-v
9140 verstring=
9141 output_objdir=.
9142 libname=conftest
9143 lt_save_allow_undefined_flag=$allow_undefined_flag
9144 allow_undefined_flag=
9145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9146 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9147 ac_status=$?
9148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9149 test $ac_status = 0; }
9150 then
9151 lt_cv_archive_cmds_need_lc=no
9152 else
9153 lt_cv_archive_cmds_need_lc=yes
9154 fi
9155 allow_undefined_flag=$lt_save_allow_undefined_flag
9156 else
9157 cat conftest.err 1>&5
9158 fi
9159 $RM conftest*
9160
9161 fi
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9163 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9164 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9165 ;;
9166 esac
9167 fi
9168 ;;
9169 esac
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9328 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9329
9330 if test "$GCC" = yes; then
9331 case $host_os in
9332 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9333 *) lt_awk_arg="/^libraries:/" ;;
9334 esac
9335 case $host_os in
9336 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9337 *) lt_sed_strip_eq="s,=/,/,g" ;;
9338 esac
9339 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9340 case $lt_search_path_spec in
9341 *\;*)
9342 # if the path contains ";" then we assume it to be the separator
9343 # otherwise default to the standard path separator (i.e. ":") - it is
9344 # assumed that no part of a normal pathname contains ";" but that should
9345 # okay in the real world where ";" in dirpaths is itself problematic.
9346 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9347 ;;
9348 *)
9349 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9350 ;;
9351 esac
9352 # Ok, now we have the path, separated by spaces, we can step through it
9353 # and add multilib dir if necessary.
9354 lt_tmp_lt_search_path_spec=
9355 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9356 for lt_sys_path in $lt_search_path_spec; do
9357 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9358 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9359 else
9360 test -d "$lt_sys_path" && \
9361 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9362 fi
9363 done
9364 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9365 BEGIN {RS=" "; FS="/|\n";} {
9366 lt_foo="";
9367 lt_count=0;
9368 for (lt_i = NF; lt_i > 0; lt_i--) {
9369 if ($lt_i != "" && $lt_i != ".") {
9370 if ($lt_i == "..") {
9371 lt_count++;
9372 } else {
9373 if (lt_count == 0) {
9374 lt_foo="/" $lt_i lt_foo;
9375 } else {
9376 lt_count--;
9377 }
9378 }
9379 }
9380 }
9381 if (lt_foo != "") { lt_freq[lt_foo]++; }
9382 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9383 }'`
9384 # AWK program above erroneously prepends '/' to C:/dos/paths
9385 # for these hosts.
9386 case $host_os in
9387 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9388 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9389 esac
9390 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9391 else
9392 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9393 fi
9394 library_names_spec=
9395 libname_spec='lib$name'
9396 soname_spec=
9397 shrext_cmds=".so"
9398 postinstall_cmds=
9399 postuninstall_cmds=
9400 finish_cmds=
9401 finish_eval=
9402 shlibpath_var=
9403 shlibpath_overrides_runpath=unknown
9404 version_type=none
9405 dynamic_linker="$host_os ld.so"
9406 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9407 need_lib_prefix=unknown
9408 hardcode_into_libs=no
9409
9410 # when you set need_version to no, make sure it does not cause -set_version
9411 # flags to be left without arguments
9412 need_version=unknown
9413
9414 case $host_os in
9415 aix3*)
9416 version_type=linux
9417 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9418 shlibpath_var=LIBPATH
9419
9420 # AIX 3 has no versioning support, so we append a major version to the name.
9421 soname_spec='${libname}${release}${shared_ext}$major'
9422 ;;
9423
9424 aix[4-9]*)
9425 version_type=linux
9426 need_lib_prefix=no
9427 need_version=no
9428 hardcode_into_libs=yes
9429 if test "$host_cpu" = ia64; then
9430 # AIX 5 supports IA64
9431 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9432 shlibpath_var=LD_LIBRARY_PATH
9433 else
9434 # With GCC up to 2.95.x, collect2 would create an import file
9435 # for dependence libraries. The import file would start with
9436 # the line `#! .'. This would cause the generated library to
9437 # depend on `.', always an invalid library. This was fixed in
9438 # development snapshots of GCC prior to 3.0.
9439 case $host_os in
9440 aix4 | aix4.[01] | aix4.[01].*)
9441 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9442 echo ' yes '
9443 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9444 :
9445 else
9446 can_build_shared=no
9447 fi
9448 ;;
9449 esac
9450 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9451 # soname into executable. Probably we can add versioning support to
9452 # collect2, so additional links can be useful in future.
9453 if test "$aix_use_runtimelinking" = yes; then
9454 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9455 # instead of lib<name>.a to let people know that these are not
9456 # typical AIX shared libraries.
9457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9458 else
9459 # We preserve .a as extension for shared libraries through AIX4.2
9460 # and later when we are not doing run time linking.
9461 library_names_spec='${libname}${release}.a $libname.a'
9462 soname_spec='${libname}${release}${shared_ext}$major'
9463 fi
9464 shlibpath_var=LIBPATH
9465 fi
9466 ;;
9467
9468 amigaos*)
9469 case $host_cpu in
9470 powerpc)
9471 # Since July 2007 AmigaOS4 officially supports .so libraries.
9472 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474 ;;
9475 m68k)
9476 library_names_spec='$libname.ixlibrary $libname.a'
9477 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9478 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'
9479 ;;
9480 esac
9481 ;;
9482
9483 beos*)
9484 library_names_spec='${libname}${shared_ext}'
9485 dynamic_linker="$host_os ld.so"
9486 shlibpath_var=LIBRARY_PATH
9487 ;;
9488
9489 bsdi[45]*)
9490 version_type=linux
9491 need_version=no
9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493 soname_spec='${libname}${release}${shared_ext}$major'
9494 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9495 shlibpath_var=LD_LIBRARY_PATH
9496 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9497 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9498 # the default ld.so.conf also contains /usr/contrib/lib and
9499 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9500 # libtool to hard-code these into programs
9501 ;;
9502
9503 cygwin* | mingw* | pw32* | cegcc*)
9504 version_type=windows
9505 shrext_cmds=".dll"
9506 need_version=no
9507 need_lib_prefix=no
9508
9509 case $GCC,$host_os in
9510 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9511 library_names_spec='$libname.dll.a'
9512 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9513 postinstall_cmds='base_file=`basename \${file}`~
9514 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9515 dldir=$destdir/`dirname \$dlpath`~
9516 test -d \$dldir || mkdir -p \$dldir~
9517 $install_prog $dir/$dlname \$dldir/$dlname~
9518 chmod a+x \$dldir/$dlname~
9519 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9520 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9521 fi'
9522 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9523 dlpath=$dir/\$dldll~
9524 $RM \$dlpath'
9525 shlibpath_overrides_runpath=yes
9526
9527 case $host_os in
9528 cygwin*)
9529 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9530 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9531
9532 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9533 ;;
9534 mingw* | cegcc*)
9535 # MinGW DLLs use traditional 'lib' prefix
9536 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9537 ;;
9538 pw32*)
9539 # pw32 DLLs use 'pw' prefix rather than 'lib'
9540 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9541 ;;
9542 esac
9543 ;;
9544
9545 *)
9546 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9547 ;;
9548 esac
9549 dynamic_linker='Win32 ld.exe'
9550 # FIXME: first we should search . and the directory the executable is in
9551 shlibpath_var=PATH
9552 ;;
9553
9554 darwin* | rhapsody*)
9555 dynamic_linker="$host_os dyld"
9556 version_type=darwin
9557 need_lib_prefix=no
9558 need_version=no
9559 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9560 soname_spec='${libname}${release}${major}$shared_ext'
9561 shlibpath_overrides_runpath=yes
9562 shlibpath_var=DYLD_LIBRARY_PATH
9563 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9564
9565 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9566 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9567 ;;
9568
9569 dgux*)
9570 version_type=linux
9571 need_lib_prefix=no
9572 need_version=no
9573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9574 soname_spec='${libname}${release}${shared_ext}$major'
9575 shlibpath_var=LD_LIBRARY_PATH
9576 ;;
9577
9578 freebsd* | dragonfly*)
9579 # DragonFly does not have aout. When/if they implement a new
9580 # versioning mechanism, adjust this.
9581 if test -x /usr/bin/objformat; then
9582 objformat=`/usr/bin/objformat`
9583 else
9584 case $host_os in
9585 freebsd[23].*) objformat=aout ;;
9586 *) objformat=elf ;;
9587 esac
9588 fi
9589 version_type=freebsd-$objformat
9590 case $version_type in
9591 freebsd-elf*)
9592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9593 need_version=no
9594 need_lib_prefix=no
9595 ;;
9596 freebsd-*)
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9598 need_version=yes
9599 ;;
9600 esac
9601 shlibpath_var=LD_LIBRARY_PATH
9602 case $host_os in
9603 freebsd2.*)
9604 shlibpath_overrides_runpath=yes
9605 ;;
9606 freebsd3.[01]* | freebsdelf3.[01]*)
9607 shlibpath_overrides_runpath=yes
9608 hardcode_into_libs=yes
9609 ;;
9610 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9611 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9612 shlibpath_overrides_runpath=no
9613 hardcode_into_libs=yes
9614 ;;
9615 *) # from 4.6 on, and DragonFly
9616 shlibpath_overrides_runpath=yes
9617 hardcode_into_libs=yes
9618 ;;
9619 esac
9620 ;;
9621
9622 gnu*)
9623 version_type=linux
9624 need_lib_prefix=no
9625 need_version=no
9626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9627 soname_spec='${libname}${release}${shared_ext}$major'
9628 shlibpath_var=LD_LIBRARY_PATH
9629 hardcode_into_libs=yes
9630 ;;
9631
9632 haiku*)
9633 version_type=linux
9634 need_lib_prefix=no
9635 need_version=no
9636 dynamic_linker="$host_os runtime_loader"
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9638 soname_spec='${libname}${release}${shared_ext}$major'
9639 shlibpath_var=LIBRARY_PATH
9640 shlibpath_overrides_runpath=yes
9641 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9642 hardcode_into_libs=yes
9643 ;;
9644
9645 hpux9* | hpux10* | hpux11*)
9646 # Give a soname corresponding to the major version so that dld.sl refuses to
9647 # link against other versions.
9648 version_type=sunos
9649 need_lib_prefix=no
9650 need_version=no
9651 case $host_cpu in
9652 ia64*)
9653 shrext_cmds='.so'
9654 hardcode_into_libs=yes
9655 dynamic_linker="$host_os dld.so"
9656 shlibpath_var=LD_LIBRARY_PATH
9657 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9659 soname_spec='${libname}${release}${shared_ext}$major'
9660 if test "X$HPUX_IA64_MODE" = X32; then
9661 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9662 else
9663 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9664 fi
9665 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9666 ;;
9667 hppa*64*)
9668 shrext_cmds='.sl'
9669 hardcode_into_libs=yes
9670 dynamic_linker="$host_os dld.sl"
9671 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9672 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9674 soname_spec='${libname}${release}${shared_ext}$major'
9675 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9676 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9677 ;;
9678 *)
9679 shrext_cmds='.sl'
9680 dynamic_linker="$host_os dld.sl"
9681 shlibpath_var=SHLIB_PATH
9682 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684 soname_spec='${libname}${release}${shared_ext}$major'
9685 ;;
9686 esac
9687 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9688 postinstall_cmds='chmod 555 $lib'
9689 # or fails outright, so override atomically:
9690 install_override_mode=555
9691 ;;
9692
9693 interix[3-9]*)
9694 version_type=linux
9695 need_lib_prefix=no
9696 need_version=no
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9698 soname_spec='${libname}${release}${shared_ext}$major'
9699 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9700 shlibpath_var=LD_LIBRARY_PATH
9701 shlibpath_overrides_runpath=no
9702 hardcode_into_libs=yes
9703 ;;
9704
9705 irix5* | irix6* | nonstopux*)
9706 case $host_os in
9707 nonstopux*) version_type=nonstopux ;;
9708 *)
9709 if test "$lt_cv_prog_gnu_ld" = yes; then
9710 version_type=linux
9711 else
9712 version_type=irix
9713 fi ;;
9714 esac
9715 need_lib_prefix=no
9716 need_version=no
9717 soname_spec='${libname}${release}${shared_ext}$major'
9718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9719 case $host_os in
9720 irix5* | nonstopux*)
9721 libsuff= shlibsuff=
9722 ;;
9723 *)
9724 case $LD in # libtool.m4 will add one of these switches to LD
9725 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9726 libsuff= shlibsuff= libmagic=32-bit;;
9727 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9728 libsuff=32 shlibsuff=N32 libmagic=N32;;
9729 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9730 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9731 *) libsuff= shlibsuff= libmagic=never-match;;
9732 esac
9733 ;;
9734 esac
9735 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9736 shlibpath_overrides_runpath=no
9737 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9738 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9739 hardcode_into_libs=yes
9740 ;;
9741
9742 # No shared lib support for Linux oldld, aout, or coff.
9743 linux*oldld* | linux*aout* | linux*coff*)
9744 dynamic_linker=no
9745 ;;
9746
9747 # This must be Linux ELF.
9748 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9749 version_type=linux
9750 need_lib_prefix=no
9751 need_version=no
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753 soname_spec='${libname}${release}${shared_ext}$major'
9754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9755 shlibpath_var=LD_LIBRARY_PATH
9756 shlibpath_overrides_runpath=no
9757
9758 # Some binutils ld are patched to set DT_RUNPATH
9759 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9760 $as_echo_n "(cached) " >&6
9761 else
9762 lt_cv_shlibpath_overrides_runpath=no
9763 save_LDFLAGS=$LDFLAGS
9764 save_libdir=$libdir
9765 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9766 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769
9770 int
9771 main ()
9772 {
9773
9774 ;
9775 return 0;
9776 }
9777 _ACEOF
9778 if ac_fn_c_try_link "$LINENO"; then :
9779 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9780 lt_cv_shlibpath_overrides_runpath=yes
9781 fi
9782 fi
9783 rm -f core conftest.err conftest.$ac_objext \
9784 conftest$ac_exeext conftest.$ac_ext
9785 LDFLAGS=$save_LDFLAGS
9786 libdir=$save_libdir
9787
9788 fi
9789
9790 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9791
9792 # This implies no fast_install, which is unacceptable.
9793 # Some rework will be needed to allow for fast_install
9794 # before this can be enabled.
9795 hardcode_into_libs=yes
9796
9797 # Append ld.so.conf contents to the search path
9798 if test -f /etc/ld.so.conf; then
9799 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' ' '`
9800 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9801 fi
9802
9803 # We used to test for /lib/ld.so.1 and disable shared libraries on
9804 # powerpc, because MkLinux only supported shared libraries with the
9805 # GNU dynamic linker. Since this was broken with cross compilers,
9806 # most powerpc-linux boxes support dynamic linking these days and
9807 # people can always --disable-shared, the test was removed, and we
9808 # assume the GNU/Linux dynamic linker is in use.
9809 dynamic_linker='GNU/Linux ld.so'
9810 ;;
9811
9812 netbsd*)
9813 version_type=sunos
9814 need_lib_prefix=no
9815 need_version=no
9816 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9819 dynamic_linker='NetBSD (a.out) ld.so'
9820 else
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9822 soname_spec='${libname}${release}${shared_ext}$major'
9823 dynamic_linker='NetBSD ld.elf_so'
9824 fi
9825 shlibpath_var=LD_LIBRARY_PATH
9826 shlibpath_overrides_runpath=yes
9827 hardcode_into_libs=yes
9828 ;;
9829
9830 newsos6)
9831 version_type=linux
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9833 shlibpath_var=LD_LIBRARY_PATH
9834 shlibpath_overrides_runpath=yes
9835 ;;
9836
9837 *nto* | *qnx*)
9838 version_type=qnx
9839 need_lib_prefix=no
9840 need_version=no
9841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9842 soname_spec='${libname}${release}${shared_ext}$major'
9843 shlibpath_var=LD_LIBRARY_PATH
9844 shlibpath_overrides_runpath=no
9845 hardcode_into_libs=yes
9846 dynamic_linker='ldqnx.so'
9847 ;;
9848
9849 openbsd*)
9850 version_type=sunos
9851 sys_lib_dlsearch_path_spec="/usr/lib"
9852 need_lib_prefix=no
9853 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9854 case $host_os in
9855 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9856 *) need_version=no ;;
9857 esac
9858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9860 shlibpath_var=LD_LIBRARY_PATH
9861 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9862 case $host_os in
9863 openbsd2.[89] | openbsd2.[89].*)
9864 shlibpath_overrides_runpath=no
9865 ;;
9866 *)
9867 shlibpath_overrides_runpath=yes
9868 ;;
9869 esac
9870 else
9871 shlibpath_overrides_runpath=yes
9872 fi
9873 ;;
9874
9875 os2*)
9876 libname_spec='$name'
9877 shrext_cmds=".dll"
9878 need_lib_prefix=no
9879 library_names_spec='$libname${shared_ext} $libname.a'
9880 dynamic_linker='OS/2 ld.exe'
9881 shlibpath_var=LIBPATH
9882 ;;
9883
9884 osf3* | osf4* | osf5*)
9885 version_type=osf
9886 need_lib_prefix=no
9887 need_version=no
9888 soname_spec='${libname}${release}${shared_ext}$major'
9889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890 shlibpath_var=LD_LIBRARY_PATH
9891 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9892 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9893 ;;
9894
9895 rdos*)
9896 dynamic_linker=no
9897 ;;
9898
9899 solaris*)
9900 version_type=linux
9901 need_lib_prefix=no
9902 need_version=no
9903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 soname_spec='${libname}${release}${shared_ext}$major'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 shlibpath_overrides_runpath=yes
9907 hardcode_into_libs=yes
9908 # ldd complains unless libraries are executable
9909 postinstall_cmds='chmod +x $lib'
9910 ;;
9911
9912 sunos4*)
9913 version_type=sunos
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9915 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9916 shlibpath_var=LD_LIBRARY_PATH
9917 shlibpath_overrides_runpath=yes
9918 if test "$with_gnu_ld" = yes; then
9919 need_lib_prefix=no
9920 fi
9921 need_version=yes
9922 ;;
9923
9924 sysv4 | sysv4.3*)
9925 version_type=linux
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927 soname_spec='${libname}${release}${shared_ext}$major'
9928 shlibpath_var=LD_LIBRARY_PATH
9929 case $host_vendor in
9930 sni)
9931 shlibpath_overrides_runpath=no
9932 need_lib_prefix=no
9933 runpath_var=LD_RUN_PATH
9934 ;;
9935 siemens)
9936 need_lib_prefix=no
9937 ;;
9938 motorola)
9939 need_lib_prefix=no
9940 need_version=no
9941 shlibpath_overrides_runpath=no
9942 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9943 ;;
9944 esac
9945 ;;
9946
9947 sysv4*MP*)
9948 if test -d /usr/nec ;then
9949 version_type=linux
9950 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9951 soname_spec='$libname${shared_ext}.$major'
9952 shlibpath_var=LD_LIBRARY_PATH
9953 fi
9954 ;;
9955
9956 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9957 version_type=freebsd-elf
9958 need_lib_prefix=no
9959 need_version=no
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9962 shlibpath_var=LD_LIBRARY_PATH
9963 shlibpath_overrides_runpath=yes
9964 hardcode_into_libs=yes
9965 if test "$with_gnu_ld" = yes; then
9966 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9967 else
9968 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9969 case $host_os in
9970 sco3.2v5*)
9971 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9972 ;;
9973 esac
9974 fi
9975 sys_lib_dlsearch_path_spec='/usr/lib'
9976 ;;
9977
9978 tpf*)
9979 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9980 version_type=linux
9981 need_lib_prefix=no
9982 need_version=no
9983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984 shlibpath_var=LD_LIBRARY_PATH
9985 shlibpath_overrides_runpath=no
9986 hardcode_into_libs=yes
9987 ;;
9988
9989 uts4*)
9990 version_type=linux
9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9992 soname_spec='${libname}${release}${shared_ext}$major'
9993 shlibpath_var=LD_LIBRARY_PATH
9994 ;;
9995
9996 *)
9997 dynamic_linker=no
9998 ;;
9999 esac
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10001 $as_echo "$dynamic_linker" >&6; }
10002 test "$dynamic_linker" = no && can_build_shared=no
10003
10004 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10005 if test "$GCC" = yes; then
10006 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10007 fi
10008
10009 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10010 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10011 fi
10012 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10013 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10014 fi
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10108 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10109 hardcode_action=
10110 if test -n "$hardcode_libdir_flag_spec" ||
10111 test -n "$runpath_var" ||
10112 test "X$hardcode_automatic" = "Xyes" ; then
10113
10114 # We can hardcode non-existent directories.
10115 if test "$hardcode_direct" != no &&
10116 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10117 # have to relink, otherwise we might link with an installed library
10118 # when we should be linking with a yet-to-be-installed one
10119 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10120 test "$hardcode_minus_L" != no; then
10121 # Linking always hardcodes the temporary library directory.
10122 hardcode_action=relink
10123 else
10124 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10125 hardcode_action=immediate
10126 fi
10127 else
10128 # We cannot hardcode anything, or else we can only hardcode existing
10129 # directories.
10130 hardcode_action=unsupported
10131 fi
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10133 $as_echo "$hardcode_action" >&6; }
10134
10135 if test "$hardcode_action" = relink ||
10136 test "$inherit_rpath" = yes; then
10137 # Fast installation is not supported
10138 enable_fast_install=no
10139 elif test "$shlibpath_overrides_runpath" = yes ||
10140 test "$enable_shared" = no; then
10141 # Fast installation is not necessary
10142 enable_fast_install=needless
10143 fi
10144
10145
10146
10147
10148
10149
10150 if test "x$enable_dlopen" != xyes; then
10151 enable_dlopen=unknown
10152 enable_dlopen_self=unknown
10153 enable_dlopen_self_static=unknown
10154 else
10155 lt_cv_dlopen=no
10156 lt_cv_dlopen_libs=
10157
10158 case $host_os in
10159 beos*)
10160 lt_cv_dlopen="load_add_on"
10161 lt_cv_dlopen_libs=
10162 lt_cv_dlopen_self=yes
10163 ;;
10164
10165 mingw* | pw32* | cegcc*)
10166 lt_cv_dlopen="LoadLibrary"
10167 lt_cv_dlopen_libs=
10168 ;;
10169
10170 cygwin*)
10171 lt_cv_dlopen="dlopen"
10172 lt_cv_dlopen_libs=
10173 ;;
10174
10175 darwin*)
10176 # if libdl is installed we need to link against it
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10178 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10179 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 ac_check_lib_save_LIBS=$LIBS
10183 LIBS="-ldl $LIBS"
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h. */
10186
10187 /* Override any GCC internal prototype to avoid an error.
10188 Use char because int might match the return type of a GCC
10189 builtin and then its argument prototype would still apply. */
10190 #ifdef __cplusplus
10191 extern "C"
10192 #endif
10193 char dlopen ();
10194 int
10195 main ()
10196 {
10197 return dlopen ();
10198 ;
10199 return 0;
10200 }
10201 _ACEOF
10202 if ac_fn_c_try_link "$LINENO"; then :
10203 ac_cv_lib_dl_dlopen=yes
10204 else
10205 ac_cv_lib_dl_dlopen=no
10206 fi
10207 rm -f core conftest.err conftest.$ac_objext \
10208 conftest$ac_exeext conftest.$ac_ext
10209 LIBS=$ac_check_lib_save_LIBS
10210 fi
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10212 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10213 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10214 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10215 else
10216
10217 lt_cv_dlopen="dyld"
10218 lt_cv_dlopen_libs=
10219 lt_cv_dlopen_self=yes
10220
10221 fi
10222
10223 ;;
10224
10225 *)
10226 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10227 if test "x$ac_cv_func_shl_load" = x""yes; then :
10228 lt_cv_dlopen="shl_load"
10229 else
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10231 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10232 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10233 $as_echo_n "(cached) " >&6
10234 else
10235 ac_check_lib_save_LIBS=$LIBS
10236 LIBS="-ldld $LIBS"
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10239
10240 /* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
10243 #ifdef __cplusplus
10244 extern "C"
10245 #endif
10246 char shl_load ();
10247 int
10248 main ()
10249 {
10250 return shl_load ();
10251 ;
10252 return 0;
10253 }
10254 _ACEOF
10255 if ac_fn_c_try_link "$LINENO"; then :
10256 ac_cv_lib_dld_shl_load=yes
10257 else
10258 ac_cv_lib_dld_shl_load=no
10259 fi
10260 rm -f core conftest.err conftest.$ac_objext \
10261 conftest$ac_exeext conftest.$ac_ext
10262 LIBS=$ac_check_lib_save_LIBS
10263 fi
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10265 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10266 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10267 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10268 else
10269 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10270 if test "x$ac_cv_func_dlopen" = x""yes; then :
10271 lt_cv_dlopen="dlopen"
10272 else
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10274 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10275 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10276 $as_echo_n "(cached) " >&6
10277 else
10278 ac_check_lib_save_LIBS=$LIBS
10279 LIBS="-ldl $LIBS"
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10282
10283 /* Override any GCC internal prototype to avoid an error.
10284 Use char because int might match the return type of a GCC
10285 builtin and then its argument prototype would still apply. */
10286 #ifdef __cplusplus
10287 extern "C"
10288 #endif
10289 char dlopen ();
10290 int
10291 main ()
10292 {
10293 return dlopen ();
10294 ;
10295 return 0;
10296 }
10297 _ACEOF
10298 if ac_fn_c_try_link "$LINENO"; then :
10299 ac_cv_lib_dl_dlopen=yes
10300 else
10301 ac_cv_lib_dl_dlopen=no
10302 fi
10303 rm -f core conftest.err conftest.$ac_objext \
10304 conftest$ac_exeext conftest.$ac_ext
10305 LIBS=$ac_check_lib_save_LIBS
10306 fi
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10308 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10309 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10311 else
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10313 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10314 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10315 $as_echo_n "(cached) " >&6
10316 else
10317 ac_check_lib_save_LIBS=$LIBS
10318 LIBS="-lsvld $LIBS"
10319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320 /* end confdefs.h. */
10321
10322 /* Override any GCC internal prototype to avoid an error.
10323 Use char because int might match the return type of a GCC
10324 builtin and then its argument prototype would still apply. */
10325 #ifdef __cplusplus
10326 extern "C"
10327 #endif
10328 char dlopen ();
10329 int
10330 main ()
10331 {
10332 return dlopen ();
10333 ;
10334 return 0;
10335 }
10336 _ACEOF
10337 if ac_fn_c_try_link "$LINENO"; then :
10338 ac_cv_lib_svld_dlopen=yes
10339 else
10340 ac_cv_lib_svld_dlopen=no
10341 fi
10342 rm -f core conftest.err conftest.$ac_objext \
10343 conftest$ac_exeext conftest.$ac_ext
10344 LIBS=$ac_check_lib_save_LIBS
10345 fi
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10347 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10348 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10350 else
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10352 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10353 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10354 $as_echo_n "(cached) " >&6
10355 else
10356 ac_check_lib_save_LIBS=$LIBS
10357 LIBS="-ldld $LIBS"
10358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359 /* end confdefs.h. */
10360
10361 /* Override any GCC internal prototype to avoid an error.
10362 Use char because int might match the return type of a GCC
10363 builtin and then its argument prototype would still apply. */
10364 #ifdef __cplusplus
10365 extern "C"
10366 #endif
10367 char dld_link ();
10368 int
10369 main ()
10370 {
10371 return dld_link ();
10372 ;
10373 return 0;
10374 }
10375 _ACEOF
10376 if ac_fn_c_try_link "$LINENO"; then :
10377 ac_cv_lib_dld_dld_link=yes
10378 else
10379 ac_cv_lib_dld_dld_link=no
10380 fi
10381 rm -f core conftest.err conftest.$ac_objext \
10382 conftest$ac_exeext conftest.$ac_ext
10383 LIBS=$ac_check_lib_save_LIBS
10384 fi
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10386 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10387 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10388 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10389 fi
10390
10391
10392 fi
10393
10394
10395 fi
10396
10397
10398 fi
10399
10400
10401 fi
10402
10403
10404 fi
10405
10406 ;;
10407 esac
10408
10409 if test "x$lt_cv_dlopen" != xno; then
10410 enable_dlopen=yes
10411 else
10412 enable_dlopen=no
10413 fi
10414
10415 case $lt_cv_dlopen in
10416 dlopen)
10417 save_CPPFLAGS="$CPPFLAGS"
10418 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10419
10420 save_LDFLAGS="$LDFLAGS"
10421 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10422
10423 save_LIBS="$LIBS"
10424 LIBS="$lt_cv_dlopen_libs $LIBS"
10425
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10427 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10428 if test "${lt_cv_dlopen_self+set}" = set; then :
10429 $as_echo_n "(cached) " >&6
10430 else
10431 if test "$cross_compiling" = yes; then :
10432 lt_cv_dlopen_self=cross
10433 else
10434 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10435 lt_status=$lt_dlunknown
10436 cat > conftest.$ac_ext <<_LT_EOF
10437 #line 10437 "configure"
10438 #include "confdefs.h"
10439
10440 #if HAVE_DLFCN_H
10441 #include <dlfcn.h>
10442 #endif
10443
10444 #include <stdio.h>
10445
10446 #ifdef RTLD_GLOBAL
10447 # define LT_DLGLOBAL RTLD_GLOBAL
10448 #else
10449 # ifdef DL_GLOBAL
10450 # define LT_DLGLOBAL DL_GLOBAL
10451 # else
10452 # define LT_DLGLOBAL 0
10453 # endif
10454 #endif
10455
10456 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10457 find out it does not work in some platform. */
10458 #ifndef LT_DLLAZY_OR_NOW
10459 # ifdef RTLD_LAZY
10460 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10461 # else
10462 # ifdef DL_LAZY
10463 # define LT_DLLAZY_OR_NOW DL_LAZY
10464 # else
10465 # ifdef RTLD_NOW
10466 # define LT_DLLAZY_OR_NOW RTLD_NOW
10467 # else
10468 # ifdef DL_NOW
10469 # define LT_DLLAZY_OR_NOW DL_NOW
10470 # else
10471 # define LT_DLLAZY_OR_NOW 0
10472 # endif
10473 # endif
10474 # endif
10475 # endif
10476 #endif
10477
10478 /* When -fvisbility=hidden is used, assume the code has been annotated
10479 correspondingly for the symbols needed. */
10480 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10481 void fnord () __attribute__((visibility("default")));
10482 #endif
10483
10484 void fnord () { int i=42; }
10485 int main ()
10486 {
10487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10488 int status = $lt_dlunknown;
10489
10490 if (self)
10491 {
10492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10493 else
10494 {
10495 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10496 else puts (dlerror ());
10497 }
10498 /* dlclose (self); */
10499 }
10500 else
10501 puts (dlerror ());
10502
10503 return status;
10504 }
10505 _LT_EOF
10506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10507 (eval $ac_link) 2>&5
10508 ac_status=$?
10509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10510 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10511 (./conftest; exit; ) >&5 2>/dev/null
10512 lt_status=$?
10513 case x$lt_status in
10514 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10515 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10516 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10517 esac
10518 else :
10519 # compilation failed
10520 lt_cv_dlopen_self=no
10521 fi
10522 fi
10523 rm -fr conftest*
10524
10525
10526 fi
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10528 $as_echo "$lt_cv_dlopen_self" >&6; }
10529
10530 if test "x$lt_cv_dlopen_self" = xyes; then
10531 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10533 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10534 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10535 $as_echo_n "(cached) " >&6
10536 else
10537 if test "$cross_compiling" = yes; then :
10538 lt_cv_dlopen_self_static=cross
10539 else
10540 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10541 lt_status=$lt_dlunknown
10542 cat > conftest.$ac_ext <<_LT_EOF
10543 #line 10543 "configure"
10544 #include "confdefs.h"
10545
10546 #if HAVE_DLFCN_H
10547 #include <dlfcn.h>
10548 #endif
10549
10550 #include <stdio.h>
10551
10552 #ifdef RTLD_GLOBAL
10553 # define LT_DLGLOBAL RTLD_GLOBAL
10554 #else
10555 # ifdef DL_GLOBAL
10556 # define LT_DLGLOBAL DL_GLOBAL
10557 # else
10558 # define LT_DLGLOBAL 0
10559 # endif
10560 #endif
10561
10562 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10563 find out it does not work in some platform. */
10564 #ifndef LT_DLLAZY_OR_NOW
10565 # ifdef RTLD_LAZY
10566 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10567 # else
10568 # ifdef DL_LAZY
10569 # define LT_DLLAZY_OR_NOW DL_LAZY
10570 # else
10571 # ifdef RTLD_NOW
10572 # define LT_DLLAZY_OR_NOW RTLD_NOW
10573 # else
10574 # ifdef DL_NOW
10575 # define LT_DLLAZY_OR_NOW DL_NOW
10576 # else
10577 # define LT_DLLAZY_OR_NOW 0
10578 # endif
10579 # endif
10580 # endif
10581 # endif
10582 #endif
10583
10584 /* When -fvisbility=hidden is used, assume the code has been annotated
10585 correspondingly for the symbols needed. */
10586 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10587 void fnord () __attribute__((visibility("default")));
10588 #endif
10589
10590 void fnord () { int i=42; }
10591 int main ()
10592 {
10593 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10594 int status = $lt_dlunknown;
10595
10596 if (self)
10597 {
10598 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10599 else
10600 {
10601 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10602 else puts (dlerror ());
10603 }
10604 /* dlclose (self); */
10605 }
10606 else
10607 puts (dlerror ());
10608
10609 return status;
10610 }
10611 _LT_EOF
10612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10613 (eval $ac_link) 2>&5
10614 ac_status=$?
10615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10616 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10617 (./conftest; exit; ) >&5 2>/dev/null
10618 lt_status=$?
10619 case x$lt_status in
10620 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10621 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10622 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10623 esac
10624 else :
10625 # compilation failed
10626 lt_cv_dlopen_self_static=no
10627 fi
10628 fi
10629 rm -fr conftest*
10630
10631
10632 fi
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10634 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10635 fi
10636
10637 CPPFLAGS="$save_CPPFLAGS"
10638 LDFLAGS="$save_LDFLAGS"
10639 LIBS="$save_LIBS"
10640 ;;
10641 esac
10642
10643 case $lt_cv_dlopen_self in
10644 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10645 *) enable_dlopen_self=unknown ;;
10646 esac
10647
10648 case $lt_cv_dlopen_self_static in
10649 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10650 *) enable_dlopen_self_static=unknown ;;
10651 esac
10652 fi
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670 striplib=
10671 old_striplib=
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10673 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10674 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10675 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10676 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10678 $as_echo "yes" >&6; }
10679 else
10680 # FIXME - insert some real tests, host_os isn't really good enough
10681 case $host_os in
10682 darwin*)
10683 if test -n "$STRIP" ; then
10684 striplib="$STRIP -x"
10685 old_striplib="$STRIP -S"
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10687 $as_echo "yes" >&6; }
10688 else
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10690 $as_echo "no" >&6; }
10691 fi
10692 ;;
10693 *)
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695 $as_echo "no" >&6; }
10696 ;;
10697 esac
10698 fi
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711 # Report which library types will actually be built
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10713 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10715 $as_echo "$can_build_shared" >&6; }
10716
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10718 $as_echo_n "checking whether to build shared libraries... " >&6; }
10719 test "$can_build_shared" = "no" && enable_shared=no
10720
10721 # On AIX, shared libraries and static libraries use the same namespace, and
10722 # are all built from PIC.
10723 case $host_os in
10724 aix3*)
10725 test "$enable_shared" = yes && enable_static=no
10726 if test -n "$RANLIB"; then
10727 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10728 postinstall_cmds='$RANLIB $lib'
10729 fi
10730 ;;
10731
10732 aix[4-9]*)
10733 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10734 test "$enable_shared" = yes && enable_static=no
10735 fi
10736 ;;
10737 esac
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10739 $as_echo "$enable_shared" >&6; }
10740
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10742 $as_echo_n "checking whether to build static libraries... " >&6; }
10743 # Make sure either enable_shared or enable_static is yes.
10744 test "$enable_shared" = yes || enable_static=yes
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10746 $as_echo "$enable_static" >&6; }
10747
10748
10749
10750
10751 fi
10752 ac_ext=c
10753 ac_cpp='$CPP $CPPFLAGS'
10754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10757
10758 CC="$lt_save_CC"
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772 ac_config_commands="$ac_config_commands libtool"
10773
10774
10775
10776
10777 # Only expand once:
10778
10779
10780
10781
10782 backtrace_supported=yes
10783
10784 if test -n "${with_target_subdir}"; then
10785 # We are compiling a GCC library. We can assume that the unwind
10786 # library exists.
10787 # Default to --enable-multilib
10788 # Check whether --enable-multilib was given.
10789 if test "${enable_multilib+set}" = set; then :
10790 enableval=$enable_multilib; case "$enableval" in
10791 yes) multilib=yes ;;
10792 no) multilib=no ;;
10793 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
10794 esac
10795 else
10796 multilib=yes
10797 fi
10798
10799
10800 # We may get other options which we leave undocumented:
10801 # --with-target-subdir, --with-multisrctop, --with-multisubdir
10802 # See config-ml.in if you want the gory details.
10803
10804 if test "$srcdir" = "."; then
10805 if test "$with_target_subdir" != "."; then
10806 multi_basedir="$srcdir/$with_multisrctop../.."
10807 else
10808 multi_basedir="$srcdir/$with_multisrctop.."
10809 fi
10810 else
10811 multi_basedir="$srcdir/.."
10812 fi
10813
10814
10815 # Even if the default multilib is not a cross compilation,
10816 # it may be that some of the other multilibs are.
10817 if test $cross_compiling = no && test $multilib = yes \
10818 && test "x${with_multisubdir}" != x ; then
10819 cross_compiling=maybe
10820 fi
10821
10822 ac_config_commands="$ac_config_commands default-1"
10823
10824 BACKTRACE_FILE="backtrace.lo simple.lo"
10825 else
10826 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
10827 if test "x$ac_cv_header_unwind_h" = x""yes; then :
10828 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
10829 if test "x$ac_cv_func__Unwind_Backtrace" = x""yes; then :
10830 BACKTRACE_FILE="backtrace.lo simple.lo"
10831 else
10832 BACKTRACE_FILE="nounwind.lo"
10833 backtrace_supported=no
10834 fi
10835
10836 else
10837 BACKTRACE_FILE="nounwind.lo"
10838 backtrace_supported=no
10839 fi
10840
10841
10842 fi
10843
10844
10845 WARN_FLAGS=
10846 save_CFLAGS="$CFLAGS"
10847 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
10848 -Wmissing-prototypes -Wold-style-definition \
10849 -Wmissing-format-attribute -Wcast-qual; do
10850 # Do the check with the no- prefix removed since gcc silently
10851 # accepts any -Wno-* option on purpose
10852 case $real_option in
10853 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
10854 *) option=$real_option ;;
10855 esac
10856 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
10857
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
10859 $as_echo_n "checking whether $CC supports $option... " >&6; }
10860 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
10861 $as_echo_n "(cached) " >&6
10862 else
10863 CFLAGS="$option"
10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h. */
10866
10867 int
10868 main ()
10869 {
10870
10871 ;
10872 return 0;
10873 }
10874 _ACEOF
10875 if ac_fn_c_try_compile "$LINENO"; then :
10876 eval "$as_acx_Woption=yes"
10877 else
10878 eval "$as_acx_Woption=no"
10879 fi
10880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10881
10882 fi
10883 eval ac_res=\$$as_acx_Woption
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10885 $as_echo "$ac_res" >&6; }
10886 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
10887 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
10888 fi
10889 done
10890 CFLAGS="$save_CFLAGS"
10891
10892
10893 if test "x$GCC" = "xyes"; then
10894 WARN_FLAGS="$WARN_FLAGS -Werror"
10895 fi
10896
10897
10898
10899
10900
10901 # Check whether --with-system-libunwind was given.
10902 if test "${with_system_libunwind+set}" = set; then :
10903 withval=$with_system_libunwind;
10904 fi
10905
10906 # If system-libunwind was not specifically set, pick a default setting.
10907 if test x$with_system_libunwind = x; then
10908 case ${target} in
10909 ia64-*-hpux*) with_system_libunwind=yes ;;
10910 *) with_system_libunwind=no ;;
10911 esac
10912 fi
10913 # Based on system-libunwind and target, do we have ipinfo?
10914 if test x$with_system_libunwind = xyes; then
10915 case ${target} in
10916 ia64-*-*) have_unwind_getipinfo=no ;;
10917 *) have_unwind_getipinfo=yes ;;
10918 esac
10919 else
10920 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10921
10922 case ${target} in
10923 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10924 *) have_unwind_getipinfo=yes ;;
10925 esac
10926
10927 fi
10928
10929 if test x$have_unwind_getipinfo = xyes; then
10930
10931 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10932
10933 fi
10934
10935
10936 # When building as a target library, shared libraries may want to link
10937 # this in. We don't want to provide another shared library to
10938 # complicate dependencies. Instead, we just compile with -fPIC.
10939 PIC_FLAG=
10940 if test -n "${with_target_subdir}"; then
10941 PIC_FLAG=-fPIC
10942 fi
10943
10944
10945 # Test for __sync support.
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
10947 $as_echo_n "checking __sync extensions... " >&6; }
10948 if test "${libbacktrace_cv_sys_sync+set}" = set; then :
10949 $as_echo_n "(cached) " >&6
10950 else
10951 if test -n "${with_target_subdir}"; then
10952 libbacktrace_cv_sys_sync=yes
10953 else
10954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10955 /* end confdefs.h. */
10956 int i;
10957 int
10958 main ()
10959 {
10960 __sync_bool_compare_and_swap (&i, i, i);
10961 __sync_lock_test_and_set (&i, 1);
10962 __sync_lock_release (&i);
10963 ;
10964 return 0;
10965 }
10966 _ACEOF
10967 if ac_fn_c_try_link "$LINENO"; then :
10968 libbacktrace_cv_sys_sync=yes
10969 else
10970 libbacktrace_cv_sys_sync=no
10971 fi
10972 rm -f core conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext conftest.$ac_ext
10974 fi
10975 fi
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
10977 $as_echo "$libbacktrace_cv_sys_sync" >&6; }
10978 BACKTRACE_SUPPORTS_THREADS=0
10979 if test "$libbacktrace_cv_sys_sync" = "yes"; then
10980 BACKTRACE_SUPPORTS_THREADS=1
10981
10982 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
10983
10984 fi
10985
10986
10987 # The library needs to be able to read the executable itself. Compile
10988 # a file to determine the executable format. The awk script
10989 # filetype.awk prints out the file type.
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
10991 $as_echo_n "checking output filetype... " >&6; }
10992 if test "${libbacktrace_cv_sys_filetype+set}" = set; then :
10993 $as_echo_n "(cached) " >&6
10994 else
10995 filetype=
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10998 int i;
10999 int
11000 main ()
11001 {
11002 int j;
11003 ;
11004 return 0;
11005 }
11006 _ACEOF
11007 if ac_fn_c_try_compile "$LINENO"; then :
11008 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
11009 else
11010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11012 as_fn_error "compiler failed
11013 See \`config.log' for more details." "$LINENO" 5; }
11014 fi
11015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11016 libbacktrace_cv_sys_filetype=$filetype
11017 fi
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
11019 $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
11020
11021 # Match the file type to decide what files to compile.
11022 FORMAT_FILE=
11023 case "$libbacktrace_cv_sys_filetype" in
11024 elf*) FORMAT_FILE="elf.lo" ;;
11025 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
11026 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
11027 FORMAT_FILE="unknown.lo"
11028 backtrace_supported=no
11029 ;;
11030 esac
11031
11032
11033 # ELF defines.
11034 elfsize=
11035 case "$libbacktrace_cv_sys_filetype" in
11036 elf32) elfsize=32 ;;
11037 elf64) elfsize=64 ;;
11038 esac
11039
11040 cat >>confdefs.h <<_ACEOF
11041 #define BACKTRACE_ELF_SIZE $elfsize
11042 _ACEOF
11043
11044
11045 BACKTRACE_SUPPORTED=0
11046 if test "$backtrace_supported" = "yes"; then
11047 BACKTRACE_SUPPORTED=1
11048 fi
11049
11050
11051 for ac_header in sys/mman.h
11052 do :
11053 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11054 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11055 cat >>confdefs.h <<_ACEOF
11056 #define HAVE_SYS_MMAN_H 1
11057 _ACEOF
11058
11059 fi
11060
11061 done
11062
11063 if test "$ac_cv_header_sys_mman_h" = "no"; then
11064 have_mmap=no
11065 else
11066 if test -n "${with_target_subdir}"; then
11067 # When built as a GCC target library, we can't do a link test. We
11068 # simply assume that if we have mman.h, we have mmap.
11069 have_mmap=yes
11070 else
11071 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11072 if test "x$ac_cv_func_mmap" = x""yes; then :
11073 have_mmap=yes
11074 else
11075 have_mmap=no
11076 fi
11077
11078 fi
11079 fi
11080 if test "$have_mmap" = "no"; then
11081 VIEW_FILE=read.lo
11082 ALLOC_FILE=alloc.lo
11083 else
11084 VIEW_FILE=mmapio.lo
11085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11086 /* end confdefs.h. */
11087
11088 #include <sys/mman.h>
11089 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
11090 #error no MAP_ANONYMOUS
11091 #endif
11092
11093 _ACEOF
11094 if ac_fn_c_try_cpp "$LINENO"; then :
11095 ALLOC_FILE=mmap.lo
11096 else
11097 ALLOC_FILE=alloc.lo
11098 fi
11099 rm -f conftest.err conftest.$ac_ext
11100 fi
11101
11102
11103
11104 BACKTRACE_USES_MALLOC=0
11105 if test "$ALLOC_FILE" = "alloc.lo"; then
11106 BACKTRACE_USES_MALLOC=1
11107 fi
11108
11109
11110 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
11111 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
11112 ac_have_decl=1
11113 else
11114 ac_have_decl=0
11115 fi
11116
11117 cat >>confdefs.h <<_ACEOF
11118 #define HAVE_DECL_STRNLEN $ac_have_decl
11119 _ACEOF
11120
11121
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
11123 $as_echo_n "checking whether tests can run... " >&6; }
11124 if test "${libbacktrace_cv_sys_native+set}" = set; then :
11125 $as_echo_n "(cached) " >&6
11126 else
11127 if test "$cross_compiling" = yes; then :
11128 libbacktrace_cv_sys_native=no
11129 else
11130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131 /* end confdefs.h. */
11132
11133 int
11134 main ()
11135 {
11136 return 0;
11137 ;
11138 return 0;
11139 }
11140 _ACEOF
11141 if ac_fn_c_try_run "$LINENO"; then :
11142 libbacktrace_cv_sys_native=yes
11143 else
11144 libbacktrace_cv_sys_native=no
11145 fi
11146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11147 conftest.$ac_objext conftest.beam conftest.$ac_ext
11148 fi
11149
11150 fi
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
11152 $as_echo "$libbacktrace_cv_sys_native" >&6; }
11153 if test "$libbacktrace_cv_sys_native" = "yes"; then
11154 NATIVE_TRUE=
11155 NATIVE_FALSE='#'
11156 else
11157 NATIVE_TRUE='#'
11158 NATIVE_FALSE=
11159 fi
11160
11161
11162 if test "${multilib}" = "yes"; then
11163 multilib_arg="--enable-multilib"
11164 else
11165 multilib_arg=
11166 fi
11167
11168 ac_config_files="$ac_config_files Makefile backtrace-supported.h"
11169
11170
11171 # We need multilib support, but only if configuring for the target.
11172 ac_config_commands="$ac_config_commands default"
11173
11174
11175 cat >confcache <<\_ACEOF
11176 # This file is a shell script that caches the results of configure
11177 # tests run on this system so they can be shared between configure
11178 # scripts and configure runs, see configure's option --config-cache.
11179 # It is not useful on other systems. If it contains results you don't
11180 # want to keep, you may remove or edit it.
11181 #
11182 # config.status only pays attention to the cache file if you give it
11183 # the --recheck option to rerun configure.
11184 #
11185 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11186 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11187 # following values.
11188
11189 _ACEOF
11190
11191 # The following way of writing the cache mishandles newlines in values,
11192 # but we know of no workaround that is simple, portable, and efficient.
11193 # So, we kill variables containing newlines.
11194 # Ultrix sh set writes to stderr and can't be redirected directly,
11195 # and sets the high bit in the cache file unless we assign to the vars.
11196 (
11197 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11198 eval ac_val=\$$ac_var
11199 case $ac_val in #(
11200 *${as_nl}*)
11201 case $ac_var in #(
11202 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11203 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11204 esac
11205 case $ac_var in #(
11206 _ | IFS | as_nl) ;; #(
11207 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11208 *) { eval $ac_var=; unset $ac_var;} ;;
11209 esac ;;
11210 esac
11211 done
11212
11213 (set) 2>&1 |
11214 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11215 *${as_nl}ac_space=\ *)
11216 # `set' does not quote correctly, so add quotes: double-quote
11217 # substitution turns \\\\ into \\, and sed turns \\ into \.
11218 sed -n \
11219 "s/'/'\\\\''/g;
11220 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11221 ;; #(
11222 *)
11223 # `set' quotes correctly as required by POSIX, so do not add quotes.
11224 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11225 ;;
11226 esac |
11227 sort
11228 ) |
11229 sed '
11230 /^ac_cv_env_/b end
11231 t clear
11232 :clear
11233 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11234 t end
11235 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11236 :end' >>confcache
11237 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11238 if test -w "$cache_file"; then
11239 test "x$cache_file" != "x/dev/null" &&
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11241 $as_echo "$as_me: updating cache $cache_file" >&6;}
11242 cat confcache >$cache_file
11243 else
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11245 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11246 fi
11247 fi
11248 rm -f confcache
11249
11250 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11251 # Let make expand exec_prefix.
11252 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11253
11254 DEFS=-DHAVE_CONFIG_H
11255
11256 ac_libobjs=
11257 ac_ltlibobjs=
11258 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11259 # 1. Remove the extension, and $U if already installed.
11260 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11261 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11262 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11263 # will be set to the directory where LIBOBJS objects are built.
11264 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11265 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11266 done
11267 LIBOBJS=$ac_libobjs
11268
11269 LTLIBOBJS=$ac_ltlibobjs
11270
11271
11272 if test -n "$EXEEXT"; then
11273 am__EXEEXT_TRUE=
11274 am__EXEEXT_FALSE='#'
11275 else
11276 am__EXEEXT_TRUE='#'
11277 am__EXEEXT_FALSE=
11278 fi
11279
11280 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11281 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11283 fi
11284 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11285 as_fn_error "conditional \"AMDEP\" was never defined.
11286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11287 fi
11288 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11289 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11291 fi
11292 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
11293 as_fn_error "conditional \"NATIVE\" was never defined.
11294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11295 fi
11296
11297 : ${CONFIG_STATUS=./config.status}
11298 ac_write_fail=0
11299 ac_clean_files_save=$ac_clean_files
11300 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11302 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11303 as_write_fail=0
11304 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11305 #! $SHELL
11306 # Generated by $as_me.
11307 # Run this file to recreate the current configuration.
11308 # Compiler output produced by configure, useful for debugging
11309 # configure, is in config.log if it exists.
11310
11311 debug=false
11312 ac_cs_recheck=false
11313 ac_cs_silent=false
11314
11315 SHELL=\${CONFIG_SHELL-$SHELL}
11316 export SHELL
11317 _ASEOF
11318 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11319 ## -------------------- ##
11320 ## M4sh Initialization. ##
11321 ## -------------------- ##
11322
11323 # Be more Bourne compatible
11324 DUALCASE=1; export DUALCASE # for MKS sh
11325 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11326 emulate sh
11327 NULLCMD=:
11328 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11329 # is contrary to our usage. Disable this feature.
11330 alias -g '${1+"$@"}'='"$@"'
11331 setopt NO_GLOB_SUBST
11332 else
11333 case `(set -o) 2>/dev/null` in #(
11334 *posix*) :
11335 set -o posix ;; #(
11336 *) :
11337 ;;
11338 esac
11339 fi
11340
11341
11342 as_nl='
11343 '
11344 export as_nl
11345 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11346 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11347 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11348 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11349 # Prefer a ksh shell builtin over an external printf program on Solaris,
11350 # but without wasting forks for bash or zsh.
11351 if test -z "$BASH_VERSION$ZSH_VERSION" \
11352 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11353 as_echo='print -r --'
11354 as_echo_n='print -rn --'
11355 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11356 as_echo='printf %s\n'
11357 as_echo_n='printf %s'
11358 else
11359 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11360 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11361 as_echo_n='/usr/ucb/echo -n'
11362 else
11363 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11364 as_echo_n_body='eval
11365 arg=$1;
11366 case $arg in #(
11367 *"$as_nl"*)
11368 expr "X$arg" : "X\\(.*\\)$as_nl";
11369 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11370 esac;
11371 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11372 '
11373 export as_echo_n_body
11374 as_echo_n='sh -c $as_echo_n_body as_echo'
11375 fi
11376 export as_echo_body
11377 as_echo='sh -c $as_echo_body as_echo'
11378 fi
11379
11380 # The user is always right.
11381 if test "${PATH_SEPARATOR+set}" != set; then
11382 PATH_SEPARATOR=:
11383 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11384 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11385 PATH_SEPARATOR=';'
11386 }
11387 fi
11388
11389
11390 # IFS
11391 # We need space, tab and new line, in precisely that order. Quoting is
11392 # there to prevent editors from complaining about space-tab.
11393 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11394 # splitting by setting IFS to empty value.)
11395 IFS=" "" $as_nl"
11396
11397 # Find who we are. Look in the path if we contain no directory separator.
11398 case $0 in #((
11399 *[\\/]* ) as_myself=$0 ;;
11400 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11401 for as_dir in $PATH
11402 do
11403 IFS=$as_save_IFS
11404 test -z "$as_dir" && as_dir=.
11405 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11406 done
11407 IFS=$as_save_IFS
11408
11409 ;;
11410 esac
11411 # We did not find ourselves, most probably we were run as `sh COMMAND'
11412 # in which case we are not to be found in the path.
11413 if test "x$as_myself" = x; then
11414 as_myself=$0
11415 fi
11416 if test ! -f "$as_myself"; then
11417 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11418 exit 1
11419 fi
11420
11421 # Unset variables that we do not need and which cause bugs (e.g. in
11422 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11423 # suppresses any "Segmentation fault" message there. '((' could
11424 # trigger a bug in pdksh 5.2.14.
11425 for as_var in BASH_ENV ENV MAIL MAILPATH
11426 do eval test x\${$as_var+set} = xset \
11427 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11428 done
11429 PS1='$ '
11430 PS2='> '
11431 PS4='+ '
11432
11433 # NLS nuisances.
11434 LC_ALL=C
11435 export LC_ALL
11436 LANGUAGE=C
11437 export LANGUAGE
11438
11439 # CDPATH.
11440 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11441
11442
11443 # as_fn_error ERROR [LINENO LOG_FD]
11444 # ---------------------------------
11445 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11446 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11447 # script with status $?, using 1 if that was 0.
11448 as_fn_error ()
11449 {
11450 as_status=$?; test $as_status -eq 0 && as_status=1
11451 if test "$3"; then
11452 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11453 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11454 fi
11455 $as_echo "$as_me: error: $1" >&2
11456 as_fn_exit $as_status
11457 } # as_fn_error
11458
11459
11460 # as_fn_set_status STATUS
11461 # -----------------------
11462 # Set $? to STATUS, without forking.
11463 as_fn_set_status ()
11464 {
11465 return $1
11466 } # as_fn_set_status
11467
11468 # as_fn_exit STATUS
11469 # -----------------
11470 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11471 as_fn_exit ()
11472 {
11473 set +e
11474 as_fn_set_status $1
11475 exit $1
11476 } # as_fn_exit
11477
11478 # as_fn_unset VAR
11479 # ---------------
11480 # Portably unset VAR.
11481 as_fn_unset ()
11482 {
11483 { eval $1=; unset $1;}
11484 }
11485 as_unset=as_fn_unset
11486 # as_fn_append VAR VALUE
11487 # ----------------------
11488 # Append the text in VALUE to the end of the definition contained in VAR. Take
11489 # advantage of any shell optimizations that allow amortized linear growth over
11490 # repeated appends, instead of the typical quadratic growth present in naive
11491 # implementations.
11492 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11493 eval 'as_fn_append ()
11494 {
11495 eval $1+=\$2
11496 }'
11497 else
11498 as_fn_append ()
11499 {
11500 eval $1=\$$1\$2
11501 }
11502 fi # as_fn_append
11503
11504 # as_fn_arith ARG...
11505 # ------------------
11506 # Perform arithmetic evaluation on the ARGs, and store the result in the
11507 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11508 # must be portable across $(()) and expr.
11509 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11510 eval 'as_fn_arith ()
11511 {
11512 as_val=$(( $* ))
11513 }'
11514 else
11515 as_fn_arith ()
11516 {
11517 as_val=`expr "$@" || test $? -eq 1`
11518 }
11519 fi # as_fn_arith
11520
11521
11522 if expr a : '\(a\)' >/dev/null 2>&1 &&
11523 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11524 as_expr=expr
11525 else
11526 as_expr=false
11527 fi
11528
11529 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11530 as_basename=basename
11531 else
11532 as_basename=false
11533 fi
11534
11535 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11536 as_dirname=dirname
11537 else
11538 as_dirname=false
11539 fi
11540
11541 as_me=`$as_basename -- "$0" ||
11542 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11543 X"$0" : 'X\(//\)$' \| \
11544 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11545 $as_echo X/"$0" |
11546 sed '/^.*\/\([^/][^/]*\)\/*$/{
11547 s//\1/
11548 q
11549 }
11550 /^X\/\(\/\/\)$/{
11551 s//\1/
11552 q
11553 }
11554 /^X\/\(\/\).*/{
11555 s//\1/
11556 q
11557 }
11558 s/.*/./; q'`
11559
11560 # Avoid depending upon Character Ranges.
11561 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11562 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11563 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11564 as_cr_digits='0123456789'
11565 as_cr_alnum=$as_cr_Letters$as_cr_digits
11566
11567 ECHO_C= ECHO_N= ECHO_T=
11568 case `echo -n x` in #(((((
11569 -n*)
11570 case `echo 'xy\c'` in
11571 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11572 xy) ECHO_C='\c';;
11573 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11574 ECHO_T=' ';;
11575 esac;;
11576 *)
11577 ECHO_N='-n';;
11578 esac
11579
11580 rm -f conf$$ conf$$.exe conf$$.file
11581 if test -d conf$$.dir; then
11582 rm -f conf$$.dir/conf$$.file
11583 else
11584 rm -f conf$$.dir
11585 mkdir conf$$.dir 2>/dev/null
11586 fi
11587 if (echo >conf$$.file) 2>/dev/null; then
11588 if ln -s conf$$.file conf$$ 2>/dev/null; then
11589 as_ln_s='ln -s'
11590 # ... but there are two gotchas:
11591 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11592 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11593 # In both cases, we have to default to `cp -p'.
11594 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11595 as_ln_s='cp -p'
11596 elif ln conf$$.file conf$$ 2>/dev/null; then
11597 as_ln_s=ln
11598 else
11599 as_ln_s='cp -p'
11600 fi
11601 else
11602 as_ln_s='cp -p'
11603 fi
11604 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11605 rmdir conf$$.dir 2>/dev/null
11606
11607
11608 # as_fn_mkdir_p
11609 # -------------
11610 # Create "$as_dir" as a directory, including parents if necessary.
11611 as_fn_mkdir_p ()
11612 {
11613
11614 case $as_dir in #(
11615 -*) as_dir=./$as_dir;;
11616 esac
11617 test -d "$as_dir" || eval $as_mkdir_p || {
11618 as_dirs=
11619 while :; do
11620 case $as_dir in #(
11621 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11622 *) as_qdir=$as_dir;;
11623 esac
11624 as_dirs="'$as_qdir' $as_dirs"
11625 as_dir=`$as_dirname -- "$as_dir" ||
11626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11627 X"$as_dir" : 'X\(//\)[^/]' \| \
11628 X"$as_dir" : 'X\(//\)$' \| \
11629 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11630 $as_echo X"$as_dir" |
11631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11632 s//\1/
11633 q
11634 }
11635 /^X\(\/\/\)[^/].*/{
11636 s//\1/
11637 q
11638 }
11639 /^X\(\/\/\)$/{
11640 s//\1/
11641 q
11642 }
11643 /^X\(\/\).*/{
11644 s//\1/
11645 q
11646 }
11647 s/.*/./; q'`
11648 test -d "$as_dir" && break
11649 done
11650 test -z "$as_dirs" || eval "mkdir $as_dirs"
11651 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11652
11653
11654 } # as_fn_mkdir_p
11655 if mkdir -p . 2>/dev/null; then
11656 as_mkdir_p='mkdir -p "$as_dir"'
11657 else
11658 test -d ./-p && rmdir ./-p
11659 as_mkdir_p=false
11660 fi
11661
11662 if test -x / >/dev/null 2>&1; then
11663 as_test_x='test -x'
11664 else
11665 if ls -dL / >/dev/null 2>&1; then
11666 as_ls_L_option=L
11667 else
11668 as_ls_L_option=
11669 fi
11670 as_test_x='
11671 eval sh -c '\''
11672 if test -d "$1"; then
11673 test -d "$1/.";
11674 else
11675 case $1 in #(
11676 -*)set "./$1";;
11677 esac;
11678 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11679 ???[sx]*):;;*)false;;esac;fi
11680 '\'' sh
11681 '
11682 fi
11683 as_executable_p=$as_test_x
11684
11685 # Sed expression to map a string onto a valid CPP name.
11686 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11687
11688 # Sed expression to map a string onto a valid variable name.
11689 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11690
11691
11692 exec 6>&1
11693 ## ----------------------------------- ##
11694 ## Main body of $CONFIG_STATUS script. ##
11695 ## ----------------------------------- ##
11696 _ASEOF
11697 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11698
11699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11700 # Save the log message, to keep $0 and so on meaningful, and to
11701 # report actual input values of CONFIG_FILES etc. instead of their
11702 # values after options handling.
11703 ac_log="
11704 This file was extended by package-unused $as_me version-unused, which was
11705 generated by GNU Autoconf 2.64. Invocation command line was
11706
11707 CONFIG_FILES = $CONFIG_FILES
11708 CONFIG_HEADERS = $CONFIG_HEADERS
11709 CONFIG_LINKS = $CONFIG_LINKS
11710 CONFIG_COMMANDS = $CONFIG_COMMANDS
11711 $ $0 $@
11712
11713 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11714 "
11715
11716 _ACEOF
11717
11718 case $ac_config_files in *"
11719 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11720 esac
11721
11722 case $ac_config_headers in *"
11723 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11724 esac
11725
11726
11727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11728 # Files that config.status was made for.
11729 config_files="$ac_config_files"
11730 config_headers="$ac_config_headers"
11731 config_commands="$ac_config_commands"
11732
11733 _ACEOF
11734
11735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11736 ac_cs_usage="\
11737 \`$as_me' instantiates files and other configuration actions
11738 from templates according to the current configuration. Unless the files
11739 and actions are specified as TAGs, all are instantiated by default.
11740
11741 Usage: $0 [OPTION]... [TAG]...
11742
11743 -h, --help print this help, then exit
11744 -V, --version print version number and configuration settings, then exit
11745 -q, --quiet, --silent
11746 do not print progress messages
11747 -d, --debug don't remove temporary files
11748 --recheck update $as_me by reconfiguring in the same conditions
11749 --file=FILE[:TEMPLATE]
11750 instantiate the configuration file FILE
11751 --header=FILE[:TEMPLATE]
11752 instantiate the configuration header FILE
11753
11754 Configuration files:
11755 $config_files
11756
11757 Configuration headers:
11758 $config_headers
11759
11760 Configuration commands:
11761 $config_commands
11762
11763 Report bugs to the package provider."
11764
11765 _ACEOF
11766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11767 ac_cs_version="\\
11768 package-unused config.status version-unused
11769 configured by $0, generated by GNU Autoconf 2.64,
11770 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11771
11772 Copyright (C) 2009 Free Software Foundation, Inc.
11773 This config.status script is free software; the Free Software Foundation
11774 gives unlimited permission to copy, distribute and modify it."
11775
11776 ac_pwd='$ac_pwd'
11777 srcdir='$srcdir'
11778 INSTALL='$INSTALL'
11779 MKDIR_P='$MKDIR_P'
11780 AWK='$AWK'
11781 test -n "\$AWK" || AWK=awk
11782 _ACEOF
11783
11784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11785 # The default lists apply if the user does not specify any file.
11786 ac_need_defaults=:
11787 while test $# != 0
11788 do
11789 case $1 in
11790 --*=*)
11791 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11792 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11793 ac_shift=:
11794 ;;
11795 *)
11796 ac_option=$1
11797 ac_optarg=$2
11798 ac_shift=shift
11799 ;;
11800 esac
11801
11802 case $ac_option in
11803 # Handling of the options.
11804 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11805 ac_cs_recheck=: ;;
11806 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11807 $as_echo "$ac_cs_version"; exit ;;
11808 --debug | --debu | --deb | --de | --d | -d )
11809 debug=: ;;
11810 --file | --fil | --fi | --f )
11811 $ac_shift
11812 case $ac_optarg in
11813 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11814 esac
11815 as_fn_append CONFIG_FILES " '$ac_optarg'"
11816 ac_need_defaults=false;;
11817 --header | --heade | --head | --hea )
11818 $ac_shift
11819 case $ac_optarg in
11820 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11821 esac
11822 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11823 ac_need_defaults=false;;
11824 --he | --h)
11825 # Conflict between --help and --header
11826 as_fn_error "ambiguous option: \`$1'
11827 Try \`$0 --help' for more information.";;
11828 --help | --hel | -h )
11829 $as_echo "$ac_cs_usage"; exit ;;
11830 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11831 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11832 ac_cs_silent=: ;;
11833
11834 # This is an error.
11835 -*) as_fn_error "unrecognized option: \`$1'
11836 Try \`$0 --help' for more information." ;;
11837
11838 *) as_fn_append ac_config_targets " $1"
11839 ac_need_defaults=false ;;
11840
11841 esac
11842 shift
11843 done
11844
11845 ac_configure_extra_args=
11846
11847 if $ac_cs_silent; then
11848 exec 6>/dev/null
11849 ac_configure_extra_args="$ac_configure_extra_args --silent"
11850 fi
11851
11852 _ACEOF
11853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11854 if \$ac_cs_recheck; then
11855 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11856 shift
11857 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11858 CONFIG_SHELL='$SHELL'
11859 export CONFIG_SHELL
11860 exec "\$@"
11861 fi
11862
11863 _ACEOF
11864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11865 exec 5>>config.log
11866 {
11867 echo
11868 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11869 ## Running $as_me. ##
11870 _ASBOX
11871 $as_echo "$ac_log"
11872 } >&5
11873
11874 _ACEOF
11875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11876 #
11877 # INIT-COMMANDS
11878 #
11879 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11880
11881
11882 # The HP-UX ksh and POSIX shell print the target directory to stdout
11883 # if CDPATH is set.
11884 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11885
11886 sed_quote_subst='$sed_quote_subst'
11887 double_quote_subst='$double_quote_subst'
11888 delay_variable_subst='$delay_variable_subst'
11889 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11890 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11891 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11892 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11893 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11894 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11895 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11896 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11897 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11898 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11899 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11900 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11901 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11902 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11903 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11904 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11905 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11906 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11907 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11908 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11909 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11910 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11911 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11912 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11913 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11914 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11915 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11916 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11917 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11918 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11919 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11920 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11921 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11922 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11923 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11924 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11925 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11926 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11927 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11928 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11929 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11930 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11931 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11932 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11933 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11934 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11935 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11936 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11937 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"`'
11938 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11939 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11940 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11941 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11942 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11943 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11944 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11945 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11946 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11947 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11948 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11949 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11950 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11951 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11952 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11953 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11954 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11955 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11956 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11957 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11958 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11959 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11960 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11961 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11962 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11963 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11964 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11965 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11966 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11967 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11968 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11969 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11970 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11971 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11972 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11973 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11974 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11975 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11976 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11977 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11978 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11979 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11980 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11981 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11982 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11983 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11984 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11985 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11986 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11987 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11988 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11989 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11990 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11991 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11992 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11993 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11994 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11995 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11996 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11997 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11998 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11999 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12000 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12001 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12002 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12003 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12004 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12005 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12006 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12007 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12008 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12009
12010 LTCC='$LTCC'
12011 LTCFLAGS='$LTCFLAGS'
12012 compiler='$compiler_DEFAULT'
12013
12014 # A function that is used when there is no print builtin or printf.
12015 func_fallback_echo ()
12016 {
12017 eval 'cat <<_LTECHO_EOF
12018 \$1
12019 _LTECHO_EOF'
12020 }
12021
12022 # Quote evaled strings.
12023 for var in SHELL \
12024 ECHO \
12025 SED \
12026 GREP \
12027 EGREP \
12028 FGREP \
12029 LD \
12030 NM \
12031 LN_S \
12032 lt_SP2NL \
12033 lt_NL2SP \
12034 reload_flag \
12035 OBJDUMP \
12036 deplibs_check_method \
12037 file_magic_cmd \
12038 AR \
12039 AR_FLAGS \
12040 STRIP \
12041 RANLIB \
12042 CC \
12043 CFLAGS \
12044 compiler \
12045 lt_cv_sys_global_symbol_pipe \
12046 lt_cv_sys_global_symbol_to_cdecl \
12047 lt_cv_sys_global_symbol_to_c_name_address \
12048 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12049 lt_prog_compiler_no_builtin_flag \
12050 lt_prog_compiler_wl \
12051 lt_prog_compiler_pic \
12052 lt_prog_compiler_static \
12053 lt_cv_prog_compiler_c_o \
12054 need_locks \
12055 DSYMUTIL \
12056 NMEDIT \
12057 LIPO \
12058 OTOOL \
12059 OTOOL64 \
12060 shrext_cmds \
12061 export_dynamic_flag_spec \
12062 whole_archive_flag_spec \
12063 compiler_needs_object \
12064 with_gnu_ld \
12065 allow_undefined_flag \
12066 no_undefined_flag \
12067 hardcode_libdir_flag_spec \
12068 hardcode_libdir_flag_spec_ld \
12069 hardcode_libdir_separator \
12070 fix_srcfile_path \
12071 exclude_expsyms \
12072 include_expsyms \
12073 file_list_spec \
12074 variables_saved_for_relink \
12075 libname_spec \
12076 library_names_spec \
12077 soname_spec \
12078 install_override_mode \
12079 finish_eval \
12080 old_striplib \
12081 striplib; do
12082 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12083 *[\\\\\\\`\\"\\\$]*)
12084 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12085 ;;
12086 *)
12087 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12088 ;;
12089 esac
12090 done
12091
12092 # Double-quote double-evaled strings.
12093 for var in reload_cmds \
12094 old_postinstall_cmds \
12095 old_postuninstall_cmds \
12096 old_archive_cmds \
12097 extract_expsyms_cmds \
12098 old_archive_from_new_cmds \
12099 old_archive_from_expsyms_cmds \
12100 archive_cmds \
12101 archive_expsym_cmds \
12102 module_cmds \
12103 module_expsym_cmds \
12104 export_symbols_cmds \
12105 prelink_cmds \
12106 postinstall_cmds \
12107 postuninstall_cmds \
12108 finish_cmds \
12109 sys_lib_search_path_spec \
12110 sys_lib_dlsearch_path_spec; do
12111 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12112 *[\\\\\\\`\\"\\\$]*)
12113 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12114 ;;
12115 *)
12116 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12117 ;;
12118 esac
12119 done
12120
12121 ac_aux_dir='$ac_aux_dir'
12122 xsi_shell='$xsi_shell'
12123 lt_shell_append='$lt_shell_append'
12124
12125 # See if we are running on zsh, and set the options which allow our
12126 # commands through without removal of \ escapes INIT.
12127 if test -n "\${ZSH_VERSION+set}" ; then
12128 setopt NO_GLOB_SUBST
12129 fi
12130
12131
12132 PACKAGE='$PACKAGE'
12133 VERSION='$VERSION'
12134 TIMESTAMP='$TIMESTAMP'
12135 RM='$RM'
12136 ofile='$ofile'
12137
12138
12139
12140
12141 srcdir="$srcdir"
12142 host="$host"
12143 target="$target"
12144 with_multisubdir="$with_multisubdir"
12145 with_multisrctop="$with_multisrctop"
12146 with_target_subdir="$with_target_subdir"
12147 ac_configure_args="${multilib_arg} ${ac_configure_args}"
12148 multi_basedir="$multi_basedir"
12149 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
12150 CC="$CC"
12151 CXX="$CXX"
12152 GFORTRAN="$GFORTRAN"
12153 GCJ="$GCJ"
12154
12155 # Variables needed in config.status (file generation) which aren't already
12156 # passed by autoconf.
12157 SUBDIRS="$SUBDIRS"
12158
12159
12160 _ACEOF
12161
12162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12163
12164 # Handling of arguments.
12165 for ac_config_target in $ac_config_targets
12166 do
12167 case $ac_config_target in
12168 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12169 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12170 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12171 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12172 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12173 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
12174 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12175
12176 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12177 esac
12178 done
12179
12180
12181 # If the user did not use the arguments to specify the items to instantiate,
12182 # then the envvar interface is used. Set only those that are not.
12183 # We use the long form for the default assignment because of an extremely
12184 # bizarre bug on SunOS 4.1.3.
12185 if $ac_need_defaults; then
12186 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12187 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12188 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12189 fi
12190
12191 # Have a temporary directory for convenience. Make it in the build tree
12192 # simply because there is no reason against having it here, and in addition,
12193 # creating and moving files from /tmp can sometimes cause problems.
12194 # Hook for its removal unless debugging.
12195 # Note that there is a small window in which the directory will not be cleaned:
12196 # after its creation but before its name has been assigned to `$tmp'.
12197 $debug ||
12198 {
12199 tmp=
12200 trap 'exit_status=$?
12201 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12202 ' 0
12203 trap 'as_fn_exit 1' 1 2 13 15
12204 }
12205 # Create a (secure) tmp directory for tmp files.
12206
12207 {
12208 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12209 test -n "$tmp" && test -d "$tmp"
12210 } ||
12211 {
12212 tmp=./conf$$-$RANDOM
12213 (umask 077 && mkdir "$tmp")
12214 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12215
12216 # Set up the scripts for CONFIG_FILES section.
12217 # No need to generate them if there are no CONFIG_FILES.
12218 # This happens for instance with `./config.status config.h'.
12219 if test -n "$CONFIG_FILES"; then
12220
12221
12222 ac_cr=`echo X | tr X '\015'`
12223 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12224 # But we know of no other shell where ac_cr would be empty at this
12225 # point, so we can use a bashism as a fallback.
12226 if test "x$ac_cr" = x; then
12227 eval ac_cr=\$\'\\r\'
12228 fi
12229 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12230 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12231 ac_cs_awk_cr='\r'
12232 else
12233 ac_cs_awk_cr=$ac_cr
12234 fi
12235
12236 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12237 _ACEOF
12238
12239
12240 {
12241 echo "cat >conf$$subs.awk <<_ACEOF" &&
12242 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12243 echo "_ACEOF"
12244 } >conf$$subs.sh ||
12245 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12246 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12247 ac_delim='%!_!# '
12248 for ac_last_try in false false false false false :; do
12249 . ./conf$$subs.sh ||
12250 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12251
12252 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12253 if test $ac_delim_n = $ac_delim_num; then
12254 break
12255 elif $ac_last_try; then
12256 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12257 else
12258 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12259 fi
12260 done
12261 rm -f conf$$subs.sh
12262
12263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12264 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12265 _ACEOF
12266 sed -n '
12267 h
12268 s/^/S["/; s/!.*/"]=/
12269 p
12270 g
12271 s/^[^!]*!//
12272 :repl
12273 t repl
12274 s/'"$ac_delim"'$//
12275 t delim
12276 :nl
12277 h
12278 s/\(.\{148\}\).*/\1/
12279 t more1
12280 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12281 p
12282 n
12283 b repl
12284 :more1
12285 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12286 p
12287 g
12288 s/.\{148\}//
12289 t nl
12290 :delim
12291 h
12292 s/\(.\{148\}\).*/\1/
12293 t more2
12294 s/["\\]/\\&/g; s/^/"/; s/$/"/
12295 p
12296 b
12297 :more2
12298 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12299 p
12300 g
12301 s/.\{148\}//
12302 t delim
12303 ' <conf$$subs.awk | sed '
12304 /^[^""]/{
12305 N
12306 s/\n//
12307 }
12308 ' >>$CONFIG_STATUS || ac_write_fail=1
12309 rm -f conf$$subs.awk
12310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12311 _ACAWK
12312 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12313 for (key in S) S_is_set[key] = 1
12314 FS = "\a"
12315
12316 }
12317 {
12318 line = $ 0
12319 nfields = split(line, field, "@")
12320 substed = 0
12321 len = length(field[1])
12322 for (i = 2; i < nfields; i++) {
12323 key = field[i]
12324 keylen = length(key)
12325 if (S_is_set[key]) {
12326 value = S[key]
12327 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12328 len += length(value) + length(field[++i])
12329 substed = 1
12330 } else
12331 len += 1 + keylen
12332 }
12333
12334 print line
12335 }
12336
12337 _ACAWK
12338 _ACEOF
12339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12340 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12341 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12342 else
12343 cat
12344 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12345 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12346 _ACEOF
12347
12348 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12349 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12350 # trailing colons and then remove the whole line if VPATH becomes empty
12351 # (actually we leave an empty line to preserve line numbers).
12352 if test "x$srcdir" = x.; then
12353 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12354 s/:*\$(srcdir):*/:/
12355 s/:*\${srcdir}:*/:/
12356 s/:*@srcdir@:*/:/
12357 s/^\([^=]*=[ ]*\):*/\1/
12358 s/:*$//
12359 s/^[^=]*=[ ]*$//
12360 }'
12361 fi
12362
12363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12364 fi # test -n "$CONFIG_FILES"
12365
12366 # Set up the scripts for CONFIG_HEADERS section.
12367 # No need to generate them if there are no CONFIG_HEADERS.
12368 # This happens for instance with `./config.status Makefile'.
12369 if test -n "$CONFIG_HEADERS"; then
12370 cat >"$tmp/defines.awk" <<\_ACAWK ||
12371 BEGIN {
12372 _ACEOF
12373
12374 # Transform confdefs.h into an awk script `defines.awk', embedded as
12375 # here-document in config.status, that substitutes the proper values into
12376 # config.h.in to produce config.h.
12377
12378 # Create a delimiter string that does not exist in confdefs.h, to ease
12379 # handling of long lines.
12380 ac_delim='%!_!# '
12381 for ac_last_try in false false :; do
12382 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12383 if test -z "$ac_t"; then
12384 break
12385 elif $ac_last_try; then
12386 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12387 else
12388 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12389 fi
12390 done
12391
12392 # For the awk script, D is an array of macro values keyed by name,
12393 # likewise P contains macro parameters if any. Preserve backslash
12394 # newline sequences.
12395
12396 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12397 sed -n '
12398 s/.\{148\}/&'"$ac_delim"'/g
12399 t rset
12400 :rset
12401 s/^[ ]*#[ ]*define[ ][ ]*/ /
12402 t def
12403 d
12404 :def
12405 s/\\$//
12406 t bsnl
12407 s/["\\]/\\&/g
12408 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12409 D["\1"]=" \3"/p
12410 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12411 d
12412 :bsnl
12413 s/["\\]/\\&/g
12414 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12415 D["\1"]=" \3\\\\\\n"\\/p
12416 t cont
12417 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12418 t cont
12419 d
12420 :cont
12421 n
12422 s/.\{148\}/&'"$ac_delim"'/g
12423 t clear
12424 :clear
12425 s/\\$//
12426 t bsnlc
12427 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12428 d
12429 :bsnlc
12430 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12431 b cont
12432 ' <confdefs.h | sed '
12433 s/'"$ac_delim"'/"\\\
12434 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12435
12436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12437 for (key in D) D_is_set[key] = 1
12438 FS = "\a"
12439 }
12440 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12441 line = \$ 0
12442 split(line, arg, " ")
12443 if (arg[1] == "#") {
12444 defundef = arg[2]
12445 mac1 = arg[3]
12446 } else {
12447 defundef = substr(arg[1], 2)
12448 mac1 = arg[2]
12449 }
12450 split(mac1, mac2, "(") #)
12451 macro = mac2[1]
12452 prefix = substr(line, 1, index(line, defundef) - 1)
12453 if (D_is_set[macro]) {
12454 # Preserve the white space surrounding the "#".
12455 print prefix "define", macro P[macro] D[macro]
12456 next
12457 } else {
12458 # Replace #undef with comments. This is necessary, for example,
12459 # in the case of _POSIX_SOURCE, which is predefined and required
12460 # on some systems where configure will not decide to define it.
12461 if (defundef == "undef") {
12462 print "/*", prefix defundef, macro, "*/"
12463 next
12464 }
12465 }
12466 }
12467 { print }
12468 _ACAWK
12469 _ACEOF
12470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12471 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12472 fi # test -n "$CONFIG_HEADERS"
12473
12474
12475 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12476 shift
12477 for ac_tag
12478 do
12479 case $ac_tag in
12480 :[FHLC]) ac_mode=$ac_tag; continue;;
12481 esac
12482 case $ac_mode$ac_tag in
12483 :[FHL]*:*);;
12484 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12485 :[FH]-) ac_tag=-:-;;
12486 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12487 esac
12488 ac_save_IFS=$IFS
12489 IFS=:
12490 set x $ac_tag
12491 IFS=$ac_save_IFS
12492 shift
12493 ac_file=$1
12494 shift
12495
12496 case $ac_mode in
12497 :L) ac_source=$1;;
12498 :[FH])
12499 ac_file_inputs=
12500 for ac_f
12501 do
12502 case $ac_f in
12503 -) ac_f="$tmp/stdin";;
12504 *) # Look for the file first in the build tree, then in the source tree
12505 # (if the path is not absolute). The absolute path cannot be DOS-style,
12506 # because $ac_f cannot contain `:'.
12507 test -f "$ac_f" ||
12508 case $ac_f in
12509 [\\/$]*) false;;
12510 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12511 esac ||
12512 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12513 esac
12514 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12515 as_fn_append ac_file_inputs " '$ac_f'"
12516 done
12517
12518 # Let's still pretend it is `configure' which instantiates (i.e., don't
12519 # use $as_me), people would be surprised to read:
12520 # /* config.h. Generated by config.status. */
12521 configure_input='Generated from '`
12522 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12523 `' by configure.'
12524 if test x"$ac_file" != x-; then
12525 configure_input="$ac_file. $configure_input"
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12527 $as_echo "$as_me: creating $ac_file" >&6;}
12528 fi
12529 # Neutralize special characters interpreted by sed in replacement strings.
12530 case $configure_input in #(
12531 *\&* | *\|* | *\\* )
12532 ac_sed_conf_input=`$as_echo "$configure_input" |
12533 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12534 *) ac_sed_conf_input=$configure_input;;
12535 esac
12536
12537 case $ac_tag in
12538 *:-:* | *:-) cat >"$tmp/stdin" \
12539 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12540 esac
12541 ;;
12542 esac
12543
12544 ac_dir=`$as_dirname -- "$ac_file" ||
12545 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12546 X"$ac_file" : 'X\(//\)[^/]' \| \
12547 X"$ac_file" : 'X\(//\)$' \| \
12548 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12549 $as_echo X"$ac_file" |
12550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12551 s//\1/
12552 q
12553 }
12554 /^X\(\/\/\)[^/].*/{
12555 s//\1/
12556 q
12557 }
12558 /^X\(\/\/\)$/{
12559 s//\1/
12560 q
12561 }
12562 /^X\(\/\).*/{
12563 s//\1/
12564 q
12565 }
12566 s/.*/./; q'`
12567 as_dir="$ac_dir"; as_fn_mkdir_p
12568 ac_builddir=.
12569
12570 case "$ac_dir" in
12571 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12572 *)
12573 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12574 # A ".." for each directory in $ac_dir_suffix.
12575 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12576 case $ac_top_builddir_sub in
12577 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12578 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12579 esac ;;
12580 esac
12581 ac_abs_top_builddir=$ac_pwd
12582 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12583 # for backward compatibility:
12584 ac_top_builddir=$ac_top_build_prefix
12585
12586 case $srcdir in
12587 .) # We are building in place.
12588 ac_srcdir=.
12589 ac_top_srcdir=$ac_top_builddir_sub
12590 ac_abs_top_srcdir=$ac_pwd ;;
12591 [\\/]* | ?:[\\/]* ) # Absolute name.
12592 ac_srcdir=$srcdir$ac_dir_suffix;
12593 ac_top_srcdir=$srcdir
12594 ac_abs_top_srcdir=$srcdir ;;
12595 *) # Relative name.
12596 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12597 ac_top_srcdir=$ac_top_build_prefix$srcdir
12598 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12599 esac
12600 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12601
12602
12603 case $ac_mode in
12604 :F)
12605 #
12606 # CONFIG_FILE
12607 #
12608
12609 case $INSTALL in
12610 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12611 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12612 esac
12613 ac_MKDIR_P=$MKDIR_P
12614 case $MKDIR_P in
12615 [\\/$]* | ?:[\\/]* ) ;;
12616 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12617 esac
12618 _ACEOF
12619
12620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12621 # If the template does not know about datarootdir, expand it.
12622 # FIXME: This hack should be removed a few years after 2.60.
12623 ac_datarootdir_hack=; ac_datarootdir_seen=
12624 ac_sed_dataroot='
12625 /datarootdir/ {
12626 p
12627 q
12628 }
12629 /@datadir@/p
12630 /@docdir@/p
12631 /@infodir@/p
12632 /@localedir@/p
12633 /@mandir@/p'
12634 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12635 *datarootdir*) ac_datarootdir_seen=yes;;
12636 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12638 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12639 _ACEOF
12640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12641 ac_datarootdir_hack='
12642 s&@datadir@&$datadir&g
12643 s&@docdir@&$docdir&g
12644 s&@infodir@&$infodir&g
12645 s&@localedir@&$localedir&g
12646 s&@mandir@&$mandir&g
12647 s&\\\${datarootdir}&$datarootdir&g' ;;
12648 esac
12649 _ACEOF
12650
12651 # Neutralize VPATH when `$srcdir' = `.'.
12652 # Shell code in configure.ac might set extrasub.
12653 # FIXME: do we really want to maintain this feature?
12654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12655 ac_sed_extra="$ac_vpsub
12656 $extrasub
12657 _ACEOF
12658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12659 :t
12660 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12661 s|@configure_input@|$ac_sed_conf_input|;t t
12662 s&@top_builddir@&$ac_top_builddir_sub&;t t
12663 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12664 s&@srcdir@&$ac_srcdir&;t t
12665 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12666 s&@top_srcdir@&$ac_top_srcdir&;t t
12667 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12668 s&@builddir@&$ac_builddir&;t t
12669 s&@abs_builddir@&$ac_abs_builddir&;t t
12670 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12671 s&@INSTALL@&$ac_INSTALL&;t t
12672 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12673 $ac_datarootdir_hack
12674 "
12675 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12676 || as_fn_error "could not create $ac_file" "$LINENO" 5
12677
12678 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12679 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12680 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12682 which seems to be undefined. Please make sure it is defined." >&5
12683 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12684 which seems to be undefined. Please make sure it is defined." >&2;}
12685
12686 rm -f "$tmp/stdin"
12687 case $ac_file in
12688 -) cat "$tmp/out" && rm -f "$tmp/out";;
12689 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12690 esac \
12691 || as_fn_error "could not create $ac_file" "$LINENO" 5
12692 ;;
12693 :H)
12694 #
12695 # CONFIG_HEADER
12696 #
12697 if test x"$ac_file" != x-; then
12698 {
12699 $as_echo "/* $configure_input */" \
12700 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12701 } >"$tmp/config.h" \
12702 || as_fn_error "could not create $ac_file" "$LINENO" 5
12703 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12705 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12706 else
12707 rm -f "$ac_file"
12708 mv "$tmp/config.h" "$ac_file" \
12709 || as_fn_error "could not create $ac_file" "$LINENO" 5
12710 fi
12711 else
12712 $as_echo "/* $configure_input */" \
12713 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12714 || as_fn_error "could not create -" "$LINENO" 5
12715 fi
12716 # Compute "$ac_file"'s index in $config_headers.
12717 _am_arg="$ac_file"
12718 _am_stamp_count=1
12719 for _am_header in $config_headers :; do
12720 case $_am_header in
12721 $_am_arg | $_am_arg:* )
12722 break ;;
12723 * )
12724 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12725 esac
12726 done
12727 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12728 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12729 X"$_am_arg" : 'X\(//\)[^/]' \| \
12730 X"$_am_arg" : 'X\(//\)$' \| \
12731 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12732 $as_echo X"$_am_arg" |
12733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12734 s//\1/
12735 q
12736 }
12737 /^X\(\/\/\)[^/].*/{
12738 s//\1/
12739 q
12740 }
12741 /^X\(\/\/\)$/{
12742 s//\1/
12743 q
12744 }
12745 /^X\(\/\).*/{
12746 s//\1/
12747 q
12748 }
12749 s/.*/./; q'`/stamp-h$_am_stamp_count
12750 ;;
12751
12752 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12753 $as_echo "$as_me: executing $ac_file commands" >&6;}
12754 ;;
12755 esac
12756
12757
12758 case $ac_file$ac_mode in
12759 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12760 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12761 # are listed without --file. Let's play safe and only enable the eval
12762 # if we detect the quoting.
12763 case $CONFIG_FILES in
12764 *\'*) eval set x "$CONFIG_FILES" ;;
12765 *) set x $CONFIG_FILES ;;
12766 esac
12767 shift
12768 for mf
12769 do
12770 # Strip MF so we end up with the name of the file.
12771 mf=`echo "$mf" | sed -e 's/:.*$//'`
12772 # Check whether this is an Automake generated Makefile or not.
12773 # We used to match only the files named `Makefile.in', but
12774 # some people rename them; so instead we look at the file content.
12775 # Grep'ing the first line is not enough: some people post-process
12776 # each Makefile.in and add a new line on top of each file to say so.
12777 # Grep'ing the whole file is not good either: AIX grep has a line
12778 # limit of 2048, but all sed's we know have understand at least 4000.
12779 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12780 dirpart=`$as_dirname -- "$mf" ||
12781 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12782 X"$mf" : 'X\(//\)[^/]' \| \
12783 X"$mf" : 'X\(//\)$' \| \
12784 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12785 $as_echo X"$mf" |
12786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12787 s//\1/
12788 q
12789 }
12790 /^X\(\/\/\)[^/].*/{
12791 s//\1/
12792 q
12793 }
12794 /^X\(\/\/\)$/{
12795 s//\1/
12796 q
12797 }
12798 /^X\(\/\).*/{
12799 s//\1/
12800 q
12801 }
12802 s/.*/./; q'`
12803 else
12804 continue
12805 fi
12806 # Extract the definition of DEPDIR, am__include, and am__quote
12807 # from the Makefile without running `make'.
12808 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12809 test -z "$DEPDIR" && continue
12810 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12811 test -z "am__include" && continue
12812 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12813 # When using ansi2knr, U may be empty or an underscore; expand it
12814 U=`sed -n 's/^U = //p' < "$mf"`
12815 # Find all dependency output files, they are included files with
12816 # $(DEPDIR) in their names. We invoke sed twice because it is the
12817 # simplest approach to changing $(DEPDIR) to its actual value in the
12818 # expansion.
12819 for file in `sed -n "
12820 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12821 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12822 # Make sure the directory exists.
12823 test -f "$dirpart/$file" && continue
12824 fdir=`$as_dirname -- "$file" ||
12825 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12826 X"$file" : 'X\(//\)[^/]' \| \
12827 X"$file" : 'X\(//\)$' \| \
12828 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12829 $as_echo X"$file" |
12830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12831 s//\1/
12832 q
12833 }
12834 /^X\(\/\/\)[^/].*/{
12835 s//\1/
12836 q
12837 }
12838 /^X\(\/\/\)$/{
12839 s//\1/
12840 q
12841 }
12842 /^X\(\/\).*/{
12843 s//\1/
12844 q
12845 }
12846 s/.*/./; q'`
12847 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12848 # echo "creating $dirpart/$file"
12849 echo '# dummy' > "$dirpart/$file"
12850 done
12851 done
12852 }
12853 ;;
12854 "libtool":C)
12855
12856 # See if we are running on zsh, and set the options which allow our
12857 # commands through without removal of \ escapes.
12858 if test -n "${ZSH_VERSION+set}" ; then
12859 setopt NO_GLOB_SUBST
12860 fi
12861
12862 cfgfile="${ofile}T"
12863 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12864 $RM "$cfgfile"
12865
12866 cat <<_LT_EOF >> "$cfgfile"
12867 #! $SHELL
12868
12869 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12870 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12871 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12872 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12873 #
12874 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12875 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12876 # Written by Gordon Matzigkeit, 1996
12877 #
12878 # This file is part of GNU Libtool.
12879 #
12880 # GNU Libtool is free software; you can redistribute it and/or
12881 # modify it under the terms of the GNU General Public License as
12882 # published by the Free Software Foundation; either version 2 of
12883 # the License, or (at your option) any later version.
12884 #
12885 # As a special exception to the GNU General Public License,
12886 # if you distribute this file as part of a program or library that
12887 # is built using GNU Libtool, you may include this file under the
12888 # same distribution terms that you use for the rest of that program.
12889 #
12890 # GNU Libtool is distributed in the hope that it will be useful,
12891 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12892 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12893 # GNU General Public License for more details.
12894 #
12895 # You should have received a copy of the GNU General Public License
12896 # along with GNU Libtool; see the file COPYING. If not, a copy
12897 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12898 # obtained by writing to the Free Software Foundation, Inc.,
12899 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12900
12901
12902 # The names of the tagged configurations supported by this script.
12903 available_tags=""
12904
12905 # ### BEGIN LIBTOOL CONFIG
12906
12907 # Which release of libtool.m4 was used?
12908 macro_version=$macro_version
12909 macro_revision=$macro_revision
12910
12911 # Whether or not to build shared libraries.
12912 build_libtool_libs=$enable_shared
12913
12914 # Whether or not to build static libraries.
12915 build_old_libs=$enable_static
12916
12917 # What type of objects to build.
12918 pic_mode=$pic_mode
12919
12920 # Whether or not to optimize for fast installation.
12921 fast_install=$enable_fast_install
12922
12923 # Shell to use when invoking shell scripts.
12924 SHELL=$lt_SHELL
12925
12926 # An echo program that protects backslashes.
12927 ECHO=$lt_ECHO
12928
12929 # The host system.
12930 host_alias=$host_alias
12931 host=$host
12932 host_os=$host_os
12933
12934 # The build system.
12935 build_alias=$build_alias
12936 build=$build
12937 build_os=$build_os
12938
12939 # A sed program that does not truncate output.
12940 SED=$lt_SED
12941
12942 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12943 Xsed="\$SED -e 1s/^X//"
12944
12945 # A grep program that handles long lines.
12946 GREP=$lt_GREP
12947
12948 # An ERE matcher.
12949 EGREP=$lt_EGREP
12950
12951 # A literal string matcher.
12952 FGREP=$lt_FGREP
12953
12954 # A BSD- or MS-compatible name lister.
12955 NM=$lt_NM
12956
12957 # Whether we need soft or hard links.
12958 LN_S=$lt_LN_S
12959
12960 # What is the maximum length of a command?
12961 max_cmd_len=$max_cmd_len
12962
12963 # Object file suffix (normally "o").
12964 objext=$ac_objext
12965
12966 # Executable file suffix (normally "").
12967 exeext=$exeext
12968
12969 # whether the shell understands "unset".
12970 lt_unset=$lt_unset
12971
12972 # turn spaces into newlines.
12973 SP2NL=$lt_lt_SP2NL
12974
12975 # turn newlines into spaces.
12976 NL2SP=$lt_lt_NL2SP
12977
12978 # An object symbol dumper.
12979 OBJDUMP=$lt_OBJDUMP
12980
12981 # Method to check whether dependent libraries are shared objects.
12982 deplibs_check_method=$lt_deplibs_check_method
12983
12984 # Command to use when deplibs_check_method == "file_magic".
12985 file_magic_cmd=$lt_file_magic_cmd
12986
12987 # The archiver.
12988 AR=$lt_AR
12989 AR_FLAGS=$lt_AR_FLAGS
12990
12991 # A symbol stripping program.
12992 STRIP=$lt_STRIP
12993
12994 # Commands used to install an old-style archive.
12995 RANLIB=$lt_RANLIB
12996 old_postinstall_cmds=$lt_old_postinstall_cmds
12997 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12998
12999 # Whether to use a lock for old archive extraction.
13000 lock_old_archive_extraction=$lock_old_archive_extraction
13001
13002 # A C compiler.
13003 LTCC=$lt_CC
13004
13005 # LTCC compiler flags.
13006 LTCFLAGS=$lt_CFLAGS
13007
13008 # Take the output of nm and produce a listing of raw symbols and C names.
13009 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13010
13011 # Transform the output of nm in a proper C declaration.
13012 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13013
13014 # Transform the output of nm in a C name address pair.
13015 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13016
13017 # Transform the output of nm in a C name address pair when lib prefix is needed.
13018 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13019
13020 # The name of the directory that contains temporary libtool files.
13021 objdir=$objdir
13022
13023 # Used to examine libraries when file_magic_cmd begins with "file".
13024 MAGIC_CMD=$MAGIC_CMD
13025
13026 # Must we lock files when doing compilation?
13027 need_locks=$lt_need_locks
13028
13029 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13030 DSYMUTIL=$lt_DSYMUTIL
13031
13032 # Tool to change global to local symbols on Mac OS X.
13033 NMEDIT=$lt_NMEDIT
13034
13035 # Tool to manipulate fat objects and archives on Mac OS X.
13036 LIPO=$lt_LIPO
13037
13038 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13039 OTOOL=$lt_OTOOL
13040
13041 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13042 OTOOL64=$lt_OTOOL64
13043
13044 # Old archive suffix (normally "a").
13045 libext=$libext
13046
13047 # Shared library suffix (normally ".so").
13048 shrext_cmds=$lt_shrext_cmds
13049
13050 # The commands to extract the exported symbol list from a shared archive.
13051 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13052
13053 # Variables whose values should be saved in libtool wrapper scripts and
13054 # restored at link time.
13055 variables_saved_for_relink=$lt_variables_saved_for_relink
13056
13057 # Do we need the "lib" prefix for modules?
13058 need_lib_prefix=$need_lib_prefix
13059
13060 # Do we need a version for libraries?
13061 need_version=$need_version
13062
13063 # Library versioning type.
13064 version_type=$version_type
13065
13066 # Shared library runtime path variable.
13067 runpath_var=$runpath_var
13068
13069 # Shared library path variable.
13070 shlibpath_var=$shlibpath_var
13071
13072 # Is shlibpath searched before the hard-coded library search path?
13073 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13074
13075 # Format of library name prefix.
13076 libname_spec=$lt_libname_spec
13077
13078 # List of archive names. First name is the real one, the rest are links.
13079 # The last name is the one that the linker finds with -lNAME
13080 library_names_spec=$lt_library_names_spec
13081
13082 # The coded name of the library, if different from the real name.
13083 soname_spec=$lt_soname_spec
13084
13085 # Permission mode override for installation of shared libraries.
13086 install_override_mode=$lt_install_override_mode
13087
13088 # Command to use after installation of a shared archive.
13089 postinstall_cmds=$lt_postinstall_cmds
13090
13091 # Command to use after uninstallation of a shared archive.
13092 postuninstall_cmds=$lt_postuninstall_cmds
13093
13094 # Commands used to finish a libtool library installation in a directory.
13095 finish_cmds=$lt_finish_cmds
13096
13097 # As "finish_cmds", except a single script fragment to be evaled but
13098 # not shown.
13099 finish_eval=$lt_finish_eval
13100
13101 # Whether we should hardcode library paths into libraries.
13102 hardcode_into_libs=$hardcode_into_libs
13103
13104 # Compile-time system search path for libraries.
13105 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13106
13107 # Run-time system search path for libraries.
13108 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13109
13110 # Whether dlopen is supported.
13111 dlopen_support=$enable_dlopen
13112
13113 # Whether dlopen of programs is supported.
13114 dlopen_self=$enable_dlopen_self
13115
13116 # Whether dlopen of statically linked programs is supported.
13117 dlopen_self_static=$enable_dlopen_self_static
13118
13119 # Commands to strip libraries.
13120 old_striplib=$lt_old_striplib
13121 striplib=$lt_striplib
13122
13123
13124 # The linker used to build libraries.
13125 LD=$lt_LD
13126
13127 # How to create reloadable object files.
13128 reload_flag=$lt_reload_flag
13129 reload_cmds=$lt_reload_cmds
13130
13131 # Commands used to build an old-style archive.
13132 old_archive_cmds=$lt_old_archive_cmds
13133
13134 # A language specific compiler.
13135 CC=$lt_compiler
13136
13137 # Is the compiler the GNU compiler?
13138 with_gcc=$GCC
13139
13140 # Compiler flag to turn off builtin functions.
13141 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13142
13143 # How to pass a linker flag through the compiler.
13144 wl=$lt_lt_prog_compiler_wl
13145
13146 # Additional compiler flags for building library objects.
13147 pic_flag=$lt_lt_prog_compiler_pic
13148
13149 # Compiler flag to prevent dynamic linking.
13150 link_static_flag=$lt_lt_prog_compiler_static
13151
13152 # Does compiler simultaneously support -c and -o options?
13153 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13154
13155 # Whether or not to add -lc for building shared libraries.
13156 build_libtool_need_lc=$archive_cmds_need_lc
13157
13158 # Whether or not to disallow shared libs when runtime libs are static.
13159 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13160
13161 # Compiler flag to allow reflexive dlopens.
13162 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13163
13164 # Compiler flag to generate shared objects directly from archives.
13165 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13166
13167 # Whether the compiler copes with passing no objects directly.
13168 compiler_needs_object=$lt_compiler_needs_object
13169
13170 # Create an old-style archive from a shared archive.
13171 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13172
13173 # Create a temporary old-style archive to link instead of a shared archive.
13174 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13175
13176 # Commands used to build a shared archive.
13177 archive_cmds=$lt_archive_cmds
13178 archive_expsym_cmds=$lt_archive_expsym_cmds
13179
13180 # Commands used to build a loadable module if different from building
13181 # a shared archive.
13182 module_cmds=$lt_module_cmds
13183 module_expsym_cmds=$lt_module_expsym_cmds
13184
13185 # Whether we are building with GNU ld or not.
13186 with_gnu_ld=$lt_with_gnu_ld
13187
13188 # Flag that allows shared libraries with undefined symbols to be built.
13189 allow_undefined_flag=$lt_allow_undefined_flag
13190
13191 # Flag that enforces no undefined symbols.
13192 no_undefined_flag=$lt_no_undefined_flag
13193
13194 # Flag to hardcode \$libdir into a binary during linking.
13195 # This must work even if \$libdir does not exist
13196 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13197
13198 # If ld is used when linking, flag to hardcode \$libdir into a binary
13199 # during linking. This must work even if \$libdir does not exist.
13200 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13201
13202 # Whether we need a single "-rpath" flag with a separated argument.
13203 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13204
13205 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13206 # DIR into the resulting binary.
13207 hardcode_direct=$hardcode_direct
13208
13209 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13210 # DIR into the resulting binary and the resulting library dependency is
13211 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13212 # library is relocated.
13213 hardcode_direct_absolute=$hardcode_direct_absolute
13214
13215 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13216 # into the resulting binary.
13217 hardcode_minus_L=$hardcode_minus_L
13218
13219 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13220 # into the resulting binary.
13221 hardcode_shlibpath_var=$hardcode_shlibpath_var
13222
13223 # Set to "yes" if building a shared library automatically hardcodes DIR
13224 # into the library and all subsequent libraries and executables linked
13225 # against it.
13226 hardcode_automatic=$hardcode_automatic
13227
13228 # Set to yes if linker adds runtime paths of dependent libraries
13229 # to runtime path list.
13230 inherit_rpath=$inherit_rpath
13231
13232 # Whether libtool must link a program against all its dependency libraries.
13233 link_all_deplibs=$link_all_deplibs
13234
13235 # Fix the shell variable \$srcfile for the compiler.
13236 fix_srcfile_path=$lt_fix_srcfile_path
13237
13238 # Set to "yes" if exported symbols are required.
13239 always_export_symbols=$always_export_symbols
13240
13241 # The commands to list exported symbols.
13242 export_symbols_cmds=$lt_export_symbols_cmds
13243
13244 # Symbols that should not be listed in the preloaded symbols.
13245 exclude_expsyms=$lt_exclude_expsyms
13246
13247 # Symbols that must always be exported.
13248 include_expsyms=$lt_include_expsyms
13249
13250 # Commands necessary for linking programs (against libraries) with templates.
13251 prelink_cmds=$lt_prelink_cmds
13252
13253 # Specify filename containing input files.
13254 file_list_spec=$lt_file_list_spec
13255
13256 # How to hardcode a shared library path into an executable.
13257 hardcode_action=$hardcode_action
13258
13259 # ### END LIBTOOL CONFIG
13260
13261 _LT_EOF
13262
13263 case $host_os in
13264 aix3*)
13265 cat <<\_LT_EOF >> "$cfgfile"
13266 # AIX sometimes has problems with the GCC collect2 program. For some
13267 # reason, if we set the COLLECT_NAMES environment variable, the problems
13268 # vanish in a puff of smoke.
13269 if test "X${COLLECT_NAMES+set}" != Xset; then
13270 COLLECT_NAMES=
13271 export COLLECT_NAMES
13272 fi
13273 _LT_EOF
13274 ;;
13275 esac
13276
13277
13278 ltmain="$ac_aux_dir/ltmain.sh"
13279
13280
13281 # We use sed instead of cat because bash on DJGPP gets confused if
13282 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13283 # text mode, it properly converts lines to CR/LF. This bash problem
13284 # is reportedly fixed, but why not run on old versions too?
13285 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13286 || (rm -f "$cfgfile"; exit 1)
13287
13288 case $xsi_shell in
13289 yes)
13290 cat << \_LT_EOF >> "$cfgfile"
13291
13292 # func_dirname file append nondir_replacement
13293 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13294 # otherwise set result to NONDIR_REPLACEMENT.
13295 func_dirname ()
13296 {
13297 case ${1} in
13298 */*) func_dirname_result="${1%/*}${2}" ;;
13299 * ) func_dirname_result="${3}" ;;
13300 esac
13301 }
13302
13303 # func_basename file
13304 func_basename ()
13305 {
13306 func_basename_result="${1##*/}"
13307 }
13308
13309 # func_dirname_and_basename file append nondir_replacement
13310 # perform func_basename and func_dirname in a single function
13311 # call:
13312 # dirname: Compute the dirname of FILE. If nonempty,
13313 # add APPEND to the result, otherwise set result
13314 # to NONDIR_REPLACEMENT.
13315 # value returned in "$func_dirname_result"
13316 # basename: Compute filename of FILE.
13317 # value retuned in "$func_basename_result"
13318 # Implementation must be kept synchronized with func_dirname
13319 # and func_basename. For efficiency, we do not delegate to
13320 # those functions but instead duplicate the functionality here.
13321 func_dirname_and_basename ()
13322 {
13323 case ${1} in
13324 */*) func_dirname_result="${1%/*}${2}" ;;
13325 * ) func_dirname_result="${3}" ;;
13326 esac
13327 func_basename_result="${1##*/}"
13328 }
13329
13330 # func_stripname prefix suffix name
13331 # strip PREFIX and SUFFIX off of NAME.
13332 # PREFIX and SUFFIX must not contain globbing or regex special
13333 # characters, hashes, percent signs, but SUFFIX may contain a leading
13334 # dot (in which case that matches only a dot).
13335 func_stripname ()
13336 {
13337 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13338 # positional parameters, so assign one to ordinary parameter first.
13339 func_stripname_result=${3}
13340 func_stripname_result=${func_stripname_result#"${1}"}
13341 func_stripname_result=${func_stripname_result%"${2}"}
13342 }
13343
13344 # func_opt_split
13345 func_opt_split ()
13346 {
13347 func_opt_split_opt=${1%%=*}
13348 func_opt_split_arg=${1#*=}
13349 }
13350
13351 # func_lo2o object
13352 func_lo2o ()
13353 {
13354 case ${1} in
13355 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13356 *) func_lo2o_result=${1} ;;
13357 esac
13358 }
13359
13360 # func_xform libobj-or-source
13361 func_xform ()
13362 {
13363 func_xform_result=${1%.*}.lo
13364 }
13365
13366 # func_arith arithmetic-term...
13367 func_arith ()
13368 {
13369 func_arith_result=$(( $* ))
13370 }
13371
13372 # func_len string
13373 # STRING may not start with a hyphen.
13374 func_len ()
13375 {
13376 func_len_result=${#1}
13377 }
13378
13379 _LT_EOF
13380 ;;
13381 *) # Bourne compatible functions.
13382 cat << \_LT_EOF >> "$cfgfile"
13383
13384 # func_dirname file append nondir_replacement
13385 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13386 # otherwise set result to NONDIR_REPLACEMENT.
13387 func_dirname ()
13388 {
13389 # Extract subdirectory from the argument.
13390 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13391 if test "X$func_dirname_result" = "X${1}"; then
13392 func_dirname_result="${3}"
13393 else
13394 func_dirname_result="$func_dirname_result${2}"
13395 fi
13396 }
13397
13398 # func_basename file
13399 func_basename ()
13400 {
13401 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13402 }
13403
13404
13405 # func_stripname prefix suffix name
13406 # strip PREFIX and SUFFIX off of NAME.
13407 # PREFIX and SUFFIX must not contain globbing or regex special
13408 # characters, hashes, percent signs, but SUFFIX may contain a leading
13409 # dot (in which case that matches only a dot).
13410 # func_strip_suffix prefix name
13411 func_stripname ()
13412 {
13413 case ${2} in
13414 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13415 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13416 esac
13417 }
13418
13419 # sed scripts:
13420 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13421 my_sed_long_arg='1s/^-[^=]*=//'
13422
13423 # func_opt_split
13424 func_opt_split ()
13425 {
13426 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13427 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13428 }
13429
13430 # func_lo2o object
13431 func_lo2o ()
13432 {
13433 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13434 }
13435
13436 # func_xform libobj-or-source
13437 func_xform ()
13438 {
13439 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13440 }
13441
13442 # func_arith arithmetic-term...
13443 func_arith ()
13444 {
13445 func_arith_result=`expr "$@"`
13446 }
13447
13448 # func_len string
13449 # STRING may not start with a hyphen.
13450 func_len ()
13451 {
13452 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13453 }
13454
13455 _LT_EOF
13456 esac
13457
13458 case $lt_shell_append in
13459 yes)
13460 cat << \_LT_EOF >> "$cfgfile"
13461
13462 # func_append var value
13463 # Append VALUE to the end of shell variable VAR.
13464 func_append ()
13465 {
13466 eval "$1+=\$2"
13467 }
13468 _LT_EOF
13469 ;;
13470 *)
13471 cat << \_LT_EOF >> "$cfgfile"
13472
13473 # func_append var value
13474 # Append VALUE to the end of shell variable VAR.
13475 func_append ()
13476 {
13477 eval "$1=\$$1\$2"
13478 }
13479
13480 _LT_EOF
13481 ;;
13482 esac
13483
13484
13485 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13486 || (rm -f "$cfgfile"; exit 1)
13487
13488 mv -f "$cfgfile" "$ofile" ||
13489 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13490 chmod +x "$ofile"
13491
13492 ;;
13493 "default-1":C)
13494 # Only add multilib support code if we just rebuilt the top-level
13495 # Makefile.
13496 case " $CONFIG_FILES " in
13497 *" Makefile "*)
13498 ac_file=Makefile . ${multi_basedir}/config-ml.in
13499 ;;
13500 esac ;;
13501 "default":C) if test -n "$CONFIG_FILES"; then
13502 if test -n "${with_target_subdir}"; then
13503 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
13504 # that multilib installs will end up installed in the correct place.
13505 # The testsuite needs it for multilib-aware ABI baseline files.
13506 # To work around this not being passed down from config-ml.in ->
13507 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
13508 # append it here. Only modify Makefiles that have just been created.
13509 #
13510 # Also, get rid of this simulated-VPATH thing that automake does.
13511 cat > vpsed << \_EOF
13512 s!`test -f '$<' || echo '$(srcdir)/'`!!
13513 _EOF
13514 for i in $SUBDIRS; do
13515 case $CONFIG_FILES in
13516 *${i}/Makefile*)
13517 #echo "Adding MULTISUBDIR to $i/Makefile"
13518 sed -f vpsed $i/Makefile > tmp
13519 grep '^MULTISUBDIR =' Makefile >> tmp
13520 mv tmp $i/Makefile
13521 ;;
13522 esac
13523 done
13524 rm vpsed
13525 fi
13526 fi
13527 ;;
13528
13529 esac
13530 done # for ac_tag
13531
13532
13533 as_fn_exit 0
13534 _ACEOF
13535 ac_clean_files=$ac_clean_files_save
13536
13537 test $ac_write_fail = 0 ||
13538 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13539
13540
13541 # configure is writing to config.log, and then calls config.status.
13542 # config.status does its own redirection, appending to config.log.
13543 # Unfortunately, on DOS this fails, as config.log is still kept open
13544 # by configure, so config.status won't be able to write to it; its
13545 # output is simply discarded. So we exec the FD to /dev/null,
13546 # effectively closing config.log, so it can be properly (re)opened and
13547 # appended to by config.status. When coming back to configure, we
13548 # need to make the FD available again.
13549 if test "$no_create" != yes; then
13550 ac_cs_success=:
13551 ac_config_status_args=
13552 test "$silent" = yes &&
13553 ac_config_status_args="$ac_config_status_args --quiet"
13554 exec 5>/dev/null
13555 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13556 exec 5>>config.log
13557 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13558 # would make configure fail if this is the last instruction.
13559 $ac_cs_success || as_fn_exit $?
13560 fi
13561 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13563 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13564 fi
13565