]> git.ipfire.org Git - thirdparty/gcc.git/blob - libbacktrace/configure
libbacktrace: Conditionalize test timing on clock_gettime availability
[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 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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 HAVE_OBJCOPY_DEBUGLINK_FALSE
608 HAVE_OBJCOPY_DEBUGLINK_TRUE
609 OBJCOPY
610 HAVE_COMPRESSED_DEBUG_FALSE
611 HAVE_COMPRESSED_DEBUG_TRUE
612 HAVE_ZLIB_FALSE
613 HAVE_ZLIB_TRUE
614 HAVE_PTHREAD_FALSE
615 HAVE_PTHREAD_TRUE
616 PTHREAD_CFLAGS
617 BACKTRACE_USES_MALLOC
618 ALLOC_FILE
619 VIEW_FILE
620 BACKTRACE_SUPPORTS_DATA
621 BACKTRACE_SUPPORTED
622 FORMAT_FILE
623 BACKTRACE_SUPPORTS_THREADS
624 PIC_FLAG
625 WARN_FLAGS
626 EXTRA_FLAGS
627 BACKTRACE_FILE
628 OTOOL64
629 OTOOL
630 LIPO
631 NMEDIT
632 DSYMUTIL
633 AR
634 OBJDUMP
635 LN_S
636 NM
637 ac_ct_DUMPBIN
638 DUMPBIN
639 LD
640 FGREP
641 SED
642 LIBTOOL
643 RANLIB
644 MAINT
645 MAINTAINER_MODE_FALSE
646 MAINTAINER_MODE_TRUE
647 am__untar
648 am__tar
649 AMTAR
650 am__leading_dot
651 SET_MAKE
652 AWK
653 mkdir_p
654 MKDIR_P
655 INSTALL_STRIP_PROGRAM
656 STRIP
657 install_sh
658 MAKEINFO
659 AUTOHEADER
660 AUTOMAKE
661 AUTOCONF
662 ACLOCAL
663 VERSION
664 PACKAGE
665 CYGPATH_W
666 am__isrc
667 INSTALL_DATA
668 INSTALL_SCRIPT
669 INSTALL_PROGRAM
670 libtool_VERSION
671 EGREP
672 GREP
673 CPP
674 OBJEXT
675 EXEEXT
676 ac_ct_CC
677 CPPFLAGS
678 LDFLAGS
679 CFLAGS
680 CC
681 target_os
682 target_vendor
683 target_cpu
684 target
685 host_os
686 host_vendor
687 host_cpu
688 host
689 build_os
690 build_vendor
691 build_cpu
692 build
693 multi_basedir
694 target_alias
695 host_alias
696 build_alias
697 LIBS
698 ECHO_T
699 ECHO_N
700 ECHO_C
701 DEFS
702 mandir
703 localedir
704 libdir
705 psdir
706 pdfdir
707 dvidir
708 htmldir
709 infodir
710 docdir
711 oldincludedir
712 includedir
713 localstatedir
714 sharedstatedir
715 sysconfdir
716 datadir
717 datarootdir
718 libexecdir
719 sbindir
720 bindir
721 program_transform_name
722 prefix
723 exec_prefix
724 PACKAGE_URL
725 PACKAGE_BUGREPORT
726 PACKAGE_STRING
727 PACKAGE_VERSION
728 PACKAGE_TARNAME
729 PACKAGE_NAME
730 PATH_SEPARATOR
731 SHELL'
732 ac_subst_files=''
733 ac_user_opts='
734 enable_option_checking
735 enable_multilib
736 enable_maintainer_mode
737 with_target_subdir
738 enable_shared
739 enable_static
740 with_pic
741 enable_fast_install
742 with_gnu_ld
743 enable_libtool_lock
744 enable_largefile
745 with_system_libunwind
746 enable_host_shared
747 '
748 ac_precious_vars='build_alias
749 host_alias
750 target_alias
751 CC
752 CFLAGS
753 LDFLAGS
754 LIBS
755 CPPFLAGS
756 CPP
757 OBJCOPY'
758
759
760 # Initialize some variables set by options.
761 ac_init_help=
762 ac_init_version=false
763 ac_unrecognized_opts=
764 ac_unrecognized_sep=
765 # The variables have the same names as the options, with
766 # dashes changed to underlines.
767 cache_file=/dev/null
768 exec_prefix=NONE
769 no_create=
770 no_recursion=
771 prefix=NONE
772 program_prefix=NONE
773 program_suffix=NONE
774 program_transform_name=s,x,x,
775 silent=
776 site=
777 srcdir=
778 verbose=
779 x_includes=NONE
780 x_libraries=NONE
781
782 # Installation directory options.
783 # These are left unexpanded so users can "make install exec_prefix=/foo"
784 # and all the variables that are supposed to be based on exec_prefix
785 # by default will actually change.
786 # Use braces instead of parens because sh, perl, etc. also accept them.
787 # (The list follows the same order as the GNU Coding Standards.)
788 bindir='${exec_prefix}/bin'
789 sbindir='${exec_prefix}/sbin'
790 libexecdir='${exec_prefix}/libexec'
791 datarootdir='${prefix}/share'
792 datadir='${datarootdir}'
793 sysconfdir='${prefix}/etc'
794 sharedstatedir='${prefix}/com'
795 localstatedir='${prefix}/var'
796 includedir='${prefix}/include'
797 oldincludedir='/usr/include'
798 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
799 infodir='${datarootdir}/info'
800 htmldir='${docdir}'
801 dvidir='${docdir}'
802 pdfdir='${docdir}'
803 psdir='${docdir}'
804 libdir='${exec_prefix}/lib'
805 localedir='${datarootdir}/locale'
806 mandir='${datarootdir}/man'
807
808 ac_prev=
809 ac_dashdash=
810 for ac_option
811 do
812 # If the previous option needs an argument, assign it.
813 if test -n "$ac_prev"; then
814 eval $ac_prev=\$ac_option
815 ac_prev=
816 continue
817 fi
818
819 case $ac_option in
820 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821 *) ac_optarg=yes ;;
822 esac
823
824 # Accept the important Cygnus configure options, so we can diagnose typos.
825
826 case $ac_dashdash$ac_option in
827 --)
828 ac_dashdash=yes ;;
829
830 -bindir | --bindir | --bindi | --bind | --bin | --bi)
831 ac_prev=bindir ;;
832 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833 bindir=$ac_optarg ;;
834
835 -build | --build | --buil | --bui | --bu)
836 ac_prev=build_alias ;;
837 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838 build_alias=$ac_optarg ;;
839
840 -cache-file | --cache-file | --cache-fil | --cache-fi \
841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842 ac_prev=cache_file ;;
843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845 cache_file=$ac_optarg ;;
846
847 --config-cache | -C)
848 cache_file=config.cache ;;
849
850 -datadir | --datadir | --datadi | --datad)
851 ac_prev=datadir ;;
852 -datadir=* | --datadir=* | --datadi=* | --datad=*)
853 datadir=$ac_optarg ;;
854
855 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856 | --dataroo | --dataro | --datar)
857 ac_prev=datarootdir ;;
858 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860 datarootdir=$ac_optarg ;;
861
862 -disable-* | --disable-*)
863 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 as_fn_error "invalid feature name: $ac_useropt"
867 ac_useropt_orig=$ac_useropt
868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869 case $ac_user_opts in
870 *"
871 "enable_$ac_useropt"
872 "*) ;;
873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874 ac_unrecognized_sep=', ';;
875 esac
876 eval enable_$ac_useropt=no ;;
877
878 -docdir | --docdir | --docdi | --doc | --do)
879 ac_prev=docdir ;;
880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881 docdir=$ac_optarg ;;
882
883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884 ac_prev=dvidir ;;
885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886 dvidir=$ac_optarg ;;
887
888 -enable-* | --enable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=\$ac_optarg ;;
903
904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906 | --exec | --exe | --ex)
907 ac_prev=exec_prefix ;;
908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910 | --exec=* | --exe=* | --ex=*)
911 exec_prefix=$ac_optarg ;;
912
913 -gas | --gas | --ga | --g)
914 # Obsolete; use --with-gas.
915 with_gas=yes ;;
916
917 -help | --help | --hel | --he | -h)
918 ac_init_help=long ;;
919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920 ac_init_help=recursive ;;
921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922 ac_init_help=short ;;
923
924 -host | --host | --hos | --ho)
925 ac_prev=host_alias ;;
926 -host=* | --host=* | --hos=* | --ho=*)
927 host_alias=$ac_optarg ;;
928
929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930 ac_prev=htmldir ;;
931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932 | --ht=*)
933 htmldir=$ac_optarg ;;
934
935 -includedir | --includedir | --includedi | --included | --include \
936 | --includ | --inclu | --incl | --inc)
937 ac_prev=includedir ;;
938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939 | --includ=* | --inclu=* | --incl=* | --inc=*)
940 includedir=$ac_optarg ;;
941
942 -infodir | --infodir | --infodi | --infod | --info | --inf)
943 ac_prev=infodir ;;
944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945 infodir=$ac_optarg ;;
946
947 -libdir | --libdir | --libdi | --libd)
948 ac_prev=libdir ;;
949 -libdir=* | --libdir=* | --libdi=* | --libd=*)
950 libdir=$ac_optarg ;;
951
952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953 | --libexe | --libex | --libe)
954 ac_prev=libexecdir ;;
955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956 | --libexe=* | --libex=* | --libe=*)
957 libexecdir=$ac_optarg ;;
958
959 -localedir | --localedir | --localedi | --localed | --locale)
960 ac_prev=localedir ;;
961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962 localedir=$ac_optarg ;;
963
964 -localstatedir | --localstatedir | --localstatedi | --localstated \
965 | --localstate | --localstat | --localsta | --localst | --locals)
966 ac_prev=localstatedir ;;
967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969 localstatedir=$ac_optarg ;;
970
971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972 ac_prev=mandir ;;
973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974 mandir=$ac_optarg ;;
975
976 -nfp | --nfp | --nf)
977 # Obsolete; use --without-fp.
978 with_fp=no ;;
979
980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981 | --no-cr | --no-c | -n)
982 no_create=yes ;;
983
984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986 no_recursion=yes ;;
987
988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990 | --oldin | --oldi | --old | --ol | --o)
991 ac_prev=oldincludedir ;;
992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995 oldincludedir=$ac_optarg ;;
996
997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998 ac_prev=prefix ;;
999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 prefix=$ac_optarg ;;
1001
1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003 | --program-pre | --program-pr | --program-p)
1004 ac_prev=program_prefix ;;
1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007 program_prefix=$ac_optarg ;;
1008
1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010 | --program-suf | --program-su | --program-s)
1011 ac_prev=program_suffix ;;
1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014 program_suffix=$ac_optarg ;;
1015
1016 -program-transform-name | --program-transform-name \
1017 | --program-transform-nam | --program-transform-na \
1018 | --program-transform-n | --program-transform- \
1019 | --program-transform | --program-transfor \
1020 | --program-transfo | --program-transf \
1021 | --program-trans | --program-tran \
1022 | --progr-tra | --program-tr | --program-t)
1023 ac_prev=program_transform_name ;;
1024 -program-transform-name=* | --program-transform-name=* \
1025 | --program-transform-nam=* | --program-transform-na=* \
1026 | --program-transform-n=* | --program-transform-=* \
1027 | --program-transform=* | --program-transfor=* \
1028 | --program-transfo=* | --program-transf=* \
1029 | --program-trans=* | --program-tran=* \
1030 | --progr-tra=* | --program-tr=* | --program-t=*)
1031 program_transform_name=$ac_optarg ;;
1032
1033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034 ac_prev=pdfdir ;;
1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036 pdfdir=$ac_optarg ;;
1037
1038 -psdir | --psdir | --psdi | --psd | --ps)
1039 ac_prev=psdir ;;
1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041 psdir=$ac_optarg ;;
1042
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1045 silent=yes ;;
1046
1047 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048 ac_prev=sbindir ;;
1049 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050 | --sbi=* | --sb=*)
1051 sbindir=$ac_optarg ;;
1052
1053 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1054 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1055 | --sharedst | --shareds | --shared | --share | --shar \
1056 | --sha | --sh)
1057 ac_prev=sharedstatedir ;;
1058 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1059 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1060 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061 | --sha=* | --sh=*)
1062 sharedstatedir=$ac_optarg ;;
1063
1064 -site | --site | --sit)
1065 ac_prev=site ;;
1066 -site=* | --site=* | --sit=*)
1067 site=$ac_optarg ;;
1068
1069 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070 ac_prev=srcdir ;;
1071 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1072 srcdir=$ac_optarg ;;
1073
1074 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1075 | --syscon | --sysco | --sysc | --sys | --sy)
1076 ac_prev=sysconfdir ;;
1077 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1078 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1079 sysconfdir=$ac_optarg ;;
1080
1081 -target | --target | --targe | --targ | --tar | --ta | --t)
1082 ac_prev=target_alias ;;
1083 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1084 target_alias=$ac_optarg ;;
1085
1086 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087 verbose=yes ;;
1088
1089 -version | --version | --versio | --versi | --vers | -V)
1090 ac_init_version=: ;;
1091
1092 -with-* | --with-*)
1093 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error "invalid package name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1100 *"
1101 "with_$ac_useropt"
1102 "*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval with_$ac_useropt=\$ac_optarg ;;
1107
1108 -without-* | --without-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error "invalid package name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1116 *"
1117 "with_$ac_useropt"
1118 "*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1121 esac
1122 eval with_$ac_useropt=no ;;
1123
1124 --x)
1125 # Obsolete; use --with-x.
1126 with_x=yes ;;
1127
1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129 | --x-incl | --x-inc | --x-in | --x-i)
1130 ac_prev=x_includes ;;
1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133 x_includes=$ac_optarg ;;
1134
1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137 ac_prev=x_libraries ;;
1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140 x_libraries=$ac_optarg ;;
1141
1142 -*) as_fn_error "unrecognized option: \`$ac_option'
1143 Try \`$0 --help' for more information."
1144 ;;
1145
1146 *=*)
1147 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148 # Reject names that are not valid shell variable names.
1149 case $ac_envvar in #(
1150 '' | [0-9]* | *[!_$as_cr_alnum]* )
1151 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1152 esac
1153 eval $ac_envvar=\$ac_optarg
1154 export $ac_envvar ;;
1155
1156 *)
1157 # FIXME: should be removed in autoconf 3.0.
1158 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1162 ;;
1163
1164 esac
1165 done
1166
1167 if test -n "$ac_prev"; then
1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169 as_fn_error "missing argument to $ac_option"
1170 fi
1171
1172 if test -n "$ac_unrecognized_opts"; then
1173 case $enable_option_checking in
1174 no) ;;
1175 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1176 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1177 esac
1178 fi
1179
1180 # Check all directory arguments for consistency.
1181 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182 datadir sysconfdir sharedstatedir localstatedir includedir \
1183 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184 libdir localedir mandir
1185 do
1186 eval ac_val=\$$ac_var
1187 # Remove trailing slashes.
1188 case $ac_val in
1189 */ )
1190 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1191 eval $ac_var=\$ac_val;;
1192 esac
1193 # Be sure to have absolute directory names.
1194 case $ac_val in
1195 [\\/$]* | ?:[\\/]* ) continue;;
1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197 esac
1198 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1199 done
1200
1201 # There might be people who depend on the old broken behavior: `$host'
1202 # used to hold the argument of --host etc.
1203 # FIXME: To remove some day.
1204 build=$build_alias
1205 host=$host_alias
1206 target=$target_alias
1207
1208 # FIXME: To remove some day.
1209 if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
1212 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1213 If a cross compiler is detected then cross compile mode will be used." >&2
1214 elif test "x$build_alias" != "x$host_alias"; then
1215 cross_compiling=yes
1216 fi
1217 fi
1218
1219 ac_tool_prefix=
1220 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221
1222 test "$silent" = yes && exec 6>/dev/null
1223
1224
1225 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226 ac_ls_di=`ls -di .` &&
1227 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228 as_fn_error "working directory cannot be determined"
1229 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1230 as_fn_error "pwd does not report name of working directory"
1231
1232
1233 # Find the source files, if location was not specified.
1234 if test -z "$srcdir"; then
1235 ac_srcdir_defaulted=yes
1236 # Try the directory containing this script, then the parent directory.
1237 ac_confdir=`$as_dirname -- "$as_myself" ||
1238 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239 X"$as_myself" : 'X\(//\)[^/]' \| \
1240 X"$as_myself" : 'X\(//\)$' \| \
1241 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1242 $as_echo X"$as_myself" |
1243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244 s//\1/
1245 q
1246 }
1247 /^X\(\/\/\)[^/].*/{
1248 s//\1/
1249 q
1250 }
1251 /^X\(\/\/\)$/{
1252 s//\1/
1253 q
1254 }
1255 /^X\(\/\).*/{
1256 s//\1/
1257 q
1258 }
1259 s/.*/./; q'`
1260 srcdir=$ac_confdir
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 srcdir=..
1263 fi
1264 else
1265 ac_srcdir_defaulted=no
1266 fi
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1269 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1270 fi
1271 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272 ac_abs_confdir=`(
1273 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1274 pwd)`
1275 # When building in place, set srcdir=.
1276 if test "$ac_abs_confdir" = "$ac_pwd"; then
1277 srcdir=.
1278 fi
1279 # Remove unnecessary trailing slashes from srcdir.
1280 # Double slashes in file names in object file debugging info
1281 # mess up M-x gdb in Emacs.
1282 case $srcdir in
1283 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284 esac
1285 for ac_var in $ac_precious_vars; do
1286 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_env_${ac_var}_value=\$${ac_var}
1288 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1289 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1290 done
1291
1292 #
1293 # Report the --help message.
1294 #
1295 if test "$ac_init_help" = "long"; then
1296 # Omit some internal or obsolete options to make the list less imposing.
1297 # This message is too long to be a string in the A/UX 3.1 sh.
1298 cat <<_ACEOF
1299 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1300
1301 Usage: $0 [OPTION]... [VAR=VALUE]...
1302
1303 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1304 VAR=VALUE. See below for descriptions of some of the useful variables.
1305
1306 Defaults for the options are specified in brackets.
1307
1308 Configuration:
1309 -h, --help display this help and exit
1310 --help=short display options specific to this package
1311 --help=recursive display the short help of all the included packages
1312 -V, --version display version information and exit
1313 -q, --quiet, --silent do not print \`checking...' messages
1314 --cache-file=FILE cache test results in FILE [disabled]
1315 -C, --config-cache alias for \`--cache-file=config.cache'
1316 -n, --no-create do not create output files
1317 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1318
1319 Installation directories:
1320 --prefix=PREFIX install architecture-independent files in PREFIX
1321 [$ac_default_prefix]
1322 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1323 [PREFIX]
1324
1325 By default, \`make install' will install all the files in
1326 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1327 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1328 for instance \`--prefix=\$HOME'.
1329
1330 For better control, use the options below.
1331
1332 Fine tuning of the installation directories:
1333 --bindir=DIR user executables [EPREFIX/bin]
1334 --sbindir=DIR system admin executables [EPREFIX/sbin]
1335 --libexecdir=DIR program executables [EPREFIX/libexec]
1336 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1337 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1338 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1339 --libdir=DIR object code libraries [EPREFIX/lib]
1340 --includedir=DIR C header files [PREFIX/include]
1341 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1342 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1343 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1344 --infodir=DIR info documentation [DATAROOTDIR/info]
1345 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1346 --mandir=DIR man documentation [DATAROOTDIR/man]
1347 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1348 --htmldir=DIR html documentation [DOCDIR]
1349 --dvidir=DIR dvi documentation [DOCDIR]
1350 --pdfdir=DIR pdf documentation [DOCDIR]
1351 --psdir=DIR ps documentation [DOCDIR]
1352 _ACEOF
1353
1354 cat <<\_ACEOF
1355
1356 Program names:
1357 --program-prefix=PREFIX prepend PREFIX to installed program names
1358 --program-suffix=SUFFIX append SUFFIX to installed program names
1359 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1360
1361 System types:
1362 --build=BUILD configure for building on BUILD [guessed]
1363 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1364 --target=TARGET configure for building compilers for TARGET [HOST]
1365 _ACEOF
1366 fi
1367
1368 if test -n "$ac_init_help"; then
1369 case $ac_init_help in
1370 short | recursive ) echo "Configuration of package-unused version-unused:";;
1371 esac
1372 cat <<\_ACEOF
1373
1374 Optional Features:
1375 --disable-option-checking ignore unrecognized --enable/--with options
1376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1378 --enable-multilib build many library versions (default)
1379 --enable-maintainer-mode enable make rules and dependencies not useful
1380 (and sometimes confusing) to the casual installer
1381 --enable-shared[=PKGS] build shared libraries [default=yes]
1382 --enable-static[=PKGS] build static libraries [default=yes]
1383 --enable-fast-install[=PKGS]
1384 optimize for fast installation [default=yes]
1385 --disable-libtool-lock avoid locking (might break parallel builds)
1386 --disable-largefile omit support for large files
1387 --enable-host-shared build host code as shared libraries
1388
1389 Optional Packages:
1390 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1391 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1392 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1393 --with-pic try to use only PIC/non-PIC objects [default=use
1394 both]
1395 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1396 --with-system-libunwind use installed libunwind
1397
1398 Some influential environment variables:
1399 CC C compiler command
1400 CFLAGS C compiler flags
1401 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1402 nonstandard directory <lib dir>
1403 LIBS libraries to pass to the linker, e.g. -l<library>
1404 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1405 you have headers in a nonstandard directory <include dir>
1406 CPP C preprocessor
1407 OBJCOPY location of objcopy
1408
1409 Use these variables to override the choices made by `configure' or to help
1410 it to find libraries and programs with nonstandard names/locations.
1411
1412 Report bugs to the package provider.
1413 _ACEOF
1414 ac_status=$?
1415 fi
1416
1417 if test "$ac_init_help" = "recursive"; then
1418 # If there are subdirs, report their specific --help.
1419 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1420 test -d "$ac_dir" ||
1421 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1422 continue
1423 ac_builddir=.
1424
1425 case "$ac_dir" in
1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 *)
1428 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1429 # A ".." for each directory in $ac_dir_suffix.
1430 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1431 case $ac_top_builddir_sub in
1432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1434 esac ;;
1435 esac
1436 ac_abs_top_builddir=$ac_pwd
1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir=$ac_top_build_prefix
1440
1441 case $srcdir in
1442 .) # We are building in place.
1443 ac_srcdir=.
1444 ac_top_srcdir=$ac_top_builddir_sub
1445 ac_abs_top_srcdir=$ac_pwd ;;
1446 [\\/]* | ?:[\\/]* ) # Absolute name.
1447 ac_srcdir=$srcdir$ac_dir_suffix;
1448 ac_top_srcdir=$srcdir
1449 ac_abs_top_srcdir=$srcdir ;;
1450 *) # Relative name.
1451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452 ac_top_srcdir=$ac_top_build_prefix$srcdir
1453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 esac
1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456
1457 cd "$ac_dir" || { ac_status=$?; continue; }
1458 # Check for guested configure.
1459 if test -f "$ac_srcdir/configure.gnu"; then
1460 echo &&
1461 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462 elif test -f "$ac_srcdir/configure"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure" --help=recursive
1465 else
1466 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467 fi || ac_status=$?
1468 cd "$ac_pwd" || { ac_status=$?; break; }
1469 done
1470 fi
1471
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1474 cat <<\_ACEOF
1475 package-unused configure version-unused
1476 generated by GNU Autoconf 2.64
1477
1478 Copyright (C) 2009 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1481 _ACEOF
1482 exit
1483 fi
1484
1485 ## ------------------------ ##
1486 ## Autoconf initialization. ##
1487 ## ------------------------ ##
1488
1489 # ac_fn_c_try_compile LINENO
1490 # --------------------------
1491 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1492 ac_fn_c_try_compile ()
1493 {
1494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1495 rm -f conftest.$ac_objext
1496 if { { ac_try="$ac_compile"
1497 case "(($ac_try" in
1498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1499 *) ac_try_echo=$ac_try;;
1500 esac
1501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502 $as_echo "$ac_try_echo"; } >&5
1503 (eval "$ac_compile") 2>conftest.err
1504 ac_status=$?
1505 if test -s conftest.err; then
1506 grep -v '^ *+' conftest.err >conftest.er1
1507 cat conftest.er1 >&5
1508 mv -f conftest.er1 conftest.err
1509 fi
1510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511 test $ac_status = 0; } && {
1512 test -z "$ac_c_werror_flag" ||
1513 test ! -s conftest.err
1514 } && test -s conftest.$ac_objext; then :
1515 ac_retval=0
1516 else
1517 $as_echo "$as_me: failed program was:" >&5
1518 sed 's/^/| /' conftest.$ac_ext >&5
1519
1520 ac_retval=1
1521 fi
1522 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1523 return $ac_retval
1524
1525 } # ac_fn_c_try_compile
1526
1527 # ac_fn_c_try_cpp LINENO
1528 # ----------------------
1529 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1530 ac_fn_c_try_cpp ()
1531 {
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 if { { ac_try="$ac_cpp conftest.$ac_ext"
1534 case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1546 fi
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } >/dev/null && {
1549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 }; then :
1552 ac_retval=0
1553 else
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1556
1557 ac_retval=1
1558 fi
1559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560 return $ac_retval
1561
1562 } # ac_fn_c_try_cpp
1563
1564 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1565 # -------------------------------------------------------
1566 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1567 # the include files in INCLUDES and setting the cache variable VAR
1568 # accordingly.
1569 ac_fn_c_check_header_mongrel ()
1570 {
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1574 $as_echo_n "checking for $2... " >&6; }
1575 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1576 $as_echo_n "(cached) " >&6
1577 fi
1578 eval ac_res=\$$3
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1580 $as_echo "$ac_res" >&6; }
1581 else
1582 # Is the header compilable?
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1584 $as_echo_n "checking $2 usability... " >&6; }
1585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1586 /* end confdefs.h. */
1587 $4
1588 #include <$2>
1589 _ACEOF
1590 if ac_fn_c_try_compile "$LINENO"; then :
1591 ac_header_compiler=yes
1592 else
1593 ac_header_compiler=no
1594 fi
1595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1597 $as_echo "$ac_header_compiler" >&6; }
1598
1599 # Is the header present?
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1601 $as_echo_n "checking $2 presence... " >&6; }
1602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603 /* end confdefs.h. */
1604 #include <$2>
1605 _ACEOF
1606 if ac_fn_c_try_cpp "$LINENO"; then :
1607 ac_header_preproc=yes
1608 else
1609 ac_header_preproc=no
1610 fi
1611 rm -f conftest.err conftest.$ac_ext
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1613 $as_echo "$ac_header_preproc" >&6; }
1614
1615 # So? What about this header?
1616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1617 yes:no: )
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1619 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1621 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1622 ;;
1623 no:yes:* )
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1625 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1627 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1629 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1631 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1633 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1634 ;;
1635 esac
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1637 $as_echo_n "checking for $2... " >&6; }
1638 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1639 $as_echo_n "(cached) " >&6
1640 else
1641 eval "$3=\$ac_header_compiler"
1642 fi
1643 eval ac_res=\$$3
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645 $as_echo "$ac_res" >&6; }
1646 fi
1647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1648
1649 } # ac_fn_c_check_header_mongrel
1650
1651 # ac_fn_c_try_run LINENO
1652 # ----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1654 # that executables *can* be run.
1655 ac_fn_c_try_run ()
1656 {
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_link"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_link") 2>&5
1666 ac_status=$?
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1669 { { case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_try") 2>&5
1676 ac_status=$?
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; }; }; then :
1679 ac_retval=0
1680 else
1681 $as_echo "$as_me: program exited with status $ac_status" >&5
1682 $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685 ac_retval=$ac_status
1686 fi
1687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1689 return $ac_retval
1690
1691 } # ac_fn_c_try_run
1692
1693 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1694 # -------------------------------------------------------
1695 # Tests whether HEADER exists and can be compiled using the include files in
1696 # INCLUDES, setting the cache variable VAR accordingly.
1697 ac_fn_c_check_header_compile ()
1698 {
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701 $as_echo_n "checking for $2... " >&6; }
1702 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1703 $as_echo_n "(cached) " >&6
1704 else
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1707 $4
1708 #include <$2>
1709 _ACEOF
1710 if ac_fn_c_try_compile "$LINENO"; then :
1711 eval "$3=yes"
1712 else
1713 eval "$3=no"
1714 fi
1715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716 fi
1717 eval ac_res=\$$3
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721
1722 } # ac_fn_c_check_header_compile
1723
1724 # ac_fn_c_try_link LINENO
1725 # -----------------------
1726 # Try to link conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_c_try_link ()
1728 {
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext conftest$ac_exeext
1731 if { { ac_try="$ac_link"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_link") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest$ac_exeext && {
1750 test "$cross_compiling" = yes ||
1751 $as_test_x conftest$ac_exeext
1752 }; then :
1753 ac_retval=0
1754 else
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758 ac_retval=1
1759 fi
1760 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1761 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1762 # interfere with the next link command; also delete a directory that is
1763 # left behind by Apple's compiler. We do this before executing the actions.
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766 return $ac_retval
1767
1768 } # ac_fn_c_try_link
1769
1770 # ac_fn_c_check_func LINENO FUNC VAR
1771 # ----------------------------------
1772 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1773 ac_fn_c_check_func ()
1774 {
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 $as_echo_n "checking for $2... " >&6; }
1778 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1779 $as_echo_n "(cached) " >&6
1780 else
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1783 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1785 #define $2 innocuous_$2
1786
1787 /* System header to define __stub macros and hopefully few prototypes,
1788 which can conflict with char $2 (); below.
1789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1790 <limits.h> exists even on freestanding compilers. */
1791
1792 #ifdef __STDC__
1793 # include <limits.h>
1794 #else
1795 # include <assert.h>
1796 #endif
1797
1798 #undef $2
1799
1800 /* Override any GCC internal prototype to avoid an error.
1801 Use char because int might match the return type of a GCC
1802 builtin and then its argument prototype would still apply. */
1803 #ifdef __cplusplus
1804 extern "C"
1805 #endif
1806 char $2 ();
1807 /* The GNU C library defines this for functions which it implements
1808 to always fail with ENOSYS. Some functions are actually named
1809 something starting with __ and the normal name is an alias. */
1810 #if defined __stub_$2 || defined __stub___$2
1811 choke me
1812 #endif
1813
1814 int
1815 main ()
1816 {
1817 return $2 ();
1818 ;
1819 return 0;
1820 }
1821 _ACEOF
1822 if ac_fn_c_try_link "$LINENO"; then :
1823 eval "$3=yes"
1824 else
1825 eval "$3=no"
1826 fi
1827 rm -f core conftest.err conftest.$ac_objext \
1828 conftest$ac_exeext conftest.$ac_ext
1829 fi
1830 eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834
1835 } # ac_fn_c_check_func
1836
1837 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1838 # -------------------------------------------
1839 # Tests whether TYPE exists after having included INCLUDES, setting cache
1840 # variable VAR accordingly.
1841 ac_fn_c_check_type ()
1842 {
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1847 $as_echo_n "(cached) " >&6
1848 else
1849 eval "$3=no"
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1852 $4
1853 int
1854 main ()
1855 {
1856 if (sizeof ($2))
1857 return 0;
1858 ;
1859 return 0;
1860 }
1861 _ACEOF
1862 if ac_fn_c_try_compile "$LINENO"; then :
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h. */
1865 $4
1866 int
1867 main ()
1868 {
1869 if (sizeof (($2)))
1870 return 0;
1871 ;
1872 return 0;
1873 }
1874 _ACEOF
1875 if ac_fn_c_try_compile "$LINENO"; then :
1876
1877 else
1878 eval "$3=yes"
1879 fi
1880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883 fi
1884 eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888
1889 } # ac_fn_c_check_type
1890
1891 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1892 # --------------------------------------------
1893 # Tries to find the compile-time value of EXPR in a program that includes
1894 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1895 # computed
1896 ac_fn_c_compute_int ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 if test "$cross_compiling" = yes; then
1900 # Depending upon the size, compute the lo and hi bounds.
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h. */
1903 $4
1904 int
1905 main ()
1906 {
1907 static int test_array [1 - 2 * !(($2) >= 0)];
1908 test_array [0] = 0
1909
1910 ;
1911 return 0;
1912 }
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915 ac_lo=0 ac_mid=0
1916 while :; do
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1919 $4
1920 int
1921 main ()
1922 {
1923 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1924 test_array [0] = 0
1925
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931 ac_hi=$ac_mid; break
1932 else
1933 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1934 if test $ac_lo -le $ac_mid; then
1935 ac_lo= ac_hi=
1936 break
1937 fi
1938 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 done
1942 else
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1945 $4
1946 int
1947 main ()
1948 {
1949 static int test_array [1 - 2 * !(($2) < 0)];
1950 test_array [0] = 0
1951
1952 ;
1953 return 0;
1954 }
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 ac_hi=-1 ac_mid=-1
1958 while :; do
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1961 $4
1962 int
1963 main ()
1964 {
1965 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1966 test_array [0] = 0
1967
1968 ;
1969 return 0;
1970 }
1971 _ACEOF
1972 if ac_fn_c_try_compile "$LINENO"; then :
1973 ac_lo=$ac_mid; break
1974 else
1975 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1976 if test $ac_mid -le $ac_hi; then
1977 ac_lo= ac_hi=
1978 break
1979 fi
1980 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1981 fi
1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983 done
1984 else
1985 ac_lo= ac_hi=
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 fi
1989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1990 # Binary search between lo and hi bounds.
1991 while test "x$ac_lo" != "x$ac_hi"; do
1992 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1995 $4
1996 int
1997 main ()
1998 {
1999 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2000 test_array [0] = 0
2001
2002 ;
2003 return 0;
2004 }
2005 _ACEOF
2006 if ac_fn_c_try_compile "$LINENO"; then :
2007 ac_hi=$ac_mid
2008 else
2009 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2010 fi
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 done
2013 case $ac_lo in #((
2014 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2015 '') ac_retval=1 ;;
2016 esac
2017 else
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2020 $4
2021 static long int longval () { return $2; }
2022 static unsigned long int ulongval () { return $2; }
2023 #include <stdio.h>
2024 #include <stdlib.h>
2025 int
2026 main ()
2027 {
2028
2029 FILE *f = fopen ("conftest.val", "w");
2030 if (! f)
2031 return 1;
2032 if (($2) < 0)
2033 {
2034 long int i = longval ();
2035 if (i != ($2))
2036 return 1;
2037 fprintf (f, "%ld", i);
2038 }
2039 else
2040 {
2041 unsigned long int i = ulongval ();
2042 if (i != ($2))
2043 return 1;
2044 fprintf (f, "%lu", i);
2045 }
2046 /* Do not output a trailing newline, as this causes \r\n confusion
2047 on some platforms. */
2048 return ferror (f) || fclose (f) != 0;
2049
2050 ;
2051 return 0;
2052 }
2053 _ACEOF
2054 if ac_fn_c_try_run "$LINENO"; then :
2055 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2056 else
2057 ac_retval=1
2058 fi
2059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2060 conftest.$ac_objext conftest.beam conftest.$ac_ext
2061 rm -f conftest.val
2062
2063 fi
2064 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2065 return $ac_retval
2066
2067 } # ac_fn_c_compute_int
2068
2069 # ac_fn_c_check_decl LINENO SYMBOL VAR
2070 # ------------------------------------
2071 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2072 ac_fn_c_check_decl ()
2073 {
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 as_decl_name=`echo $2|sed 's/ *(.*//'`
2076 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2078 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2079 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2080 $as_echo_n "(cached) " >&6
2081 else
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2084 $4
2085 int
2086 main ()
2087 {
2088 #ifndef $as_decl_name
2089 #ifdef __cplusplus
2090 (void) $as_decl_use;
2091 #else
2092 (void) $as_decl_name;
2093 #endif
2094 #endif
2095
2096 ;
2097 return 0;
2098 }
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 eval "$3=yes"
2102 else
2103 eval "$3=no"
2104 fi
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 fi
2107 eval ac_res=\$$3
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2111
2112 } # ac_fn_c_check_decl
2113 cat >config.log <<_ACEOF
2114 This file contains any messages produced by compilers while
2115 running configure, to aid debugging if configure makes a mistake.
2116
2117 It was created by package-unused $as_me version-unused, which was
2118 generated by GNU Autoconf 2.64. Invocation command line was
2119
2120 $ $0 $@
2121
2122 _ACEOF
2123 exec 5>>config.log
2124 {
2125 cat <<_ASUNAME
2126 ## --------- ##
2127 ## Platform. ##
2128 ## --------- ##
2129
2130 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2131 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2132 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2133 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2134 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2135
2136 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2137 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2138
2139 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2140 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2141 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2142 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2143 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2144 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2145 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2146
2147 _ASUNAME
2148
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150 for as_dir in $PATH
2151 do
2152 IFS=$as_save_IFS
2153 test -z "$as_dir" && as_dir=.
2154 $as_echo "PATH: $as_dir"
2155 done
2156 IFS=$as_save_IFS
2157
2158 } >&5
2159
2160 cat >&5 <<_ACEOF
2161
2162
2163 ## ----------- ##
2164 ## Core tests. ##
2165 ## ----------- ##
2166
2167 _ACEOF
2168
2169
2170 # Keep a trace of the command line.
2171 # Strip out --no-create and --no-recursion so they do not pile up.
2172 # Strip out --silent because we don't want to record it for future runs.
2173 # Also quote any args containing shell meta-characters.
2174 # Make two passes to allow for proper duplicate-argument suppression.
2175 ac_configure_args=
2176 ac_configure_args0=
2177 ac_configure_args1=
2178 ac_must_keep_next=false
2179 for ac_pass in 1 2
2180 do
2181 for ac_arg
2182 do
2183 case $ac_arg in
2184 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2186 | -silent | --silent | --silen | --sile | --sil)
2187 continue ;;
2188 *\'*)
2189 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2190 esac
2191 case $ac_pass in
2192 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2193 2)
2194 as_fn_append ac_configure_args1 " '$ac_arg'"
2195 if test $ac_must_keep_next = true; then
2196 ac_must_keep_next=false # Got value, back to normal.
2197 else
2198 case $ac_arg in
2199 *=* | --config-cache | -C | -disable-* | --disable-* \
2200 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2201 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2202 | -with-* | --with-* | -without-* | --without-* | --x)
2203 case "$ac_configure_args0 " in
2204 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2205 esac
2206 ;;
2207 -* ) ac_must_keep_next=true ;;
2208 esac
2209 fi
2210 as_fn_append ac_configure_args " '$ac_arg'"
2211 ;;
2212 esac
2213 done
2214 done
2215 { ac_configure_args0=; unset ac_configure_args0;}
2216 { ac_configure_args1=; unset ac_configure_args1;}
2217
2218 # When interrupted or exit'd, cleanup temporary files, and complete
2219 # config.log. We remove comments because anyway the quotes in there
2220 # would cause problems or look ugly.
2221 # WARNING: Use '\'' to represent an apostrophe within the trap.
2222 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2223 trap 'exit_status=$?
2224 # Save into config.log some information that might help in debugging.
2225 {
2226 echo
2227
2228 cat <<\_ASBOX
2229 ## ---------------- ##
2230 ## Cache variables. ##
2231 ## ---------------- ##
2232 _ASBOX
2233 echo
2234 # The following way of writing the cache mishandles newlines in values,
2235 (
2236 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2237 eval ac_val=\$$ac_var
2238 case $ac_val in #(
2239 *${as_nl}*)
2240 case $ac_var in #(
2241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2242 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2243 esac
2244 case $ac_var in #(
2245 _ | IFS | as_nl) ;; #(
2246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2247 *) { eval $ac_var=; unset $ac_var;} ;;
2248 esac ;;
2249 esac
2250 done
2251 (set) 2>&1 |
2252 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2253 *${as_nl}ac_space=\ *)
2254 sed -n \
2255 "s/'\''/'\''\\\\'\'''\''/g;
2256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2257 ;; #(
2258 *)
2259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2260 ;;
2261 esac |
2262 sort
2263 )
2264 echo
2265
2266 cat <<\_ASBOX
2267 ## ----------------- ##
2268 ## Output variables. ##
2269 ## ----------------- ##
2270 _ASBOX
2271 echo
2272 for ac_var in $ac_subst_vars
2273 do
2274 eval ac_val=\$$ac_var
2275 case $ac_val in
2276 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2277 esac
2278 $as_echo "$ac_var='\''$ac_val'\''"
2279 done | sort
2280 echo
2281
2282 if test -n "$ac_subst_files"; then
2283 cat <<\_ASBOX
2284 ## ------------------- ##
2285 ## File substitutions. ##
2286 ## ------------------- ##
2287 _ASBOX
2288 echo
2289 for ac_var in $ac_subst_files
2290 do
2291 eval ac_val=\$$ac_var
2292 case $ac_val in
2293 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2294 esac
2295 $as_echo "$ac_var='\''$ac_val'\''"
2296 done | sort
2297 echo
2298 fi
2299
2300 if test -s confdefs.h; then
2301 cat <<\_ASBOX
2302 ## ----------- ##
2303 ## confdefs.h. ##
2304 ## ----------- ##
2305 _ASBOX
2306 echo
2307 cat confdefs.h
2308 echo
2309 fi
2310 test "$ac_signal" != 0 &&
2311 $as_echo "$as_me: caught signal $ac_signal"
2312 $as_echo "$as_me: exit $exit_status"
2313 } >&5
2314 rm -f core *.core core.conftest.* &&
2315 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2316 exit $exit_status
2317 ' 0
2318 for ac_signal in 1 2 13 15; do
2319 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2320 done
2321 ac_signal=0
2322
2323 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2324 rm -f -r conftest* confdefs.h
2325
2326 $as_echo "/* confdefs.h */" > confdefs.h
2327
2328 # Predefined preprocessor variables.
2329
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_NAME "$PACKAGE_NAME"
2332 _ACEOF
2333
2334 cat >>confdefs.h <<_ACEOF
2335 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2336 _ACEOF
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2340 _ACEOF
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_STRING "$PACKAGE_STRING"
2344 _ACEOF
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2348 _ACEOF
2349
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_URL "$PACKAGE_URL"
2352 _ACEOF
2353
2354
2355 # Let the site file select an alternate cache file if it wants to.
2356 # Prefer an explicitly selected file to automatically selected ones.
2357 ac_site_file1=NONE
2358 ac_site_file2=NONE
2359 if test -n "$CONFIG_SITE"; then
2360 ac_site_file1=$CONFIG_SITE
2361 elif test "x$prefix" != xNONE; then
2362 ac_site_file1=$prefix/share/config.site
2363 ac_site_file2=$prefix/etc/config.site
2364 else
2365 ac_site_file1=$ac_default_prefix/share/config.site
2366 ac_site_file2=$ac_default_prefix/etc/config.site
2367 fi
2368 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2369 do
2370 test "x$ac_site_file" = xNONE && continue
2371 if test -r "$ac_site_file"; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2373 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2374 sed 's/^/| /' "$ac_site_file" >&5
2375 . "$ac_site_file"
2376 fi
2377 done
2378
2379 if test -r "$cache_file"; then
2380 # Some versions of bash will fail to source /dev/null (special
2381 # files actually), so we avoid doing that.
2382 if test -f "$cache_file"; then
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2384 $as_echo "$as_me: loading cache $cache_file" >&6;}
2385 case $cache_file in
2386 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2387 *) . "./$cache_file";;
2388 esac
2389 fi
2390 else
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2392 $as_echo "$as_me: creating cache $cache_file" >&6;}
2393 >$cache_file
2394 fi
2395
2396 # Check that the precious variables saved in the cache have kept the same
2397 # value.
2398 ac_cache_corrupted=false
2399 for ac_var in $ac_precious_vars; do
2400 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2401 eval ac_new_set=\$ac_env_${ac_var}_set
2402 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2403 eval ac_new_val=\$ac_env_${ac_var}_value
2404 case $ac_old_set,$ac_new_set in
2405 set,)
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2407 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2408 ac_cache_corrupted=: ;;
2409 ,set)
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2411 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2412 ac_cache_corrupted=: ;;
2413 ,);;
2414 *)
2415 if test "x$ac_old_val" != "x$ac_new_val"; then
2416 # differences in whitespace do not lead to failure.
2417 ac_old_val_w=`echo x $ac_old_val`
2418 ac_new_val_w=`echo x $ac_new_val`
2419 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2421 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2422 ac_cache_corrupted=:
2423 else
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2425 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2426 eval $ac_var=\$ac_old_val
2427 fi
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2429 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2431 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2432 fi;;
2433 esac
2434 # Pass precious variables to config.status.
2435 if test "$ac_new_set" = set; then
2436 case $ac_new_val in
2437 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2438 *) ac_arg=$ac_var=$ac_new_val ;;
2439 esac
2440 case " $ac_configure_args " in
2441 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2442 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2443 esac
2444 fi
2445 done
2446 if $ac_cache_corrupted; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2450 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2451 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2452 fi
2453 ## -------------------- ##
2454 ## Main body of script. ##
2455 ## -------------------- ##
2456
2457 ac_ext=c
2458 ac_cpp='$CPP $CPPFLAGS'
2459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462
2463
2464
2465
2466
2467
2468 ac_config_headers="$ac_config_headers config.h"
2469
2470
2471 if test -n "${with_target_subdir}"; then
2472 # Default to --enable-multilib
2473 # Check whether --enable-multilib was given.
2474 if test "${enable_multilib+set}" = set; then :
2475 enableval=$enable_multilib; case "$enableval" in
2476 yes) multilib=yes ;;
2477 no) multilib=no ;;
2478 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2479 esac
2480 else
2481 multilib=yes
2482 fi
2483
2484
2485 # We may get other options which we leave undocumented:
2486 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2487 # See config-ml.in if you want the gory details.
2488
2489 if test "$srcdir" = "."; then
2490 if test "$with_target_subdir" != "."; then
2491 multi_basedir="$srcdir/$with_multisrctop../.."
2492 else
2493 multi_basedir="$srcdir/$with_multisrctop.."
2494 fi
2495 else
2496 multi_basedir="$srcdir/.."
2497 fi
2498
2499
2500 # Even if the default multilib is not a cross compilation,
2501 # it may be that some of the other multilibs are.
2502 if test $cross_compiling = no && test $multilib = yes \
2503 && test "x${with_multisubdir}" != x ; then
2504 cross_compiling=maybe
2505 fi
2506
2507 ac_config_commands="$ac_config_commands default-1"
2508
2509 fi
2510
2511 ac_aux_dir=
2512 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2513 for ac_t in install-sh install.sh shtool; do
2514 if test -f "$ac_dir/$ac_t"; then
2515 ac_aux_dir=$ac_dir
2516 ac_install_sh="$ac_aux_dir/$ac_t -c"
2517 break 2
2518 fi
2519 done
2520 done
2521 if test -z "$ac_aux_dir"; then
2522 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2523 fi
2524
2525 # These three variables are undocumented and unsupported,
2526 # and are intended to be withdrawn in a future Autoconf release.
2527 # They can cause serious problems if a builder's source tree is in a directory
2528 # whose full name contains unusual characters.
2529 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2530 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2531 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2532
2533
2534 # Make sure we can run config.sub.
2535 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2536 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2537
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2539 $as_echo_n "checking build system type... " >&6; }
2540 if test "${ac_cv_build+set}" = set; then :
2541 $as_echo_n "(cached) " >&6
2542 else
2543 ac_build_alias=$build_alias
2544 test "x$ac_build_alias" = x &&
2545 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2546 test "x$ac_build_alias" = x &&
2547 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2548 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2549 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2550
2551 fi
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2553 $as_echo "$ac_cv_build" >&6; }
2554 case $ac_cv_build in
2555 *-*-*) ;;
2556 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2557 esac
2558 build=$ac_cv_build
2559 ac_save_IFS=$IFS; IFS='-'
2560 set x $ac_cv_build
2561 shift
2562 build_cpu=$1
2563 build_vendor=$2
2564 shift; shift
2565 # Remember, the first character of IFS is used to create $*,
2566 # except with old shells:
2567 build_os=$*
2568 IFS=$ac_save_IFS
2569 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2570
2571
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2573 $as_echo_n "checking host system type... " >&6; }
2574 if test "${ac_cv_host+set}" = set; then :
2575 $as_echo_n "(cached) " >&6
2576 else
2577 if test "x$host_alias" = x; then
2578 ac_cv_host=$ac_cv_build
2579 else
2580 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2581 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2582 fi
2583
2584 fi
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2586 $as_echo "$ac_cv_host" >&6; }
2587 case $ac_cv_host in
2588 *-*-*) ;;
2589 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2590 esac
2591 host=$ac_cv_host
2592 ac_save_IFS=$IFS; IFS='-'
2593 set x $ac_cv_host
2594 shift
2595 host_cpu=$1
2596 host_vendor=$2
2597 shift; shift
2598 # Remember, the first character of IFS is used to create $*,
2599 # except with old shells:
2600 host_os=$*
2601 IFS=$ac_save_IFS
2602 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2603
2604
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2606 $as_echo_n "checking target system type... " >&6; }
2607 if test "${ac_cv_target+set}" = set; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 if test "x$target_alias" = x; then
2611 ac_cv_target=$ac_cv_host
2612 else
2613 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2614 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2615 fi
2616
2617 fi
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2619 $as_echo "$ac_cv_target" >&6; }
2620 case $ac_cv_target in
2621 *-*-*) ;;
2622 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2623 esac
2624 target=$ac_cv_target
2625 ac_save_IFS=$IFS; IFS='-'
2626 set x $ac_cv_target
2627 shift
2628 target_cpu=$1
2629 target_vendor=$2
2630 shift; shift
2631 # Remember, the first character of IFS is used to create $*,
2632 # except with old shells:
2633 target_os=$*
2634 IFS=$ac_save_IFS
2635 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2636
2637
2638 # The aliases save the names the user supplied, while $host etc.
2639 # will get canonicalized.
2640 test -n "$target_alias" &&
2641 test "$program_prefix$program_suffix$program_transform_name" = \
2642 NONENONEs,x,x, &&
2643 program_prefix=${target_alias}-
2644
2645 target_alias=${target_alias-$host_alias}
2646
2647 ac_ext=c
2648 ac_cpp='$CPP $CPPFLAGS'
2649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652 if test -n "$ac_tool_prefix"; then
2653 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2654 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if test "${ac_cv_prog_CC+set}" = set; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 if test -n "$CC"; then
2661 ac_cv_prog_CC="$CC" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674 done
2675 done
2676 IFS=$as_save_IFS
2677
2678 fi
2679 fi
2680 CC=$ac_cv_prog_CC
2681 if test -n "$CC"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2683 $as_echo "$CC" >&6; }
2684 else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686 $as_echo "no" >&6; }
2687 fi
2688
2689
2690 fi
2691 if test -z "$ac_cv_prog_CC"; then
2692 ac_ct_CC=$CC
2693 # Extract the first word of "gcc", so it can be a program name with args.
2694 set dummy gcc; ac_word=$2
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2696 $as_echo_n "checking for $ac_word... " >&6; }
2697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2698 $as_echo_n "(cached) " >&6
2699 else
2700 if test -n "$ac_ct_CC"; then
2701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2702 else
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH
2705 do
2706 IFS=$as_save_IFS
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710 ac_cv_prog_ac_ct_CC="gcc"
2711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 break 2
2713 fi
2714 done
2715 done
2716 IFS=$as_save_IFS
2717
2718 fi
2719 fi
2720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2721 if test -n "$ac_ct_CC"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2723 $as_echo "$ac_ct_CC" >&6; }
2724 else
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2726 $as_echo "no" >&6; }
2727 fi
2728
2729 if test "x$ac_ct_CC" = x; then
2730 CC=""
2731 else
2732 case $cross_compiling:$ac_tool_warned in
2733 yes:)
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2736 ac_tool_warned=yes ;;
2737 esac
2738 CC=$ac_ct_CC
2739 fi
2740 else
2741 CC="$ac_cv_prog_CC"
2742 fi
2743
2744 if test -z "$CC"; then
2745 if test -n "$ac_tool_prefix"; then
2746 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2747 set dummy ${ac_tool_prefix}cc; ac_word=$2
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749 $as_echo_n "checking for $ac_word... " >&6; }
2750 if test "${ac_cv_prog_CC+set}" = set; then :
2751 $as_echo_n "(cached) " >&6
2752 else
2753 if test -n "$CC"; then
2754 ac_cv_prog_CC="$CC" # Let the user override the test.
2755 else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2763 ac_cv_prog_CC="${ac_tool_prefix}cc"
2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 break 2
2766 fi
2767 done
2768 done
2769 IFS=$as_save_IFS
2770
2771 fi
2772 fi
2773 CC=$ac_cv_prog_CC
2774 if test -n "$CC"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2776 $as_echo "$CC" >&6; }
2777 else
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2780 fi
2781
2782
2783 fi
2784 fi
2785 if test -z "$CC"; then
2786 # Extract the first word of "cc", so it can be a program name with args.
2787 set dummy cc; ac_word=$2
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2789 $as_echo_n "checking for $ac_word... " >&6; }
2790 if test "${ac_cv_prog_CC+set}" = set; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 if test -n "$CC"; then
2794 ac_cv_prog_CC="$CC" # Let the user override the test.
2795 else
2796 ac_prog_rejected=no
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2804 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2805 ac_prog_rejected=yes
2806 continue
2807 fi
2808 ac_cv_prog_CC="cc"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2811 fi
2812 done
2813 done
2814 IFS=$as_save_IFS
2815
2816 if test $ac_prog_rejected = yes; then
2817 # We found a bogon in the path, so make sure we never use it.
2818 set dummy $ac_cv_prog_CC
2819 shift
2820 if test $# != 0; then
2821 # We chose a different compiler from the bogus one.
2822 # However, it has the same basename, so the bogon will be chosen
2823 # first if we set CC to just the basename; use the full file name.
2824 shift
2825 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2826 fi
2827 fi
2828 fi
2829 fi
2830 CC=$ac_cv_prog_CC
2831 if test -n "$CC"; then
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2833 $as_echo "$CC" >&6; }
2834 else
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2836 $as_echo "no" >&6; }
2837 fi
2838
2839
2840 fi
2841 if test -z "$CC"; then
2842 if test -n "$ac_tool_prefix"; then
2843 for ac_prog in cl.exe
2844 do
2845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if test "${ac_cv_prog_CC+set}" = set; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 if test -n "$CC"; then
2853 ac_cv_prog_CC="$CC" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 break 2
2865 fi
2866 done
2867 done
2868 IFS=$as_save_IFS
2869
2870 fi
2871 fi
2872 CC=$ac_cv_prog_CC
2873 if test -n "$CC"; then
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2875 $as_echo "$CC" >&6; }
2876 else
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2879 fi
2880
2881
2882 test -n "$CC" && break
2883 done
2884 fi
2885 if test -z "$CC"; then
2886 ac_ct_CC=$CC
2887 for ac_prog in cl.exe
2888 do
2889 # Extract the first word of "$ac_prog", so it can be a program name with args.
2890 set dummy $ac_prog; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 if test -n "$ac_ct_CC"; then
2897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2906 ac_cv_prog_ac_ct_CC="$ac_prog"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910 done
2911 done
2912 IFS=$as_save_IFS
2913
2914 fi
2915 fi
2916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2917 if test -n "$ac_ct_CC"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2919 $as_echo "$ac_ct_CC" >&6; }
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2923 fi
2924
2925
2926 test -n "$ac_ct_CC" && break
2927 done
2928
2929 if test "x$ac_ct_CC" = x; then
2930 CC=""
2931 else
2932 case $cross_compiling:$ac_tool_warned in
2933 yes:)
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2936 ac_tool_warned=yes ;;
2937 esac
2938 CC=$ac_ct_CC
2939 fi
2940 fi
2941
2942 fi
2943
2944
2945 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2947 as_fn_error "no acceptable C compiler found in \$PATH
2948 See \`config.log' for more details." "$LINENO" 5; }
2949
2950 # Provide some information about the compiler.
2951 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2952 set X $ac_compile
2953 ac_compiler=$2
2954 for ac_option in --version -v -V -qversion; do
2955 { { ac_try="$ac_compiler $ac_option >&5"
2956 case "(($ac_try" in
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2959 esac
2960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2961 $as_echo "$ac_try_echo"; } >&5
2962 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2963 ac_status=$?
2964 if test -s conftest.err; then
2965 sed '10a\
2966 ... rest of stderr output deleted ...
2967 10q' conftest.err >conftest.er1
2968 cat conftest.er1 >&5
2969 rm -f conftest.er1 conftest.err
2970 fi
2971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2972 test $ac_status = 0; }
2973 done
2974
2975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2976 /* end confdefs.h. */
2977
2978 int
2979 main ()
2980 {
2981
2982 ;
2983 return 0;
2984 }
2985 _ACEOF
2986 ac_clean_files_save=$ac_clean_files
2987 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2988 # Try to create an executable without -o first, disregard a.out.
2989 # It will help us diagnose broken compilers, and finding out an intuition
2990 # of exeext.
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2992 $as_echo_n "checking for C compiler default output file name... " >&6; }
2993 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2994
2995 # The possible output files:
2996 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2997
2998 ac_rmfiles=
2999 for ac_file in $ac_files
3000 do
3001 case $ac_file in
3002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3003 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3004 esac
3005 done
3006 rm -f $ac_rmfiles
3007
3008 if { { ac_try="$ac_link_default"
3009 case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012 esac
3013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3014 $as_echo "$ac_try_echo"; } >&5
3015 (eval "$ac_link_default") 2>&5
3016 ac_status=$?
3017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3018 test $ac_status = 0; }; then :
3019 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3020 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3021 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3022 # so that the user can short-circuit this test for compilers unknown to
3023 # Autoconf.
3024 for ac_file in $ac_files ''
3025 do
3026 test -f "$ac_file" || continue
3027 case $ac_file in
3028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3029 ;;
3030 [ab].out )
3031 # We found the default executable, but exeext='' is most
3032 # certainly right.
3033 break;;
3034 *.* )
3035 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3036 then :; else
3037 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3038 fi
3039 # We set ac_cv_exeext here because the later test for it is not
3040 # safe: cross compilers may not add the suffix if given an `-o'
3041 # argument, so we may need to know it at that point already.
3042 # Even if this section looks crufty: it has the advantage of
3043 # actually working.
3044 break;;
3045 * )
3046 break;;
3047 esac
3048 done
3049 test "$ac_cv_exeext" = no && ac_cv_exeext=
3050
3051 else
3052 ac_file=''
3053 fi
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3055 $as_echo "$ac_file" >&6; }
3056 if test -z "$ac_file"; then :
3057 $as_echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3062 { as_fn_set_status 77
3063 as_fn_error "C compiler cannot create executables
3064 See \`config.log' for more details." "$LINENO" 5; }; }
3065 fi
3066 ac_exeext=$ac_cv_exeext
3067
3068 # Check that the compiler produces executables we can run. If not, either
3069 # the compiler is broken, or we cross compile.
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3071 $as_echo_n "checking whether the C compiler works... " >&6; }
3072 # If not cross compiling, check that we can run a simple program.
3073 if test "$cross_compiling" != yes; then
3074 if { ac_try='./$ac_file'
3075 { { case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3078 esac
3079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3080 $as_echo "$ac_try_echo"; } >&5
3081 (eval "$ac_try") 2>&5
3082 ac_status=$?
3083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3084 test $ac_status = 0; }; }; then
3085 cross_compiling=no
3086 else
3087 if test "$cross_compiling" = maybe; then
3088 cross_compiling=yes
3089 else
3090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3092 as_fn_error "cannot run C compiled programs.
3093 If you meant to cross compile, use \`--host'.
3094 See \`config.log' for more details." "$LINENO" 5; }
3095 fi
3096 fi
3097 fi
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3099 $as_echo "yes" >&6; }
3100
3101 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3102 ac_clean_files=$ac_clean_files_save
3103 # Check that the compiler produces executables we can run. If not, either
3104 # the compiler is broken, or we cross compile.
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3106 $as_echo_n "checking whether we are cross compiling... " >&6; }
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3108 $as_echo "$cross_compiling" >&6; }
3109
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3111 $as_echo_n "checking for suffix of executables... " >&6; }
3112 if { { ac_try="$ac_link"
3113 case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118 $as_echo "$ac_try_echo"; } >&5
3119 (eval "$ac_link") 2>&5
3120 ac_status=$?
3121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122 test $ac_status = 0; }; then :
3123 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3124 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3125 # work properly (i.e., refer to `conftest.exe'), while it won't with
3126 # `rm'.
3127 for ac_file in conftest.exe conftest conftest.*; do
3128 test -f "$ac_file" || continue
3129 case $ac_file in
3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3131 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3132 break;;
3133 * ) break;;
3134 esac
3135 done
3136 else
3137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 as_fn_error "cannot compute suffix of executables: cannot compile and link
3140 See \`config.log' for more details." "$LINENO" 5; }
3141 fi
3142 rm -f conftest$ac_cv_exeext
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3144 $as_echo "$ac_cv_exeext" >&6; }
3145
3146 rm -f conftest.$ac_ext
3147 EXEEXT=$ac_cv_exeext
3148 ac_exeext=$EXEEXT
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3150 $as_echo_n "checking for suffix of object files... " >&6; }
3151 if test "${ac_cv_objext+set}" = set; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3155 /* end confdefs.h. */
3156
3157 int
3158 main ()
3159 {
3160
3161 ;
3162 return 0;
3163 }
3164 _ACEOF
3165 rm -f conftest.o conftest.obj
3166 if { { ac_try="$ac_compile"
3167 case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170 esac
3171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172 $as_echo "$ac_try_echo"; } >&5
3173 (eval "$ac_compile") 2>&5
3174 ac_status=$?
3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176 test $ac_status = 0; }; then :
3177 for ac_file in conftest.o conftest.obj conftest.*; do
3178 test -f "$ac_file" || continue;
3179 case $ac_file in
3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3181 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3182 break;;
3183 esac
3184 done
3185 else
3186 $as_echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 as_fn_error "cannot compute suffix of object files: cannot compile
3192 See \`config.log' for more details." "$LINENO" 5; }
3193 fi
3194 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3195 fi
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3197 $as_echo "$ac_cv_objext" >&6; }
3198 OBJEXT=$ac_cv_objext
3199 ac_objext=$OBJEXT
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3201 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3202 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3206 /* end confdefs.h. */
3207
3208 int
3209 main ()
3210 {
3211 #ifndef __GNUC__
3212 choke me
3213 #endif
3214
3215 ;
3216 return 0;
3217 }
3218 _ACEOF
3219 if ac_fn_c_try_compile "$LINENO"; then :
3220 ac_compiler_gnu=yes
3221 else
3222 ac_compiler_gnu=no
3223 fi
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3226
3227 fi
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3229 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3230 if test $ac_compiler_gnu = yes; then
3231 GCC=yes
3232 else
3233 GCC=
3234 fi
3235 ac_test_CFLAGS=${CFLAGS+set}
3236 ac_save_CFLAGS=$CFLAGS
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3238 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3239 if test "${ac_cv_prog_cc_g+set}" = set; then :
3240 $as_echo_n "(cached) " >&6
3241 else
3242 ac_save_c_werror_flag=$ac_c_werror_flag
3243 ac_c_werror_flag=yes
3244 ac_cv_prog_cc_g=no
3245 CFLAGS="-g"
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3248
3249 int
3250 main ()
3251 {
3252
3253 ;
3254 return 0;
3255 }
3256 _ACEOF
3257 if ac_fn_c_try_compile "$LINENO"; then :
3258 ac_cv_prog_cc_g=yes
3259 else
3260 CFLAGS=""
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3263
3264 int
3265 main ()
3266 {
3267
3268 ;
3269 return 0;
3270 }
3271 _ACEOF
3272 if ac_fn_c_try_compile "$LINENO"; then :
3273
3274 else
3275 ac_c_werror_flag=$ac_save_c_werror_flag
3276 CFLAGS="-g"
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3279
3280 int
3281 main ()
3282 {
3283
3284 ;
3285 return 0;
3286 }
3287 _ACEOF
3288 if ac_fn_c_try_compile "$LINENO"; then :
3289 ac_cv_prog_cc_g=yes
3290 fi
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292 fi
3293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 fi
3295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296 ac_c_werror_flag=$ac_save_c_werror_flag
3297 fi
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3299 $as_echo "$ac_cv_prog_cc_g" >&6; }
3300 if test "$ac_test_CFLAGS" = set; then
3301 CFLAGS=$ac_save_CFLAGS
3302 elif test $ac_cv_prog_cc_g = yes; then
3303 if test "$GCC" = yes; then
3304 CFLAGS="-g -O2"
3305 else
3306 CFLAGS="-g"
3307 fi
3308 else
3309 if test "$GCC" = yes; then
3310 CFLAGS="-O2"
3311 else
3312 CFLAGS=
3313 fi
3314 fi
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3316 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3317 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3318 $as_echo_n "(cached) " >&6
3319 else
3320 ac_cv_prog_cc_c89=no
3321 ac_save_CC=$CC
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3324 #include <stdarg.h>
3325 #include <stdio.h>
3326 #include <sys/types.h>
3327 #include <sys/stat.h>
3328 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3329 struct buf { int x; };
3330 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3331 static char *e (p, i)
3332 char **p;
3333 int i;
3334 {
3335 return p[i];
3336 }
3337 static char *f (char * (*g) (char **, int), char **p, ...)
3338 {
3339 char *s;
3340 va_list v;
3341 va_start (v,p);
3342 s = g (p, va_arg (v,int));
3343 va_end (v);
3344 return s;
3345 }
3346
3347 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3348 function prototypes and stuff, but not '\xHH' hex character constants.
3349 These don't provoke an error unfortunately, instead are silently treated
3350 as 'x'. The following induces an error, until -std is added to get
3351 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3352 array size at least. It's necessary to write '\x00'==0 to get something
3353 that's true only with -std. */
3354 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3355
3356 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3357 inside strings and character constants. */
3358 #define FOO(x) 'x'
3359 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3360
3361 int test (int i, double x);
3362 struct s1 {int (*f) (int a);};
3363 struct s2 {int (*f) (double a);};
3364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3365 int argc;
3366 char **argv;
3367 int
3368 main ()
3369 {
3370 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3371 ;
3372 return 0;
3373 }
3374 _ACEOF
3375 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3376 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3377 do
3378 CC="$ac_save_CC $ac_arg"
3379 if ac_fn_c_try_compile "$LINENO"; then :
3380 ac_cv_prog_cc_c89=$ac_arg
3381 fi
3382 rm -f core conftest.err conftest.$ac_objext
3383 test "x$ac_cv_prog_cc_c89" != "xno" && break
3384 done
3385 rm -f conftest.$ac_ext
3386 CC=$ac_save_CC
3387
3388 fi
3389 # AC_CACHE_VAL
3390 case "x$ac_cv_prog_cc_c89" in
3391 x)
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3393 $as_echo "none needed" >&6; } ;;
3394 xno)
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3396 $as_echo "unsupported" >&6; } ;;
3397 *)
3398 CC="$CC $ac_cv_prog_cc_c89"
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3400 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3401 esac
3402 if test "x$ac_cv_prog_cc_c89" != xno; then :
3403
3404 fi
3405
3406 ac_ext=c
3407 ac_cpp='$CPP $CPPFLAGS'
3408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411
3412
3413 ac_ext=c
3414 ac_cpp='$CPP $CPPFLAGS'
3415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3419 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3420 # On Suns, sometimes $CPP names a directory.
3421 if test -n "$CPP" && test -d "$CPP"; then
3422 CPP=
3423 fi
3424 if test -z "$CPP"; then
3425 if test "${ac_cv_prog_CPP+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 # Double quotes because CPP needs to be expanded
3429 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3430 do
3431 ac_preproc_ok=false
3432 for ac_c_preproc_warn_flag in '' yes
3433 do
3434 # Use a header file that comes with gcc, so configuring glibc
3435 # with a fresh cross-compiler works.
3436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3437 # <limits.h> exists even on freestanding compilers.
3438 # On the NeXT, cc -E runs the code through the compiler's parser,
3439 # not just through cpp. "Syntax error" is here to catch this case.
3440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3442 #ifdef __STDC__
3443 # include <limits.h>
3444 #else
3445 # include <assert.h>
3446 #endif
3447 Syntax error
3448 _ACEOF
3449 if ac_fn_c_try_cpp "$LINENO"; then :
3450
3451 else
3452 # Broken: fails on valid input.
3453 continue
3454 fi
3455 rm -f conftest.err conftest.$ac_ext
3456
3457 # OK, works on sane cases. Now check whether nonexistent headers
3458 # can be detected and how.
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461 #include <ac_nonexistent.h>
3462 _ACEOF
3463 if ac_fn_c_try_cpp "$LINENO"; then :
3464 # Broken: success on invalid input.
3465 continue
3466 else
3467 # Passes both tests.
3468 ac_preproc_ok=:
3469 break
3470 fi
3471 rm -f conftest.err conftest.$ac_ext
3472
3473 done
3474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3475 rm -f conftest.err conftest.$ac_ext
3476 if $ac_preproc_ok; then :
3477 break
3478 fi
3479
3480 done
3481 ac_cv_prog_CPP=$CPP
3482
3483 fi
3484 CPP=$ac_cv_prog_CPP
3485 else
3486 ac_cv_prog_CPP=$CPP
3487 fi
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3489 $as_echo "$CPP" >&6; }
3490 ac_preproc_ok=false
3491 for ac_c_preproc_warn_flag in '' yes
3492 do
3493 # Use a header file that comes with gcc, so configuring glibc
3494 # with a fresh cross-compiler works.
3495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3496 # <limits.h> exists even on freestanding compilers.
3497 # On the NeXT, cc -E runs the code through the compiler's parser,
3498 # not just through cpp. "Syntax error" is here to catch this case.
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3501 #ifdef __STDC__
3502 # include <limits.h>
3503 #else
3504 # include <assert.h>
3505 #endif
3506 Syntax error
3507 _ACEOF
3508 if ac_fn_c_try_cpp "$LINENO"; then :
3509
3510 else
3511 # Broken: fails on valid input.
3512 continue
3513 fi
3514 rm -f conftest.err conftest.$ac_ext
3515
3516 # OK, works on sane cases. Now check whether nonexistent headers
3517 # can be detected and how.
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3520 #include <ac_nonexistent.h>
3521 _ACEOF
3522 if ac_fn_c_try_cpp "$LINENO"; then :
3523 # Broken: success on invalid input.
3524 continue
3525 else
3526 # Passes both tests.
3527 ac_preproc_ok=:
3528 break
3529 fi
3530 rm -f conftest.err conftest.$ac_ext
3531
3532 done
3533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3534 rm -f conftest.err conftest.$ac_ext
3535 if $ac_preproc_ok; then :
3536
3537 else
3538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3541 See \`config.log' for more details." "$LINENO" 5; }
3542 fi
3543
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549
3550
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3552 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3553 if test "${ac_cv_path_GREP+set}" = set; then :
3554 $as_echo_n "(cached) " >&6
3555 else
3556 if test -z "$GREP"; then
3557 ac_path_GREP_found=false
3558 # Loop through the user's path and test for each of PROGNAME-LIST
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3561 do
3562 IFS=$as_save_IFS
3563 test -z "$as_dir" && as_dir=.
3564 for ac_prog in grep ggrep; do
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3567 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3568 # Check for GNU ac_path_GREP and select it if it is found.
3569 # Check for GNU $ac_path_GREP
3570 case `"$ac_path_GREP" --version 2>&1` in
3571 *GNU*)
3572 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3573 *)
3574 ac_count=0
3575 $as_echo_n 0123456789 >"conftest.in"
3576 while :
3577 do
3578 cat "conftest.in" "conftest.in" >"conftest.tmp"
3579 mv "conftest.tmp" "conftest.in"
3580 cp "conftest.in" "conftest.nl"
3581 $as_echo 'GREP' >> "conftest.nl"
3582 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3584 as_fn_arith $ac_count + 1 && ac_count=$as_val
3585 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3586 # Best one so far, save it but keep looking for a better one
3587 ac_cv_path_GREP="$ac_path_GREP"
3588 ac_path_GREP_max=$ac_count
3589 fi
3590 # 10*(2^10) chars as input seems more than enough
3591 test $ac_count -gt 10 && break
3592 done
3593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3594 esac
3595
3596 $ac_path_GREP_found && break 3
3597 done
3598 done
3599 done
3600 IFS=$as_save_IFS
3601 if test -z "$ac_cv_path_GREP"; then
3602 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3603 fi
3604 else
3605 ac_cv_path_GREP=$GREP
3606 fi
3607
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3610 $as_echo "$ac_cv_path_GREP" >&6; }
3611 GREP="$ac_cv_path_GREP"
3612
3613
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3615 $as_echo_n "checking for egrep... " >&6; }
3616 if test "${ac_cv_path_EGREP+set}" = set; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3620 then ac_cv_path_EGREP="$GREP -E"
3621 else
3622 if test -z "$EGREP"; then
3623 ac_path_EGREP_found=false
3624 # Loop through the user's path and test for each of PROGNAME-LIST
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3627 do
3628 IFS=$as_save_IFS
3629 test -z "$as_dir" && as_dir=.
3630 for ac_prog in egrep; do
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3633 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3634 # Check for GNU ac_path_EGREP and select it if it is found.
3635 # Check for GNU $ac_path_EGREP
3636 case `"$ac_path_EGREP" --version 2>&1` in
3637 *GNU*)
3638 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3639 *)
3640 ac_count=0
3641 $as_echo_n 0123456789 >"conftest.in"
3642 while :
3643 do
3644 cat "conftest.in" "conftest.in" >"conftest.tmp"
3645 mv "conftest.tmp" "conftest.in"
3646 cp "conftest.in" "conftest.nl"
3647 $as_echo 'EGREP' >> "conftest.nl"
3648 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3650 as_fn_arith $ac_count + 1 && ac_count=$as_val
3651 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3652 # Best one so far, save it but keep looking for a better one
3653 ac_cv_path_EGREP="$ac_path_EGREP"
3654 ac_path_EGREP_max=$ac_count
3655 fi
3656 # 10*(2^10) chars as input seems more than enough
3657 test $ac_count -gt 10 && break
3658 done
3659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3660 esac
3661
3662 $ac_path_EGREP_found && break 3
3663 done
3664 done
3665 done
3666 IFS=$as_save_IFS
3667 if test -z "$ac_cv_path_EGREP"; then
3668 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3669 fi
3670 else
3671 ac_cv_path_EGREP=$EGREP
3672 fi
3673
3674 fi
3675 fi
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3677 $as_echo "$ac_cv_path_EGREP" >&6; }
3678 EGREP="$ac_cv_path_EGREP"
3679
3680
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3682 $as_echo_n "checking for ANSI C header files... " >&6; }
3683 if test "${ac_cv_header_stdc+set}" = set; then :
3684 $as_echo_n "(cached) " >&6
3685 else
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688 #include <stdlib.h>
3689 #include <stdarg.h>
3690 #include <string.h>
3691 #include <float.h>
3692
3693 int
3694 main ()
3695 {
3696
3697 ;
3698 return 0;
3699 }
3700 _ACEOF
3701 if ac_fn_c_try_compile "$LINENO"; then :
3702 ac_cv_header_stdc=yes
3703 else
3704 ac_cv_header_stdc=no
3705 fi
3706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707
3708 if test $ac_cv_header_stdc = yes; then
3709 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3712 #include <string.h>
3713
3714 _ACEOF
3715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3716 $EGREP "memchr" >/dev/null 2>&1; then :
3717
3718 else
3719 ac_cv_header_stdc=no
3720 fi
3721 rm -f conftest*
3722
3723 fi
3724
3725 if test $ac_cv_header_stdc = yes; then
3726 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3729 #include <stdlib.h>
3730
3731 _ACEOF
3732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3733 $EGREP "free" >/dev/null 2>&1; then :
3734
3735 else
3736 ac_cv_header_stdc=no
3737 fi
3738 rm -f conftest*
3739
3740 fi
3741
3742 if test $ac_cv_header_stdc = yes; then
3743 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3744 if test "$cross_compiling" = yes; then :
3745 :
3746 else
3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3748 /* end confdefs.h. */
3749 #include <ctype.h>
3750 #include <stdlib.h>
3751 #if ((' ' & 0x0FF) == 0x020)
3752 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3753 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3754 #else
3755 # define ISLOWER(c) \
3756 (('a' <= (c) && (c) <= 'i') \
3757 || ('j' <= (c) && (c) <= 'r') \
3758 || ('s' <= (c) && (c) <= 'z'))
3759 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3760 #endif
3761
3762 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3763 int
3764 main ()
3765 {
3766 int i;
3767 for (i = 0; i < 256; i++)
3768 if (XOR (islower (i), ISLOWER (i))
3769 || toupper (i) != TOUPPER (i))
3770 return 2;
3771 return 0;
3772 }
3773 _ACEOF
3774 if ac_fn_c_try_run "$LINENO"; then :
3775
3776 else
3777 ac_cv_header_stdc=no
3778 fi
3779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3780 conftest.$ac_objext conftest.beam conftest.$ac_ext
3781 fi
3782
3783 fi
3784 fi
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3786 $as_echo "$ac_cv_header_stdc" >&6; }
3787 if test $ac_cv_header_stdc = yes; then
3788
3789 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3790
3791 fi
3792
3793 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3794 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3795 inttypes.h stdint.h unistd.h
3796 do :
3797 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3798 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3799 "
3800 eval as_val=\$$as_ac_Header
3801 if test "x$as_val" = x""yes; then :
3802 cat >>confdefs.h <<_ACEOF
3803 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3804 _ACEOF
3805
3806 fi
3807
3808 done
3809
3810
3811
3812 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3813 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3814 MINIX=yes
3815 else
3816 MINIX=
3817 fi
3818
3819
3820 if test "$MINIX" = yes; then
3821
3822 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3823
3824
3825 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3826
3827
3828 $as_echo "#define _MINIX 1" >>confdefs.h
3829
3830 fi
3831
3832
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3834 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3835 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3836 $as_echo_n "(cached) " >&6
3837 else
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3840
3841 # define __EXTENSIONS__ 1
3842 $ac_includes_default
3843 int
3844 main ()
3845 {
3846
3847 ;
3848 return 0;
3849 }
3850 _ACEOF
3851 if ac_fn_c_try_compile "$LINENO"; then :
3852 ac_cv_safe_to_define___extensions__=yes
3853 else
3854 ac_cv_safe_to_define___extensions__=no
3855 fi
3856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857 fi
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3859 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3860 test $ac_cv_safe_to_define___extensions__ = yes &&
3861 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3862
3863 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3864
3865 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3866
3867 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3868
3869 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3870
3871
3872
3873 libtool_VERSION=1:0:0
3874
3875
3876 # 1.11.1: Require that version of automake.
3877 # foreign: Don't require README, INSTALL, NEWS, etc.
3878 # no-define: Don't define PACKAGE and VERSION.
3879 # no-dependencies: Don't generate automatic dependencies.
3880 # (because it breaks when using bootstrap-lean, since some of the
3881 # headers are gone at "make install" time).
3882 # -Wall: Issue all automake warnings.
3883 # -Wno-portability: Don't warn about constructs supported by GNU make.
3884 # (because GCC requires GNU make anyhow).
3885 am__api_version='1.11'
3886
3887 # Find a good install program. We prefer a C program (faster),
3888 # so one script is as good as another. But avoid the broken or
3889 # incompatible versions:
3890 # SysV /etc/install, /usr/sbin/install
3891 # SunOS /usr/etc/install
3892 # IRIX /sbin/install
3893 # AIX /bin/install
3894 # AmigaOS /C/install, which installs bootblocks on floppy discs
3895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3898 # OS/2's system install, which has a completely different semantic
3899 # ./install, which can be erroneously created by make from ./install.sh.
3900 # Reject install programs that cannot install multiple files.
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3902 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3903 if test -z "$INSTALL"; then
3904 if test "${ac_cv_path_install+set}" = set; then :
3905 $as_echo_n "(cached) " >&6
3906 else
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH
3909 do
3910 IFS=$as_save_IFS
3911 test -z "$as_dir" && as_dir=.
3912 # Account for people who put trailing slashes in PATH elements.
3913 case $as_dir/ in #((
3914 ./ | .// | /[cC]/* | \
3915 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3916 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3917 /usr/ucb/* ) ;;
3918 *)
3919 # OSF1 and SCO ODT 3.0 have their own names for install.
3920 # Don't use installbsd from OSF since it installs stuff as root
3921 # by default.
3922 for ac_prog in ginstall scoinst install; do
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3925 if test $ac_prog = install &&
3926 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3927 # AIX install. It has an incompatible calling convention.
3928 :
3929 elif test $ac_prog = install &&
3930 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3931 # program-specific install script used by HP pwplus--don't use.
3932 :
3933 else
3934 rm -rf conftest.one conftest.two conftest.dir
3935 echo one > conftest.one
3936 echo two > conftest.two
3937 mkdir conftest.dir
3938 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3939 test -s conftest.one && test -s conftest.two &&
3940 test -s conftest.dir/conftest.one &&
3941 test -s conftest.dir/conftest.two
3942 then
3943 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3944 break 3
3945 fi
3946 fi
3947 fi
3948 done
3949 done
3950 ;;
3951 esac
3952
3953 done
3954 IFS=$as_save_IFS
3955
3956 rm -rf conftest.one conftest.two conftest.dir
3957
3958 fi
3959 if test "${ac_cv_path_install+set}" = set; then
3960 INSTALL=$ac_cv_path_install
3961 else
3962 # As a last resort, use the slow shell script. Don't cache a
3963 # value for INSTALL within a source directory, because that will
3964 # break other packages using the cache if that directory is
3965 # removed, or if the value is a relative name.
3966 INSTALL=$ac_install_sh
3967 fi
3968 fi
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3970 $as_echo "$INSTALL" >&6; }
3971
3972 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3973 # It thinks the first close brace ends the variable substitution.
3974 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3975
3976 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3977
3978 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3979
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3981 $as_echo_n "checking whether build environment is sane... " >&6; }
3982 # Just in case
3983 sleep 1
3984 echo timestamp > conftest.file
3985 # Reject unsafe characters in $srcdir or the absolute working directory
3986 # name. Accept space and tab only in the latter.
3987 am_lf='
3988 '
3989 case `pwd` in
3990 *[\\\"\#\$\&\'\`$am_lf]*)
3991 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3992 esac
3993 case $srcdir in
3994 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3995 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3996 esac
3997
3998 # Do `set' in a subshell so we don't clobber the current shell's
3999 # arguments. Must try -L first in case configure is actually a
4000 # symlink; some systems play weird games with the mod time of symlinks
4001 # (eg FreeBSD returns the mod time of the symlink's containing
4002 # directory).
4003 if (
4004 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4005 if test "$*" = "X"; then
4006 # -L didn't work.
4007 set X `ls -t "$srcdir/configure" conftest.file`
4008 fi
4009 rm -f conftest.file
4010 if test "$*" != "X $srcdir/configure conftest.file" \
4011 && test "$*" != "X conftest.file $srcdir/configure"; then
4012
4013 # If neither matched, then we have a broken ls. This can happen
4014 # if, for instance, CONFIG_SHELL is bash and it inherits a
4015 # broken ls alias from the environment. This has actually
4016 # happened. Such a system could not be considered "sane".
4017 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4018 alias in your environment" "$LINENO" 5
4019 fi
4020
4021 test "$2" = conftest.file
4022 )
4023 then
4024 # Ok.
4025 :
4026 else
4027 as_fn_error "newly created file is older than distributed files!
4028 Check your system clock" "$LINENO" 5
4029 fi
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4031 $as_echo "yes" >&6; }
4032 test "$program_prefix" != NONE &&
4033 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4034 # Use a double $ so make ignores it.
4035 test "$program_suffix" != NONE &&
4036 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4037 # Double any \ or $.
4038 # By default was `s,x,x', remove it if useless.
4039 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4040 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4041
4042 # expand $ac_aux_dir to an absolute path
4043 am_aux_dir=`cd $ac_aux_dir && pwd`
4044
4045 if test x"${MISSING+set}" != xset; then
4046 case $am_aux_dir in
4047 *\ * | *\ *)
4048 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4049 *)
4050 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4051 esac
4052 fi
4053 # Use eval to expand $SHELL
4054 if eval "$MISSING --run true"; then
4055 am_missing_run="$MISSING --run "
4056 else
4057 am_missing_run=
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4059 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4060 fi
4061
4062 if test x"${install_sh}" != xset; then
4063 case $am_aux_dir in
4064 *\ * | *\ *)
4065 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4066 *)
4067 install_sh="\${SHELL} $am_aux_dir/install-sh"
4068 esac
4069 fi
4070
4071 # Installed binaries are usually stripped using `strip' when the user
4072 # run `make install-strip'. However `strip' might not be the right
4073 # tool to use in cross-compilation environments, therefore Automake
4074 # will honor the `STRIP' environment variable to overrule this program.
4075 if test "$cross_compiling" != no; then
4076 if test -n "$ac_tool_prefix"; then
4077 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4078 set dummy ${ac_tool_prefix}strip; ac_word=$2
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4080 $as_echo_n "checking for $ac_word... " >&6; }
4081 if test "${ac_cv_prog_STRIP+set}" = set; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 if test -n "$STRIP"; then
4085 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4089 do
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4094 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 break 2
4097 fi
4098 done
4099 done
4100 IFS=$as_save_IFS
4101
4102 fi
4103 fi
4104 STRIP=$ac_cv_prog_STRIP
4105 if test -n "$STRIP"; then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4107 $as_echo "$STRIP" >&6; }
4108 else
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110 $as_echo "no" >&6; }
4111 fi
4112
4113
4114 fi
4115 if test -z "$ac_cv_prog_STRIP"; then
4116 ac_ct_STRIP=$STRIP
4117 # Extract the first word of "strip", so it can be a program name with args.
4118 set dummy strip; ac_word=$2
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 if test -n "$ac_ct_STRIP"; then
4125 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134 ac_cv_prog_ac_ct_STRIP="strip"
4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 break 2
4137 fi
4138 done
4139 done
4140 IFS=$as_save_IFS
4141
4142 fi
4143 fi
4144 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4145 if test -n "$ac_ct_STRIP"; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4147 $as_echo "$ac_ct_STRIP" >&6; }
4148 else
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4151 fi
4152
4153 if test "x$ac_ct_STRIP" = x; then
4154 STRIP=":"
4155 else
4156 case $cross_compiling:$ac_tool_warned in
4157 yes:)
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4160 ac_tool_warned=yes ;;
4161 esac
4162 STRIP=$ac_ct_STRIP
4163 fi
4164 else
4165 STRIP="$ac_cv_prog_STRIP"
4166 fi
4167
4168 fi
4169 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4170
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4172 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4173 if test -z "$MKDIR_P"; then
4174 if test "${ac_cv_path_mkdir+set}" = set; then :
4175 $as_echo_n "(cached) " >&6
4176 else
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4179 do
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
4182 for ac_prog in mkdir gmkdir; do
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4185 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4186 'mkdir (GNU coreutils) '* | \
4187 'mkdir (coreutils) '* | \
4188 'mkdir (fileutils) '4.1*)
4189 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4190 break 3;;
4191 esac
4192 done
4193 done
4194 done
4195 IFS=$as_save_IFS
4196
4197 fi
4198
4199 if test "${ac_cv_path_mkdir+set}" = set; then
4200 MKDIR_P="$ac_cv_path_mkdir -p"
4201 else
4202 # As a last resort, use the slow shell script. Don't cache a
4203 # value for MKDIR_P within a source directory, because that will
4204 # break other packages using the cache if that directory is
4205 # removed, or if the value is a relative name.
4206 test -d ./--version && rmdir ./--version
4207 MKDIR_P="$ac_install_sh -d"
4208 fi
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4211 $as_echo "$MKDIR_P" >&6; }
4212
4213 mkdir_p="$MKDIR_P"
4214 case $mkdir_p in
4215 [\\/$]* | ?:[\\/]*) ;;
4216 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4217 esac
4218
4219 for ac_prog in gawk mawk nawk awk
4220 do
4221 # Extract the first word of "$ac_prog", so it can be a program name with args.
4222 set dummy $ac_prog; ac_word=$2
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224 $as_echo_n "checking for $ac_word... " >&6; }
4225 if test "${ac_cv_prog_AWK+set}" = set; then :
4226 $as_echo_n "(cached) " >&6
4227 else
4228 if test -n "$AWK"; then
4229 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4230 else
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4233 do
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238 ac_cv_prog_AWK="$ac_prog"
4239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 break 2
4241 fi
4242 done
4243 done
4244 IFS=$as_save_IFS
4245
4246 fi
4247 fi
4248 AWK=$ac_cv_prog_AWK
4249 if test -n "$AWK"; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4251 $as_echo "$AWK" >&6; }
4252 else
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4255 fi
4256
4257
4258 test -n "$AWK" && break
4259 done
4260
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4262 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4263 set x ${MAKE-make}
4264 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4265 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 cat >conftest.make <<\_ACEOF
4269 SHELL = /bin/sh
4270 all:
4271 @echo '@@@%%%=$(MAKE)=@@@%%%'
4272 _ACEOF
4273 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4274 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4275 *@@@%%%=?*=@@@%%%*)
4276 eval ac_cv_prog_make_${ac_make}_set=yes;;
4277 *)
4278 eval ac_cv_prog_make_${ac_make}_set=no;;
4279 esac
4280 rm -f conftest.make
4281 fi
4282 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4284 $as_echo "yes" >&6; }
4285 SET_MAKE=
4286 else
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4289 SET_MAKE="MAKE=${MAKE-make}"
4290 fi
4291
4292 rm -rf .tst 2>/dev/null
4293 mkdir .tst 2>/dev/null
4294 if test -d .tst; then
4295 am__leading_dot=.
4296 else
4297 am__leading_dot=_
4298 fi
4299 rmdir .tst 2>/dev/null
4300
4301 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4302 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4303 # is not polluted with repeated "-I."
4304 am__isrc=' -I$(srcdir)'
4305 # test to see if srcdir already configured
4306 if test -f $srcdir/config.status; then
4307 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4308 fi
4309 fi
4310
4311 # test whether we have cygpath
4312 if test -z "$CYGPATH_W"; then
4313 if (cygpath --version) >/dev/null 2>/dev/null; then
4314 CYGPATH_W='cygpath -w'
4315 else
4316 CYGPATH_W=echo
4317 fi
4318 fi
4319
4320
4321 # Define the identity of the package.
4322 PACKAGE='libbacktrace'
4323 VERSION='version-unused'
4324
4325
4326 # Some tools Automake needs.
4327
4328 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4329
4330
4331 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4332
4333
4334 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4335
4336
4337 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4338
4339
4340 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4341
4342 # We need awk for the "check" target. The system "awk" is bad on
4343 # some platforms.
4344 # Always define AMTAR for backward compatibility. Yes, it's still used
4345 # in the wild :-( We should find a proper way to deprecate it ...
4346 AMTAR='$${TAR-tar}'
4347
4348 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4349
4350
4351
4352
4353
4354
4355
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4357 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4358 # Check whether --enable-maintainer-mode was given.
4359 if test "${enable_maintainer_mode+set}" = set; then :
4360 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4361 else
4362 USE_MAINTAINER_MODE=no
4363 fi
4364
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4366 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4367 if test $USE_MAINTAINER_MODE = yes; then
4368 MAINTAINER_MODE_TRUE=
4369 MAINTAINER_MODE_FALSE='#'
4370 else
4371 MAINTAINER_MODE_TRUE='#'
4372 MAINTAINER_MODE_FALSE=
4373 fi
4374
4375 MAINT=$MAINTAINER_MODE_TRUE
4376
4377
4378
4379
4380 # Check whether --with-target-subdir was given.
4381 if test "${with_target_subdir+set}" = set; then :
4382 withval=$with_target_subdir;
4383 fi
4384
4385
4386 # We must force CC to /not/ be precious variables; otherwise
4387 # the wrong, non-multilib-adjusted value will be used in multilibs.
4388 # As a side effect, we have to subst CFLAGS ourselves.
4389
4390
4391 ac_ext=c
4392 ac_cpp='$CPP $CPPFLAGS'
4393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396 if test -n "$ac_tool_prefix"; then
4397 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4398 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400 $as_echo_n "checking for $ac_word... " >&6; }
4401 if test "${ac_cv_prog_CC+set}" = set; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 if test -n "$CC"; then
4405 ac_cv_prog_CC="$CC" # Let the user override the test.
4406 else
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4409 do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4414 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4417 fi
4418 done
4419 done
4420 IFS=$as_save_IFS
4421
4422 fi
4423 fi
4424 CC=$ac_cv_prog_CC
4425 if test -n "$CC"; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4427 $as_echo "$CC" >&6; }
4428 else
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4431 fi
4432
4433
4434 fi
4435 if test -z "$ac_cv_prog_CC"; then
4436 ac_ct_CC=$CC
4437 # Extract the first word of "gcc", so it can be a program name with args.
4438 set dummy gcc; ac_word=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 if test -n "$ac_ct_CC"; then
4445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4446 else
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4449 do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454 ac_cv_prog_ac_ct_CC="gcc"
4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 break 2
4457 fi
4458 done
4459 done
4460 IFS=$as_save_IFS
4461
4462 fi
4463 fi
4464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4465 if test -n "$ac_ct_CC"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4467 $as_echo "$ac_ct_CC" >&6; }
4468 else
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470 $as_echo "no" >&6; }
4471 fi
4472
4473 if test "x$ac_ct_CC" = x; then
4474 CC=""
4475 else
4476 case $cross_compiling:$ac_tool_warned in
4477 yes:)
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4480 ac_tool_warned=yes ;;
4481 esac
4482 CC=$ac_ct_CC
4483 fi
4484 else
4485 CC="$ac_cv_prog_CC"
4486 fi
4487
4488 if test -z "$CC"; then
4489 if test -n "$ac_tool_prefix"; then
4490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4491 set dummy ${ac_tool_prefix}cc; ac_word=$2
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4493 $as_echo_n "checking for $ac_word... " >&6; }
4494 if test "${ac_cv_prog_CC+set}" = set; then :
4495 $as_echo_n "(cached) " >&6
4496 else
4497 if test -n "$CC"; then
4498 ac_cv_prog_CC="$CC" # Let the user override the test.
4499 else
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH
4502 do
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507 ac_cv_prog_CC="${ac_tool_prefix}cc"
4508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 break 2
4510 fi
4511 done
4512 done
4513 IFS=$as_save_IFS
4514
4515 fi
4516 fi
4517 CC=$ac_cv_prog_CC
4518 if test -n "$CC"; then
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4520 $as_echo "$CC" >&6; }
4521 else
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4523 $as_echo "no" >&6; }
4524 fi
4525
4526
4527 fi
4528 fi
4529 if test -z "$CC"; then
4530 # Extract the first word of "cc", so it can be a program name with args.
4531 set dummy cc; ac_word=$2
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533 $as_echo_n "checking for $ac_word... " >&6; }
4534 if test "${ac_cv_prog_CC+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
4536 else
4537 if test -n "$CC"; then
4538 ac_cv_prog_CC="$CC" # Let the user override the test.
4539 else
4540 ac_prog_rejected=no
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4543 do
4544 IFS=$as_save_IFS
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4549 ac_prog_rejected=yes
4550 continue
4551 fi
4552 ac_cv_prog_CC="cc"
4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 break 2
4555 fi
4556 done
4557 done
4558 IFS=$as_save_IFS
4559
4560 if test $ac_prog_rejected = yes; then
4561 # We found a bogon in the path, so make sure we never use it.
4562 set dummy $ac_cv_prog_CC
4563 shift
4564 if test $# != 0; then
4565 # We chose a different compiler from the bogus one.
4566 # However, it has the same basename, so the bogon will be chosen
4567 # first if we set CC to just the basename; use the full file name.
4568 shift
4569 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4570 fi
4571 fi
4572 fi
4573 fi
4574 CC=$ac_cv_prog_CC
4575 if test -n "$CC"; then
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4577 $as_echo "$CC" >&6; }
4578 else
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4581 fi
4582
4583
4584 fi
4585 if test -z "$CC"; then
4586 if test -n "$ac_tool_prefix"; then
4587 for ac_prog in cl.exe
4588 do
4589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4590 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if test "${ac_cv_prog_CC+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 if test -n "$CC"; then
4597 ac_cv_prog_CC="$CC" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4601 do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4609 fi
4610 done
4611 done
4612 IFS=$as_save_IFS
4613
4614 fi
4615 fi
4616 CC=$ac_cv_prog_CC
4617 if test -n "$CC"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4619 $as_echo "$CC" >&6; }
4620 else
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4623 fi
4624
4625
4626 test -n "$CC" && break
4627 done
4628 fi
4629 if test -z "$CC"; then
4630 ac_ct_CC=$CC
4631 for ac_prog in cl.exe
4632 do
4633 # Extract the first word of "$ac_prog", so it can be a program name with args.
4634 set dummy $ac_prog; ac_word=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 if test -n "$ac_ct_CC"; then
4641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4645 do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4650 ac_cv_prog_ac_ct_CC="$ac_prog"
4651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4653 fi
4654 done
4655 done
4656 IFS=$as_save_IFS
4657
4658 fi
4659 fi
4660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4661 if test -n "$ac_ct_CC"; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4663 $as_echo "$ac_ct_CC" >&6; }
4664 else
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4667 fi
4668
4669
4670 test -n "$ac_ct_CC" && break
4671 done
4672
4673 if test "x$ac_ct_CC" = x; then
4674 CC=""
4675 else
4676 case $cross_compiling:$ac_tool_warned in
4677 yes:)
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4680 ac_tool_warned=yes ;;
4681 esac
4682 CC=$ac_ct_CC
4683 fi
4684 fi
4685
4686 fi
4687
4688
4689 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4691 as_fn_error "no acceptable C compiler found in \$PATH
4692 See \`config.log' for more details." "$LINENO" 5; }
4693
4694 # Provide some information about the compiler.
4695 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4696 set X $ac_compile
4697 ac_compiler=$2
4698 for ac_option in --version -v -V -qversion; do
4699 { { ac_try="$ac_compiler $ac_option >&5"
4700 case "(($ac_try" in
4701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702 *) ac_try_echo=$ac_try;;
4703 esac
4704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4705 $as_echo "$ac_try_echo"; } >&5
4706 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4707 ac_status=$?
4708 if test -s conftest.err; then
4709 sed '10a\
4710 ... rest of stderr output deleted ...
4711 10q' conftest.err >conftest.er1
4712 cat conftest.er1 >&5
4713 rm -f conftest.er1 conftest.err
4714 fi
4715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4716 test $ac_status = 0; }
4717 done
4718
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4720 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4721 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4722 $as_echo_n "(cached) " >&6
4723 else
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4726
4727 int
4728 main ()
4729 {
4730 #ifndef __GNUC__
4731 choke me
4732 #endif
4733
4734 ;
4735 return 0;
4736 }
4737 _ACEOF
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739 ac_compiler_gnu=yes
4740 else
4741 ac_compiler_gnu=no
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4745
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4748 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4749 if test $ac_compiler_gnu = yes; then
4750 GCC=yes
4751 else
4752 GCC=
4753 fi
4754 ac_test_CFLAGS=${CFLAGS+set}
4755 ac_save_CFLAGS=$CFLAGS
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4757 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4758 if test "${ac_cv_prog_cc_g+set}" = set; then :
4759 $as_echo_n "(cached) " >&6
4760 else
4761 ac_save_c_werror_flag=$ac_c_werror_flag
4762 ac_c_werror_flag=yes
4763 ac_cv_prog_cc_g=no
4764 CFLAGS="-g"
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4767
4768 int
4769 main ()
4770 {
4771
4772 ;
4773 return 0;
4774 }
4775 _ACEOF
4776 if ac_fn_c_try_compile "$LINENO"; then :
4777 ac_cv_prog_cc_g=yes
4778 else
4779 CFLAGS=""
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4782
4783 int
4784 main ()
4785 {
4786
4787 ;
4788 return 0;
4789 }
4790 _ACEOF
4791 if ac_fn_c_try_compile "$LINENO"; then :
4792
4793 else
4794 ac_c_werror_flag=$ac_save_c_werror_flag
4795 CFLAGS="-g"
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4798
4799 int
4800 main ()
4801 {
4802
4803 ;
4804 return 0;
4805 }
4806 _ACEOF
4807 if ac_fn_c_try_compile "$LINENO"; then :
4808 ac_cv_prog_cc_g=yes
4809 fi
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 fi
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4813 fi
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 ac_c_werror_flag=$ac_save_c_werror_flag
4816 fi
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4818 $as_echo "$ac_cv_prog_cc_g" >&6; }
4819 if test "$ac_test_CFLAGS" = set; then
4820 CFLAGS=$ac_save_CFLAGS
4821 elif test $ac_cv_prog_cc_g = yes; then
4822 if test "$GCC" = yes; then
4823 CFLAGS="-g -O2"
4824 else
4825 CFLAGS="-g"
4826 fi
4827 else
4828 if test "$GCC" = yes; then
4829 CFLAGS="-O2"
4830 else
4831 CFLAGS=
4832 fi
4833 fi
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4835 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4836 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
4838 else
4839 ac_cv_prog_cc_c89=no
4840 ac_save_CC=$CC
4841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4842 /* end confdefs.h. */
4843 #include <stdarg.h>
4844 #include <stdio.h>
4845 #include <sys/types.h>
4846 #include <sys/stat.h>
4847 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4848 struct buf { int x; };
4849 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4850 static char *e (p, i)
4851 char **p;
4852 int i;
4853 {
4854 return p[i];
4855 }
4856 static char *f (char * (*g) (char **, int), char **p, ...)
4857 {
4858 char *s;
4859 va_list v;
4860 va_start (v,p);
4861 s = g (p, va_arg (v,int));
4862 va_end (v);
4863 return s;
4864 }
4865
4866 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4867 function prototypes and stuff, but not '\xHH' hex character constants.
4868 These don't provoke an error unfortunately, instead are silently treated
4869 as 'x'. The following induces an error, until -std is added to get
4870 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4871 array size at least. It's necessary to write '\x00'==0 to get something
4872 that's true only with -std. */
4873 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4874
4875 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4876 inside strings and character constants. */
4877 #define FOO(x) 'x'
4878 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4879
4880 int test (int i, double x);
4881 struct s1 {int (*f) (int a);};
4882 struct s2 {int (*f) (double a);};
4883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4884 int argc;
4885 char **argv;
4886 int
4887 main ()
4888 {
4889 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4890 ;
4891 return 0;
4892 }
4893 _ACEOF
4894 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4895 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4896 do
4897 CC="$ac_save_CC $ac_arg"
4898 if ac_fn_c_try_compile "$LINENO"; then :
4899 ac_cv_prog_cc_c89=$ac_arg
4900 fi
4901 rm -f core conftest.err conftest.$ac_objext
4902 test "x$ac_cv_prog_cc_c89" != "xno" && break
4903 done
4904 rm -f conftest.$ac_ext
4905 CC=$ac_save_CC
4906
4907 fi
4908 # AC_CACHE_VAL
4909 case "x$ac_cv_prog_cc_c89" in
4910 x)
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4912 $as_echo "none needed" >&6; } ;;
4913 xno)
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4915 $as_echo "unsupported" >&6; } ;;
4916 *)
4917 CC="$CC $ac_cv_prog_cc_c89"
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4919 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4920 esac
4921 if test "x$ac_cv_prog_cc_c89" != xno; then :
4922
4923 fi
4924
4925 ac_ext=c
4926 ac_cpp='$CPP $CPPFLAGS'
4927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930
4931
4932
4933
4934
4935 if test -n "$ac_tool_prefix"; then
4936 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4937 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 if test -n "$RANLIB"; then
4944 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4945 else
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4953 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 break 2
4956 fi
4957 done
4958 done
4959 IFS=$as_save_IFS
4960
4961 fi
4962 fi
4963 RANLIB=$ac_cv_prog_RANLIB
4964 if test -n "$RANLIB"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4966 $as_echo "$RANLIB" >&6; }
4967 else
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4970 fi
4971
4972
4973 fi
4974 if test -z "$ac_cv_prog_RANLIB"; then
4975 ac_ct_RANLIB=$RANLIB
4976 # Extract the first word of "ranlib", so it can be a program name with args.
4977 set dummy ranlib; ac_word=$2
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 if test -n "$ac_ct_RANLIB"; then
4984 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4985 else
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4988 do
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993 ac_cv_prog_ac_ct_RANLIB="ranlib"
4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4996 fi
4997 done
4998 done
4999 IFS=$as_save_IFS
5000
5001 fi
5002 fi
5003 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5004 if test -n "$ac_ct_RANLIB"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5006 $as_echo "$ac_ct_RANLIB" >&6; }
5007 else
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5010 fi
5011
5012 if test "x$ac_ct_RANLIB" = x; then
5013 RANLIB=":"
5014 else
5015 case $cross_compiling:$ac_tool_warned in
5016 yes:)
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5019 ac_tool_warned=yes ;;
5020 esac
5021 RANLIB=$ac_ct_RANLIB
5022 fi
5023 else
5024 RANLIB="$ac_cv_prog_RANLIB"
5025 fi
5026
5027
5028 for ac_prog in gawk mawk nawk awk
5029 do
5030 # Extract the first word of "$ac_prog", so it can be a program name with args.
5031 set dummy $ac_prog; ac_word=$2
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033 $as_echo_n "checking for $ac_word... " >&6; }
5034 if test "${ac_cv_prog_AWK+set}" = set; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 if test -n "$AWK"; then
5038 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5039 else
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043 IFS=$as_save_IFS
5044 test -z "$as_dir" && as_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5047 ac_cv_prog_AWK="$ac_prog"
5048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 break 2
5050 fi
5051 done
5052 done
5053 IFS=$as_save_IFS
5054
5055 fi
5056 fi
5057 AWK=$ac_cv_prog_AWK
5058 if test -n "$AWK"; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5060 $as_echo "$AWK" >&6; }
5061 else
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 $as_echo "no" >&6; }
5064 fi
5065
5066
5067 test -n "$AWK" && break
5068 done
5069
5070 case "$AWK" in
5071 "") as_fn_error "can't build without awk" "$LINENO" 5 ;;
5072 esac
5073
5074 case `pwd` in
5075 *\ * | *\ *)
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5077 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5078 esac
5079
5080
5081
5082 macro_version='2.2.7a'
5083 macro_revision='1.3134'
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097 ltmain="$ac_aux_dir/ltmain.sh"
5098
5099 # Backslashify metacharacters that are still active within
5100 # double-quoted strings.
5101 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5102
5103 # Same as above, but do not quote variable references.
5104 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5105
5106 # Sed substitution to delay expansion of an escaped shell variable in a
5107 # double_quote_subst'ed string.
5108 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5109
5110 # Sed substitution to delay expansion of an escaped single quote.
5111 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5112
5113 # Sed substitution to avoid accidental globbing in evaled expressions
5114 no_glob_subst='s/\*/\\\*/g'
5115
5116 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5117 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5118 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5119
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5121 $as_echo_n "checking how to print strings... " >&6; }
5122 # Test print first, because it will be a builtin if present.
5123 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5124 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5125 ECHO='print -r --'
5126 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5127 ECHO='printf %s\n'
5128 else
5129 # Use this function as a fallback that always works.
5130 func_fallback_echo ()
5131 {
5132 eval 'cat <<_LTECHO_EOF
5133 $1
5134 _LTECHO_EOF'
5135 }
5136 ECHO='func_fallback_echo'
5137 fi
5138
5139 # func_echo_all arg...
5140 # Invoke $ECHO with all args, space-separated.
5141 func_echo_all ()
5142 {
5143 $ECHO ""
5144 }
5145
5146 case "$ECHO" in
5147 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5148 $as_echo "printf" >&6; } ;;
5149 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5150 $as_echo "print -r" >&6; } ;;
5151 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5152 $as_echo "cat" >&6; } ;;
5153 esac
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5169 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5170 if test "${ac_cv_path_SED+set}" = set; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5174 for ac_i in 1 2 3 4 5 6 7; do
5175 ac_script="$ac_script$as_nl$ac_script"
5176 done
5177 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5178 { ac_script=; unset ac_script;}
5179 if test -z "$SED"; then
5180 ac_path_SED_found=false
5181 # Loop through the user's path and test for each of PROGNAME-LIST
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5184 do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_prog in sed gsed; do
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5190 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5191 # Check for GNU ac_path_SED and select it if it is found.
5192 # Check for GNU $ac_path_SED
5193 case `"$ac_path_SED" --version 2>&1` in
5194 *GNU*)
5195 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5196 *)
5197 ac_count=0
5198 $as_echo_n 0123456789 >"conftest.in"
5199 while :
5200 do
5201 cat "conftest.in" "conftest.in" >"conftest.tmp"
5202 mv "conftest.tmp" "conftest.in"
5203 cp "conftest.in" "conftest.nl"
5204 $as_echo '' >> "conftest.nl"
5205 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5206 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5207 as_fn_arith $ac_count + 1 && ac_count=$as_val
5208 if test $ac_count -gt ${ac_path_SED_max-0}; then
5209 # Best one so far, save it but keep looking for a better one
5210 ac_cv_path_SED="$ac_path_SED"
5211 ac_path_SED_max=$ac_count
5212 fi
5213 # 10*(2^10) chars as input seems more than enough
5214 test $ac_count -gt 10 && break
5215 done
5216 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5217 esac
5218
5219 $ac_path_SED_found && break 3
5220 done
5221 done
5222 done
5223 IFS=$as_save_IFS
5224 if test -z "$ac_cv_path_SED"; then
5225 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5226 fi
5227 else
5228 ac_cv_path_SED=$SED
5229 fi
5230
5231 fi
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5233 $as_echo "$ac_cv_path_SED" >&6; }
5234 SED="$ac_cv_path_SED"
5235 rm -f conftest.sed
5236
5237 test -z "$SED" && SED=sed
5238 Xsed="$SED -e 1s/^X//"
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5251 $as_echo_n "checking for fgrep... " >&6; }
5252 if test "${ac_cv_path_FGREP+set}" = set; then :
5253 $as_echo_n "(cached) " >&6
5254 else
5255 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5256 then ac_cv_path_FGREP="$GREP -F"
5257 else
5258 if test -z "$FGREP"; then
5259 ac_path_FGREP_found=false
5260 # Loop through the user's path and test for each of PROGNAME-LIST
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5263 do
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_prog in fgrep; do
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5269 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5270 # Check for GNU ac_path_FGREP and select it if it is found.
5271 # Check for GNU $ac_path_FGREP
5272 case `"$ac_path_FGREP" --version 2>&1` in
5273 *GNU*)
5274 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5275 *)
5276 ac_count=0
5277 $as_echo_n 0123456789 >"conftest.in"
5278 while :
5279 do
5280 cat "conftest.in" "conftest.in" >"conftest.tmp"
5281 mv "conftest.tmp" "conftest.in"
5282 cp "conftest.in" "conftest.nl"
5283 $as_echo 'FGREP' >> "conftest.nl"
5284 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5285 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5286 as_fn_arith $ac_count + 1 && ac_count=$as_val
5287 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5288 # Best one so far, save it but keep looking for a better one
5289 ac_cv_path_FGREP="$ac_path_FGREP"
5290 ac_path_FGREP_max=$ac_count
5291 fi
5292 # 10*(2^10) chars as input seems more than enough
5293 test $ac_count -gt 10 && break
5294 done
5295 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5296 esac
5297
5298 $ac_path_FGREP_found && break 3
5299 done
5300 done
5301 done
5302 IFS=$as_save_IFS
5303 if test -z "$ac_cv_path_FGREP"; then
5304 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5305 fi
5306 else
5307 ac_cv_path_FGREP=$FGREP
5308 fi
5309
5310 fi
5311 fi
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5313 $as_echo "$ac_cv_path_FGREP" >&6; }
5314 FGREP="$ac_cv_path_FGREP"
5315
5316
5317 test -z "$GREP" && GREP=grep
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337 # Check whether --with-gnu-ld was given.
5338 if test "${with_gnu_ld+set}" = set; then :
5339 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5340 else
5341 with_gnu_ld=no
5342 fi
5343
5344 ac_prog=ld
5345 if test "$GCC" = yes; then
5346 # Check if gcc -print-prog-name=ld gives a path.
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5348 $as_echo_n "checking for ld used by $CC... " >&6; }
5349 case $host in
5350 *-*-mingw*)
5351 # gcc leaves a trailing carriage return which upsets mingw
5352 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5353 *)
5354 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5355 esac
5356 case $ac_prog in
5357 # Accept absolute paths.
5358 [\\/]* | ?:[\\/]*)
5359 re_direlt='/[^/][^/]*/\.\./'
5360 # Canonicalize the pathname of ld
5361 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5362 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5363 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5364 done
5365 test -z "$LD" && LD="$ac_prog"
5366 ;;
5367 "")
5368 # If it fails, then pretend we aren't using GCC.
5369 ac_prog=ld
5370 ;;
5371 *)
5372 # If it is relative, then search for the first ld in PATH.
5373 with_gnu_ld=unknown
5374 ;;
5375 esac
5376 elif test "$with_gnu_ld" = yes; then
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5378 $as_echo_n "checking for GNU ld... " >&6; }
5379 else
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5381 $as_echo_n "checking for non-GNU ld... " >&6; }
5382 fi
5383 if test "${lt_cv_path_LD+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 if test -z "$LD"; then
5387 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5388 for ac_dir in $PATH; do
5389 IFS="$lt_save_ifs"
5390 test -z "$ac_dir" && ac_dir=.
5391 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5392 lt_cv_path_LD="$ac_dir/$ac_prog"
5393 # Check to see if the program is GNU ld. I'd rather use --version,
5394 # but apparently some variants of GNU ld only accept -v.
5395 # Break only if it was the GNU/non-GNU ld that we prefer.
5396 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5397 *GNU* | *'with BFD'*)
5398 test "$with_gnu_ld" != no && break
5399 ;;
5400 *)
5401 test "$with_gnu_ld" != yes && break
5402 ;;
5403 esac
5404 fi
5405 done
5406 IFS="$lt_save_ifs"
5407 else
5408 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5409 fi
5410 fi
5411
5412 LD="$lt_cv_path_LD"
5413 if test -n "$LD"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5415 $as_echo "$LD" >&6; }
5416 else
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5419 fi
5420 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5422 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5423 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5424 $as_echo_n "(cached) " >&6
5425 else
5426 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5427 case `$LD -v 2>&1 </dev/null` in
5428 *GNU* | *'with BFD'*)
5429 lt_cv_prog_gnu_ld=yes
5430 ;;
5431 *)
5432 lt_cv_prog_gnu_ld=no
5433 ;;
5434 esac
5435 fi
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5437 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5438 with_gnu_ld=$lt_cv_prog_gnu_ld
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5449 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5450 if test "${lt_cv_path_NM+set}" = set; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 if test -n "$NM"; then
5454 # Let the user override the test.
5455 lt_cv_path_NM="$NM"
5456 else
5457 lt_nm_to_check="${ac_tool_prefix}nm"
5458 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5459 lt_nm_to_check="$lt_nm_to_check nm"
5460 fi
5461 for lt_tmp_nm in $lt_nm_to_check; do
5462 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5463 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5464 IFS="$lt_save_ifs"
5465 test -z "$ac_dir" && ac_dir=.
5466 tmp_nm="$ac_dir/$lt_tmp_nm"
5467 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5468 # Check to see if the nm accepts a BSD-compat flag.
5469 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5470 # nm: unknown option "B" ignored
5471 # Tru64's nm complains that /dev/null is an invalid object file
5472 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5473 */dev/null* | *'Invalid file or object type'*)
5474 lt_cv_path_NM="$tmp_nm -B"
5475 break
5476 ;;
5477 *)
5478 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5479 */dev/null*)
5480 lt_cv_path_NM="$tmp_nm -p"
5481 break
5482 ;;
5483 *)
5484 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5485 continue # so that we can try to find one that supports BSD flags
5486 ;;
5487 esac
5488 ;;
5489 esac
5490 fi
5491 done
5492 IFS="$lt_save_ifs"
5493 done
5494 : ${lt_cv_path_NM=no}
5495 fi
5496 fi
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5498 $as_echo "$lt_cv_path_NM" >&6; }
5499 if test "$lt_cv_path_NM" != "no"; then
5500 NM="$lt_cv_path_NM"
5501 else
5502 # Didn't find any BSD compatible name lister, look for dumpbin.
5503 if test -n "$DUMPBIN"; then :
5504 # Let the user override the test.
5505 else
5506 if test -n "$ac_tool_prefix"; then
5507 for ac_prog in dumpbin "link -dump"
5508 do
5509 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5510 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 if test -n "$DUMPBIN"; then
5517 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5518 else
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 for as_dir in $PATH
5521 do
5522 IFS=$as_save_IFS
5523 test -z "$as_dir" && as_dir=.
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5526 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 break 2
5529 fi
5530 done
5531 done
5532 IFS=$as_save_IFS
5533
5534 fi
5535 fi
5536 DUMPBIN=$ac_cv_prog_DUMPBIN
5537 if test -n "$DUMPBIN"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5539 $as_echo "$DUMPBIN" >&6; }
5540 else
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5543 fi
5544
5545
5546 test -n "$DUMPBIN" && break
5547 done
5548 fi
5549 if test -z "$DUMPBIN"; then
5550 ac_ct_DUMPBIN=$DUMPBIN
5551 for ac_prog in dumpbin "link -dump"
5552 do
5553 # Extract the first word of "$ac_prog", so it can be a program name with args.
5554 set dummy $ac_prog; ac_word=$2
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 if test -n "$ac_ct_DUMPBIN"; then
5561 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5562 else
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5565 do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5570 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5573 fi
5574 done
5575 done
5576 IFS=$as_save_IFS
5577
5578 fi
5579 fi
5580 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5581 if test -n "$ac_ct_DUMPBIN"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5583 $as_echo "$ac_ct_DUMPBIN" >&6; }
5584 else
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5587 fi
5588
5589
5590 test -n "$ac_ct_DUMPBIN" && break
5591 done
5592
5593 if test "x$ac_ct_DUMPBIN" = x; then
5594 DUMPBIN=":"
5595 else
5596 case $cross_compiling:$ac_tool_warned in
5597 yes:)
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5600 ac_tool_warned=yes ;;
5601 esac
5602 DUMPBIN=$ac_ct_DUMPBIN
5603 fi
5604 fi
5605
5606 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5607 *COFF*)
5608 DUMPBIN="$DUMPBIN -symbols"
5609 ;;
5610 *)
5611 DUMPBIN=:
5612 ;;
5613 esac
5614 fi
5615
5616 if test "$DUMPBIN" != ":"; then
5617 NM="$DUMPBIN"
5618 fi
5619 fi
5620 test -z "$NM" && NM=nm
5621
5622
5623
5624
5625
5626
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5628 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5629 if test "${lt_cv_nm_interface+set}" = set; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 lt_cv_nm_interface="BSD nm"
5633 echo "int some_variable = 0;" > conftest.$ac_ext
5634 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5635 (eval "$ac_compile" 2>conftest.err)
5636 cat conftest.err >&5
5637 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5638 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5639 cat conftest.err >&5
5640 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5641 cat conftest.out >&5
5642 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5643 lt_cv_nm_interface="MS dumpbin"
5644 fi
5645 rm -f conftest*
5646 fi
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5648 $as_echo "$lt_cv_nm_interface" >&6; }
5649
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5651 $as_echo_n "checking whether ln -s works... " >&6; }
5652 LN_S=$as_ln_s
5653 if test "$LN_S" = "ln -s"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5655 $as_echo "yes" >&6; }
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5658 $as_echo "no, using $LN_S" >&6; }
5659 fi
5660
5661 # find the maximum length of command line arguments
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5663 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5664 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 i=0
5668 teststring="ABCD"
5669
5670 case $build_os in
5671 msdosdjgpp*)
5672 # On DJGPP, this test can blow up pretty badly due to problems in libc
5673 # (any single argument exceeding 2000 bytes causes a buffer overrun
5674 # during glob expansion). Even if it were fixed, the result of this
5675 # check would be larger than it should be.
5676 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5677 ;;
5678
5679 gnu*)
5680 # Under GNU Hurd, this test is not required because there is
5681 # no limit to the length of command line arguments.
5682 # Libtool will interpret -1 as no limit whatsoever
5683 lt_cv_sys_max_cmd_len=-1;
5684 ;;
5685
5686 cygwin* | mingw* | cegcc*)
5687 # On Win9x/ME, this test blows up -- it succeeds, but takes
5688 # about 5 minutes as the teststring grows exponentially.
5689 # Worse, since 9x/ME are not pre-emptively multitasking,
5690 # you end up with a "frozen" computer, even though with patience
5691 # the test eventually succeeds (with a max line length of 256k).
5692 # Instead, let's just punt: use the minimum linelength reported by
5693 # all of the supported platforms: 8192 (on NT/2K/XP).
5694 lt_cv_sys_max_cmd_len=8192;
5695 ;;
5696
5697 mint*)
5698 # On MiNT this can take a long time and run out of memory.
5699 lt_cv_sys_max_cmd_len=8192;
5700 ;;
5701
5702 amigaos*)
5703 # On AmigaOS with pdksh, this test takes hours, literally.
5704 # So we just punt and use a minimum line length of 8192.
5705 lt_cv_sys_max_cmd_len=8192;
5706 ;;
5707
5708 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5709 # This has been around since 386BSD, at least. Likely further.
5710 if test -x /sbin/sysctl; then
5711 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5712 elif test -x /usr/sbin/sysctl; then
5713 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5714 else
5715 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5716 fi
5717 # And add a safety zone
5718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5720 ;;
5721
5722 interix*)
5723 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5724 lt_cv_sys_max_cmd_len=196608
5725 ;;
5726
5727 osf*)
5728 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5729 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5730 # nice to cause kernel panics so lets avoid the loop below.
5731 # First set a reasonable default.
5732 lt_cv_sys_max_cmd_len=16384
5733 #
5734 if test -x /sbin/sysconfig; then
5735 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5736 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5737 esac
5738 fi
5739 ;;
5740 sco3.2v5*)
5741 lt_cv_sys_max_cmd_len=102400
5742 ;;
5743 sysv5* | sco5v6* | sysv4.2uw2*)
5744 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5745 if test -n "$kargmax"; then
5746 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5747 else
5748 lt_cv_sys_max_cmd_len=32768
5749 fi
5750 ;;
5751 *)
5752 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5753 if test -n "$lt_cv_sys_max_cmd_len"; then
5754 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5755 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5756 else
5757 # Make teststring a little bigger before we do anything with it.
5758 # a 1K string should be a reasonable start.
5759 for i in 1 2 3 4 5 6 7 8 ; do
5760 teststring=$teststring$teststring
5761 done
5762 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5763 # If test is not a shell built-in, we'll probably end up computing a
5764 # maximum length that is only half of the actual maximum length, but
5765 # we can't tell.
5766 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5767 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5768 test $i != 17 # 1/2 MB should be enough
5769 do
5770 i=`expr $i + 1`
5771 teststring=$teststring$teststring
5772 done
5773 # Only check the string length outside the loop.
5774 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5775 teststring=
5776 # Add a significant safety factor because C++ compilers can tack on
5777 # massive amounts of additional arguments before passing them to the
5778 # linker. It appears as though 1/2 is a usable value.
5779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5780 fi
5781 ;;
5782 esac
5783
5784 fi
5785
5786 if test -n $lt_cv_sys_max_cmd_len ; then
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5788 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5789 else
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5791 $as_echo "none" >&6; }
5792 fi
5793 max_cmd_len=$lt_cv_sys_max_cmd_len
5794
5795
5796
5797
5798
5799
5800 : ${CP="cp -f"}
5801 : ${MV="mv -f"}
5802 : ${RM="rm -f"}
5803
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5805 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5806 # Try some XSI features
5807 xsi_shell=no
5808 ( _lt_dummy="a/b/c"
5809 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5810 = c,a/b,, \
5811 && eval 'test $(( 1 + 1 )) -eq 2 \
5812 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5813 && xsi_shell=yes
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5815 $as_echo "$xsi_shell" >&6; }
5816
5817
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5819 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5820 lt_shell_append=no
5821 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5822 >/dev/null 2>&1 \
5823 && lt_shell_append=yes
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5825 $as_echo "$lt_shell_append" >&6; }
5826
5827
5828 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5829 lt_unset=unset
5830 else
5831 lt_unset=false
5832 fi
5833
5834
5835
5836
5837
5838 # test EBCDIC or ASCII
5839 case `echo X|tr X '\101'` in
5840 A) # ASCII based system
5841 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5842 lt_SP2NL='tr \040 \012'
5843 lt_NL2SP='tr \015\012 \040\040'
5844 ;;
5845 *) # EBCDIC based system
5846 lt_SP2NL='tr \100 \n'
5847 lt_NL2SP='tr \r\n \100\100'
5848 ;;
5849 esac
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5860 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5861 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5863 else
5864 lt_cv_ld_reload_flag='-r'
5865 fi
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5867 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5868 reload_flag=$lt_cv_ld_reload_flag
5869 case $reload_flag in
5870 "" | " "*) ;;
5871 *) reload_flag=" $reload_flag" ;;
5872 esac
5873 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5874 case $host_os in
5875 darwin*)
5876 if test "$GCC" = yes; then
5877 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5878 else
5879 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5880 fi
5881 ;;
5882 esac
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892 if test -n "$ac_tool_prefix"; then
5893 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5894 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900 if test -n "$OBJDUMP"; then
5901 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5902 else
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 for as_dir in $PATH
5905 do
5906 IFS=$as_save_IFS
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5912 break 2
5913 fi
5914 done
5915 done
5916 IFS=$as_save_IFS
5917
5918 fi
5919 fi
5920 OBJDUMP=$ac_cv_prog_OBJDUMP
5921 if test -n "$OBJDUMP"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5923 $as_echo "$OBJDUMP" >&6; }
5924 else
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5927 fi
5928
5929
5930 fi
5931 if test -z "$ac_cv_prog_OBJDUMP"; then
5932 ac_ct_OBJDUMP=$OBJDUMP
5933 # Extract the first word of "objdump", so it can be a program name with args.
5934 set dummy objdump; ac_word=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 if test -n "$ac_ct_OBJDUMP"; then
5941 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5942 else
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5945 do
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5953 fi
5954 done
5955 done
5956 IFS=$as_save_IFS
5957
5958 fi
5959 fi
5960 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5961 if test -n "$ac_ct_OBJDUMP"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5963 $as_echo "$ac_ct_OBJDUMP" >&6; }
5964 else
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5967 fi
5968
5969 if test "x$ac_ct_OBJDUMP" = x; then
5970 OBJDUMP="false"
5971 else
5972 case $cross_compiling:$ac_tool_warned in
5973 yes:)
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5976 ac_tool_warned=yes ;;
5977 esac
5978 OBJDUMP=$ac_ct_OBJDUMP
5979 fi
5980 else
5981 OBJDUMP="$ac_cv_prog_OBJDUMP"
5982 fi
5983
5984 test -z "$OBJDUMP" && OBJDUMP=objdump
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5995 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5996 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 lt_cv_file_magic_cmd='$MAGIC_CMD'
6000 lt_cv_file_magic_test_file=
6001 lt_cv_deplibs_check_method='unknown'
6002 # Need to set the preceding variable on all platforms that support
6003 # interlibrary dependencies.
6004 # 'none' -- dependencies not supported.
6005 # `unknown' -- same as none, but documents that we really don't know.
6006 # 'pass_all' -- all dependencies passed with no checks.
6007 # 'test_compile' -- check by making test program.
6008 # 'file_magic [[regex]]' -- check by looking for files in library path
6009 # which responds to the $file_magic_cmd with a given extended regex.
6010 # If you have `file' or equivalent on your system and you're not sure
6011 # whether `pass_all' will *always* work, you probably want this one.
6012
6013 case $host_os in
6014 aix[4-9]*)
6015 lt_cv_deplibs_check_method=pass_all
6016 ;;
6017
6018 beos*)
6019 lt_cv_deplibs_check_method=pass_all
6020 ;;
6021
6022 bsdi[45]*)
6023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6024 lt_cv_file_magic_cmd='/usr/bin/file -L'
6025 lt_cv_file_magic_test_file=/shlib/libc.so
6026 ;;
6027
6028 cygwin*)
6029 # func_win32_libid is a shell function defined in ltmain.sh
6030 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6031 lt_cv_file_magic_cmd='func_win32_libid'
6032 ;;
6033
6034 mingw* | pw32*)
6035 # Base MSYS/MinGW do not provide the 'file' command needed by
6036 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6037 # unless we find 'file', for example because we are cross-compiling.
6038 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6039 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6040 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6041 lt_cv_file_magic_cmd='func_win32_libid'
6042 else
6043 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6044 lt_cv_file_magic_cmd='$OBJDUMP -f'
6045 fi
6046 ;;
6047
6048 cegcc*)
6049 # use the weaker test based on 'objdump'. See mingw*.
6050 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6051 lt_cv_file_magic_cmd='$OBJDUMP -f'
6052 ;;
6053
6054 darwin* | rhapsody*)
6055 lt_cv_deplibs_check_method=pass_all
6056 ;;
6057
6058 freebsd* | dragonfly*)
6059 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6060 case $host_cpu in
6061 i*86 )
6062 # Not sure whether the presence of OpenBSD here was a mistake.
6063 # Let's accept both of them until this is cleared up.
6064 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6065 lt_cv_file_magic_cmd=/usr/bin/file
6066 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6067 ;;
6068 esac
6069 else
6070 lt_cv_deplibs_check_method=pass_all
6071 fi
6072 ;;
6073
6074 gnu*)
6075 lt_cv_deplibs_check_method=pass_all
6076 ;;
6077
6078 haiku*)
6079 lt_cv_deplibs_check_method=pass_all
6080 ;;
6081
6082 hpux10.20* | hpux11*)
6083 lt_cv_file_magic_cmd=/usr/bin/file
6084 case $host_cpu in
6085 ia64*)
6086 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6087 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6088 ;;
6089 hppa*64*)
6090 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]'
6091 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6092 ;;
6093 *)
6094 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6095 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6096 ;;
6097 esac
6098 ;;
6099
6100 interix[3-9]*)
6101 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6102 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6103 ;;
6104
6105 irix5* | irix6* | nonstopux*)
6106 case $LD in
6107 *-32|*"-32 ") libmagic=32-bit;;
6108 *-n32|*"-n32 ") libmagic=N32;;
6109 *-64|*"-64 ") libmagic=64-bit;;
6110 *) libmagic=never-match;;
6111 esac
6112 lt_cv_deplibs_check_method=pass_all
6113 ;;
6114
6115 # This must be Linux ELF.
6116 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6117 lt_cv_deplibs_check_method=pass_all
6118 ;;
6119
6120 netbsd*)
6121 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6123 else
6124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6125 fi
6126 ;;
6127
6128 newos6*)
6129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6130 lt_cv_file_magic_cmd=/usr/bin/file
6131 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6132 ;;
6133
6134 *nto* | *qnx*)
6135 lt_cv_deplibs_check_method=pass_all
6136 ;;
6137
6138 openbsd*)
6139 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6140 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6141 else
6142 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6143 fi
6144 ;;
6145
6146 osf3* | osf4* | osf5*)
6147 lt_cv_deplibs_check_method=pass_all
6148 ;;
6149
6150 rdos*)
6151 lt_cv_deplibs_check_method=pass_all
6152 ;;
6153
6154 solaris*)
6155 lt_cv_deplibs_check_method=pass_all
6156 ;;
6157
6158 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6159 lt_cv_deplibs_check_method=pass_all
6160 ;;
6161
6162 sysv4 | sysv4.3*)
6163 case $host_vendor in
6164 motorola)
6165 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]'
6166 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6167 ;;
6168 ncr)
6169 lt_cv_deplibs_check_method=pass_all
6170 ;;
6171 sequent)
6172 lt_cv_file_magic_cmd='/bin/file'
6173 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6174 ;;
6175 sni)
6176 lt_cv_file_magic_cmd='/bin/file'
6177 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6178 lt_cv_file_magic_test_file=/lib/libc.so
6179 ;;
6180 siemens)
6181 lt_cv_deplibs_check_method=pass_all
6182 ;;
6183 pc)
6184 lt_cv_deplibs_check_method=pass_all
6185 ;;
6186 esac
6187 ;;
6188
6189 tpf*)
6190 lt_cv_deplibs_check_method=pass_all
6191 ;;
6192 esac
6193
6194 fi
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6196 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6197 file_magic_cmd=$lt_cv_file_magic_cmd
6198 deplibs_check_method=$lt_cv_deplibs_check_method
6199 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212 if test -n "$ac_tool_prefix"; then
6213 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6214 set dummy ${ac_tool_prefix}ar; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if test "${ac_cv_prog_AR+set}" = set; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 if test -n "$AR"; then
6221 ac_cv_prog_AR="$AR" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6225 do
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6230 ac_cv_prog_AR="${ac_tool_prefix}ar"
6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 break 2
6233 fi
6234 done
6235 done
6236 IFS=$as_save_IFS
6237
6238 fi
6239 fi
6240 AR=$ac_cv_prog_AR
6241 if test -n "$AR"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6243 $as_echo "$AR" >&6; }
6244 else
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6247 fi
6248
6249
6250 fi
6251 if test -z "$ac_cv_prog_AR"; then
6252 ac_ct_AR=$AR
6253 # Extract the first word of "ar", so it can be a program name with args.
6254 set dummy ar; ac_word=$2
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6256 $as_echo_n "checking for $ac_word... " >&6; }
6257 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6258 $as_echo_n "(cached) " >&6
6259 else
6260 if test -n "$ac_ct_AR"; then
6261 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6262 else
6263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266 IFS=$as_save_IFS
6267 test -z "$as_dir" && as_dir=.
6268 for ac_exec_ext in '' $ac_executable_extensions; do
6269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6270 ac_cv_prog_ac_ct_AR="ar"
6271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 break 2
6273 fi
6274 done
6275 done
6276 IFS=$as_save_IFS
6277
6278 fi
6279 fi
6280 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6281 if test -n "$ac_ct_AR"; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6283 $as_echo "$ac_ct_AR" >&6; }
6284 else
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6287 fi
6288
6289 if test "x$ac_ct_AR" = x; then
6290 AR="false"
6291 else
6292 case $cross_compiling:$ac_tool_warned in
6293 yes:)
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6296 ac_tool_warned=yes ;;
6297 esac
6298 AR=$ac_ct_AR
6299 fi
6300 else
6301 AR="$ac_cv_prog_AR"
6302 fi
6303
6304 test -z "$AR" && AR=ar
6305 test -z "$AR_FLAGS" && AR_FLAGS=cru
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317 if test -n "$ac_tool_prefix"; then
6318 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6319 set dummy ${ac_tool_prefix}strip; ac_word=$2
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321 $as_echo_n "checking for $ac_word... " >&6; }
6322 if test "${ac_cv_prog_STRIP+set}" = set; then :
6323 $as_echo_n "(cached) " >&6
6324 else
6325 if test -n "$STRIP"; then
6326 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6327 else
6328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329 for as_dir in $PATH
6330 do
6331 IFS=$as_save_IFS
6332 test -z "$as_dir" && as_dir=.
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6335 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 break 2
6338 fi
6339 done
6340 done
6341 IFS=$as_save_IFS
6342
6343 fi
6344 fi
6345 STRIP=$ac_cv_prog_STRIP
6346 if test -n "$STRIP"; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6348 $as_echo "$STRIP" >&6; }
6349 else
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351 $as_echo "no" >&6; }
6352 fi
6353
6354
6355 fi
6356 if test -z "$ac_cv_prog_STRIP"; then
6357 ac_ct_STRIP=$STRIP
6358 # Extract the first word of "strip", so it can be a program name with args.
6359 set dummy strip; ac_word=$2
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6361 $as_echo_n "checking for $ac_word... " >&6; }
6362 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6363 $as_echo_n "(cached) " >&6
6364 else
6365 if test -n "$ac_ct_STRIP"; then
6366 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6367 else
6368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 for as_dir in $PATH
6370 do
6371 IFS=$as_save_IFS
6372 test -z "$as_dir" && as_dir=.
6373 for ac_exec_ext in '' $ac_executable_extensions; do
6374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6375 ac_cv_prog_ac_ct_STRIP="strip"
6376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6377 break 2
6378 fi
6379 done
6380 done
6381 IFS=$as_save_IFS
6382
6383 fi
6384 fi
6385 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6386 if test -n "$ac_ct_STRIP"; then
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6388 $as_echo "$ac_ct_STRIP" >&6; }
6389 else
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 $as_echo "no" >&6; }
6392 fi
6393
6394 if test "x$ac_ct_STRIP" = x; then
6395 STRIP=":"
6396 else
6397 case $cross_compiling:$ac_tool_warned in
6398 yes:)
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6401 ac_tool_warned=yes ;;
6402 esac
6403 STRIP=$ac_ct_STRIP
6404 fi
6405 else
6406 STRIP="$ac_cv_prog_STRIP"
6407 fi
6408
6409 test -z "$STRIP" && STRIP=:
6410
6411
6412
6413
6414
6415
6416 if test -n "$ac_tool_prefix"; then
6417 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6418 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6422 $as_echo_n "(cached) " >&6
6423 else
6424 if test -n "$RANLIB"; then
6425 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6437 fi
6438 done
6439 done
6440 IFS=$as_save_IFS
6441
6442 fi
6443 fi
6444 RANLIB=$ac_cv_prog_RANLIB
6445 if test -n "$RANLIB"; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6447 $as_echo "$RANLIB" >&6; }
6448 else
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 $as_echo "no" >&6; }
6451 fi
6452
6453
6454 fi
6455 if test -z "$ac_cv_prog_RANLIB"; then
6456 ac_ct_RANLIB=$RANLIB
6457 # Extract the first word of "ranlib", so it can be a program name with args.
6458 set dummy ranlib; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 if test -n "$ac_ct_RANLIB"; then
6465 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_prog_ac_ct_RANLIB="ranlib"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6477 fi
6478 done
6479 done
6480 IFS=$as_save_IFS
6481
6482 fi
6483 fi
6484 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6485 if test -n "$ac_ct_RANLIB"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6487 $as_echo "$ac_ct_RANLIB" >&6; }
6488 else
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6491 fi
6492
6493 if test "x$ac_ct_RANLIB" = x; then
6494 RANLIB=":"
6495 else
6496 case $cross_compiling:$ac_tool_warned in
6497 yes:)
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6500 ac_tool_warned=yes ;;
6501 esac
6502 RANLIB=$ac_ct_RANLIB
6503 fi
6504 else
6505 RANLIB="$ac_cv_prog_RANLIB"
6506 fi
6507
6508 test -z "$RANLIB" && RANLIB=:
6509
6510
6511
6512
6513
6514
6515 # Determine commands to create old-style static archives.
6516 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6517 old_postinstall_cmds='chmod 644 $oldlib'
6518 old_postuninstall_cmds=
6519
6520 if test -n "$RANLIB"; then
6521 case $host_os in
6522 openbsd*)
6523 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6524 ;;
6525 *)
6526 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6527 ;;
6528 esac
6529 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6530 fi
6531
6532 case $host_os in
6533 darwin*)
6534 lock_old_archive_extraction=yes ;;
6535 *)
6536 lock_old_archive_extraction=no ;;
6537 esac
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577 # If no C compiler was specified, use CC.
6578 LTCC=${LTCC-"$CC"}
6579
6580 # If no C compiler flags were specified, use CFLAGS.
6581 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6582
6583 # Allow CC to be a program name with arguments.
6584 compiler=$CC
6585
6586
6587 # Check for command to grab the raw symbol name followed by C symbol from nm.
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6589 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6590 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6591 $as_echo_n "(cached) " >&6
6592 else
6593
6594 # These are sane defaults that work on at least a few old systems.
6595 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6596
6597 # Character class describing NM global symbol codes.
6598 symcode='[BCDEGRST]'
6599
6600 # Regexp to match symbols that can be accessed directly from C.
6601 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6602
6603 # Define system-specific variables.
6604 case $host_os in
6605 aix*)
6606 symcode='[BCDT]'
6607 ;;
6608 cygwin* | mingw* | pw32* | cegcc*)
6609 symcode='[ABCDGISTW]'
6610 ;;
6611 hpux*)
6612 if test "$host_cpu" = ia64; then
6613 symcode='[ABCDEGRST]'
6614 fi
6615 ;;
6616 irix* | nonstopux*)
6617 symcode='[BCDEGRST]'
6618 ;;
6619 osf*)
6620 symcode='[BCDEGQRST]'
6621 ;;
6622 solaris*)
6623 symcode='[BDRT]'
6624 ;;
6625 sco3.2v5*)
6626 symcode='[DT]'
6627 ;;
6628 sysv4.2uw2*)
6629 symcode='[DT]'
6630 ;;
6631 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6632 symcode='[ABDT]'
6633 ;;
6634 sysv4)
6635 symcode='[DFNSTU]'
6636 ;;
6637 esac
6638
6639 # If we're using GNU nm, then use its standard symbol codes.
6640 case `$NM -V 2>&1` in
6641 *GNU* | *'with BFD'*)
6642 symcode='[ABCDGIRSTW]' ;;
6643 esac
6644
6645 # Transform an extracted symbol line into a proper C declaration.
6646 # Some systems (esp. on ia64) link data and code symbols differently,
6647 # so use this general approach.
6648 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6649
6650 # Transform an extracted symbol line into symbol name and symbol address
6651 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6652 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'"
6653
6654 # Handle CRLF in mingw tool chain
6655 opt_cr=
6656 case $build_os in
6657 mingw*)
6658 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6659 ;;
6660 esac
6661
6662 # Try without a prefix underscore, then with it.
6663 for ac_symprfx in "" "_"; do
6664
6665 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6666 symxfrm="\\1 $ac_symprfx\\2 \\2"
6667
6668 # Write the raw and C identifiers.
6669 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6670 # Fake it for dumpbin and say T for any non-static function
6671 # and D for any global variable.
6672 # Also find C++ and __fastcall symbols from MSVC++,
6673 # which start with @ or ?.
6674 lt_cv_sys_global_symbol_pipe="$AWK '"\
6675 " {last_section=section; section=\$ 3};"\
6676 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6677 " \$ 0!~/External *\|/{next};"\
6678 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6679 " {if(hide[section]) next};"\
6680 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6681 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6682 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6683 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6684 " ' prfx=^$ac_symprfx"
6685 else
6686 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6687 fi
6688
6689 # Check to see that the pipe works correctly.
6690 pipe_works=no
6691
6692 rm -f conftest*
6693 cat > conftest.$ac_ext <<_LT_EOF
6694 #ifdef __cplusplus
6695 extern "C" {
6696 #endif
6697 char nm_test_var;
6698 void nm_test_func(void);
6699 void nm_test_func(void){}
6700 #ifdef __cplusplus
6701 }
6702 #endif
6703 int main(){nm_test_var='a';nm_test_func();return(0);}
6704 _LT_EOF
6705
6706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6707 (eval $ac_compile) 2>&5
6708 ac_status=$?
6709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6710 test $ac_status = 0; }; then
6711 # Now try to grab the symbols.
6712 nlist=conftest.nm
6713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6714 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6715 ac_status=$?
6716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6717 test $ac_status = 0; } && test -s "$nlist"; then
6718 # Try sorting and uniquifying the output.
6719 if sort "$nlist" | uniq > "$nlist"T; then
6720 mv -f "$nlist"T "$nlist"
6721 else
6722 rm -f "$nlist"T
6723 fi
6724
6725 # Make sure that we snagged all the symbols we need.
6726 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6727 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6728 cat <<_LT_EOF > conftest.$ac_ext
6729 #ifdef __cplusplus
6730 extern "C" {
6731 #endif
6732
6733 _LT_EOF
6734 # Now generate the symbol file.
6735 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6736
6737 cat <<_LT_EOF >> conftest.$ac_ext
6738
6739 /* The mapping between symbol names and symbols. */
6740 const struct {
6741 const char *name;
6742 void *address;
6743 }
6744 lt__PROGRAM__LTX_preloaded_symbols[] =
6745 {
6746 { "@PROGRAM@", (void *) 0 },
6747 _LT_EOF
6748 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6749 cat <<\_LT_EOF >> conftest.$ac_ext
6750 {0, (void *) 0}
6751 };
6752
6753 /* This works around a problem in FreeBSD linker */
6754 #ifdef FREEBSD_WORKAROUND
6755 static const void *lt_preloaded_setup() {
6756 return lt__PROGRAM__LTX_preloaded_symbols;
6757 }
6758 #endif
6759
6760 #ifdef __cplusplus
6761 }
6762 #endif
6763 _LT_EOF
6764 # Now try linking the two files.
6765 mv conftest.$ac_objext conftstm.$ac_objext
6766 lt_save_LIBS="$LIBS"
6767 lt_save_CFLAGS="$CFLAGS"
6768 LIBS="conftstm.$ac_objext"
6769 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6771 (eval $ac_link) 2>&5
6772 ac_status=$?
6773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6774 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6775 pipe_works=yes
6776 fi
6777 LIBS="$lt_save_LIBS"
6778 CFLAGS="$lt_save_CFLAGS"
6779 else
6780 echo "cannot find nm_test_func in $nlist" >&5
6781 fi
6782 else
6783 echo "cannot find nm_test_var in $nlist" >&5
6784 fi
6785 else
6786 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6787 fi
6788 else
6789 echo "$progname: failed program was:" >&5
6790 cat conftest.$ac_ext >&5
6791 fi
6792 rm -rf conftest* conftst*
6793
6794 # Do not use the global_symbol_pipe unless it works.
6795 if test "$pipe_works" = yes; then
6796 break
6797 else
6798 lt_cv_sys_global_symbol_pipe=
6799 fi
6800 done
6801
6802 fi
6803
6804 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6805 lt_cv_sys_global_symbol_to_cdecl=
6806 fi
6807 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6809 $as_echo "failed" >&6; }
6810 else
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6812 $as_echo "ok" >&6; }
6813 fi
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836 # Check whether --enable-libtool-lock was given.
6837 if test "${enable_libtool_lock+set}" = set; then :
6838 enableval=$enable_libtool_lock;
6839 fi
6840
6841 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6842
6843 # Some flags need to be propagated to the compiler or linker for good
6844 # libtool support.
6845 case $host in
6846 ia64-*-hpux*)
6847 # Find out which ABI we are using.
6848 echo 'int i;' > conftest.$ac_ext
6849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6850 (eval $ac_compile) 2>&5
6851 ac_status=$?
6852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6853 test $ac_status = 0; }; then
6854 case `/usr/bin/file conftest.$ac_objext` in
6855 *ELF-32*)
6856 HPUX_IA64_MODE="32"
6857 ;;
6858 *ELF-64*)
6859 HPUX_IA64_MODE="64"
6860 ;;
6861 esac
6862 fi
6863 rm -rf conftest*
6864 ;;
6865 *-*-irix6*)
6866 # Find out which ABI we are using.
6867 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6869 (eval $ac_compile) 2>&5
6870 ac_status=$?
6871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6872 test $ac_status = 0; }; then
6873 if test "$lt_cv_prog_gnu_ld" = yes; then
6874 case `/usr/bin/file conftest.$ac_objext` in
6875 *32-bit*)
6876 LD="${LD-ld} -melf32bsmip"
6877 ;;
6878 *N32*)
6879 LD="${LD-ld} -melf32bmipn32"
6880 ;;
6881 *64-bit*)
6882 LD="${LD-ld} -melf64bmip"
6883 ;;
6884 esac
6885 else
6886 case `/usr/bin/file conftest.$ac_objext` in
6887 *32-bit*)
6888 LD="${LD-ld} -32"
6889 ;;
6890 *N32*)
6891 LD="${LD-ld} -n32"
6892 ;;
6893 *64-bit*)
6894 LD="${LD-ld} -64"
6895 ;;
6896 esac
6897 fi
6898 fi
6899 rm -rf conftest*
6900 ;;
6901
6902 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6903 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6904 # Find out which ABI we are using.
6905 echo 'int i;' > conftest.$ac_ext
6906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6907 (eval $ac_compile) 2>&5
6908 ac_status=$?
6909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6910 test $ac_status = 0; }; then
6911 case `/usr/bin/file conftest.o` in
6912 *32-bit*)
6913 case $host in
6914 x86_64-*kfreebsd*-gnu)
6915 LD="${LD-ld} -m elf_i386_fbsd"
6916 ;;
6917 x86_64-*linux*)
6918 case `/usr/bin/file conftest.o` in
6919 *x86-64*)
6920 LD="${LD-ld} -m elf32_x86_64"
6921 ;;
6922 *)
6923 LD="${LD-ld} -m elf_i386"
6924 ;;
6925 esac
6926 ;;
6927 powerpc64le-*linux*)
6928 LD="${LD-ld} -m elf32lppclinux"
6929 ;;
6930 powerpc64-*linux*)
6931 LD="${LD-ld} -m elf32ppclinux"
6932 ;;
6933 s390x-*linux*)
6934 LD="${LD-ld} -m elf_s390"
6935 ;;
6936 sparc64-*linux*)
6937 LD="${LD-ld} -m elf32_sparc"
6938 ;;
6939 esac
6940 ;;
6941 *64-bit*)
6942 case $host in
6943 x86_64-*kfreebsd*-gnu)
6944 LD="${LD-ld} -m elf_x86_64_fbsd"
6945 ;;
6946 x86_64-*linux*)
6947 LD="${LD-ld} -m elf_x86_64"
6948 ;;
6949 powerpcle-*linux*)
6950 LD="${LD-ld} -m elf64lppc"
6951 ;;
6952 powerpc-*linux*)
6953 LD="${LD-ld} -m elf64ppc"
6954 ;;
6955 s390*-*linux*|s390*-*tpf*)
6956 LD="${LD-ld} -m elf64_s390"
6957 ;;
6958 sparc*-*linux*)
6959 LD="${LD-ld} -m elf64_sparc"
6960 ;;
6961 esac
6962 ;;
6963 esac
6964 fi
6965 rm -rf conftest*
6966 ;;
6967
6968 *-*-sco3.2v5*)
6969 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6970 SAVE_CFLAGS="$CFLAGS"
6971 CFLAGS="$CFLAGS -belf"
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6973 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6974 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6975 $as_echo_n "(cached) " >&6
6976 else
6977 ac_ext=c
6978 ac_cpp='$CPP $CPPFLAGS'
6979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6982
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6985
6986 int
6987 main ()
6988 {
6989
6990 ;
6991 return 0;
6992 }
6993 _ACEOF
6994 if ac_fn_c_try_link "$LINENO"; then :
6995 lt_cv_cc_needs_belf=yes
6996 else
6997 lt_cv_cc_needs_belf=no
6998 fi
6999 rm -f core conftest.err conftest.$ac_objext \
7000 conftest$ac_exeext conftest.$ac_ext
7001 ac_ext=c
7002 ac_cpp='$CPP $CPPFLAGS'
7003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7006
7007 fi
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7009 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7010 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7011 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7012 CFLAGS="$SAVE_CFLAGS"
7013 fi
7014 ;;
7015 sparc*-*solaris*)
7016 # Find out which ABI we are using.
7017 echo 'int i;' > conftest.$ac_ext
7018 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7019 (eval $ac_compile) 2>&5
7020 ac_status=$?
7021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7022 test $ac_status = 0; }; then
7023 case `/usr/bin/file conftest.o` in
7024 *64-bit*)
7025 case $lt_cv_prog_gnu_ld in
7026 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7027 *)
7028 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7029 LD="${LD-ld} -64"
7030 fi
7031 ;;
7032 esac
7033 ;;
7034 esac
7035 fi
7036 rm -rf conftest*
7037 ;;
7038 esac
7039
7040 need_locks="$enable_libtool_lock"
7041
7042
7043 case $host_os in
7044 rhapsody* | darwin*)
7045 if test -n "$ac_tool_prefix"; then
7046 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7047 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7049 $as_echo_n "checking for $ac_word... " >&6; }
7050 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053 if test -n "$DSYMUTIL"; then
7054 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7055 else
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 for as_dir in $PATH
7058 do
7059 IFS=$as_save_IFS
7060 test -z "$as_dir" && as_dir=.
7061 for ac_exec_ext in '' $ac_executable_extensions; do
7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7063 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7065 break 2
7066 fi
7067 done
7068 done
7069 IFS=$as_save_IFS
7070
7071 fi
7072 fi
7073 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7074 if test -n "$DSYMUTIL"; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7076 $as_echo "$DSYMUTIL" >&6; }
7077 else
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7080 fi
7081
7082
7083 fi
7084 if test -z "$ac_cv_prog_DSYMUTIL"; then
7085 ac_ct_DSYMUTIL=$DSYMUTIL
7086 # Extract the first word of "dsymutil", so it can be a program name with args.
7087 set dummy dsymutil; ac_word=$2
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7089 $as_echo_n "checking for $ac_word... " >&6; }
7090 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7091 $as_echo_n "(cached) " >&6
7092 else
7093 if test -n "$ac_ct_DSYMUTIL"; then
7094 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7095 else
7096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 for as_dir in $PATH
7098 do
7099 IFS=$as_save_IFS
7100 test -z "$as_dir" && as_dir=.
7101 for ac_exec_ext in '' $ac_executable_extensions; do
7102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7103 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7105 break 2
7106 fi
7107 done
7108 done
7109 IFS=$as_save_IFS
7110
7111 fi
7112 fi
7113 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7114 if test -n "$ac_ct_DSYMUTIL"; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7116 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7117 else
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7119 $as_echo "no" >&6; }
7120 fi
7121
7122 if test "x$ac_ct_DSYMUTIL" = x; then
7123 DSYMUTIL=":"
7124 else
7125 case $cross_compiling:$ac_tool_warned in
7126 yes:)
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7129 ac_tool_warned=yes ;;
7130 esac
7131 DSYMUTIL=$ac_ct_DSYMUTIL
7132 fi
7133 else
7134 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7135 fi
7136
7137 if test -n "$ac_tool_prefix"; then
7138 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7139 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7143 $as_echo_n "(cached) " >&6
7144 else
7145 if test -n "$NMEDIT"; then
7146 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7147 else
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH
7150 do
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7155 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7157 break 2
7158 fi
7159 done
7160 done
7161 IFS=$as_save_IFS
7162
7163 fi
7164 fi
7165 NMEDIT=$ac_cv_prog_NMEDIT
7166 if test -n "$NMEDIT"; then
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7168 $as_echo "$NMEDIT" >&6; }
7169 else
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7171 $as_echo "no" >&6; }
7172 fi
7173
7174
7175 fi
7176 if test -z "$ac_cv_prog_NMEDIT"; then
7177 ac_ct_NMEDIT=$NMEDIT
7178 # Extract the first word of "nmedit", so it can be a program name with args.
7179 set dummy nmedit; ac_word=$2
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7181 $as_echo_n "checking for $ac_word... " >&6; }
7182 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 if test -n "$ac_ct_NMEDIT"; then
7186 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7187 else
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7190 do
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7195 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 break 2
7198 fi
7199 done
7200 done
7201 IFS=$as_save_IFS
7202
7203 fi
7204 fi
7205 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7206 if test -n "$ac_ct_NMEDIT"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7208 $as_echo "$ac_ct_NMEDIT" >&6; }
7209 else
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7212 fi
7213
7214 if test "x$ac_ct_NMEDIT" = x; then
7215 NMEDIT=":"
7216 else
7217 case $cross_compiling:$ac_tool_warned in
7218 yes:)
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7221 ac_tool_warned=yes ;;
7222 esac
7223 NMEDIT=$ac_ct_NMEDIT
7224 fi
7225 else
7226 NMEDIT="$ac_cv_prog_NMEDIT"
7227 fi
7228
7229 if test -n "$ac_tool_prefix"; then
7230 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7231 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7233 $as_echo_n "checking for $ac_word... " >&6; }
7234 if test "${ac_cv_prog_LIPO+set}" = set; then :
7235 $as_echo_n "(cached) " >&6
7236 else
7237 if test -n "$LIPO"; then
7238 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7239 else
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7242 do
7243 IFS=$as_save_IFS
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7249 break 2
7250 fi
7251 done
7252 done
7253 IFS=$as_save_IFS
7254
7255 fi
7256 fi
7257 LIPO=$ac_cv_prog_LIPO
7258 if test -n "$LIPO"; then
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7260 $as_echo "$LIPO" >&6; }
7261 else
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263 $as_echo "no" >&6; }
7264 fi
7265
7266
7267 fi
7268 if test -z "$ac_cv_prog_LIPO"; then
7269 ac_ct_LIPO=$LIPO
7270 # Extract the first word of "lipo", so it can be a program name with args.
7271 set dummy lipo; ac_word=$2
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7273 $as_echo_n "checking for $ac_word... " >&6; }
7274 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277 if test -n "$ac_ct_LIPO"; then
7278 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7279 else
7280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 for as_dir in $PATH
7282 do
7283 IFS=$as_save_IFS
7284 test -z "$as_dir" && as_dir=.
7285 for ac_exec_ext in '' $ac_executable_extensions; do
7286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7287 ac_cv_prog_ac_ct_LIPO="lipo"
7288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 break 2
7290 fi
7291 done
7292 done
7293 IFS=$as_save_IFS
7294
7295 fi
7296 fi
7297 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7298 if test -n "$ac_ct_LIPO"; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7300 $as_echo "$ac_ct_LIPO" >&6; }
7301 else
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7304 fi
7305
7306 if test "x$ac_ct_LIPO" = x; then
7307 LIPO=":"
7308 else
7309 case $cross_compiling:$ac_tool_warned in
7310 yes:)
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7313 ac_tool_warned=yes ;;
7314 esac
7315 LIPO=$ac_ct_LIPO
7316 fi
7317 else
7318 LIPO="$ac_cv_prog_LIPO"
7319 fi
7320
7321 if test -n "$ac_tool_prefix"; then
7322 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7323 set dummy ${ac_tool_prefix}otool; ac_word=$2
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7325 $as_echo_n "checking for $ac_word... " >&6; }
7326 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7327 $as_echo_n "(cached) " >&6
7328 else
7329 if test -n "$OTOOL"; then
7330 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7331 else
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 for as_dir in $PATH
7334 do
7335 IFS=$as_save_IFS
7336 test -z "$as_dir" && as_dir=.
7337 for ac_exec_ext in '' $ac_executable_extensions; do
7338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7339 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 break 2
7342 fi
7343 done
7344 done
7345 IFS=$as_save_IFS
7346
7347 fi
7348 fi
7349 OTOOL=$ac_cv_prog_OTOOL
7350 if test -n "$OTOOL"; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7352 $as_echo "$OTOOL" >&6; }
7353 else
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355 $as_echo "no" >&6; }
7356 fi
7357
7358
7359 fi
7360 if test -z "$ac_cv_prog_OTOOL"; then
7361 ac_ct_OTOOL=$OTOOL
7362 # Extract the first word of "otool", so it can be a program name with args.
7363 set dummy otool; ac_word=$2
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7365 $as_echo_n "checking for $ac_word... " >&6; }
7366 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7367 $as_echo_n "(cached) " >&6
7368 else
7369 if test -n "$ac_ct_OTOOL"; then
7370 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7371 else
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in $PATH
7374 do
7375 IFS=$as_save_IFS
7376 test -z "$as_dir" && as_dir=.
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7379 ac_cv_prog_ac_ct_OTOOL="otool"
7380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7381 break 2
7382 fi
7383 done
7384 done
7385 IFS=$as_save_IFS
7386
7387 fi
7388 fi
7389 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7390 if test -n "$ac_ct_OTOOL"; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7392 $as_echo "$ac_ct_OTOOL" >&6; }
7393 else
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7396 fi
7397
7398 if test "x$ac_ct_OTOOL" = x; then
7399 OTOOL=":"
7400 else
7401 case $cross_compiling:$ac_tool_warned in
7402 yes:)
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7405 ac_tool_warned=yes ;;
7406 esac
7407 OTOOL=$ac_ct_OTOOL
7408 fi
7409 else
7410 OTOOL="$ac_cv_prog_OTOOL"
7411 fi
7412
7413 if test -n "$ac_tool_prefix"; then
7414 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7415 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7417 $as_echo_n "checking for $ac_word... " >&6; }
7418 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
7420 else
7421 if test -n "$OTOOL64"; then
7422 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7423 else
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7426 do
7427 IFS=$as_save_IFS
7428 test -z "$as_dir" && as_dir=.
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7431 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7433 break 2
7434 fi
7435 done
7436 done
7437 IFS=$as_save_IFS
7438
7439 fi
7440 fi
7441 OTOOL64=$ac_cv_prog_OTOOL64
7442 if test -n "$OTOOL64"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7444 $as_echo "$OTOOL64" >&6; }
7445 else
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7448 fi
7449
7450
7451 fi
7452 if test -z "$ac_cv_prog_OTOOL64"; then
7453 ac_ct_OTOOL64=$OTOOL64
7454 # Extract the first word of "otool64", so it can be a program name with args.
7455 set dummy otool64; ac_word=$2
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457 $as_echo_n "checking for $ac_word... " >&6; }
7458 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7459 $as_echo_n "(cached) " >&6
7460 else
7461 if test -n "$ac_ct_OTOOL64"; then
7462 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7463 else
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 for as_dir in $PATH
7466 do
7467 IFS=$as_save_IFS
7468 test -z "$as_dir" && as_dir=.
7469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7471 ac_cv_prog_ac_ct_OTOOL64="otool64"
7472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 break 2
7474 fi
7475 done
7476 done
7477 IFS=$as_save_IFS
7478
7479 fi
7480 fi
7481 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7482 if test -n "$ac_ct_OTOOL64"; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7484 $as_echo "$ac_ct_OTOOL64" >&6; }
7485 else
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7488 fi
7489
7490 if test "x$ac_ct_OTOOL64" = x; then
7491 OTOOL64=":"
7492 else
7493 case $cross_compiling:$ac_tool_warned in
7494 yes:)
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7497 ac_tool_warned=yes ;;
7498 esac
7499 OTOOL64=$ac_ct_OTOOL64
7500 fi
7501 else
7502 OTOOL64="$ac_cv_prog_OTOOL64"
7503 fi
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7532 $as_echo_n "checking for -single_module linker flag... " >&6; }
7533 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 lt_cv_apple_cc_single_mod=no
7537 if test -z "${LT_MULTI_MODULE}"; then
7538 # By default we will add the -single_module flag. You can override
7539 # by either setting the environment variable LT_MULTI_MODULE
7540 # non-empty at configure time, or by adding -multi_module to the
7541 # link flags.
7542 rm -rf libconftest.dylib*
7543 echo "int foo(void){return 1;}" > conftest.c
7544 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7545 -dynamiclib -Wl,-single_module conftest.c" >&5
7546 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7547 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7548 _lt_result=$?
7549 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7550 lt_cv_apple_cc_single_mod=yes
7551 else
7552 cat conftest.err >&5
7553 fi
7554 rm -rf libconftest.dylib*
7555 rm -f conftest.*
7556 fi
7557 fi
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7559 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7561 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7562 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7565 lt_cv_ld_exported_symbols_list=no
7566 save_LDFLAGS=$LDFLAGS
7567 echo "_main" > conftest.sym
7568 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7570 /* end confdefs.h. */
7571
7572 int
7573 main ()
7574 {
7575
7576 ;
7577 return 0;
7578 }
7579 _ACEOF
7580 if ac_fn_c_try_link "$LINENO"; then :
7581 lt_cv_ld_exported_symbols_list=yes
7582 else
7583 lt_cv_ld_exported_symbols_list=no
7584 fi
7585 rm -f core conftest.err conftest.$ac_objext \
7586 conftest$ac_exeext conftest.$ac_ext
7587 LDFLAGS="$save_LDFLAGS"
7588
7589 fi
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7591 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7593 $as_echo_n "checking for -force_load linker flag... " >&6; }
7594 if test "${lt_cv_ld_force_load+set}" = set; then :
7595 $as_echo_n "(cached) " >&6
7596 else
7597 lt_cv_ld_force_load=no
7598 cat > conftest.c << _LT_EOF
7599 int forced_loaded() { return 2;}
7600 _LT_EOF
7601 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7602 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7603 echo "$AR cru libconftest.a conftest.o" >&5
7604 $AR cru libconftest.a conftest.o 2>&5
7605 cat > conftest.c << _LT_EOF
7606 int main() { return 0;}
7607 _LT_EOF
7608 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7609 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7610 _lt_result=$?
7611 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7612 lt_cv_ld_force_load=yes
7613 else
7614 cat conftest.err >&5
7615 fi
7616 rm -f conftest.err libconftest.a conftest conftest.c
7617 rm -rf conftest.dSYM
7618
7619 fi
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7621 $as_echo "$lt_cv_ld_force_load" >&6; }
7622 case $host_os in
7623 rhapsody* | darwin1.[012])
7624 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7625 darwin1.*)
7626 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7627 darwin*) # darwin 5.x on
7628 # if running on 10.5 or later, the deployment target defaults
7629 # to the OS version, if on x86, and 10.4, the deployment
7630 # target defaults to 10.4. Don't you love it?
7631 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7632 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7633 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7634 10.[012][,.]*)
7635 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7636 10.*)
7637 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7638 esac
7639 ;;
7640 esac
7641 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7642 _lt_dar_single_mod='$single_module'
7643 fi
7644 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7645 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7646 else
7647 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7648 fi
7649 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7650 _lt_dsymutil='~$DSYMUTIL $lib || :'
7651 else
7652 _lt_dsymutil=
7653 fi
7654 ;;
7655 esac
7656
7657 for ac_header in dlfcn.h
7658 do :
7659 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7660 "
7661 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7662 cat >>confdefs.h <<_ACEOF
7663 #define HAVE_DLFCN_H 1
7664 _ACEOF
7665
7666 fi
7667
7668 done
7669
7670
7671
7672
7673
7674 # Set options
7675
7676
7677
7678 enable_dlopen=no
7679
7680
7681 enable_win32_dll=no
7682
7683
7684 # Check whether --enable-shared was given.
7685 if test "${enable_shared+set}" = set; then :
7686 enableval=$enable_shared; p=${PACKAGE-default}
7687 case $enableval in
7688 yes) enable_shared=yes ;;
7689 no) enable_shared=no ;;
7690 *)
7691 enable_shared=no
7692 # Look at the argument we got. We use all the common list separators.
7693 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7694 for pkg in $enableval; do
7695 IFS="$lt_save_ifs"
7696 if test "X$pkg" = "X$p"; then
7697 enable_shared=yes
7698 fi
7699 done
7700 IFS="$lt_save_ifs"
7701 ;;
7702 esac
7703 else
7704 enable_shared=yes
7705 fi
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715 # Check whether --enable-static was given.
7716 if test "${enable_static+set}" = set; then :
7717 enableval=$enable_static; p=${PACKAGE-default}
7718 case $enableval in
7719 yes) enable_static=yes ;;
7720 no) enable_static=no ;;
7721 *)
7722 enable_static=no
7723 # Look at the argument we got. We use all the common list separators.
7724 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7725 for pkg in $enableval; do
7726 IFS="$lt_save_ifs"
7727 if test "X$pkg" = "X$p"; then
7728 enable_static=yes
7729 fi
7730 done
7731 IFS="$lt_save_ifs"
7732 ;;
7733 esac
7734 else
7735 enable_static=yes
7736 fi
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747 # Check whether --with-pic was given.
7748 if test "${with_pic+set}" = set; then :
7749 withval=$with_pic; pic_mode="$withval"
7750 else
7751 pic_mode=default
7752 fi
7753
7754
7755 test -z "$pic_mode" && pic_mode=default
7756
7757
7758
7759
7760
7761
7762
7763 # Check whether --enable-fast-install was given.
7764 if test "${enable_fast_install+set}" = set; then :
7765 enableval=$enable_fast_install; p=${PACKAGE-default}
7766 case $enableval in
7767 yes) enable_fast_install=yes ;;
7768 no) enable_fast_install=no ;;
7769 *)
7770 enable_fast_install=no
7771 # Look at the argument we got. We use all the common list separators.
7772 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7773 for pkg in $enableval; do
7774 IFS="$lt_save_ifs"
7775 if test "X$pkg" = "X$p"; then
7776 enable_fast_install=yes
7777 fi
7778 done
7779 IFS="$lt_save_ifs"
7780 ;;
7781 esac
7782 else
7783 enable_fast_install=yes
7784 fi
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796 # This can be used to rebuild libtool when needed
7797 LIBTOOL_DEPS="$ltmain"
7798
7799 # Always use our own libtool.
7800 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827 test -z "$LN_S" && LN_S="ln -s"
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842 if test -n "${ZSH_VERSION+set}" ; then
7843 setopt NO_GLOB_SUBST
7844 fi
7845
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7847 $as_echo_n "checking for objdir... " >&6; }
7848 if test "${lt_cv_objdir+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 rm -f .libs 2>/dev/null
7852 mkdir .libs 2>/dev/null
7853 if test -d .libs; then
7854 lt_cv_objdir=.libs
7855 else
7856 # MS-DOS does not allow filenames that begin with a dot.
7857 lt_cv_objdir=_libs
7858 fi
7859 rmdir .libs 2>/dev/null
7860 fi
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7862 $as_echo "$lt_cv_objdir" >&6; }
7863 objdir=$lt_cv_objdir
7864
7865
7866
7867
7868
7869 cat >>confdefs.h <<_ACEOF
7870 #define LT_OBJDIR "$lt_cv_objdir/"
7871 _ACEOF
7872
7873
7874
7875
7876 case $host_os in
7877 aix3*)
7878 # AIX sometimes has problems with the GCC collect2 program. For some
7879 # reason, if we set the COLLECT_NAMES environment variable, the problems
7880 # vanish in a puff of smoke.
7881 if test "X${COLLECT_NAMES+set}" != Xset; then
7882 COLLECT_NAMES=
7883 export COLLECT_NAMES
7884 fi
7885 ;;
7886 esac
7887
7888 # Global variables:
7889 ofile=libtool
7890 can_build_shared=yes
7891
7892 # All known linkers require a `.a' archive for static linking (except MSVC,
7893 # which needs '.lib').
7894 libext=a
7895
7896 with_gnu_ld="$lt_cv_prog_gnu_ld"
7897
7898 old_CC="$CC"
7899 old_CFLAGS="$CFLAGS"
7900
7901 # Set sane defaults for various variables
7902 test -z "$CC" && CC=cc
7903 test -z "$LTCC" && LTCC=$CC
7904 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7905 test -z "$LD" && LD=ld
7906 test -z "$ac_objext" && ac_objext=o
7907
7908 for cc_temp in $compiler""; do
7909 case $cc_temp in
7910 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7911 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7912 \-*) ;;
7913 *) break;;
7914 esac
7915 done
7916 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7917
7918
7919 # Only perform the check for file, if the check method requires it
7920 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7921 case $deplibs_check_method in
7922 file_magic*)
7923 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7925 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7926 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7927 $as_echo_n "(cached) " >&6
7928 else
7929 case $MAGIC_CMD in
7930 [\\/*] | ?:[\\/]*)
7931 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7932 ;;
7933 *)
7934 lt_save_MAGIC_CMD="$MAGIC_CMD"
7935 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7936 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7937 for ac_dir in $ac_dummy; do
7938 IFS="$lt_save_ifs"
7939 test -z "$ac_dir" && ac_dir=.
7940 if test -f $ac_dir/${ac_tool_prefix}file; then
7941 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7942 if test -n "$file_magic_test_file"; then
7943 case $deplibs_check_method in
7944 "file_magic "*)
7945 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7946 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7947 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7948 $EGREP "$file_magic_regex" > /dev/null; then
7949 :
7950 else
7951 cat <<_LT_EOF 1>&2
7952
7953 *** Warning: the command libtool uses to detect shared libraries,
7954 *** $file_magic_cmd, produces output that libtool cannot recognize.
7955 *** The result is that libtool may fail to recognize shared libraries
7956 *** as such. This will affect the creation of libtool libraries that
7957 *** depend on shared libraries, but programs linked with such libtool
7958 *** libraries will work regardless of this problem. Nevertheless, you
7959 *** may want to report the problem to your system manager and/or to
7960 *** bug-libtool@gnu.org
7961
7962 _LT_EOF
7963 fi ;;
7964 esac
7965 fi
7966 break
7967 fi
7968 done
7969 IFS="$lt_save_ifs"
7970 MAGIC_CMD="$lt_save_MAGIC_CMD"
7971 ;;
7972 esac
7973 fi
7974
7975 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7976 if test -n "$MAGIC_CMD"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7978 $as_echo "$MAGIC_CMD" >&6; }
7979 else
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7982 fi
7983
7984
7985
7986
7987
7988 if test -z "$lt_cv_path_MAGIC_CMD"; then
7989 if test -n "$ac_tool_prefix"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7991 $as_echo_n "checking for file... " >&6; }
7992 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 case $MAGIC_CMD in
7996 [\\/*] | ?:[\\/]*)
7997 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7998 ;;
7999 *)
8000 lt_save_MAGIC_CMD="$MAGIC_CMD"
8001 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8002 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8003 for ac_dir in $ac_dummy; do
8004 IFS="$lt_save_ifs"
8005 test -z "$ac_dir" && ac_dir=.
8006 if test -f $ac_dir/file; then
8007 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8008 if test -n "$file_magic_test_file"; then
8009 case $deplibs_check_method in
8010 "file_magic "*)
8011 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8012 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8013 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8014 $EGREP "$file_magic_regex" > /dev/null; then
8015 :
8016 else
8017 cat <<_LT_EOF 1>&2
8018
8019 *** Warning: the command libtool uses to detect shared libraries,
8020 *** $file_magic_cmd, produces output that libtool cannot recognize.
8021 *** The result is that libtool may fail to recognize shared libraries
8022 *** as such. This will affect the creation of libtool libraries that
8023 *** depend on shared libraries, but programs linked with such libtool
8024 *** libraries will work regardless of this problem. Nevertheless, you
8025 *** may want to report the problem to your system manager and/or to
8026 *** bug-libtool@gnu.org
8027
8028 _LT_EOF
8029 fi ;;
8030 esac
8031 fi
8032 break
8033 fi
8034 done
8035 IFS="$lt_save_ifs"
8036 MAGIC_CMD="$lt_save_MAGIC_CMD"
8037 ;;
8038 esac
8039 fi
8040
8041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8042 if test -n "$MAGIC_CMD"; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8044 $as_echo "$MAGIC_CMD" >&6; }
8045 else
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8048 fi
8049
8050
8051 else
8052 MAGIC_CMD=:
8053 fi
8054 fi
8055
8056 fi
8057 ;;
8058 esac
8059
8060 # Use C for the default configuration in the libtool script
8061
8062 lt_save_CC="$CC"
8063 ac_ext=c
8064 ac_cpp='$CPP $CPPFLAGS'
8065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8068
8069
8070 # Source file extension for C test sources.
8071 ac_ext=c
8072
8073 # Object file extension for compiled C test sources.
8074 objext=o
8075 objext=$objext
8076
8077 # Code to be used in simple compile tests
8078 lt_simple_compile_test_code="int some_variable = 0;"
8079
8080 # Code to be used in simple link tests
8081 lt_simple_link_test_code='int main(){return(0);}'
8082
8083
8084
8085
8086
8087
8088
8089 # If no C compiler was specified, use CC.
8090 LTCC=${LTCC-"$CC"}
8091
8092 # If no C compiler flags were specified, use CFLAGS.
8093 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8094
8095 # Allow CC to be a program name with arguments.
8096 compiler=$CC
8097
8098 # Save the default compiler, since it gets overwritten when the other
8099 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8100 compiler_DEFAULT=$CC
8101
8102 # save warnings/boilerplate of simple test code
8103 ac_outfile=conftest.$ac_objext
8104 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8105 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8106 _lt_compiler_boilerplate=`cat conftest.err`
8107 $RM conftest*
8108
8109 ac_outfile=conftest.$ac_objext
8110 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8111 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8112 _lt_linker_boilerplate=`cat conftest.err`
8113 $RM -r conftest*
8114
8115
8116 ## CAVEAT EMPTOR:
8117 ## There is no encapsulation within the following macros, do not change
8118 ## the running order or otherwise move them around unless you know exactly
8119 ## what you are doing...
8120 if test -n "$compiler"; then
8121
8122 lt_prog_compiler_no_builtin_flag=
8123
8124 if test "$GCC" = yes; then
8125 case $cc_basename in
8126 nvcc*)
8127 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8128 *)
8129 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8130 esac
8131
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8133 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8134 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 lt_cv_prog_compiler_rtti_exceptions=no
8138 ac_outfile=conftest.$ac_objext
8139 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8140 lt_compiler_flag="-fno-rtti -fno-exceptions"
8141 # Insert the option either (1) after the last *FLAGS variable, or
8142 # (2) before a word containing "conftest.", or (3) at the end.
8143 # Note that $ac_compile itself does not contain backslashes and begins
8144 # with a dollar sign (not a hyphen), so the echo should work correctly.
8145 # The option is referenced via a variable to avoid confusing sed.
8146 lt_compile=`echo "$ac_compile" | $SED \
8147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8149 -e 's:$: $lt_compiler_flag:'`
8150 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8151 (eval "$lt_compile" 2>conftest.err)
8152 ac_status=$?
8153 cat conftest.err >&5
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 if (exit $ac_status) && test -s "$ac_outfile"; then
8156 # The compiler can only warn and ignore the option if not recognized
8157 # So say no if there are warnings other than the usual output.
8158 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8159 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8160 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8161 lt_cv_prog_compiler_rtti_exceptions=yes
8162 fi
8163 fi
8164 $RM conftest*
8165
8166 fi
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8168 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8169
8170 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8171 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8172 else
8173 :
8174 fi
8175
8176 fi
8177
8178
8179
8180
8181
8182
8183 lt_prog_compiler_wl=
8184 lt_prog_compiler_pic=
8185 lt_prog_compiler_static=
8186
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8188 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8189
8190 if test "$GCC" = yes; then
8191 lt_prog_compiler_wl='-Wl,'
8192 lt_prog_compiler_static='-static'
8193
8194 case $host_os in
8195 aix*)
8196 # All AIX code is PIC.
8197 if test "$host_cpu" = ia64; then
8198 # AIX 5 now supports IA64 processor
8199 lt_prog_compiler_static='-Bstatic'
8200 fi
8201 lt_prog_compiler_pic='-fPIC'
8202 ;;
8203
8204 amigaos*)
8205 case $host_cpu in
8206 powerpc)
8207 # see comment about AmigaOS4 .so support
8208 lt_prog_compiler_pic='-fPIC'
8209 ;;
8210 m68k)
8211 # FIXME: we need at least 68020 code to build shared libraries, but
8212 # adding the `-m68020' flag to GCC prevents building anything better,
8213 # like `-m68040'.
8214 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8215 ;;
8216 esac
8217 ;;
8218
8219 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8220 # PIC is the default for these OSes.
8221 ;;
8222
8223 mingw* | cygwin* | pw32* | os2* | cegcc*)
8224 # This hack is so that the source file can tell whether it is being
8225 # built for inclusion in a dll (and should export symbols for example).
8226 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8227 # (--disable-auto-import) libraries
8228 lt_prog_compiler_pic='-DDLL_EXPORT'
8229 ;;
8230
8231 darwin* | rhapsody*)
8232 # PIC is the default on this platform
8233 # Common symbols not allowed in MH_DYLIB files
8234 lt_prog_compiler_pic='-fno-common'
8235 ;;
8236
8237 haiku*)
8238 # PIC is the default for Haiku.
8239 # The "-static" flag exists, but is broken.
8240 lt_prog_compiler_static=
8241 ;;
8242
8243 hpux*)
8244 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8245 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8246 # sets the default TLS model and affects inlining.
8247 case $host_cpu in
8248 hppa*64*)
8249 # +Z the default
8250 ;;
8251 *)
8252 lt_prog_compiler_pic='-fPIC'
8253 ;;
8254 esac
8255 ;;
8256
8257 interix[3-9]*)
8258 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8259 # Instead, we relocate shared libraries at runtime.
8260 ;;
8261
8262 msdosdjgpp*)
8263 # Just because we use GCC doesn't mean we suddenly get shared libraries
8264 # on systems that don't support them.
8265 lt_prog_compiler_can_build_shared=no
8266 enable_shared=no
8267 ;;
8268
8269 *nto* | *qnx*)
8270 # QNX uses GNU C++, but need to define -shared option too, otherwise
8271 # it will coredump.
8272 lt_prog_compiler_pic='-fPIC -shared'
8273 ;;
8274
8275 sysv4*MP*)
8276 if test -d /usr/nec; then
8277 lt_prog_compiler_pic=-Kconform_pic
8278 fi
8279 ;;
8280
8281 *)
8282 lt_prog_compiler_pic='-fPIC'
8283 ;;
8284 esac
8285
8286 case $cc_basename in
8287 nvcc*) # Cuda Compiler Driver 2.2
8288 lt_prog_compiler_wl='-Xlinker '
8289 lt_prog_compiler_pic='-Xcompiler -fPIC'
8290 ;;
8291 esac
8292 else
8293 # PORTME Check for flag to pass linker flags through the system compiler.
8294 case $host_os in
8295 aix*)
8296 lt_prog_compiler_wl='-Wl,'
8297 if test "$host_cpu" = ia64; then
8298 # AIX 5 now supports IA64 processor
8299 lt_prog_compiler_static='-Bstatic'
8300 else
8301 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8302 fi
8303 ;;
8304
8305 mingw* | cygwin* | pw32* | os2* | cegcc*)
8306 # This hack is so that the source file can tell whether it is being
8307 # built for inclusion in a dll (and should export symbols for example).
8308 lt_prog_compiler_pic='-DDLL_EXPORT'
8309 ;;
8310
8311 hpux9* | hpux10* | hpux11*)
8312 lt_prog_compiler_wl='-Wl,'
8313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8314 # not for PA HP-UX.
8315 case $host_cpu in
8316 hppa*64*|ia64*)
8317 # +Z the default
8318 ;;
8319 *)
8320 lt_prog_compiler_pic='+Z'
8321 ;;
8322 esac
8323 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8324 lt_prog_compiler_static='${wl}-a ${wl}archive'
8325 ;;
8326
8327 irix5* | irix6* | nonstopux*)
8328 lt_prog_compiler_wl='-Wl,'
8329 # PIC (with -KPIC) is the default.
8330 lt_prog_compiler_static='-non_shared'
8331 ;;
8332
8333 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8334 case $cc_basename in
8335 # old Intel for x86_64 which still supported -KPIC.
8336 ecc*)
8337 lt_prog_compiler_wl='-Wl,'
8338 lt_prog_compiler_pic='-KPIC'
8339 lt_prog_compiler_static='-static'
8340 ;;
8341 # icc used to be incompatible with GCC.
8342 # ICC 10 doesn't accept -KPIC any more.
8343 icc* | ifort*)
8344 lt_prog_compiler_wl='-Wl,'
8345 lt_prog_compiler_pic='-fPIC'
8346 lt_prog_compiler_static='-static'
8347 ;;
8348 # Lahey Fortran 8.1.
8349 lf95*)
8350 lt_prog_compiler_wl='-Wl,'
8351 lt_prog_compiler_pic='--shared'
8352 lt_prog_compiler_static='--static'
8353 ;;
8354 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8355 # Portland Group compilers (*not* the Pentium gcc compiler,
8356 # which looks to be a dead project)
8357 lt_prog_compiler_wl='-Wl,'
8358 lt_prog_compiler_pic='-fpic'
8359 lt_prog_compiler_static='-Bstatic'
8360 ;;
8361 ccc*)
8362 lt_prog_compiler_wl='-Wl,'
8363 # All Alpha code is PIC.
8364 lt_prog_compiler_static='-non_shared'
8365 ;;
8366 xl* | bgxl* | bgf* | mpixl*)
8367 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8368 lt_prog_compiler_wl='-Wl,'
8369 lt_prog_compiler_pic='-qpic'
8370 lt_prog_compiler_static='-qstaticlink'
8371 ;;
8372 *)
8373 case `$CC -V 2>&1 | sed 5q` in
8374 *Sun\ F* | *Sun*Fortran*)
8375 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8376 lt_prog_compiler_pic='-KPIC'
8377 lt_prog_compiler_static='-Bstatic'
8378 lt_prog_compiler_wl=''
8379 ;;
8380 *Sun\ C*)
8381 # Sun C 5.9
8382 lt_prog_compiler_pic='-KPIC'
8383 lt_prog_compiler_static='-Bstatic'
8384 lt_prog_compiler_wl='-Wl,'
8385 ;;
8386 esac
8387 ;;
8388 esac
8389 ;;
8390
8391 newsos6)
8392 lt_prog_compiler_pic='-KPIC'
8393 lt_prog_compiler_static='-Bstatic'
8394 ;;
8395
8396 *nto* | *qnx*)
8397 # QNX uses GNU C++, but need to define -shared option too, otherwise
8398 # it will coredump.
8399 lt_prog_compiler_pic='-fPIC -shared'
8400 ;;
8401
8402 osf3* | osf4* | osf5*)
8403 lt_prog_compiler_wl='-Wl,'
8404 # All OSF/1 code is PIC.
8405 lt_prog_compiler_static='-non_shared'
8406 ;;
8407
8408 rdos*)
8409 lt_prog_compiler_static='-non_shared'
8410 ;;
8411
8412 solaris*)
8413 lt_prog_compiler_pic='-KPIC'
8414 lt_prog_compiler_static='-Bstatic'
8415 case $cc_basename in
8416 f77* | f90* | f95*)
8417 lt_prog_compiler_wl='-Qoption ld ';;
8418 *)
8419 lt_prog_compiler_wl='-Wl,';;
8420 esac
8421 ;;
8422
8423 sunos4*)
8424 lt_prog_compiler_wl='-Qoption ld '
8425 lt_prog_compiler_pic='-PIC'
8426 lt_prog_compiler_static='-Bstatic'
8427 ;;
8428
8429 sysv4 | sysv4.2uw2* | sysv4.3*)
8430 lt_prog_compiler_wl='-Wl,'
8431 lt_prog_compiler_pic='-KPIC'
8432 lt_prog_compiler_static='-Bstatic'
8433 ;;
8434
8435 sysv4*MP*)
8436 if test -d /usr/nec ;then
8437 lt_prog_compiler_pic='-Kconform_pic'
8438 lt_prog_compiler_static='-Bstatic'
8439 fi
8440 ;;
8441
8442 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8443 lt_prog_compiler_wl='-Wl,'
8444 lt_prog_compiler_pic='-KPIC'
8445 lt_prog_compiler_static='-Bstatic'
8446 ;;
8447
8448 unicos*)
8449 lt_prog_compiler_wl='-Wl,'
8450 lt_prog_compiler_can_build_shared=no
8451 ;;
8452
8453 uts4*)
8454 lt_prog_compiler_pic='-pic'
8455 lt_prog_compiler_static='-Bstatic'
8456 ;;
8457
8458 *)
8459 lt_prog_compiler_can_build_shared=no
8460 ;;
8461 esac
8462 fi
8463
8464 case $host_os in
8465 # For platforms which do not support PIC, -DPIC is meaningless:
8466 *djgpp*)
8467 lt_prog_compiler_pic=
8468 ;;
8469 *)
8470 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8471 ;;
8472 esac
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8474 $as_echo "$lt_prog_compiler_pic" >&6; }
8475
8476
8477
8478
8479
8480
8481 #
8482 # Check to make sure the PIC flag actually works.
8483 #
8484 if test -n "$lt_prog_compiler_pic"; then
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8486 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8487 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 lt_cv_prog_compiler_pic_works=no
8491 ac_outfile=conftest.$ac_objext
8492 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8493 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8494 # Insert the option either (1) after the last *FLAGS variable, or
8495 # (2) before a word containing "conftest.", or (3) at the end.
8496 # Note that $ac_compile itself does not contain backslashes and begins
8497 # with a dollar sign (not a hyphen), so the echo should work correctly.
8498 # The option is referenced via a variable to avoid confusing sed.
8499 lt_compile=`echo "$ac_compile" | $SED \
8500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8502 -e 's:$: $lt_compiler_flag:'`
8503 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8504 (eval "$lt_compile" 2>conftest.err)
8505 ac_status=$?
8506 cat conftest.err >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 if (exit $ac_status) && test -s "$ac_outfile"; then
8509 # The compiler can only warn and ignore the option if not recognized
8510 # So say no if there are warnings other than the usual output.
8511 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8512 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8513 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8514 lt_cv_prog_compiler_pic_works=yes
8515 fi
8516 fi
8517 $RM conftest*
8518
8519 fi
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8521 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8522
8523 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8524 case $lt_prog_compiler_pic in
8525 "" | " "*) ;;
8526 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8527 esac
8528 else
8529 lt_prog_compiler_pic=
8530 lt_prog_compiler_can_build_shared=no
8531 fi
8532
8533 fi
8534
8535
8536
8537
8538
8539
8540 #
8541 # Check to make sure the static flag actually works.
8542 #
8543 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8545 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8546 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8547 $as_echo_n "(cached) " >&6
8548 else
8549 lt_cv_prog_compiler_static_works=no
8550 save_LDFLAGS="$LDFLAGS"
8551 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8552 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8553 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8554 # The linker can only warn and ignore the option if not recognized
8555 # So say no if there are warnings
8556 if test -s conftest.err; then
8557 # Append any errors to the config.log.
8558 cat conftest.err 1>&5
8559 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8560 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8561 if diff conftest.exp conftest.er2 >/dev/null; then
8562 lt_cv_prog_compiler_static_works=yes
8563 fi
8564 else
8565 lt_cv_prog_compiler_static_works=yes
8566 fi
8567 fi
8568 $RM -r conftest*
8569 LDFLAGS="$save_LDFLAGS"
8570
8571 fi
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8573 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8574
8575 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8576 :
8577 else
8578 lt_prog_compiler_static=
8579 fi
8580
8581
8582
8583
8584
8585
8586
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8588 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8589 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8590 $as_echo_n "(cached) " >&6
8591 else
8592 lt_cv_prog_compiler_c_o=no
8593 $RM -r conftest 2>/dev/null
8594 mkdir conftest
8595 cd conftest
8596 mkdir out
8597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8598
8599 lt_compiler_flag="-o out/conftest2.$ac_objext"
8600 # Insert the option either (1) after the last *FLAGS variable, or
8601 # (2) before a word containing "conftest.", or (3) at the end.
8602 # Note that $ac_compile itself does not contain backslashes and begins
8603 # with a dollar sign (not a hyphen), so the echo should work correctly.
8604 lt_compile=`echo "$ac_compile" | $SED \
8605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8607 -e 's:$: $lt_compiler_flag:'`
8608 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8609 (eval "$lt_compile" 2>out/conftest.err)
8610 ac_status=$?
8611 cat out/conftest.err >&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8614 then
8615 # The compiler can only warn and ignore the option if not recognized
8616 # So say no if there are warnings
8617 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8618 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8619 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8620 lt_cv_prog_compiler_c_o=yes
8621 fi
8622 fi
8623 chmod u+w . 2>&5
8624 $RM conftest*
8625 # SGI C++ compiler will create directory out/ii_files/ for
8626 # template instantiation
8627 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8628 $RM out/* && rmdir out
8629 cd ..
8630 $RM -r conftest
8631 $RM conftest*
8632
8633 fi
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8635 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8636
8637
8638
8639
8640
8641
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8643 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8644 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8645 $as_echo_n "(cached) " >&6
8646 else
8647 lt_cv_prog_compiler_c_o=no
8648 $RM -r conftest 2>/dev/null
8649 mkdir conftest
8650 cd conftest
8651 mkdir out
8652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8653
8654 lt_compiler_flag="-o out/conftest2.$ac_objext"
8655 # Insert the option either (1) after the last *FLAGS variable, or
8656 # (2) before a word containing "conftest.", or (3) at the end.
8657 # Note that $ac_compile itself does not contain backslashes and begins
8658 # with a dollar sign (not a hyphen), so the echo should work correctly.
8659 lt_compile=`echo "$ac_compile" | $SED \
8660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8662 -e 's:$: $lt_compiler_flag:'`
8663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8664 (eval "$lt_compile" 2>out/conftest.err)
8665 ac_status=$?
8666 cat out/conftest.err >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8669 then
8670 # The compiler can only warn and ignore the option if not recognized
8671 # So say no if there are warnings
8672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8673 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8674 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8675 lt_cv_prog_compiler_c_o=yes
8676 fi
8677 fi
8678 chmod u+w . 2>&5
8679 $RM conftest*
8680 # SGI C++ compiler will create directory out/ii_files/ for
8681 # template instantiation
8682 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8683 $RM out/* && rmdir out
8684 cd ..
8685 $RM -r conftest
8686 $RM conftest*
8687
8688 fi
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8690 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8691
8692
8693
8694
8695 hard_links="nottested"
8696 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8697 # do not overwrite the value of need_locks provided by the user
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8699 $as_echo_n "checking if we can lock with hard links... " >&6; }
8700 hard_links=yes
8701 $RM conftest*
8702 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8703 touch conftest.a
8704 ln conftest.a conftest.b 2>&5 || hard_links=no
8705 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8707 $as_echo "$hard_links" >&6; }
8708 if test "$hard_links" = no; then
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8710 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8711 need_locks=warn
8712 fi
8713 else
8714 need_locks=no
8715 fi
8716
8717
8718
8719
8720
8721
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8723 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8724
8725 runpath_var=
8726 allow_undefined_flag=
8727 always_export_symbols=no
8728 archive_cmds=
8729 archive_expsym_cmds=
8730 compiler_needs_object=no
8731 enable_shared_with_static_runtimes=no
8732 export_dynamic_flag_spec=
8733 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8734 hardcode_automatic=no
8735 hardcode_direct=no
8736 hardcode_direct_absolute=no
8737 hardcode_libdir_flag_spec=
8738 hardcode_libdir_flag_spec_ld=
8739 hardcode_libdir_separator=
8740 hardcode_minus_L=no
8741 hardcode_shlibpath_var=unsupported
8742 inherit_rpath=no
8743 link_all_deplibs=unknown
8744 module_cmds=
8745 module_expsym_cmds=
8746 old_archive_from_new_cmds=
8747 old_archive_from_expsyms_cmds=
8748 thread_safe_flag_spec=
8749 whole_archive_flag_spec=
8750 # include_expsyms should be a list of space-separated symbols to be *always*
8751 # included in the symbol list
8752 include_expsyms=
8753 # exclude_expsyms can be an extended regexp of symbols to exclude
8754 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8755 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8756 # as well as any symbol that contains `d'.
8757 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8758 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8759 # platforms (ab)use it in PIC code, but their linkers get confused if
8760 # the symbol is explicitly referenced. Since portable code cannot
8761 # rely on this symbol name, it's probably fine to never include it in
8762 # preloaded symbol tables.
8763 # Exclude shared library initialization/finalization symbols.
8764 extract_expsyms_cmds=
8765
8766 case $host_os in
8767 cygwin* | mingw* | pw32* | cegcc*)
8768 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8769 # When not using gcc, we currently assume that we are using
8770 # Microsoft Visual C++.
8771 if test "$GCC" != yes; then
8772 with_gnu_ld=no
8773 fi
8774 ;;
8775 interix*)
8776 # we just hope/assume this is gcc and not c89 (= MSVC++)
8777 with_gnu_ld=yes
8778 ;;
8779 openbsd*)
8780 with_gnu_ld=no
8781 ;;
8782 esac
8783
8784 ld_shlibs=yes
8785
8786 # On some targets, GNU ld is compatible enough with the native linker
8787 # that we're better off using the native interface for both.
8788 lt_use_gnu_ld_interface=no
8789 if test "$with_gnu_ld" = yes; then
8790 case $host_os in
8791 aix*)
8792 # The AIX port of GNU ld has always aspired to compatibility
8793 # with the native linker. However, as the warning in the GNU ld
8794 # block says, versions before 2.19.5* couldn't really create working
8795 # shared libraries, regardless of the interface used.
8796 case `$LD -v 2>&1` in
8797 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8798 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8799 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8800 *)
8801 lt_use_gnu_ld_interface=yes
8802 ;;
8803 esac
8804 ;;
8805 *)
8806 lt_use_gnu_ld_interface=yes
8807 ;;
8808 esac
8809 fi
8810
8811 if test "$lt_use_gnu_ld_interface" = yes; then
8812 # If archive_cmds runs LD, not CC, wlarc should be empty
8813 wlarc='${wl}'
8814
8815 # Set some defaults for GNU ld with shared library support. These
8816 # are reset later if shared libraries are not supported. Putting them
8817 # here allows them to be overridden if necessary.
8818 runpath_var=LD_RUN_PATH
8819 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8820 export_dynamic_flag_spec='${wl}--export-dynamic'
8821 # ancient GNU ld didn't support --whole-archive et. al.
8822 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8823 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8824 else
8825 whole_archive_flag_spec=
8826 fi
8827 supports_anon_versioning=no
8828 case `$LD -v 2>&1` in
8829 *GNU\ gold*) supports_anon_versioning=yes ;;
8830 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8831 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8832 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8833 *\ 2.11.*) ;; # other 2.11 versions
8834 *) supports_anon_versioning=yes ;;
8835 esac
8836
8837 # See if GNU ld supports shared libraries.
8838 case $host_os in
8839 aix[3-9]*)
8840 # On AIX/PPC, the GNU linker is very broken
8841 if test "$host_cpu" != ia64; then
8842 ld_shlibs=no
8843 cat <<_LT_EOF 1>&2
8844
8845 *** Warning: the GNU linker, at least up to release 2.19, is reported
8846 *** to be unable to reliably create shared libraries on AIX.
8847 *** Therefore, libtool is disabling shared libraries support. If you
8848 *** really care for shared libraries, you may want to install binutils
8849 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8850 *** You will then need to restart the configuration process.
8851
8852 _LT_EOF
8853 fi
8854 ;;
8855
8856 amigaos*)
8857 case $host_cpu in
8858 powerpc)
8859 # see comment about AmigaOS4 .so support
8860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8861 archive_expsym_cmds=''
8862 ;;
8863 m68k)
8864 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)'
8865 hardcode_libdir_flag_spec='-L$libdir'
8866 hardcode_minus_L=yes
8867 ;;
8868 esac
8869 ;;
8870
8871 beos*)
8872 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8873 allow_undefined_flag=unsupported
8874 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8875 # support --undefined. This deserves some investigation. FIXME
8876 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8877 else
8878 ld_shlibs=no
8879 fi
8880 ;;
8881
8882 cygwin* | mingw* | pw32* | cegcc*)
8883 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8884 # as there is no search path for DLLs.
8885 hardcode_libdir_flag_spec='-L$libdir'
8886 export_dynamic_flag_spec='${wl}--export-all-symbols'
8887 allow_undefined_flag=unsupported
8888 always_export_symbols=no
8889 enable_shared_with_static_runtimes=yes
8890 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8891
8892 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8894 # If the export-symbols file already is a .def file (1st line
8895 # is EXPORTS), use it as is; otherwise, prepend...
8896 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8897 cp $export_symbols $output_objdir/$soname.def;
8898 else
8899 echo EXPORTS > $output_objdir/$soname.def;
8900 cat $export_symbols >> $output_objdir/$soname.def;
8901 fi~
8902 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8903 else
8904 ld_shlibs=no
8905 fi
8906 ;;
8907
8908 haiku*)
8909 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8910 link_all_deplibs=yes
8911 ;;
8912
8913 interix[3-9]*)
8914 hardcode_direct=no
8915 hardcode_shlibpath_var=no
8916 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8917 export_dynamic_flag_spec='${wl}-E'
8918 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8919 # Instead, shared libraries are loaded at an image base (0x10000000 by
8920 # default) and relocated if they conflict, which is a slow very memory
8921 # consuming and fragmenting process. To avoid this, we pick a random,
8922 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8923 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8924 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8925 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'
8926 ;;
8927
8928 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8929 tmp_diet=no
8930 if test "$host_os" = linux-dietlibc; then
8931 case $cc_basename in
8932 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8933 esac
8934 fi
8935 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8936 && test "$tmp_diet" = no
8937 then
8938 tmp_addflag=' $pic_flag'
8939 tmp_sharedflag='-shared'
8940 case $cc_basename,$host_cpu in
8941 pgcc*) # Portland Group C compiler
8942 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'
8943 tmp_addflag=' $pic_flag'
8944 ;;
8945 pgf77* | pgf90* | pgf95* | pgfortran*)
8946 # Portland Group f77 and f90 compilers
8947 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'
8948 tmp_addflag=' $pic_flag -Mnomain' ;;
8949 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8950 tmp_addflag=' -i_dynamic' ;;
8951 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8952 tmp_addflag=' -i_dynamic -nofor_main' ;;
8953 ifc* | ifort*) # Intel Fortran compiler
8954 tmp_addflag=' -nofor_main' ;;
8955 lf95*) # Lahey Fortran 8.1
8956 whole_archive_flag_spec=
8957 tmp_sharedflag='--shared' ;;
8958 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8959 tmp_sharedflag='-qmkshrobj'
8960 tmp_addflag= ;;
8961 nvcc*) # Cuda Compiler Driver 2.2
8962 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'
8963 compiler_needs_object=yes
8964 ;;
8965 esac
8966 case `$CC -V 2>&1 | sed 5q` in
8967 *Sun\ C*) # Sun C 5.9
8968 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'
8969 compiler_needs_object=yes
8970 tmp_sharedflag='-G' ;;
8971 *Sun\ F*) # Sun Fortran 8.3
8972 tmp_sharedflag='-G' ;;
8973 esac
8974 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8975
8976 if test "x$supports_anon_versioning" = xyes; then
8977 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8978 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8979 echo "local: *; };" >> $output_objdir/$libname.ver~
8980 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8981 fi
8982
8983 case $cc_basename in
8984 xlf* | bgf* | bgxlf* | mpixlf*)
8985 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8986 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8987 hardcode_libdir_flag_spec=
8988 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8989 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8990 if test "x$supports_anon_versioning" = xyes; then
8991 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8992 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8993 echo "local: *; };" >> $output_objdir/$libname.ver~
8994 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8995 fi
8996 ;;
8997 esac
8998 else
8999 ld_shlibs=no
9000 fi
9001 ;;
9002
9003 netbsd*)
9004 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9005 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9006 wlarc=
9007 else
9008 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9009 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9010 fi
9011 ;;
9012
9013 solaris*)
9014 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9015 ld_shlibs=no
9016 cat <<_LT_EOF 1>&2
9017
9018 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9019 *** create shared libraries on Solaris systems. Therefore, libtool
9020 *** is disabling shared libraries support. We urge you to upgrade GNU
9021 *** binutils to release 2.9.1 or newer. Another option is to modify
9022 *** your PATH or compiler configuration so that the native linker is
9023 *** used, and then restart.
9024
9025 _LT_EOF
9026 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9028 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9029 else
9030 ld_shlibs=no
9031 fi
9032 ;;
9033
9034 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9035 case `$LD -v 2>&1` in
9036 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9037 ld_shlibs=no
9038 cat <<_LT_EOF 1>&2
9039
9040 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9041 *** reliably create shared libraries on SCO systems. Therefore, libtool
9042 *** is disabling shared libraries support. We urge you to upgrade GNU
9043 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9044 *** your PATH or compiler configuration so that the native linker is
9045 *** used, and then restart.
9046
9047 _LT_EOF
9048 ;;
9049 *)
9050 # For security reasons, it is highly recommended that you always
9051 # use absolute paths for naming shared libraries, and exclude the
9052 # DT_RUNPATH tag from executables and libraries. But doing so
9053 # requires that you compile everything twice, which is a pain.
9054 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9055 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9057 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9058 else
9059 ld_shlibs=no
9060 fi
9061 ;;
9062 esac
9063 ;;
9064
9065 sunos4*)
9066 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9067 wlarc=
9068 hardcode_direct=yes
9069 hardcode_shlibpath_var=no
9070 ;;
9071
9072 *)
9073 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9076 else
9077 ld_shlibs=no
9078 fi
9079 ;;
9080 esac
9081
9082 if test "$ld_shlibs" = no; then
9083 runpath_var=
9084 hardcode_libdir_flag_spec=
9085 export_dynamic_flag_spec=
9086 whole_archive_flag_spec=
9087 fi
9088 else
9089 # PORTME fill in a description of your system's linker (not GNU ld)
9090 case $host_os in
9091 aix3*)
9092 allow_undefined_flag=unsupported
9093 always_export_symbols=yes
9094 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'
9095 # Note: this linker hardcodes the directories in LIBPATH if there
9096 # are no directories specified by -L.
9097 hardcode_minus_L=yes
9098 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9099 # Neither direct hardcoding nor static linking is supported with a
9100 # broken collect2.
9101 hardcode_direct=unsupported
9102 fi
9103 ;;
9104
9105 aix[4-9]*)
9106 if test "$host_cpu" = ia64; then
9107 # On IA64, the linker does run time linking by default, so we don't
9108 # have to do anything special.
9109 aix_use_runtimelinking=no
9110 exp_sym_flag='-Bexport'
9111 no_entry_flag=""
9112 else
9113 # If we're using GNU nm, then we don't want the "-C" option.
9114 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9115 # Also, AIX nm treats weak defined symbols like other global
9116 # defined symbols, whereas GNU nm marks them as "W".
9117 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9118 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'
9119 else
9120 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9121 fi
9122 aix_use_runtimelinking=no
9123
9124 # Test if we are trying to use run time linking or normal
9125 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9126 # need to do runtime linking.
9127 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9128 for ld_flag in $LDFLAGS; do
9129 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9130 aix_use_runtimelinking=yes
9131 break
9132 fi
9133 done
9134 ;;
9135 esac
9136
9137 exp_sym_flag='-bexport'
9138 no_entry_flag='-bnoentry'
9139 fi
9140
9141 # When large executables or shared objects are built, AIX ld can
9142 # have problems creating the table of contents. If linking a library
9143 # or program results in "error TOC overflow" add -mminimal-toc to
9144 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9145 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9146
9147 archive_cmds=''
9148 hardcode_direct=yes
9149 hardcode_direct_absolute=yes
9150 hardcode_libdir_separator=':'
9151 link_all_deplibs=yes
9152 file_list_spec='${wl}-f,'
9153
9154 if test "$GCC" = yes; then
9155 case $host_os in aix4.[012]|aix4.[012].*)
9156 # We only want to do this on AIX 4.2 and lower, the check
9157 # below for broken collect2 doesn't work under 4.3+
9158 collect2name=`${CC} -print-prog-name=collect2`
9159 if test -f "$collect2name" &&
9160 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9161 then
9162 # We have reworked collect2
9163 :
9164 else
9165 # We have old collect2
9166 hardcode_direct=unsupported
9167 # It fails to find uninstalled libraries when the uninstalled
9168 # path is not listed in the libpath. Setting hardcode_minus_L
9169 # to unsupported forces relinking
9170 hardcode_minus_L=yes
9171 hardcode_libdir_flag_spec='-L$libdir'
9172 hardcode_libdir_separator=
9173 fi
9174 ;;
9175 esac
9176 shared_flag='-shared'
9177 if test "$aix_use_runtimelinking" = yes; then
9178 shared_flag="$shared_flag "'${wl}-G'
9179 fi
9180 else
9181 # not using gcc
9182 if test "$host_cpu" = ia64; then
9183 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9184 # chokes on -Wl,-G. The following line is correct:
9185 shared_flag='-G'
9186 else
9187 if test "$aix_use_runtimelinking" = yes; then
9188 shared_flag='${wl}-G'
9189 else
9190 shared_flag='${wl}-bM:SRE'
9191 fi
9192 fi
9193 fi
9194
9195 export_dynamic_flag_spec='${wl}-bexpall'
9196 # It seems that -bexpall does not export symbols beginning with
9197 # underscore (_), so it is better to generate a list of symbols to export.
9198 always_export_symbols=yes
9199 if test "$aix_use_runtimelinking" = yes; then
9200 # Warning - without using the other runtime loading flags (-brtl),
9201 # -berok will link without error, but may produce a broken library.
9202 allow_undefined_flag='-berok'
9203 # Determine the default libpath from the value encoded in an
9204 # empty executable.
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207
9208 int
9209 main ()
9210 {
9211
9212 ;
9213 return 0;
9214 }
9215 _ACEOF
9216 if ac_fn_c_try_link "$LINENO"; then :
9217
9218 lt_aix_libpath_sed='
9219 /Import File Strings/,/^$/ {
9220 /^0/ {
9221 s/^0 *\(.*\)$/\1/
9222 p
9223 }
9224 }'
9225 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9226 # Check for a 64-bit object if we didn't find anything.
9227 if test -z "$aix_libpath"; then
9228 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9229 fi
9230 fi
9231 rm -f core conftest.err conftest.$ac_objext \
9232 conftest$ac_exeext conftest.$ac_ext
9233 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9234
9235 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9236 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"
9237 else
9238 if test "$host_cpu" = ia64; then
9239 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9240 allow_undefined_flag="-z nodefs"
9241 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"
9242 else
9243 # Determine the default libpath from the value encoded in an
9244 # empty executable.
9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9247
9248 int
9249 main ()
9250 {
9251
9252 ;
9253 return 0;
9254 }
9255 _ACEOF
9256 if ac_fn_c_try_link "$LINENO"; then :
9257
9258 lt_aix_libpath_sed='
9259 /Import File Strings/,/^$/ {
9260 /^0/ {
9261 s/^0 *\(.*\)$/\1/
9262 p
9263 }
9264 }'
9265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9266 # Check for a 64-bit object if we didn't find anything.
9267 if test -z "$aix_libpath"; then
9268 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9269 fi
9270 fi
9271 rm -f core conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
9273 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9274
9275 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9276 # Warning - without using the other run time loading flags,
9277 # -berok will link without error, but may produce a broken library.
9278 no_undefined_flag=' ${wl}-bernotok'
9279 allow_undefined_flag=' ${wl}-berok'
9280 if test "$with_gnu_ld" = yes; then
9281 # We only use this code for GNU lds that support --whole-archive.
9282 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9283 else
9284 # Exported symbols can be pulled into shared objects from archives
9285 whole_archive_flag_spec='$convenience'
9286 fi
9287 archive_cmds_need_lc=yes
9288 # This is similar to how AIX traditionally builds its shared libraries.
9289 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'
9290 fi
9291 fi
9292 ;;
9293
9294 amigaos*)
9295 case $host_cpu in
9296 powerpc)
9297 # see comment about AmigaOS4 .so support
9298 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299 archive_expsym_cmds=''
9300 ;;
9301 m68k)
9302 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)'
9303 hardcode_libdir_flag_spec='-L$libdir'
9304 hardcode_minus_L=yes
9305 ;;
9306 esac
9307 ;;
9308
9309 bsdi[45]*)
9310 export_dynamic_flag_spec=-rdynamic
9311 ;;
9312
9313 cygwin* | mingw* | pw32* | cegcc*)
9314 # When not using gcc, we currently assume that we are using
9315 # Microsoft Visual C++.
9316 # hardcode_libdir_flag_spec is actually meaningless, as there is
9317 # no search path for DLLs.
9318 hardcode_libdir_flag_spec=' '
9319 allow_undefined_flag=unsupported
9320 # Tell ltmain to make .lib files, not .a files.
9321 libext=lib
9322 # Tell ltmain to make .dll files, not .so files.
9323 shrext_cmds=".dll"
9324 # FIXME: Setting linknames here is a bad hack.
9325 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9326 # The linker will automatically build a .lib file if we build a DLL.
9327 old_archive_from_new_cmds='true'
9328 # FIXME: Should let the user specify the lib program.
9329 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9330 fix_srcfile_path='`cygpath -w "$srcfile"`'
9331 enable_shared_with_static_runtimes=yes
9332 ;;
9333
9334 darwin* | rhapsody*)
9335
9336
9337 archive_cmds_need_lc=no
9338 hardcode_direct=no
9339 hardcode_automatic=yes
9340 hardcode_shlibpath_var=unsupported
9341 if test "$lt_cv_ld_force_load" = "yes"; then
9342 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\"`'
9343 else
9344 whole_archive_flag_spec=''
9345 fi
9346 link_all_deplibs=yes
9347 allow_undefined_flag="$_lt_dar_allow_undefined"
9348 case $cc_basename in
9349 ifort*) _lt_dar_can_shared=yes ;;
9350 *) _lt_dar_can_shared=$GCC ;;
9351 esac
9352 if test "$_lt_dar_can_shared" = "yes"; then
9353 output_verbose_link_cmd=func_echo_all
9354 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9355 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9356 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}"
9357 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}"
9358
9359 else
9360 ld_shlibs=no
9361 fi
9362
9363 ;;
9364
9365 dgux*)
9366 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9367 hardcode_libdir_flag_spec='-L$libdir'
9368 hardcode_shlibpath_var=no
9369 ;;
9370
9371 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9372 # support. Future versions do this automatically, but an explicit c++rt0.o
9373 # does not break anything, and helps significantly (at the cost of a little
9374 # extra space).
9375 freebsd2.2*)
9376 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9377 hardcode_libdir_flag_spec='-R$libdir'
9378 hardcode_direct=yes
9379 hardcode_shlibpath_var=no
9380 ;;
9381
9382 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9383 freebsd2.*)
9384 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9385 hardcode_direct=yes
9386 hardcode_minus_L=yes
9387 hardcode_shlibpath_var=no
9388 ;;
9389
9390 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9391 freebsd* | dragonfly*)
9392 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9393 hardcode_libdir_flag_spec='-R$libdir'
9394 hardcode_direct=yes
9395 hardcode_shlibpath_var=no
9396 ;;
9397
9398 hpux9*)
9399 if test "$GCC" = yes; then
9400 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'
9401 else
9402 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'
9403 fi
9404 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9405 hardcode_libdir_separator=:
9406 hardcode_direct=yes
9407
9408 # hardcode_minus_L: Not really in the search PATH,
9409 # but as the default location of the library.
9410 hardcode_minus_L=yes
9411 export_dynamic_flag_spec='${wl}-E'
9412 ;;
9413
9414 hpux10*)
9415 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9416 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9417 else
9418 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9419 fi
9420 if test "$with_gnu_ld" = no; then
9421 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9422 hardcode_libdir_flag_spec_ld='+b $libdir'
9423 hardcode_libdir_separator=:
9424 hardcode_direct=yes
9425 hardcode_direct_absolute=yes
9426 export_dynamic_flag_spec='${wl}-E'
9427 # hardcode_minus_L: Not really in the search PATH,
9428 # but as the default location of the library.
9429 hardcode_minus_L=yes
9430 fi
9431 ;;
9432
9433 hpux11*)
9434 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9435 case $host_cpu in
9436 hppa*64*)
9437 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9438 ;;
9439 ia64*)
9440 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9441 ;;
9442 *)
9443 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9444 ;;
9445 esac
9446 else
9447 case $host_cpu in
9448 hppa*64*)
9449 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9450 ;;
9451 ia64*)
9452 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9453 ;;
9454 *)
9455
9456 # Older versions of the 11.00 compiler do not understand -b yet
9457 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9459 $as_echo_n "checking if $CC understands -b... " >&6; }
9460 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9461 $as_echo_n "(cached) " >&6
9462 else
9463 lt_cv_prog_compiler__b=no
9464 save_LDFLAGS="$LDFLAGS"
9465 LDFLAGS="$LDFLAGS -b"
9466 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9467 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9468 # The linker can only warn and ignore the option if not recognized
9469 # So say no if there are warnings
9470 if test -s conftest.err; then
9471 # Append any errors to the config.log.
9472 cat conftest.err 1>&5
9473 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9474 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9475 if diff conftest.exp conftest.er2 >/dev/null; then
9476 lt_cv_prog_compiler__b=yes
9477 fi
9478 else
9479 lt_cv_prog_compiler__b=yes
9480 fi
9481 fi
9482 $RM -r conftest*
9483 LDFLAGS="$save_LDFLAGS"
9484
9485 fi
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9487 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9488
9489 if test x"$lt_cv_prog_compiler__b" = xyes; then
9490 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9491 else
9492 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9493 fi
9494
9495 ;;
9496 esac
9497 fi
9498 if test "$with_gnu_ld" = no; then
9499 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9500 hardcode_libdir_separator=:
9501
9502 case $host_cpu in
9503 hppa*64*|ia64*)
9504 hardcode_direct=no
9505 hardcode_shlibpath_var=no
9506 ;;
9507 *)
9508 hardcode_direct=yes
9509 hardcode_direct_absolute=yes
9510 export_dynamic_flag_spec='${wl}-E'
9511
9512 # hardcode_minus_L: Not really in the search PATH,
9513 # but as the default location of the library.
9514 hardcode_minus_L=yes
9515 ;;
9516 esac
9517 fi
9518 ;;
9519
9520 irix5* | irix6* | nonstopux*)
9521 if test "$GCC" = yes; then
9522 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'
9523 # Try to use the -exported_symbol ld option, if it does not
9524 # work, assume that -exports_file does not work either and
9525 # implicitly export all symbols.
9526 save_LDFLAGS="$LDFLAGS"
9527 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9530 int foo(void) {}
9531 _ACEOF
9532 if ac_fn_c_try_link "$LINENO"; then :
9533 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'
9534
9535 fi
9536 rm -f core conftest.err conftest.$ac_objext \
9537 conftest$ac_exeext conftest.$ac_ext
9538 LDFLAGS="$save_LDFLAGS"
9539 else
9540 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'
9541 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'
9542 fi
9543 archive_cmds_need_lc='no'
9544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9545 hardcode_libdir_separator=:
9546 inherit_rpath=yes
9547 link_all_deplibs=yes
9548 ;;
9549
9550 netbsd*)
9551 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9553 else
9554 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9555 fi
9556 hardcode_libdir_flag_spec='-R$libdir'
9557 hardcode_direct=yes
9558 hardcode_shlibpath_var=no
9559 ;;
9560
9561 newsos6)
9562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9563 hardcode_direct=yes
9564 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9565 hardcode_libdir_separator=:
9566 hardcode_shlibpath_var=no
9567 ;;
9568
9569 *nto* | *qnx*)
9570 ;;
9571
9572 openbsd*)
9573 if test -f /usr/libexec/ld.so; then
9574 hardcode_direct=yes
9575 hardcode_shlibpath_var=no
9576 hardcode_direct_absolute=yes
9577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9578 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9579 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9580 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9581 export_dynamic_flag_spec='${wl}-E'
9582 else
9583 case $host_os in
9584 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9585 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9586 hardcode_libdir_flag_spec='-R$libdir'
9587 ;;
9588 *)
9589 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9590 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9591 ;;
9592 esac
9593 fi
9594 else
9595 ld_shlibs=no
9596 fi
9597 ;;
9598
9599 os2*)
9600 hardcode_libdir_flag_spec='-L$libdir'
9601 hardcode_minus_L=yes
9602 allow_undefined_flag=unsupported
9603 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'
9604 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9605 ;;
9606
9607 osf3*)
9608 if test "$GCC" = yes; then
9609 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9610 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'
9611 else
9612 allow_undefined_flag=' -expect_unresolved \*'
9613 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'
9614 fi
9615 archive_cmds_need_lc='no'
9616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9617 hardcode_libdir_separator=:
9618 ;;
9619
9620 osf4* | osf5*) # as osf3* with the addition of -msym flag
9621 if test "$GCC" = yes; then
9622 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9623 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'
9624 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9625 else
9626 allow_undefined_flag=' -expect_unresolved \*'
9627 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'
9628 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~
9629 $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'
9630
9631 # Both c and cxx compiler support -rpath directly
9632 hardcode_libdir_flag_spec='-rpath $libdir'
9633 fi
9634 archive_cmds_need_lc='no'
9635 hardcode_libdir_separator=:
9636 ;;
9637
9638 solaris*)
9639 no_undefined_flag=' -z defs'
9640 if test "$GCC" = yes; then
9641 wlarc='${wl}'
9642 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9643 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9644 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9645 else
9646 case `$CC -V 2>&1` in
9647 *"Compilers 5.0"*)
9648 wlarc=''
9649 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9650 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9651 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9652 ;;
9653 *)
9654 wlarc='${wl}'
9655 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9656 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9657 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9658 ;;
9659 esac
9660 fi
9661 hardcode_libdir_flag_spec='-R$libdir'
9662 hardcode_shlibpath_var=no
9663 case $host_os in
9664 solaris2.[0-5] | solaris2.[0-5].*) ;;
9665 *)
9666 # The compiler driver will combine and reorder linker options,
9667 # but understands `-z linker_flag'. GCC discards it without `$wl',
9668 # but is careful enough not to reorder.
9669 # Supported since Solaris 2.6 (maybe 2.5.1?)
9670 if test "$GCC" = yes; then
9671 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9672 else
9673 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9674 fi
9675 ;;
9676 esac
9677 link_all_deplibs=yes
9678 ;;
9679
9680 sunos4*)
9681 if test "x$host_vendor" = xsequent; then
9682 # Use $CC to link under sequent, because it throws in some extra .o
9683 # files that make .init and .fini sections work.
9684 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9685 else
9686 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9687 fi
9688 hardcode_libdir_flag_spec='-L$libdir'
9689 hardcode_direct=yes
9690 hardcode_minus_L=yes
9691 hardcode_shlibpath_var=no
9692 ;;
9693
9694 sysv4)
9695 case $host_vendor in
9696 sni)
9697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_direct=yes # is this really true???
9699 ;;
9700 siemens)
9701 ## LD is ld it makes a PLAMLIB
9702 ## CC just makes a GrossModule.
9703 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9704 reload_cmds='$CC -r -o $output$reload_objs'
9705 hardcode_direct=no
9706 ;;
9707 motorola)
9708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9710 ;;
9711 esac
9712 runpath_var='LD_RUN_PATH'
9713 hardcode_shlibpath_var=no
9714 ;;
9715
9716 sysv4.3*)
9717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9718 hardcode_shlibpath_var=no
9719 export_dynamic_flag_spec='-Bexport'
9720 ;;
9721
9722 sysv4*MP*)
9723 if test -d /usr/nec; then
9724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725 hardcode_shlibpath_var=no
9726 runpath_var=LD_RUN_PATH
9727 hardcode_runpath_var=yes
9728 ld_shlibs=yes
9729 fi
9730 ;;
9731
9732 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9733 no_undefined_flag='${wl}-z,text'
9734 archive_cmds_need_lc=no
9735 hardcode_shlibpath_var=no
9736 runpath_var='LD_RUN_PATH'
9737
9738 if test "$GCC" = yes; then
9739 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9740 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9741 else
9742 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9744 fi
9745 ;;
9746
9747 sysv5* | sco3.2v5* | sco5v6*)
9748 # Note: We can NOT use -z defs as we might desire, because we do not
9749 # link with -lc, and that would cause any symbols used from libc to
9750 # always be unresolved, which means just about no library would
9751 # ever link correctly. If we're not using GNU ld we use -z text
9752 # though, which does catch some bad symbols but isn't as heavy-handed
9753 # as -z defs.
9754 no_undefined_flag='${wl}-z,text'
9755 allow_undefined_flag='${wl}-z,nodefs'
9756 archive_cmds_need_lc=no
9757 hardcode_shlibpath_var=no
9758 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9759 hardcode_libdir_separator=':'
9760 link_all_deplibs=yes
9761 export_dynamic_flag_spec='${wl}-Bexport'
9762 runpath_var='LD_RUN_PATH'
9763
9764 if test "$GCC" = yes; then
9765 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9766 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9767 else
9768 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9769 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9770 fi
9771 ;;
9772
9773 uts4*)
9774 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9775 hardcode_libdir_flag_spec='-L$libdir'
9776 hardcode_shlibpath_var=no
9777 ;;
9778
9779 *)
9780 ld_shlibs=no
9781 ;;
9782 esac
9783
9784 if test x$host_vendor = xsni; then
9785 case $host in
9786 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9787 export_dynamic_flag_spec='${wl}-Blargedynsym'
9788 ;;
9789 esac
9790 fi
9791 fi
9792
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9794 $as_echo "$ld_shlibs" >&6; }
9795 test "$ld_shlibs" = no && can_build_shared=no
9796
9797 with_gnu_ld=$with_gnu_ld
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813 #
9814 # Do we need to explicitly link libc?
9815 #
9816 case "x$archive_cmds_need_lc" in
9817 x|xyes)
9818 # Assume -lc should be added
9819 archive_cmds_need_lc=yes
9820
9821 if test "$enable_shared" = yes && test "$GCC" = yes; then
9822 case $archive_cmds in
9823 *'~'*)
9824 # FIXME: we may have to deal with multi-command sequences.
9825 ;;
9826 '$CC '*)
9827 # Test whether the compiler implicitly links with -lc since on some
9828 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9829 # to ld, don't add -lc before -lgcc.
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9831 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9832 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9833 $as_echo_n "(cached) " >&6
9834 else
9835 $RM conftest*
9836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9837
9838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9839 (eval $ac_compile) 2>&5
9840 ac_status=$?
9841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9842 test $ac_status = 0; } 2>conftest.err; then
9843 soname=conftest
9844 lib=conftest
9845 libobjs=conftest.$ac_objext
9846 deplibs=
9847 wl=$lt_prog_compiler_wl
9848 pic_flag=$lt_prog_compiler_pic
9849 compiler_flags=-v
9850 linker_flags=-v
9851 verstring=
9852 output_objdir=.
9853 libname=conftest
9854 lt_save_allow_undefined_flag=$allow_undefined_flag
9855 allow_undefined_flag=
9856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9857 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9858 ac_status=$?
9859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9860 test $ac_status = 0; }
9861 then
9862 lt_cv_archive_cmds_need_lc=no
9863 else
9864 lt_cv_archive_cmds_need_lc=yes
9865 fi
9866 allow_undefined_flag=$lt_save_allow_undefined_flag
9867 else
9868 cat conftest.err 1>&5
9869 fi
9870 $RM conftest*
9871
9872 fi
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9874 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9875 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9876 ;;
9877 esac
9878 fi
9879 ;;
9880 esac
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10039 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10040
10041 if test "$GCC" = yes; then
10042 case $host_os in
10043 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10044 *) lt_awk_arg="/^libraries:/" ;;
10045 esac
10046 case $host_os in
10047 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10048 *) lt_sed_strip_eq="s,=/,/,g" ;;
10049 esac
10050 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10051 case $lt_search_path_spec in
10052 *\;*)
10053 # if the path contains ";" then we assume it to be the separator
10054 # otherwise default to the standard path separator (i.e. ":") - it is
10055 # assumed that no part of a normal pathname contains ";" but that should
10056 # okay in the real world where ";" in dirpaths is itself problematic.
10057 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10058 ;;
10059 *)
10060 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10061 ;;
10062 esac
10063 # Ok, now we have the path, separated by spaces, we can step through it
10064 # and add multilib dir if necessary.
10065 lt_tmp_lt_search_path_spec=
10066 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10067 for lt_sys_path in $lt_search_path_spec; do
10068 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10069 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10070 else
10071 test -d "$lt_sys_path" && \
10072 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10073 fi
10074 done
10075 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10076 BEGIN {RS=" "; FS="/|\n";} {
10077 lt_foo="";
10078 lt_count=0;
10079 for (lt_i = NF; lt_i > 0; lt_i--) {
10080 if ($lt_i != "" && $lt_i != ".") {
10081 if ($lt_i == "..") {
10082 lt_count++;
10083 } else {
10084 if (lt_count == 0) {
10085 lt_foo="/" $lt_i lt_foo;
10086 } else {
10087 lt_count--;
10088 }
10089 }
10090 }
10091 }
10092 if (lt_foo != "") { lt_freq[lt_foo]++; }
10093 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10094 }'`
10095 # AWK program above erroneously prepends '/' to C:/dos/paths
10096 # for these hosts.
10097 case $host_os in
10098 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10099 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10100 esac
10101 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10102 else
10103 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10104 fi
10105 library_names_spec=
10106 libname_spec='lib$name'
10107 soname_spec=
10108 shrext_cmds=".so"
10109 postinstall_cmds=
10110 postuninstall_cmds=
10111 finish_cmds=
10112 finish_eval=
10113 shlibpath_var=
10114 shlibpath_overrides_runpath=unknown
10115 version_type=none
10116 dynamic_linker="$host_os ld.so"
10117 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10118 need_lib_prefix=unknown
10119 hardcode_into_libs=no
10120
10121 # when you set need_version to no, make sure it does not cause -set_version
10122 # flags to be left without arguments
10123 need_version=unknown
10124
10125 case $host_os in
10126 aix3*)
10127 version_type=linux
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10129 shlibpath_var=LIBPATH
10130
10131 # AIX 3 has no versioning support, so we append a major version to the name.
10132 soname_spec='${libname}${release}${shared_ext}$major'
10133 ;;
10134
10135 aix[4-9]*)
10136 version_type=linux
10137 need_lib_prefix=no
10138 need_version=no
10139 hardcode_into_libs=yes
10140 if test "$host_cpu" = ia64; then
10141 # AIX 5 supports IA64
10142 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10143 shlibpath_var=LD_LIBRARY_PATH
10144 else
10145 # With GCC up to 2.95.x, collect2 would create an import file
10146 # for dependence libraries. The import file would start with
10147 # the line `#! .'. This would cause the generated library to
10148 # depend on `.', always an invalid library. This was fixed in
10149 # development snapshots of GCC prior to 3.0.
10150 case $host_os in
10151 aix4 | aix4.[01] | aix4.[01].*)
10152 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10153 echo ' yes '
10154 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10155 :
10156 else
10157 can_build_shared=no
10158 fi
10159 ;;
10160 esac
10161 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10162 # soname into executable. Probably we can add versioning support to
10163 # collect2, so additional links can be useful in future.
10164 if test "$aix_use_runtimelinking" = yes; then
10165 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10166 # instead of lib<name>.a to let people know that these are not
10167 # typical AIX shared libraries.
10168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169 else
10170 # We preserve .a as extension for shared libraries through AIX4.2
10171 # and later when we are not doing run time linking.
10172 library_names_spec='${libname}${release}.a $libname.a'
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 fi
10175 shlibpath_var=LIBPATH
10176 fi
10177 ;;
10178
10179 amigaos*)
10180 case $host_cpu in
10181 powerpc)
10182 # Since July 2007 AmigaOS4 officially supports .so libraries.
10183 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185 ;;
10186 m68k)
10187 library_names_spec='$libname.ixlibrary $libname.a'
10188 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10189 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'
10190 ;;
10191 esac
10192 ;;
10193
10194 beos*)
10195 library_names_spec='${libname}${shared_ext}'
10196 dynamic_linker="$host_os ld.so"
10197 shlibpath_var=LIBRARY_PATH
10198 ;;
10199
10200 bsdi[45]*)
10201 version_type=linux
10202 need_version=no
10203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10204 soname_spec='${libname}${release}${shared_ext}$major'
10205 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10206 shlibpath_var=LD_LIBRARY_PATH
10207 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10208 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10209 # the default ld.so.conf also contains /usr/contrib/lib and
10210 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10211 # libtool to hard-code these into programs
10212 ;;
10213
10214 cygwin* | mingw* | pw32* | cegcc*)
10215 version_type=windows
10216 shrext_cmds=".dll"
10217 need_version=no
10218 need_lib_prefix=no
10219
10220 case $GCC,$host_os in
10221 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10222 library_names_spec='$libname.dll.a'
10223 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10224 postinstall_cmds='base_file=`basename \${file}`~
10225 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10226 dldir=$destdir/`dirname \$dlpath`~
10227 test -d \$dldir || mkdir -p \$dldir~
10228 $install_prog $dir/$dlname \$dldir/$dlname~
10229 chmod a+x \$dldir/$dlname~
10230 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10231 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10232 fi'
10233 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10234 dlpath=$dir/\$dldll~
10235 $RM \$dlpath'
10236 shlibpath_overrides_runpath=yes
10237
10238 case $host_os in
10239 cygwin*)
10240 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10241 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10242
10243 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10244 ;;
10245 mingw* | cegcc*)
10246 # MinGW DLLs use traditional 'lib' prefix
10247 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10248 ;;
10249 pw32*)
10250 # pw32 DLLs use 'pw' prefix rather than 'lib'
10251 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10252 ;;
10253 esac
10254 ;;
10255
10256 *)
10257 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10258 ;;
10259 esac
10260 dynamic_linker='Win32 ld.exe'
10261 # FIXME: first we should search . and the directory the executable is in
10262 shlibpath_var=PATH
10263 ;;
10264
10265 darwin* | rhapsody*)
10266 dynamic_linker="$host_os dyld"
10267 version_type=darwin
10268 need_lib_prefix=no
10269 need_version=no
10270 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10271 soname_spec='${libname}${release}${major}$shared_ext'
10272 shlibpath_overrides_runpath=yes
10273 shlibpath_var=DYLD_LIBRARY_PATH
10274 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10275
10276 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10277 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10278 ;;
10279
10280 dgux*)
10281 version_type=linux
10282 need_lib_prefix=no
10283 need_version=no
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10285 soname_spec='${libname}${release}${shared_ext}$major'
10286 shlibpath_var=LD_LIBRARY_PATH
10287 ;;
10288
10289 freebsd* | dragonfly*)
10290 # DragonFly does not have aout. When/if they implement a new
10291 # versioning mechanism, adjust this.
10292 if test -x /usr/bin/objformat; then
10293 objformat=`/usr/bin/objformat`
10294 else
10295 case $host_os in
10296 freebsd[23].*) objformat=aout ;;
10297 *) objformat=elf ;;
10298 esac
10299 fi
10300 version_type=freebsd-$objformat
10301 case $version_type in
10302 freebsd-elf*)
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10304 need_version=no
10305 need_lib_prefix=no
10306 ;;
10307 freebsd-*)
10308 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10309 need_version=yes
10310 ;;
10311 esac
10312 shlibpath_var=LD_LIBRARY_PATH
10313 case $host_os in
10314 freebsd2.*)
10315 shlibpath_overrides_runpath=yes
10316 ;;
10317 freebsd3.[01]* | freebsdelf3.[01]*)
10318 shlibpath_overrides_runpath=yes
10319 hardcode_into_libs=yes
10320 ;;
10321 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10322 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10323 shlibpath_overrides_runpath=no
10324 hardcode_into_libs=yes
10325 ;;
10326 *) # from 4.6 on, and DragonFly
10327 shlibpath_overrides_runpath=yes
10328 hardcode_into_libs=yes
10329 ;;
10330 esac
10331 ;;
10332
10333 gnu*)
10334 version_type=linux
10335 need_lib_prefix=no
10336 need_version=no
10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10338 soname_spec='${libname}${release}${shared_ext}$major'
10339 shlibpath_var=LD_LIBRARY_PATH
10340 hardcode_into_libs=yes
10341 ;;
10342
10343 haiku*)
10344 version_type=linux
10345 need_lib_prefix=no
10346 need_version=no
10347 dynamic_linker="$host_os runtime_loader"
10348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10349 soname_spec='${libname}${release}${shared_ext}$major'
10350 shlibpath_var=LIBRARY_PATH
10351 shlibpath_overrides_runpath=yes
10352 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10353 hardcode_into_libs=yes
10354 ;;
10355
10356 hpux9* | hpux10* | hpux11*)
10357 # Give a soname corresponding to the major version so that dld.sl refuses to
10358 # link against other versions.
10359 version_type=sunos
10360 need_lib_prefix=no
10361 need_version=no
10362 case $host_cpu in
10363 ia64*)
10364 shrext_cmds='.so'
10365 hardcode_into_libs=yes
10366 dynamic_linker="$host_os dld.so"
10367 shlibpath_var=LD_LIBRARY_PATH
10368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 if test "X$HPUX_IA64_MODE" = X32; then
10372 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10373 else
10374 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10375 fi
10376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10377 ;;
10378 hppa*64*)
10379 shrext_cmds='.sl'
10380 hardcode_into_libs=yes
10381 dynamic_linker="$host_os dld.sl"
10382 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10383 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385 soname_spec='${libname}${release}${shared_ext}$major'
10386 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10387 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10388 ;;
10389 *)
10390 shrext_cmds='.sl'
10391 dynamic_linker="$host_os dld.sl"
10392 shlibpath_var=SHLIB_PATH
10393 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395 soname_spec='${libname}${release}${shared_ext}$major'
10396 ;;
10397 esac
10398 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10399 postinstall_cmds='chmod 555 $lib'
10400 # or fails outright, so override atomically:
10401 install_override_mode=555
10402 ;;
10403
10404 interix[3-9]*)
10405 version_type=linux
10406 need_lib_prefix=no
10407 need_version=no
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10409 soname_spec='${libname}${release}${shared_ext}$major'
10410 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10411 shlibpath_var=LD_LIBRARY_PATH
10412 shlibpath_overrides_runpath=no
10413 hardcode_into_libs=yes
10414 ;;
10415
10416 irix5* | irix6* | nonstopux*)
10417 case $host_os in
10418 nonstopux*) version_type=nonstopux ;;
10419 *)
10420 if test "$lt_cv_prog_gnu_ld" = yes; then
10421 version_type=linux
10422 else
10423 version_type=irix
10424 fi ;;
10425 esac
10426 need_lib_prefix=no
10427 need_version=no
10428 soname_spec='${libname}${release}${shared_ext}$major'
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10430 case $host_os in
10431 irix5* | nonstopux*)
10432 libsuff= shlibsuff=
10433 ;;
10434 *)
10435 case $LD in # libtool.m4 will add one of these switches to LD
10436 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10437 libsuff= shlibsuff= libmagic=32-bit;;
10438 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10439 libsuff=32 shlibsuff=N32 libmagic=N32;;
10440 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10441 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10442 *) libsuff= shlibsuff= libmagic=never-match;;
10443 esac
10444 ;;
10445 esac
10446 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10447 shlibpath_overrides_runpath=no
10448 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10449 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10450 hardcode_into_libs=yes
10451 ;;
10452
10453 # No shared lib support for Linux oldld, aout, or coff.
10454 linux*oldld* | linux*aout* | linux*coff*)
10455 dynamic_linker=no
10456 ;;
10457
10458 # This must be Linux ELF.
10459 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10460 version_type=linux
10461 need_lib_prefix=no
10462 need_version=no
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 shlibpath_overrides_runpath=no
10468
10469 # Some binutils ld are patched to set DT_RUNPATH
10470 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10471 $as_echo_n "(cached) " >&6
10472 else
10473 lt_cv_shlibpath_overrides_runpath=no
10474 save_LDFLAGS=$LDFLAGS
10475 save_libdir=$libdir
10476 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10477 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10479 /* end confdefs.h. */
10480
10481 int
10482 main ()
10483 {
10484
10485 ;
10486 return 0;
10487 }
10488 _ACEOF
10489 if ac_fn_c_try_link "$LINENO"; then :
10490 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10491 lt_cv_shlibpath_overrides_runpath=yes
10492 fi
10493 fi
10494 rm -f core conftest.err conftest.$ac_objext \
10495 conftest$ac_exeext conftest.$ac_ext
10496 LDFLAGS=$save_LDFLAGS
10497 libdir=$save_libdir
10498
10499 fi
10500
10501 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10502
10503 # This implies no fast_install, which is unacceptable.
10504 # Some rework will be needed to allow for fast_install
10505 # before this can be enabled.
10506 hardcode_into_libs=yes
10507
10508 # Append ld.so.conf contents to the search path
10509 if test -f /etc/ld.so.conf; then
10510 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' ' '`
10511 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10512 fi
10513
10514 # We used to test for /lib/ld.so.1 and disable shared libraries on
10515 # powerpc, because MkLinux only supported shared libraries with the
10516 # GNU dynamic linker. Since this was broken with cross compilers,
10517 # most powerpc-linux boxes support dynamic linking these days and
10518 # people can always --disable-shared, the test was removed, and we
10519 # assume the GNU/Linux dynamic linker is in use.
10520 dynamic_linker='GNU/Linux ld.so'
10521 ;;
10522
10523 netbsd*)
10524 version_type=sunos
10525 need_lib_prefix=no
10526 need_version=no
10527 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10530 dynamic_linker='NetBSD (a.out) ld.so'
10531 else
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10533 soname_spec='${libname}${release}${shared_ext}$major'
10534 dynamic_linker='NetBSD ld.elf_so'
10535 fi
10536 shlibpath_var=LD_LIBRARY_PATH
10537 shlibpath_overrides_runpath=yes
10538 hardcode_into_libs=yes
10539 ;;
10540
10541 newsos6)
10542 version_type=linux
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 shlibpath_var=LD_LIBRARY_PATH
10545 shlibpath_overrides_runpath=yes
10546 ;;
10547
10548 *nto* | *qnx*)
10549 version_type=qnx
10550 need_lib_prefix=no
10551 need_version=no
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553 soname_spec='${libname}${release}${shared_ext}$major'
10554 shlibpath_var=LD_LIBRARY_PATH
10555 shlibpath_overrides_runpath=no
10556 hardcode_into_libs=yes
10557 dynamic_linker='ldqnx.so'
10558 ;;
10559
10560 openbsd*)
10561 version_type=sunos
10562 sys_lib_dlsearch_path_spec="/usr/lib"
10563 need_lib_prefix=no
10564 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10565 case $host_os in
10566 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10567 *) need_version=no ;;
10568 esac
10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10571 shlibpath_var=LD_LIBRARY_PATH
10572 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10573 case $host_os in
10574 openbsd2.[89] | openbsd2.[89].*)
10575 shlibpath_overrides_runpath=no
10576 ;;
10577 *)
10578 shlibpath_overrides_runpath=yes
10579 ;;
10580 esac
10581 else
10582 shlibpath_overrides_runpath=yes
10583 fi
10584 ;;
10585
10586 os2*)
10587 libname_spec='$name'
10588 shrext_cmds=".dll"
10589 need_lib_prefix=no
10590 library_names_spec='$libname${shared_ext} $libname.a'
10591 dynamic_linker='OS/2 ld.exe'
10592 shlibpath_var=LIBPATH
10593 ;;
10594
10595 osf3* | osf4* | osf5*)
10596 version_type=osf
10597 need_lib_prefix=no
10598 need_version=no
10599 soname_spec='${libname}${release}${shared_ext}$major'
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10601 shlibpath_var=LD_LIBRARY_PATH
10602 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10603 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10604 ;;
10605
10606 rdos*)
10607 dynamic_linker=no
10608 ;;
10609
10610 solaris*)
10611 version_type=linux
10612 need_lib_prefix=no
10613 need_version=no
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 soname_spec='${libname}${release}${shared_ext}$major'
10616 shlibpath_var=LD_LIBRARY_PATH
10617 shlibpath_overrides_runpath=yes
10618 hardcode_into_libs=yes
10619 # ldd complains unless libraries are executable
10620 postinstall_cmds='chmod +x $lib'
10621 ;;
10622
10623 sunos4*)
10624 version_type=sunos
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10626 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10627 shlibpath_var=LD_LIBRARY_PATH
10628 shlibpath_overrides_runpath=yes
10629 if test "$with_gnu_ld" = yes; then
10630 need_lib_prefix=no
10631 fi
10632 need_version=yes
10633 ;;
10634
10635 sysv4 | sysv4.3*)
10636 version_type=linux
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 case $host_vendor in
10641 sni)
10642 shlibpath_overrides_runpath=no
10643 need_lib_prefix=no
10644 runpath_var=LD_RUN_PATH
10645 ;;
10646 siemens)
10647 need_lib_prefix=no
10648 ;;
10649 motorola)
10650 need_lib_prefix=no
10651 need_version=no
10652 shlibpath_overrides_runpath=no
10653 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10654 ;;
10655 esac
10656 ;;
10657
10658 sysv4*MP*)
10659 if test -d /usr/nec ;then
10660 version_type=linux
10661 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10662 soname_spec='$libname${shared_ext}.$major'
10663 shlibpath_var=LD_LIBRARY_PATH
10664 fi
10665 ;;
10666
10667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10668 version_type=freebsd-elf
10669 need_lib_prefix=no
10670 need_version=no
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10672 soname_spec='${libname}${release}${shared_ext}$major'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 shlibpath_overrides_runpath=yes
10675 hardcode_into_libs=yes
10676 if test "$with_gnu_ld" = yes; then
10677 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10678 else
10679 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10680 case $host_os in
10681 sco3.2v5*)
10682 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10683 ;;
10684 esac
10685 fi
10686 sys_lib_dlsearch_path_spec='/usr/lib'
10687 ;;
10688
10689 tpf*)
10690 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10691 version_type=linux
10692 need_lib_prefix=no
10693 need_version=no
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10695 shlibpath_var=LD_LIBRARY_PATH
10696 shlibpath_overrides_runpath=no
10697 hardcode_into_libs=yes
10698 ;;
10699
10700 uts4*)
10701 version_type=linux
10702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703 soname_spec='${libname}${release}${shared_ext}$major'
10704 shlibpath_var=LD_LIBRARY_PATH
10705 ;;
10706
10707 *)
10708 dynamic_linker=no
10709 ;;
10710 esac
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10712 $as_echo "$dynamic_linker" >&6; }
10713 test "$dynamic_linker" = no && can_build_shared=no
10714
10715 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10716 if test "$GCC" = yes; then
10717 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10718 fi
10719
10720 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10721 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10722 fi
10723 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10724 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10725 fi
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10819 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10820 hardcode_action=
10821 if test -n "$hardcode_libdir_flag_spec" ||
10822 test -n "$runpath_var" ||
10823 test "X$hardcode_automatic" = "Xyes" ; then
10824
10825 # We can hardcode non-existent directories.
10826 if test "$hardcode_direct" != no &&
10827 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10828 # have to relink, otherwise we might link with an installed library
10829 # when we should be linking with a yet-to-be-installed one
10830 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10831 test "$hardcode_minus_L" != no; then
10832 # Linking always hardcodes the temporary library directory.
10833 hardcode_action=relink
10834 else
10835 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10836 hardcode_action=immediate
10837 fi
10838 else
10839 # We cannot hardcode anything, or else we can only hardcode existing
10840 # directories.
10841 hardcode_action=unsupported
10842 fi
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10844 $as_echo "$hardcode_action" >&6; }
10845
10846 if test "$hardcode_action" = relink ||
10847 test "$inherit_rpath" = yes; then
10848 # Fast installation is not supported
10849 enable_fast_install=no
10850 elif test "$shlibpath_overrides_runpath" = yes ||
10851 test "$enable_shared" = no; then
10852 # Fast installation is not necessary
10853 enable_fast_install=needless
10854 fi
10855
10856
10857
10858
10859
10860
10861 if test "x$enable_dlopen" != xyes; then
10862 enable_dlopen=unknown
10863 enable_dlopen_self=unknown
10864 enable_dlopen_self_static=unknown
10865 else
10866 lt_cv_dlopen=no
10867 lt_cv_dlopen_libs=
10868
10869 case $host_os in
10870 beos*)
10871 lt_cv_dlopen="load_add_on"
10872 lt_cv_dlopen_libs=
10873 lt_cv_dlopen_self=yes
10874 ;;
10875
10876 mingw* | pw32* | cegcc*)
10877 lt_cv_dlopen="LoadLibrary"
10878 lt_cv_dlopen_libs=
10879 ;;
10880
10881 cygwin*)
10882 lt_cv_dlopen="dlopen"
10883 lt_cv_dlopen_libs=
10884 ;;
10885
10886 darwin*)
10887 # if libdl is installed we need to link against it
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10889 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10890 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 ac_check_lib_save_LIBS=$LIBS
10894 LIBS="-ldl $LIBS"
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10897
10898 /* Override any GCC internal prototype to avoid an error.
10899 Use char because int might match the return type of a GCC
10900 builtin and then its argument prototype would still apply. */
10901 #ifdef __cplusplus
10902 extern "C"
10903 #endif
10904 char dlopen ();
10905 int
10906 main ()
10907 {
10908 return dlopen ();
10909 ;
10910 return 0;
10911 }
10912 _ACEOF
10913 if ac_fn_c_try_link "$LINENO"; then :
10914 ac_cv_lib_dl_dlopen=yes
10915 else
10916 ac_cv_lib_dl_dlopen=no
10917 fi
10918 rm -f core conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10920 LIBS=$ac_check_lib_save_LIBS
10921 fi
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10923 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10924 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10925 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10926 else
10927
10928 lt_cv_dlopen="dyld"
10929 lt_cv_dlopen_libs=
10930 lt_cv_dlopen_self=yes
10931
10932 fi
10933
10934 ;;
10935
10936 *)
10937 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10938 if test "x$ac_cv_func_shl_load" = x""yes; then :
10939 lt_cv_dlopen="shl_load"
10940 else
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10942 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10943 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10944 $as_echo_n "(cached) " >&6
10945 else
10946 ac_check_lib_save_LIBS=$LIBS
10947 LIBS="-ldld $LIBS"
10948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10949 /* end confdefs.h. */
10950
10951 /* Override any GCC internal prototype to avoid an error.
10952 Use char because int might match the return type of a GCC
10953 builtin and then its argument prototype would still apply. */
10954 #ifdef __cplusplus
10955 extern "C"
10956 #endif
10957 char shl_load ();
10958 int
10959 main ()
10960 {
10961 return shl_load ();
10962 ;
10963 return 0;
10964 }
10965 _ACEOF
10966 if ac_fn_c_try_link "$LINENO"; then :
10967 ac_cv_lib_dld_shl_load=yes
10968 else
10969 ac_cv_lib_dld_shl_load=no
10970 fi
10971 rm -f core conftest.err conftest.$ac_objext \
10972 conftest$ac_exeext conftest.$ac_ext
10973 LIBS=$ac_check_lib_save_LIBS
10974 fi
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10976 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10977 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10978 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10979 else
10980 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10981 if test "x$ac_cv_func_dlopen" = x""yes; then :
10982 lt_cv_dlopen="dlopen"
10983 else
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10985 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10986 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10989 ac_check_lib_save_LIBS=$LIBS
10990 LIBS="-ldl $LIBS"
10991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h. */
10993
10994 /* Override any GCC internal prototype to avoid an error.
10995 Use char because int might match the return type of a GCC
10996 builtin and then its argument prototype would still apply. */
10997 #ifdef __cplusplus
10998 extern "C"
10999 #endif
11000 char dlopen ();
11001 int
11002 main ()
11003 {
11004 return dlopen ();
11005 ;
11006 return 0;
11007 }
11008 _ACEOF
11009 if ac_fn_c_try_link "$LINENO"; then :
11010 ac_cv_lib_dl_dlopen=yes
11011 else
11012 ac_cv_lib_dl_dlopen=no
11013 fi
11014 rm -f core conftest.err conftest.$ac_objext \
11015 conftest$ac_exeext conftest.$ac_ext
11016 LIBS=$ac_check_lib_save_LIBS
11017 fi
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11019 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11020 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11022 else
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11024 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11025 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11026 $as_echo_n "(cached) " >&6
11027 else
11028 ac_check_lib_save_LIBS=$LIBS
11029 LIBS="-lsvld $LIBS"
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11032
11033 /* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11036 #ifdef __cplusplus
11037 extern "C"
11038 #endif
11039 char dlopen ();
11040 int
11041 main ()
11042 {
11043 return dlopen ();
11044 ;
11045 return 0;
11046 }
11047 _ACEOF
11048 if ac_fn_c_try_link "$LINENO"; then :
11049 ac_cv_lib_svld_dlopen=yes
11050 else
11051 ac_cv_lib_svld_dlopen=no
11052 fi
11053 rm -f core conftest.err conftest.$ac_objext \
11054 conftest$ac_exeext conftest.$ac_ext
11055 LIBS=$ac_check_lib_save_LIBS
11056 fi
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11058 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11059 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11060 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11061 else
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11063 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11064 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11065 $as_echo_n "(cached) " >&6
11066 else
11067 ac_check_lib_save_LIBS=$LIBS
11068 LIBS="-ldld $LIBS"
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11071
11072 /* Override any GCC internal prototype to avoid an error.
11073 Use char because int might match the return type of a GCC
11074 builtin and then its argument prototype would still apply. */
11075 #ifdef __cplusplus
11076 extern "C"
11077 #endif
11078 char dld_link ();
11079 int
11080 main ()
11081 {
11082 return dld_link ();
11083 ;
11084 return 0;
11085 }
11086 _ACEOF
11087 if ac_fn_c_try_link "$LINENO"; then :
11088 ac_cv_lib_dld_dld_link=yes
11089 else
11090 ac_cv_lib_dld_dld_link=no
11091 fi
11092 rm -f core conftest.err conftest.$ac_objext \
11093 conftest$ac_exeext conftest.$ac_ext
11094 LIBS=$ac_check_lib_save_LIBS
11095 fi
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11097 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11098 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11099 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11100 fi
11101
11102
11103 fi
11104
11105
11106 fi
11107
11108
11109 fi
11110
11111
11112 fi
11113
11114
11115 fi
11116
11117 ;;
11118 esac
11119
11120 if test "x$lt_cv_dlopen" != xno; then
11121 enable_dlopen=yes
11122 else
11123 enable_dlopen=no
11124 fi
11125
11126 case $lt_cv_dlopen in
11127 dlopen)
11128 save_CPPFLAGS="$CPPFLAGS"
11129 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11130
11131 save_LDFLAGS="$LDFLAGS"
11132 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11133
11134 save_LIBS="$LIBS"
11135 LIBS="$lt_cv_dlopen_libs $LIBS"
11136
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11138 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11139 if test "${lt_cv_dlopen_self+set}" = set; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11142 if test "$cross_compiling" = yes; then :
11143 lt_cv_dlopen_self=cross
11144 else
11145 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11146 lt_status=$lt_dlunknown
11147 cat > conftest.$ac_ext <<_LT_EOF
11148 #line 11148 "configure"
11149 #include "confdefs.h"
11150
11151 #if HAVE_DLFCN_H
11152 #include <dlfcn.h>
11153 #endif
11154
11155 #include <stdio.h>
11156
11157 #ifdef RTLD_GLOBAL
11158 # define LT_DLGLOBAL RTLD_GLOBAL
11159 #else
11160 # ifdef DL_GLOBAL
11161 # define LT_DLGLOBAL DL_GLOBAL
11162 # else
11163 # define LT_DLGLOBAL 0
11164 # endif
11165 #endif
11166
11167 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11168 find out it does not work in some platform. */
11169 #ifndef LT_DLLAZY_OR_NOW
11170 # ifdef RTLD_LAZY
11171 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11172 # else
11173 # ifdef DL_LAZY
11174 # define LT_DLLAZY_OR_NOW DL_LAZY
11175 # else
11176 # ifdef RTLD_NOW
11177 # define LT_DLLAZY_OR_NOW RTLD_NOW
11178 # else
11179 # ifdef DL_NOW
11180 # define LT_DLLAZY_OR_NOW DL_NOW
11181 # else
11182 # define LT_DLLAZY_OR_NOW 0
11183 # endif
11184 # endif
11185 # endif
11186 # endif
11187 #endif
11188
11189 /* When -fvisbility=hidden is used, assume the code has been annotated
11190 correspondingly for the symbols needed. */
11191 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11192 void fnord () __attribute__((visibility("default")));
11193 #endif
11194
11195 void fnord () { int i=42; }
11196 int main ()
11197 {
11198 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11199 int status = $lt_dlunknown;
11200
11201 if (self)
11202 {
11203 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11204 else
11205 {
11206 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11207 else puts (dlerror ());
11208 }
11209 /* dlclose (self); */
11210 }
11211 else
11212 puts (dlerror ());
11213
11214 return status;
11215 }
11216 _LT_EOF
11217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11218 (eval $ac_link) 2>&5
11219 ac_status=$?
11220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11221 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11222 (./conftest; exit; ) >&5 2>/dev/null
11223 lt_status=$?
11224 case x$lt_status in
11225 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11226 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11227 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11228 esac
11229 else :
11230 # compilation failed
11231 lt_cv_dlopen_self=no
11232 fi
11233 fi
11234 rm -fr conftest*
11235
11236
11237 fi
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11239 $as_echo "$lt_cv_dlopen_self" >&6; }
11240
11241 if test "x$lt_cv_dlopen_self" = xyes; then
11242 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11244 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11245 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11246 $as_echo_n "(cached) " >&6
11247 else
11248 if test "$cross_compiling" = yes; then :
11249 lt_cv_dlopen_self_static=cross
11250 else
11251 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11252 lt_status=$lt_dlunknown
11253 cat > conftest.$ac_ext <<_LT_EOF
11254 #line 11254 "configure"
11255 #include "confdefs.h"
11256
11257 #if HAVE_DLFCN_H
11258 #include <dlfcn.h>
11259 #endif
11260
11261 #include <stdio.h>
11262
11263 #ifdef RTLD_GLOBAL
11264 # define LT_DLGLOBAL RTLD_GLOBAL
11265 #else
11266 # ifdef DL_GLOBAL
11267 # define LT_DLGLOBAL DL_GLOBAL
11268 # else
11269 # define LT_DLGLOBAL 0
11270 # endif
11271 #endif
11272
11273 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11274 find out it does not work in some platform. */
11275 #ifndef LT_DLLAZY_OR_NOW
11276 # ifdef RTLD_LAZY
11277 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11278 # else
11279 # ifdef DL_LAZY
11280 # define LT_DLLAZY_OR_NOW DL_LAZY
11281 # else
11282 # ifdef RTLD_NOW
11283 # define LT_DLLAZY_OR_NOW RTLD_NOW
11284 # else
11285 # ifdef DL_NOW
11286 # define LT_DLLAZY_OR_NOW DL_NOW
11287 # else
11288 # define LT_DLLAZY_OR_NOW 0
11289 # endif
11290 # endif
11291 # endif
11292 # endif
11293 #endif
11294
11295 /* When -fvisbility=hidden is used, assume the code has been annotated
11296 correspondingly for the symbols needed. */
11297 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11298 void fnord () __attribute__((visibility("default")));
11299 #endif
11300
11301 void fnord () { int i=42; }
11302 int main ()
11303 {
11304 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11305 int status = $lt_dlunknown;
11306
11307 if (self)
11308 {
11309 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11310 else
11311 {
11312 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11313 else puts (dlerror ());
11314 }
11315 /* dlclose (self); */
11316 }
11317 else
11318 puts (dlerror ());
11319
11320 return status;
11321 }
11322 _LT_EOF
11323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11324 (eval $ac_link) 2>&5
11325 ac_status=$?
11326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11327 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11328 (./conftest; exit; ) >&5 2>/dev/null
11329 lt_status=$?
11330 case x$lt_status in
11331 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11332 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11333 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11334 esac
11335 else :
11336 # compilation failed
11337 lt_cv_dlopen_self_static=no
11338 fi
11339 fi
11340 rm -fr conftest*
11341
11342
11343 fi
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11345 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11346 fi
11347
11348 CPPFLAGS="$save_CPPFLAGS"
11349 LDFLAGS="$save_LDFLAGS"
11350 LIBS="$save_LIBS"
11351 ;;
11352 esac
11353
11354 case $lt_cv_dlopen_self in
11355 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11356 *) enable_dlopen_self=unknown ;;
11357 esac
11358
11359 case $lt_cv_dlopen_self_static in
11360 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11361 *) enable_dlopen_self_static=unknown ;;
11362 esac
11363 fi
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381 striplib=
11382 old_striplib=
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11384 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11385 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11386 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11387 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11389 $as_echo "yes" >&6; }
11390 else
11391 # FIXME - insert some real tests, host_os isn't really good enough
11392 case $host_os in
11393 darwin*)
11394 if test -n "$STRIP" ; then
11395 striplib="$STRIP -x"
11396 old_striplib="$STRIP -S"
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11398 $as_echo "yes" >&6; }
11399 else
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401 $as_echo "no" >&6; }
11402 fi
11403 ;;
11404 *)
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406 $as_echo "no" >&6; }
11407 ;;
11408 esac
11409 fi
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422 # Report which library types will actually be built
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11424 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11426 $as_echo "$can_build_shared" >&6; }
11427
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11429 $as_echo_n "checking whether to build shared libraries... " >&6; }
11430 test "$can_build_shared" = "no" && enable_shared=no
11431
11432 # On AIX, shared libraries and static libraries use the same namespace, and
11433 # are all built from PIC.
11434 case $host_os in
11435 aix3*)
11436 test "$enable_shared" = yes && enable_static=no
11437 if test -n "$RANLIB"; then
11438 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11439 postinstall_cmds='$RANLIB $lib'
11440 fi
11441 ;;
11442
11443 aix[4-9]*)
11444 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11445 test "$enable_shared" = yes && enable_static=no
11446 fi
11447 ;;
11448 esac
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11450 $as_echo "$enable_shared" >&6; }
11451
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11453 $as_echo_n "checking whether to build static libraries... " >&6; }
11454 # Make sure either enable_shared or enable_static is yes.
11455 test "$enable_shared" = yes || enable_static=yes
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11457 $as_echo "$enable_static" >&6; }
11458
11459
11460
11461
11462 fi
11463 ac_ext=c
11464 ac_cpp='$CPP $CPPFLAGS'
11465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11468
11469 CC="$lt_save_CC"
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483 ac_config_commands="$ac_config_commands libtool"
11484
11485
11486
11487
11488 # Only expand once:
11489
11490
11491
11492
11493 # Check whether --enable-largefile was given.
11494 if test "${enable_largefile+set}" = set; then :
11495 enableval=$enable_largefile;
11496 fi
11497
11498 if test "$enable_largefile" != no; then
11499
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11501 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11502 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11503 $as_echo_n "(cached) " >&6
11504 else
11505 ac_cv_sys_largefile_CC=no
11506 if test "$GCC" != yes; then
11507 ac_save_CC=$CC
11508 while :; do
11509 # IRIX 6.2 and later do not support large files by default,
11510 # so use the C compiler's -n32 option if that helps.
11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h. */
11513 #include <sys/types.h>
11514 /* Check that off_t can represent 2**63 - 1 correctly.
11515 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11516 since some C++ compilers masquerading as C compilers
11517 incorrectly reject 9223372036854775807. */
11518 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11519 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11520 && LARGE_OFF_T % 2147483647 == 1)
11521 ? 1 : -1];
11522 int
11523 main ()
11524 {
11525
11526 ;
11527 return 0;
11528 }
11529 _ACEOF
11530 if ac_fn_c_try_compile "$LINENO"; then :
11531 break
11532 fi
11533 rm -f core conftest.err conftest.$ac_objext
11534 CC="$CC -n32"
11535 if ac_fn_c_try_compile "$LINENO"; then :
11536 ac_cv_sys_largefile_CC=' -n32'; break
11537 fi
11538 rm -f core conftest.err conftest.$ac_objext
11539 break
11540 done
11541 CC=$ac_save_CC
11542 rm -f conftest.$ac_ext
11543 fi
11544 fi
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11546 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11547 if test "$ac_cv_sys_largefile_CC" != no; then
11548 CC=$CC$ac_cv_sys_largefile_CC
11549 fi
11550
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11552 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11553 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11554 $as_echo_n "(cached) " >&6
11555 else
11556 while :; do
11557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h. */
11559 #include <sys/types.h>
11560 /* Check that off_t can represent 2**63 - 1 correctly.
11561 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11562 since some C++ compilers masquerading as C compilers
11563 incorrectly reject 9223372036854775807. */
11564 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11565 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11566 && LARGE_OFF_T % 2147483647 == 1)
11567 ? 1 : -1];
11568 int
11569 main ()
11570 {
11571
11572 ;
11573 return 0;
11574 }
11575 _ACEOF
11576 if ac_fn_c_try_compile "$LINENO"; then :
11577 ac_cv_sys_file_offset_bits=no; break
11578 fi
11579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h. */
11582 #define _FILE_OFFSET_BITS 64
11583 #include <sys/types.h>
11584 /* Check that off_t can represent 2**63 - 1 correctly.
11585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11586 since some C++ compilers masquerading as C compilers
11587 incorrectly reject 9223372036854775807. */
11588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11590 && LARGE_OFF_T % 2147483647 == 1)
11591 ? 1 : -1];
11592 int
11593 main ()
11594 {
11595
11596 ;
11597 return 0;
11598 }
11599 _ACEOF
11600 if ac_fn_c_try_compile "$LINENO"; then :
11601 ac_cv_sys_file_offset_bits=64; break
11602 fi
11603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11604 ac_cv_sys_file_offset_bits=unknown
11605 break
11606 done
11607 fi
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11609 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11610 case $ac_cv_sys_file_offset_bits in #(
11611 no | unknown) ;;
11612 *)
11613 cat >>confdefs.h <<_ACEOF
11614 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11615 _ACEOF
11616 ;;
11617 esac
11618 rm -rf conftest*
11619 if test $ac_cv_sys_file_offset_bits = unknown; then
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11621 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11622 if test "${ac_cv_sys_large_files+set}" = set; then :
11623 $as_echo_n "(cached) " >&6
11624 else
11625 while :; do
11626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627 /* end confdefs.h. */
11628 #include <sys/types.h>
11629 /* Check that off_t can represent 2**63 - 1 correctly.
11630 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11631 since some C++ compilers masquerading as C compilers
11632 incorrectly reject 9223372036854775807. */
11633 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11634 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11635 && LARGE_OFF_T % 2147483647 == 1)
11636 ? 1 : -1];
11637 int
11638 main ()
11639 {
11640
11641 ;
11642 return 0;
11643 }
11644 _ACEOF
11645 if ac_fn_c_try_compile "$LINENO"; then :
11646 ac_cv_sys_large_files=no; break
11647 fi
11648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650 /* end confdefs.h. */
11651 #define _LARGE_FILES 1
11652 #include <sys/types.h>
11653 /* Check that off_t can represent 2**63 - 1 correctly.
11654 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11655 since some C++ compilers masquerading as C compilers
11656 incorrectly reject 9223372036854775807. */
11657 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11658 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11659 && LARGE_OFF_T % 2147483647 == 1)
11660 ? 1 : -1];
11661 int
11662 main ()
11663 {
11664
11665 ;
11666 return 0;
11667 }
11668 _ACEOF
11669 if ac_fn_c_try_compile "$LINENO"; then :
11670 ac_cv_sys_large_files=1; break
11671 fi
11672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11673 ac_cv_sys_large_files=unknown
11674 break
11675 done
11676 fi
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11678 $as_echo "$ac_cv_sys_large_files" >&6; }
11679 case $ac_cv_sys_large_files in #(
11680 no | unknown) ;;
11681 *)
11682 cat >>confdefs.h <<_ACEOF
11683 #define _LARGE_FILES $ac_cv_sys_large_files
11684 _ACEOF
11685 ;;
11686 esac
11687 rm -rf conftest*
11688 fi
11689 fi
11690
11691
11692 backtrace_supported=yes
11693
11694 if test -n "${with_target_subdir}"; then
11695 # We are compiling a GCC library. We can assume that the unwind
11696 # library exists.
11697 BACKTRACE_FILE="backtrace.lo simple.lo"
11698 else
11699 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
11700 if test "x$ac_cv_header_unwind_h" = x""yes; then :
11701 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
11702 if test "x$ac_cv_func__Unwind_Backtrace" = x""yes; then :
11703 BACKTRACE_FILE="backtrace.lo simple.lo"
11704 else
11705 BACKTRACE_FILE="nounwind.lo"
11706 backtrace_supported=no
11707 fi
11708
11709 else
11710 BACKTRACE_FILE="nounwind.lo"
11711 backtrace_supported=no
11712 fi
11713
11714
11715 fi
11716
11717
11718 EXTRA_FLAGS=
11719 if test -n "${with_target_subdir}"; then
11720 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
11721 else
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
11723 $as_echo_n "checking for -funwind-tables option... " >&6; }
11724 if test "${libbacktrace_cv_c_unwind_tables+set}" = set; then :
11725 $as_echo_n "(cached) " >&6
11726 else
11727 CFLAGS_hold="$CFLAGS"
11728 CFLAGS="$CFLAGS -funwind-tables"
11729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11730 /* end confdefs.h. */
11731 static int f() { return 0; }
11732 int
11733 main ()
11734 {
11735 return f();
11736 ;
11737 return 0;
11738 }
11739 _ACEOF
11740 if ac_fn_c_try_compile "$LINENO"; then :
11741 libbacktrace_cv_c_unwind_tables=yes
11742 else
11743 libbacktrace_cv_c_unwind_tables=no
11744 fi
11745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11746 CFLAGS="$CFLAGS_hold"
11747 fi
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
11749 $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
11750 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
11751 EXTRA_FLAGS=-funwind-tables
11752 fi
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
11754 $as_echo_n "checking for -frandom-seed=string option... " >&6; }
11755 if test "${libbacktrace_cv_c_random_seed_string+set}" = set; then :
11756 $as_echo_n "(cached) " >&6
11757 else
11758 CFLAGS_hold="$CFLAGS"
11759 CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
11760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761 /* end confdefs.h. */
11762
11763 int
11764 main ()
11765 {
11766 return 0;
11767 ;
11768 return 0;
11769 }
11770 _ACEOF
11771 if ac_fn_c_try_compile "$LINENO"; then :
11772 libbacktrace_cv_c_random_seed_string=yes
11773 else
11774 libbacktrace_cv_c_random_seed_string=no
11775 fi
11776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11777 CFLAGS="$CFLAGS_hold"
11778 fi
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
11780 $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
11781 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
11782 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
11783 fi
11784 fi
11785
11786
11787 ac_ext=c
11788 ac_cpp='$CPP $CPPFLAGS'
11789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11792
11793 WARN_FLAGS=
11794 save_CFLAGS="$CFLAGS"
11795 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
11796 -Wmissing-prototypes -Wold-style-definition \
11797 -Wmissing-format-attribute -Wcast-qual; do
11798 # Do the check with the no- prefix removed since gcc silently
11799 # accepts any -Wno-* option on purpose
11800 case $real_option in
11801 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
11802 *) option=$real_option ;;
11803 esac
11804 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
11805
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
11807 $as_echo_n "checking whether $CC supports $option... " >&6; }
11808 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
11809 $as_echo_n "(cached) " >&6
11810 else
11811 CFLAGS="$option"
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11814
11815 int
11816 main ()
11817 {
11818
11819 ;
11820 return 0;
11821 }
11822 _ACEOF
11823 if ac_fn_c_try_compile "$LINENO"; then :
11824 eval "$as_acx_Woption=yes"
11825 else
11826 eval "$as_acx_Woption=no"
11827 fi
11828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829
11830 fi
11831 eval ac_res=\$$as_acx_Woption
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11833 $as_echo "$ac_res" >&6; }
11834 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
11835 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
11836 fi
11837 done
11838 CFLAGS="$save_CFLAGS"
11839 ac_ext=c
11840 ac_cpp='$CPP $CPPFLAGS'
11841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11844
11845
11846
11847 if test -n "${with_target_subdir}"; then
11848 WARN_FLAGS="$WARN_FLAGS -Werror"
11849 fi
11850
11851
11852
11853 if test -n "${with_target_subdir}"; then
11854
11855
11856 # Check whether --with-system-libunwind was given.
11857 if test "${with_system_libunwind+set}" = set; then :
11858 withval=$with_system_libunwind;
11859 fi
11860
11861 # If system-libunwind was not specifically set, pick a default setting.
11862 if test x$with_system_libunwind = x; then
11863 case ${target} in
11864 ia64-*-hpux*) with_system_libunwind=yes ;;
11865 *) with_system_libunwind=no ;;
11866 esac
11867 fi
11868 # Based on system-libunwind and target, do we have ipinfo?
11869 if test x$with_system_libunwind = xyes; then
11870 case ${target} in
11871 ia64-*-*) have_unwind_getipinfo=no ;;
11872 *) have_unwind_getipinfo=yes ;;
11873 esac
11874 else
11875 # Darwin before version 9 does not have _Unwind_GetIPInfo.
11876
11877 case ${target} in
11878 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
11879 *) have_unwind_getipinfo=yes ;;
11880 esac
11881
11882 fi
11883
11884 if test x$have_unwind_getipinfo = xyes; then
11885
11886 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11887
11888 fi
11889
11890 else
11891 ac_save_CFFLAGS="$CFLAGS"
11892 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
11894 $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
11895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h. */
11897 #include "unwind.h"
11898 struct _Unwind_Context *context;
11899 int ip_before_insn = 0;
11900 int
11901 main ()
11902 {
11903 return _Unwind_GetIPInfo (context, &ip_before_insn);
11904 ;
11905 return 0;
11906 }
11907 _ACEOF
11908 if ac_fn_c_try_link "$LINENO"; then :
11909 have_unwind_getipinfo=yes
11910 else
11911 have_unwind_getipinfo=no
11912 fi
11913 rm -f core conftest.err conftest.$ac_objext \
11914 conftest$ac_exeext conftest.$ac_ext
11915 CFLAGS="$ac_save_CFLAGS"
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
11917 $as_echo "$have_unwind_getipinfo" >&6; }
11918 if test "$have_unwind_getipinfo" = "yes"; then
11919
11920 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11921
11922 fi
11923 fi
11924
11925 # Enable --enable-host-shared.
11926 # Check whether --enable-host-shared was given.
11927 if test "${enable_host_shared+set}" = set; then :
11928 enableval=$enable_host_shared; PIC_FLAG=-fPIC
11929 else
11930 PIC_FLAG=
11931 fi
11932
11933
11934
11935 # Test for __sync support.
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
11937 $as_echo_n "checking __sync extensions... " >&6; }
11938 if test "${libbacktrace_cv_sys_sync+set}" = set; then :
11939 $as_echo_n "(cached) " >&6
11940 else
11941 if test -n "${with_target_subdir}"; then
11942 case "${host}" in
11943 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
11944 *) libbacktrace_cv_sys_sync=yes ;;
11945 esac
11946 else
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11949 int i;
11950 int
11951 main ()
11952 {
11953 __sync_bool_compare_and_swap (&i, i, i);
11954 __sync_lock_test_and_set (&i, 1);
11955 __sync_lock_release (&i);
11956 ;
11957 return 0;
11958 }
11959 _ACEOF
11960 if ac_fn_c_try_link "$LINENO"; then :
11961 libbacktrace_cv_sys_sync=yes
11962 else
11963 libbacktrace_cv_sys_sync=no
11964 fi
11965 rm -f core conftest.err conftest.$ac_objext \
11966 conftest$ac_exeext conftest.$ac_ext
11967 fi
11968 fi
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
11970 $as_echo "$libbacktrace_cv_sys_sync" >&6; }
11971 BACKTRACE_SUPPORTS_THREADS=0
11972 if test "$libbacktrace_cv_sys_sync" = "yes"; then
11973 BACKTRACE_SUPPORTS_THREADS=1
11974
11975 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
11976
11977 fi
11978
11979
11980 # Test for __atomic support.
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
11982 $as_echo_n "checking __atomic extensions... " >&6; }
11983 if test "${libbacktrace_cv_sys_atomic+set}" = set; then :
11984 $as_echo_n "(cached) " >&6
11985 else
11986 if test -n "${with_target_subdir}"; then
11987 libbacktrace_cv_sys_atomic=yes
11988 else
11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990 /* end confdefs.h. */
11991 int i;
11992 int
11993 main ()
11994 {
11995 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
11996 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
11997 ;
11998 return 0;
11999 }
12000 _ACEOF
12001 if ac_fn_c_try_link "$LINENO"; then :
12002 libbacktrace_cv_sys_atomic=yes
12003 else
12004 libbacktrace_cv_sys_atomic=no
12005 fi
12006 rm -f core conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
12008 fi
12009 fi
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12011 $as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12012 if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12013
12014 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12015
12016 fi
12017
12018 # The library needs to be able to read the executable itself. Compile
12019 # a file to determine the executable format. The awk script
12020 # filetype.awk prints out the file type.
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12022 $as_echo_n "checking output filetype... " >&6; }
12023 if test "${libbacktrace_cv_sys_filetype+set}" = set; then :
12024 $as_echo_n "(cached) " >&6
12025 else
12026 filetype=
12027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028 /* end confdefs.h. */
12029 int i;
12030 int
12031 main ()
12032 {
12033 int j;
12034 ;
12035 return 0;
12036 }
12037 _ACEOF
12038 if ac_fn_c_try_compile "$LINENO"; then :
12039 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12040 else
12041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12043 as_fn_error "compiler failed
12044 See \`config.log' for more details." "$LINENO" 5; }
12045 fi
12046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12047 libbacktrace_cv_sys_filetype=$filetype
12048 fi
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12050 $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12051
12052 # Match the file type to decide what files to compile.
12053 FORMAT_FILE=
12054 backtrace_supports_data=yes
12055 case "$libbacktrace_cv_sys_filetype" in
12056 elf*) FORMAT_FILE="elf.lo" ;;
12057 pecoff) FORMAT_FILE="pecoff.lo"
12058 backtrace_supports_data=no
12059 ;;
12060 xcoff*) FORMAT_FILE="xcoff.lo"
12061 backtrace_supports_data=no
12062 ;;
12063 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12064 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12065 FORMAT_FILE="unknown.lo"
12066 backtrace_supported=no
12067 ;;
12068 esac
12069
12070
12071 # ELF defines.
12072 elfsize=
12073 case "$libbacktrace_cv_sys_filetype" in
12074 elf32) elfsize=32 ;;
12075 elf64) elfsize=64 ;;
12076 *) elfsize=unused
12077 esac
12078
12079 cat >>confdefs.h <<_ACEOF
12080 #define BACKTRACE_ELF_SIZE $elfsize
12081 _ACEOF
12082
12083
12084 # XCOFF defines.
12085 xcoffsize=
12086 case "$libbacktrace_cv_sys_filetype" in
12087 xcoff32) xcoffsize=32 ;;
12088 xcoff64) xcoffsize=64 ;;
12089 *) xcoffsize=unused
12090 esac
12091
12092 cat >>confdefs.h <<_ACEOF
12093 #define BACKTRACE_XCOFF_SIZE $xcoffsize
12094 _ACEOF
12095
12096
12097 BACKTRACE_SUPPORTED=0
12098 if test "$backtrace_supported" = "yes"; then
12099 BACKTRACE_SUPPORTED=1
12100 fi
12101
12102
12103 BACKTRACE_SUPPORTS_DATA=0
12104 if test "$backtrace_supports_data" = "yes"; then
12105 BACKTRACE_SUPPORTS_DATA=1
12106 fi
12107
12108
12109
12110
12111 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12112
12113 acx_cv_header_stdint=stddef.h
12114 acx_cv_header_stdint_kind="(already complete)"
12115 for i in stdint.h $inttype_headers; do
12116 unset ac_cv_type_uintptr_t
12117 unset ac_cv_type_uintmax_t
12118 unset ac_cv_type_int_least32_t
12119 unset ac_cv_type_int_fast32_t
12120 unset ac_cv_type_uint64_t
12121 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12122 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12123 #include <$i>
12124 "
12125 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
12126 acx_cv_header_stdint=$i
12127 else
12128 continue
12129 fi
12130
12131 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12132 #include <$i>
12133 "
12134 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12135
12136 else
12137 acx_cv_header_stdint_kind="(mostly complete)"
12138 fi
12139
12140 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12141 #include <$i>
12142 "
12143 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
12144
12145 else
12146 acx_cv_header_stdint_kind="(mostly complete)"
12147 fi
12148
12149 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12150 #include <$i>
12151 "
12152 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
12153
12154 else
12155 acx_cv_header_stdint_kind="(mostly complete)"
12156 fi
12157
12158 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12159 #include <$i>
12160 "
12161 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12162
12163 else
12164 acx_cv_header_stdint_kind="(lacks uint64_t)"
12165 fi
12166
12167 break
12168 done
12169 if test "$acx_cv_header_stdint" = stddef.h; then
12170 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12171 for i in stdint.h $inttype_headers; do
12172 unset ac_cv_type_uintptr_t
12173 unset ac_cv_type_uint32_t
12174 unset ac_cv_type_uint64_t
12175 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12176 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12177 #include <$i>
12178 "
12179 if test "x$ac_cv_type_uint32_t" = x""yes; then :
12180 acx_cv_header_stdint=$i
12181 else
12182 continue
12183 fi
12184
12185 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12186 #include <$i>
12187 "
12188 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12189
12190 fi
12191
12192 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12193 #include <$i>
12194 "
12195 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12196
12197 fi
12198
12199 break
12200 done
12201 fi
12202 if test "$acx_cv_header_stdint" = stddef.h; then
12203 acx_cv_header_stdint_kind="(u_intXX_t style)"
12204 for i in sys/types.h $inttype_headers; do
12205 unset ac_cv_type_u_int32_t
12206 unset ac_cv_type_u_int64_t
12207 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12208 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12209 #include <$i>
12210 "
12211 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
12212 acx_cv_header_stdint=$i
12213 else
12214 continue
12215 fi
12216
12217 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12218 #include <$i>
12219 "
12220 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
12221
12222 fi
12223
12224 break
12225 done
12226 fi
12227 if test "$acx_cv_header_stdint" = stddef.h; then
12228 acx_cv_header_stdint_kind="(using manual detection)"
12229 fi
12230
12231 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12232 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12233 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12234 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12235 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12236
12237 # ----------------- Summarize what we found so far
12238
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12240 $as_echo_n "checking what to include in gstdint.h... " >&6; }
12241
12242 case `$as_basename -- gstdint.h ||
12243 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12244 Xgstdint.h : 'X\(//\)$' \| \
12245 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12246 $as_echo X/gstdint.h |
12247 sed '/^.*\/\([^/][^/]*\)\/*$/{
12248 s//\1/
12249 q
12250 }
12251 /^X\/\(\/\/\)$/{
12252 s//\1/
12253 q
12254 }
12255 /^X\/\(\/\).*/{
12256 s//\1/
12257 q
12258 }
12259 s/.*/./; q'` in
12260 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12261 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12262 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12263 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12264 *) ;;
12265 esac
12266
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12268 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12269
12270 # ----------------- done included file, check C basic types --------
12271
12272 # Lacking an uintptr_t? Test size of void *
12273 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12274 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12277 # This bug is HP SR number 8606223364.
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12279 $as_echo_n "checking size of void *... " >&6; }
12280 if test "${ac_cv_sizeof_void_p+set}" = set; then :
12281 $as_echo_n "(cached) " >&6
12282 else
12283 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12284
12285 else
12286 if test "$ac_cv_type_void_p" = yes; then
12287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12289 { as_fn_set_status 77
12290 as_fn_error "cannot compute sizeof (void *)
12291 See \`config.log' for more details." "$LINENO" 5; }; }
12292 else
12293 ac_cv_sizeof_void_p=0
12294 fi
12295 fi
12296
12297 fi
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12299 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12300
12301
12302
12303 cat >>confdefs.h <<_ACEOF
12304 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12305 _ACEOF
12306
12307 ;;
12308 esac
12309
12310 # Lacking an uint64_t? Test size of long
12311 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12312 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12313 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12314 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12315 # This bug is HP SR number 8606223364.
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12317 $as_echo_n "checking size of long... " >&6; }
12318 if test "${ac_cv_sizeof_long+set}" = set; then :
12319 $as_echo_n "(cached) " >&6
12320 else
12321 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12322
12323 else
12324 if test "$ac_cv_type_long" = yes; then
12325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12327 { as_fn_set_status 77
12328 as_fn_error "cannot compute sizeof (long)
12329 See \`config.log' for more details." "$LINENO" 5; }; }
12330 else
12331 ac_cv_sizeof_long=0
12332 fi
12333 fi
12334
12335 fi
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12337 $as_echo "$ac_cv_sizeof_long" >&6; }
12338
12339
12340
12341 cat >>confdefs.h <<_ACEOF
12342 #define SIZEOF_LONG $ac_cv_sizeof_long
12343 _ACEOF
12344
12345 ;;
12346 esac
12347
12348 if test $acx_cv_header_stdint = stddef.h; then
12349 # Lacking a good header? Test size of everything and deduce all types.
12350 # The cast to long int works around a bug in the HP C Compiler
12351 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12352 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12353 # This bug is HP SR number 8606223364.
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12355 $as_echo_n "checking size of int... " >&6; }
12356 if test "${ac_cv_sizeof_int+set}" = set; then :
12357 $as_echo_n "(cached) " >&6
12358 else
12359 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12360
12361 else
12362 if test "$ac_cv_type_int" = yes; then
12363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12365 { as_fn_set_status 77
12366 as_fn_error "cannot compute sizeof (int)
12367 See \`config.log' for more details." "$LINENO" 5; }; }
12368 else
12369 ac_cv_sizeof_int=0
12370 fi
12371 fi
12372
12373 fi
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12375 $as_echo "$ac_cv_sizeof_int" >&6; }
12376
12377
12378
12379 cat >>confdefs.h <<_ACEOF
12380 #define SIZEOF_INT $ac_cv_sizeof_int
12381 _ACEOF
12382
12383
12384 # The cast to long int works around a bug in the HP C Compiler
12385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12387 # This bug is HP SR number 8606223364.
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12389 $as_echo_n "checking size of short... " >&6; }
12390 if test "${ac_cv_sizeof_short+set}" = set; then :
12391 $as_echo_n "(cached) " >&6
12392 else
12393 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12394
12395 else
12396 if test "$ac_cv_type_short" = yes; then
12397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12399 { as_fn_set_status 77
12400 as_fn_error "cannot compute sizeof (short)
12401 See \`config.log' for more details." "$LINENO" 5; }; }
12402 else
12403 ac_cv_sizeof_short=0
12404 fi
12405 fi
12406
12407 fi
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12409 $as_echo "$ac_cv_sizeof_short" >&6; }
12410
12411
12412
12413 cat >>confdefs.h <<_ACEOF
12414 #define SIZEOF_SHORT $ac_cv_sizeof_short
12415 _ACEOF
12416
12417
12418 # The cast to long int works around a bug in the HP C Compiler
12419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12421 # This bug is HP SR number 8606223364.
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12423 $as_echo_n "checking size of char... " >&6; }
12424 if test "${ac_cv_sizeof_char+set}" = set; then :
12425 $as_echo_n "(cached) " >&6
12426 else
12427 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
12428
12429 else
12430 if test "$ac_cv_type_char" = yes; then
12431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12433 { as_fn_set_status 77
12434 as_fn_error "cannot compute sizeof (char)
12435 See \`config.log' for more details." "$LINENO" 5; }; }
12436 else
12437 ac_cv_sizeof_char=0
12438 fi
12439 fi
12440
12441 fi
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12443 $as_echo "$ac_cv_sizeof_char" >&6; }
12444
12445
12446
12447 cat >>confdefs.h <<_ACEOF
12448 #define SIZEOF_CHAR $ac_cv_sizeof_char
12449 _ACEOF
12450
12451
12452
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12454 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
12455 case "$ac_cv_sizeof_char" in
12456 1) acx_cv_type_int8_t=char ;;
12457 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
12458 esac
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12460 $as_echo "$acx_cv_type_int8_t" >&6; }
12461
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12463 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
12464 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12465 2:*) acx_cv_type_int16_t=int ;;
12466 *:2) acx_cv_type_int16_t=short ;;
12467 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
12468 esac
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12470 $as_echo "$acx_cv_type_int16_t" >&6; }
12471
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12473 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
12474 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12475 4:*) acx_cv_type_int32_t=int ;;
12476 *:4) acx_cv_type_int32_t=long ;;
12477 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
12478 esac
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12480 $as_echo "$acx_cv_type_int32_t" >&6; }
12481 fi
12482
12483 # These tests are here to make the output prettier
12484
12485 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12486 case "$ac_cv_sizeof_long" in
12487 8) acx_cv_type_int64_t=long ;;
12488 esac
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12490 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12492 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12493 fi
12494
12495 # Now we can use the above types
12496
12497 if test "$ac_cv_type_uintptr_t" != yes; then
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12499 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12500 case $ac_cv_sizeof_void_p in
12501 2) acx_cv_type_intptr_t=int16_t ;;
12502 4) acx_cv_type_intptr_t=int32_t ;;
12503 8) acx_cv_type_intptr_t=int64_t ;;
12504 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
12505 esac
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12507 $as_echo "$acx_cv_type_intptr_t" >&6; }
12508 fi
12509
12510 # ----------------- done all checks, emit header -------------
12511 ac_config_commands="$ac_config_commands gstdint.h"
12512
12513
12514
12515
12516 for ac_header in sys/mman.h
12517 do :
12518 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12519 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
12520 cat >>confdefs.h <<_ACEOF
12521 #define HAVE_SYS_MMAN_H 1
12522 _ACEOF
12523
12524 fi
12525
12526 done
12527
12528 if test "$ac_cv_header_sys_mman_h" = "no"; then
12529 have_mmap=no
12530 else
12531 if test -n "${with_target_subdir}"; then
12532 # When built as a GCC target library, we can't do a link test. We
12533 # simply assume that if we have mman.h, we have mmap.
12534 have_mmap=yes
12535 case "${host}" in
12536 spu-*-*|*-*-msdosdjgpp)
12537 # The SPU does not have mmap, but it has a sys/mman.h header file
12538 # containing "mmap_eaddr" and the mmap flags, confusing the test.
12539 # DJGPP also has sys/man.h, but no mmap
12540 have_mmap=no ;;
12541 esac
12542 else
12543 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12544 if test "x$ac_cv_func_mmap" = x""yes; then :
12545 have_mmap=yes
12546 else
12547 have_mmap=no
12548 fi
12549
12550 fi
12551 fi
12552 if test "$have_mmap" = "no"; then
12553 VIEW_FILE=read.lo
12554 ALLOC_FILE=alloc.lo
12555 else
12556 VIEW_FILE=mmapio.lo
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12559
12560 #include <sys/mman.h>
12561 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
12562 #error no MAP_ANONYMOUS
12563 #endif
12564
12565 _ACEOF
12566 if ac_fn_c_try_cpp "$LINENO"; then :
12567 ALLOC_FILE=mmap.lo
12568 else
12569 ALLOC_FILE=alloc.lo
12570 fi
12571 rm -f conftest.err conftest.$ac_ext
12572 fi
12573
12574
12575
12576 BACKTRACE_USES_MALLOC=0
12577 if test "$ALLOC_FILE" = "alloc.lo"; then
12578 BACKTRACE_USES_MALLOC=1
12579 fi
12580
12581
12582 # Check for dl_iterate_phdr.
12583 for ac_header in link.h
12584 do :
12585 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
12586 if test "x$ac_cv_header_link_h" = x""yes; then :
12587 cat >>confdefs.h <<_ACEOF
12588 #define HAVE_LINK_H 1
12589 _ACEOF
12590
12591 fi
12592
12593 done
12594
12595 if test "$ac_cv_header_link_h" = "no"; then
12596 have_dl_iterate_phdr=no
12597 else
12598 if test -n "${with_target_subdir}"; then
12599 # When built as a GCC target library, we can't do a link test.
12600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12601 /* end confdefs.h. */
12602 #include <link.h>
12603
12604 _ACEOF
12605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12606 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
12607 have_dl_iterate_phdr=yes
12608 else
12609 have_dl_iterate_phdr=no
12610 fi
12611 rm -f conftest*
12612
12613 case "${host}" in
12614 *-*-solaris2.10*)
12615 # Avoid dl_iterate_phdr on Solaris 10, where it is in the
12616 # header file but is only in -ldl.
12617 have_dl_iterate_phdr=no ;;
12618 esac
12619 else
12620 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
12621 if test "x$ac_cv_func_dl_iterate_phdr" = x""yes; then :
12622 have_dl_iterate_phdr=yes
12623 else
12624 have_dl_iterate_phdr=no
12625 fi
12626
12627 fi
12628 fi
12629 if test "$have_dl_iterate_phdr" = "yes"; then
12630
12631 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
12632
12633 fi
12634
12635 # Check for loadquery.
12636 for ac_header in sys/ldr.h
12637 do :
12638 ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
12639 if test "x$ac_cv_header_sys_ldr_h" = x""yes; then :
12640 cat >>confdefs.h <<_ACEOF
12641 #define HAVE_SYS_LDR_H 1
12642 _ACEOF
12643
12644 fi
12645
12646 done
12647
12648 if test "$ac_cv_header_sys_ldr_h" = "no"; then
12649 have_loadquery=no
12650 else
12651 if test -n "${with_target_subdir}"; then
12652 # When built as a GCC target library, we can't do a link test.
12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h. */
12655 #include <sys/ldr.h>
12656
12657 _ACEOF
12658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12659 $EGREP "loadquery" >/dev/null 2>&1; then :
12660 have_loadquery=yes
12661 else
12662 have_loadquery=no
12663 fi
12664 rm -f conftest*
12665
12666 else
12667 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
12668 if test "x$ac_cv_func_loadquery" = x""yes; then :
12669 have_loadquery=yes
12670 else
12671 have_loadquery=no
12672 fi
12673
12674 fi
12675 fi
12676 if test "$have_loadquery" = "yes"; then
12677
12678 $as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
12679
12680 fi
12681
12682 # Check for the fcntl function.
12683 if test -n "${with_target_subdir}"; then
12684 case "${host}" in
12685 *-*-mingw*) have_fcntl=no ;;
12686 spu-*-*) have_fcntl=no ;;
12687 *) have_fcntl=yes ;;
12688 esac
12689 else
12690 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
12691 if test "x$ac_cv_func_fcntl" = x""yes; then :
12692 have_fcntl=yes
12693 else
12694 have_fcntl=no
12695 fi
12696
12697 fi
12698 if test "$have_fcntl" = "yes"; then
12699
12700 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
12701
12702 fi
12703
12704 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
12705 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
12706 ac_have_decl=1
12707 else
12708 ac_have_decl=0
12709 fi
12710
12711 cat >>confdefs.h <<_ACEOF
12712 #define HAVE_DECL_STRNLEN $ac_have_decl
12713 _ACEOF
12714
12715 for ac_func in lstat readlink
12716 do :
12717 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12718 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12719 eval as_val=\$$as_ac_var
12720 if test "x$as_val" = x""yes; then :
12721 cat >>confdefs.h <<_ACEOF
12722 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12723 _ACEOF
12724
12725 fi
12726 done
12727
12728
12729 # Check for getexecname function.
12730 if test -n "${with_target_subdir}"; then
12731 case "${host}" in
12732 *-*-solaris2*) have_getexecname=yes ;;
12733 *) have_getexecname=no ;;
12734 esac
12735 else
12736 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
12737 if test "x$ac_cv_func_getexecname" = x""yes; then :
12738 have_getexecname=yes
12739 else
12740 have_getexecname=no
12741 fi
12742
12743 fi
12744 if test "$have_getexecname" = "yes"; then
12745
12746 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
12747
12748 fi
12749
12750 # Check for the clock_gettime function.
12751 for ac_func in clock_gettime
12752 do :
12753 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12754 if test "x$ac_cv_func_clock_gettime" = x""yes; then :
12755 cat >>confdefs.h <<_ACEOF
12756 #define HAVE_CLOCK_GETTIME 1
12757 _ACEOF
12758
12759 fi
12760 done
12761
12762
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
12764 $as_echo_n "checking whether -pthread is supported... " >&6; }
12765 if test "${libgo_cv_lib_pthread+set}" = set; then :
12766 $as_echo_n "(cached) " >&6
12767 else
12768 CFLAGS_hold=$CFLAGS
12769 CFLAGS="$CFLAGS -pthread"
12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h. */
12772 int i;
12773 _ACEOF
12774 if ac_fn_c_try_compile "$LINENO"; then :
12775 libgo_cv_lib_pthread=yes
12776 else
12777 libgo_cv_lib_pthread=no
12778 fi
12779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12780 CFLAGS=$CFLAGS_hold
12781 fi
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
12783 $as_echo "$libgo_cv_lib_pthread" >&6; }
12784 PTHREAD_CFLAGS=
12785 if test "$libgo_cv_lib_pthread" = yes; then
12786 PTHREAD_CFLAGS=-pthread
12787 fi
12788
12789
12790 if test "$libgo_cv_lib_pthread" = yes; then
12791 HAVE_PTHREAD_TRUE=
12792 HAVE_PTHREAD_FALSE='#'
12793 else
12794 HAVE_PTHREAD_TRUE='#'
12795 HAVE_PTHREAD_FALSE=
12796 fi
12797
12798
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
12800 $as_echo_n "checking for compress in -lz... " >&6; }
12801 if test "${ac_cv_lib_z_compress+set}" = set; then :
12802 $as_echo_n "(cached) " >&6
12803 else
12804 ac_check_lib_save_LIBS=$LIBS
12805 LIBS="-lz $LIBS"
12806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12807 /* end confdefs.h. */
12808
12809 /* Override any GCC internal prototype to avoid an error.
12810 Use char because int might match the return type of a GCC
12811 builtin and then its argument prototype would still apply. */
12812 #ifdef __cplusplus
12813 extern "C"
12814 #endif
12815 char compress ();
12816 int
12817 main ()
12818 {
12819 return compress ();
12820 ;
12821 return 0;
12822 }
12823 _ACEOF
12824 if ac_fn_c_try_link "$LINENO"; then :
12825 ac_cv_lib_z_compress=yes
12826 else
12827 ac_cv_lib_z_compress=no
12828 fi
12829 rm -f core conftest.err conftest.$ac_objext \
12830 conftest$ac_exeext conftest.$ac_ext
12831 LIBS=$ac_check_lib_save_LIBS
12832 fi
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
12834 $as_echo "$ac_cv_lib_z_compress" >&6; }
12835 if test "x$ac_cv_lib_z_compress" = x""yes; then :
12836 cat >>confdefs.h <<_ACEOF
12837 #define HAVE_LIBZ 1
12838 _ACEOF
12839
12840 LIBS="-lz $LIBS"
12841
12842 fi
12843
12844 if test $ac_cv_lib_z_compress = "yes"; then
12845
12846 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
12847
12848 fi
12849 if test "$ac_cv_lib_z_compress" = yes; then
12850 HAVE_ZLIB_TRUE=
12851 HAVE_ZLIB_FALSE='#'
12852 else
12853 HAVE_ZLIB_TRUE='#'
12854 HAVE_ZLIB_FALSE=
12855 fi
12856
12857
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5
12859 $as_echo_n "checking whether --compress-debug-sections is supported... " >&6; }
12860 if test "${libgo_cv_ld_compress+set}" = set; then :
12861 $as_echo_n "(cached) " >&6
12862 else
12863 LDFLAGS_hold=$LDFLAGS
12864 LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12867
12868 int
12869 main ()
12870 {
12871
12872 ;
12873 return 0;
12874 }
12875 _ACEOF
12876 if ac_fn_c_try_link "$LINENO"; then :
12877 libgo_cv_ld_compress=yes
12878 else
12879 libgo_cv_ld_compress=no
12880 fi
12881 rm -f core conftest.err conftest.$ac_objext \
12882 conftest$ac_exeext conftest.$ac_ext
12883 LDFLAGS=$LDFLAGS_hold
12884 fi
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5
12886 $as_echo "$libgo_cv_ld_compress" >&6; }
12887 if test "$libgo_cv_ld_compress" = yes; then
12888 HAVE_COMPRESSED_DEBUG_TRUE=
12889 HAVE_COMPRESSED_DEBUG_FALSE='#'
12890 else
12891 HAVE_COMPRESSED_DEBUG_TRUE='#'
12892 HAVE_COMPRESSED_DEBUG_FALSE=
12893 fi
12894
12895
12896
12897 # Extract the first word of "objcopy", so it can be a program name with args.
12898 set dummy objcopy; ac_word=$2
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12900 $as_echo_n "checking for $ac_word... " >&6; }
12901 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
12902 $as_echo_n "(cached) " >&6
12903 else
12904 if test -n "$OBJCOPY"; then
12905 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12906 else
12907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12908 for as_dir in $PATH
12909 do
12910 IFS=$as_save_IFS
12911 test -z "$as_dir" && as_dir=.
12912 for ac_exec_ext in '' $ac_executable_extensions; do
12913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12914 ac_cv_prog_OBJCOPY="objcopy"
12915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12916 break 2
12917 fi
12918 done
12919 done
12920 IFS=$as_save_IFS
12921
12922 fi
12923 fi
12924 OBJCOPY=$ac_cv_prog_OBJCOPY
12925 if test -n "$OBJCOPY"; then
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12927 $as_echo "$OBJCOPY" >&6; }
12928 else
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930 $as_echo "no" >&6; }
12931 fi
12932
12933
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
12935 $as_echo_n "checking whether objcopy supports debuglink... " >&6; }
12936 if test "${libbacktrace_cv_objcopy_debuglink+set}" = set; then :
12937 $as_echo_n "(cached) " >&6
12938 else
12939 if test -n "${with_target_subdir}"; then
12940 libbacktrace_cv_objcopy_debuglink=no
12941 elif ${OBJCOPY} --add-gnu-debuglink=x /bin/ls /tmp/ls$$; then
12942 rm -f /tmp/ls$$
12943 libbacktrace_cv_objcopy_debuglink=yes
12944 else
12945 libbacktrace_cv_objcopy_debuglink=no
12946 fi
12947 fi
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
12949 $as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
12950 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
12951 HAVE_OBJCOPY_DEBUGLINK_TRUE=
12952 HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
12953 else
12954 HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
12955 HAVE_OBJCOPY_DEBUGLINK_FALSE=
12956 fi
12957
12958
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
12960 $as_echo_n "checking whether tests can run... " >&6; }
12961 if test "${libbacktrace_cv_sys_native+set}" = set; then :
12962 $as_echo_n "(cached) " >&6
12963 else
12964 if test "$cross_compiling" = yes; then :
12965 libbacktrace_cv_sys_native=no
12966 else
12967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h. */
12969
12970 int
12971 main ()
12972 {
12973 return 0;
12974 ;
12975 return 0;
12976 }
12977 _ACEOF
12978 if ac_fn_c_try_run "$LINENO"; then :
12979 libbacktrace_cv_sys_native=yes
12980 else
12981 libbacktrace_cv_sys_native=no
12982 fi
12983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12984 conftest.$ac_objext conftest.beam conftest.$ac_ext
12985 fi
12986
12987 fi
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
12989 $as_echo "$libbacktrace_cv_sys_native" >&6; }
12990 if test "$libbacktrace_cv_sys_native" = "yes"; then
12991 NATIVE_TRUE=
12992 NATIVE_FALSE='#'
12993 else
12994 NATIVE_TRUE='#'
12995 NATIVE_FALSE=
12996 fi
12997
12998
12999 if test "${multilib}" = "yes"; then
13000 multilib_arg="--enable-multilib"
13001 else
13002 multilib_arg=
13003 fi
13004
13005 ac_config_files="$ac_config_files Makefile backtrace-supported.h"
13006
13007
13008 # We need multilib support, but only if configuring for the target.
13009 ac_config_commands="$ac_config_commands default"
13010
13011
13012 cat >confcache <<\_ACEOF
13013 # This file is a shell script that caches the results of configure
13014 # tests run on this system so they can be shared between configure
13015 # scripts and configure runs, see configure's option --config-cache.
13016 # It is not useful on other systems. If it contains results you don't
13017 # want to keep, you may remove or edit it.
13018 #
13019 # config.status only pays attention to the cache file if you give it
13020 # the --recheck option to rerun configure.
13021 #
13022 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13023 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13024 # following values.
13025
13026 _ACEOF
13027
13028 # The following way of writing the cache mishandles newlines in values,
13029 # but we know of no workaround that is simple, portable, and efficient.
13030 # So, we kill variables containing newlines.
13031 # Ultrix sh set writes to stderr and can't be redirected directly,
13032 # and sets the high bit in the cache file unless we assign to the vars.
13033 (
13034 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13035 eval ac_val=\$$ac_var
13036 case $ac_val in #(
13037 *${as_nl}*)
13038 case $ac_var in #(
13039 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13040 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13041 esac
13042 case $ac_var in #(
13043 _ | IFS | as_nl) ;; #(
13044 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13045 *) { eval $ac_var=; unset $ac_var;} ;;
13046 esac ;;
13047 esac
13048 done
13049
13050 (set) 2>&1 |
13051 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13052 *${as_nl}ac_space=\ *)
13053 # `set' does not quote correctly, so add quotes: double-quote
13054 # substitution turns \\\\ into \\, and sed turns \\ into \.
13055 sed -n \
13056 "s/'/'\\\\''/g;
13057 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13058 ;; #(
13059 *)
13060 # `set' quotes correctly as required by POSIX, so do not add quotes.
13061 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13062 ;;
13063 esac |
13064 sort
13065 ) |
13066 sed '
13067 /^ac_cv_env_/b end
13068 t clear
13069 :clear
13070 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13071 t end
13072 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13073 :end' >>confcache
13074 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13075 if test -w "$cache_file"; then
13076 test "x$cache_file" != "x/dev/null" &&
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13078 $as_echo "$as_me: updating cache $cache_file" >&6;}
13079 cat confcache >$cache_file
13080 else
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13082 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13083 fi
13084 fi
13085 rm -f confcache
13086
13087 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13088 # Let make expand exec_prefix.
13089 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13090
13091 DEFS=-DHAVE_CONFIG_H
13092
13093 ac_libobjs=
13094 ac_ltlibobjs=
13095 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13096 # 1. Remove the extension, and $U if already installed.
13097 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13098 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13099 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13100 # will be set to the directory where LIBOBJS objects are built.
13101 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13102 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13103 done
13104 LIBOBJS=$ac_libobjs
13105
13106 LTLIBOBJS=$ac_ltlibobjs
13107
13108
13109 if test -n "$EXEEXT"; then
13110 am__EXEEXT_TRUE=
13111 am__EXEEXT_FALSE='#'
13112 else
13113 am__EXEEXT_TRUE='#'
13114 am__EXEEXT_FALSE=
13115 fi
13116
13117 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13118 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13120 fi
13121 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
13122 as_fn_error "conditional \"HAVE_PTHREAD\" was never defined.
13123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13124 fi
13125 if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
13126 as_fn_error "conditional \"HAVE_ZLIB\" was never defined.
13127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13128 fi
13129 if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then
13130 as_fn_error "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined.
13131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13132 fi
13133 if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
13134 as_fn_error "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
13135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13136 fi
13137 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
13138 as_fn_error "conditional \"NATIVE\" was never defined.
13139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13140 fi
13141
13142 : ${CONFIG_STATUS=./config.status}
13143 ac_write_fail=0
13144 ac_clean_files_save=$ac_clean_files
13145 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13147 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13148 as_write_fail=0
13149 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13150 #! $SHELL
13151 # Generated by $as_me.
13152 # Run this file to recreate the current configuration.
13153 # Compiler output produced by configure, useful for debugging
13154 # configure, is in config.log if it exists.
13155
13156 debug=false
13157 ac_cs_recheck=false
13158 ac_cs_silent=false
13159
13160 SHELL=\${CONFIG_SHELL-$SHELL}
13161 export SHELL
13162 _ASEOF
13163 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13164 ## -------------------- ##
13165 ## M4sh Initialization. ##
13166 ## -------------------- ##
13167
13168 # Be more Bourne compatible
13169 DUALCASE=1; export DUALCASE # for MKS sh
13170 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13171 emulate sh
13172 NULLCMD=:
13173 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13174 # is contrary to our usage. Disable this feature.
13175 alias -g '${1+"$@"}'='"$@"'
13176 setopt NO_GLOB_SUBST
13177 else
13178 case `(set -o) 2>/dev/null` in #(
13179 *posix*) :
13180 set -o posix ;; #(
13181 *) :
13182 ;;
13183 esac
13184 fi
13185
13186
13187 as_nl='
13188 '
13189 export as_nl
13190 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13191 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13192 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13193 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13194 # Prefer a ksh shell builtin over an external printf program on Solaris,
13195 # but without wasting forks for bash or zsh.
13196 if test -z "$BASH_VERSION$ZSH_VERSION" \
13197 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13198 as_echo='print -r --'
13199 as_echo_n='print -rn --'
13200 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13201 as_echo='printf %s\n'
13202 as_echo_n='printf %s'
13203 else
13204 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13205 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13206 as_echo_n='/usr/ucb/echo -n'
13207 else
13208 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13209 as_echo_n_body='eval
13210 arg=$1;
13211 case $arg in #(
13212 *"$as_nl"*)
13213 expr "X$arg" : "X\\(.*\\)$as_nl";
13214 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13215 esac;
13216 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13217 '
13218 export as_echo_n_body
13219 as_echo_n='sh -c $as_echo_n_body as_echo'
13220 fi
13221 export as_echo_body
13222 as_echo='sh -c $as_echo_body as_echo'
13223 fi
13224
13225 # The user is always right.
13226 if test "${PATH_SEPARATOR+set}" != set; then
13227 PATH_SEPARATOR=:
13228 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13229 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13230 PATH_SEPARATOR=';'
13231 }
13232 fi
13233
13234
13235 # IFS
13236 # We need space, tab and new line, in precisely that order. Quoting is
13237 # there to prevent editors from complaining about space-tab.
13238 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13239 # splitting by setting IFS to empty value.)
13240 IFS=" "" $as_nl"
13241
13242 # Find who we are. Look in the path if we contain no directory separator.
13243 case $0 in #((
13244 *[\\/]* ) as_myself=$0 ;;
13245 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $PATH
13247 do
13248 IFS=$as_save_IFS
13249 test -z "$as_dir" && as_dir=.
13250 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13251 done
13252 IFS=$as_save_IFS
13253
13254 ;;
13255 esac
13256 # We did not find ourselves, most probably we were run as `sh COMMAND'
13257 # in which case we are not to be found in the path.
13258 if test "x$as_myself" = x; then
13259 as_myself=$0
13260 fi
13261 if test ! -f "$as_myself"; then
13262 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13263 exit 1
13264 fi
13265
13266 # Unset variables that we do not need and which cause bugs (e.g. in
13267 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13268 # suppresses any "Segmentation fault" message there. '((' could
13269 # trigger a bug in pdksh 5.2.14.
13270 for as_var in BASH_ENV ENV MAIL MAILPATH
13271 do eval test x\${$as_var+set} = xset \
13272 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13273 done
13274 PS1='$ '
13275 PS2='> '
13276 PS4='+ '
13277
13278 # NLS nuisances.
13279 LC_ALL=C
13280 export LC_ALL
13281 LANGUAGE=C
13282 export LANGUAGE
13283
13284 # CDPATH.
13285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13286
13287
13288 # as_fn_error ERROR [LINENO LOG_FD]
13289 # ---------------------------------
13290 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13291 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13292 # script with status $?, using 1 if that was 0.
13293 as_fn_error ()
13294 {
13295 as_status=$?; test $as_status -eq 0 && as_status=1
13296 if test "$3"; then
13297 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13298 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13299 fi
13300 $as_echo "$as_me: error: $1" >&2
13301 as_fn_exit $as_status
13302 } # as_fn_error
13303
13304
13305 # as_fn_set_status STATUS
13306 # -----------------------
13307 # Set $? to STATUS, without forking.
13308 as_fn_set_status ()
13309 {
13310 return $1
13311 } # as_fn_set_status
13312
13313 # as_fn_exit STATUS
13314 # -----------------
13315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13316 as_fn_exit ()
13317 {
13318 set +e
13319 as_fn_set_status $1
13320 exit $1
13321 } # as_fn_exit
13322
13323 # as_fn_unset VAR
13324 # ---------------
13325 # Portably unset VAR.
13326 as_fn_unset ()
13327 {
13328 { eval $1=; unset $1;}
13329 }
13330 as_unset=as_fn_unset
13331 # as_fn_append VAR VALUE
13332 # ----------------------
13333 # Append the text in VALUE to the end of the definition contained in VAR. Take
13334 # advantage of any shell optimizations that allow amortized linear growth over
13335 # repeated appends, instead of the typical quadratic growth present in naive
13336 # implementations.
13337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13338 eval 'as_fn_append ()
13339 {
13340 eval $1+=\$2
13341 }'
13342 else
13343 as_fn_append ()
13344 {
13345 eval $1=\$$1\$2
13346 }
13347 fi # as_fn_append
13348
13349 # as_fn_arith ARG...
13350 # ------------------
13351 # Perform arithmetic evaluation on the ARGs, and store the result in the
13352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13353 # must be portable across $(()) and expr.
13354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13355 eval 'as_fn_arith ()
13356 {
13357 as_val=$(( $* ))
13358 }'
13359 else
13360 as_fn_arith ()
13361 {
13362 as_val=`expr "$@" || test $? -eq 1`
13363 }
13364 fi # as_fn_arith
13365
13366
13367 if expr a : '\(a\)' >/dev/null 2>&1 &&
13368 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13369 as_expr=expr
13370 else
13371 as_expr=false
13372 fi
13373
13374 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13375 as_basename=basename
13376 else
13377 as_basename=false
13378 fi
13379
13380 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13381 as_dirname=dirname
13382 else
13383 as_dirname=false
13384 fi
13385
13386 as_me=`$as_basename -- "$0" ||
13387 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13388 X"$0" : 'X\(//\)$' \| \
13389 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13390 $as_echo X/"$0" |
13391 sed '/^.*\/\([^/][^/]*\)\/*$/{
13392 s//\1/
13393 q
13394 }
13395 /^X\/\(\/\/\)$/{
13396 s//\1/
13397 q
13398 }
13399 /^X\/\(\/\).*/{
13400 s//\1/
13401 q
13402 }
13403 s/.*/./; q'`
13404
13405 # Avoid depending upon Character Ranges.
13406 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13407 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13408 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13409 as_cr_digits='0123456789'
13410 as_cr_alnum=$as_cr_Letters$as_cr_digits
13411
13412 ECHO_C= ECHO_N= ECHO_T=
13413 case `echo -n x` in #(((((
13414 -n*)
13415 case `echo 'xy\c'` in
13416 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13417 xy) ECHO_C='\c';;
13418 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13419 ECHO_T=' ';;
13420 esac;;
13421 *)
13422 ECHO_N='-n';;
13423 esac
13424
13425 rm -f conf$$ conf$$.exe conf$$.file
13426 if test -d conf$$.dir; then
13427 rm -f conf$$.dir/conf$$.file
13428 else
13429 rm -f conf$$.dir
13430 mkdir conf$$.dir 2>/dev/null
13431 fi
13432 if (echo >conf$$.file) 2>/dev/null; then
13433 if ln -s conf$$.file conf$$ 2>/dev/null; then
13434 as_ln_s='ln -s'
13435 # ... but there are two gotchas:
13436 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13437 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13438 # In both cases, we have to default to `cp -p'.
13439 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13440 as_ln_s='cp -p'
13441 elif ln conf$$.file conf$$ 2>/dev/null; then
13442 as_ln_s=ln
13443 else
13444 as_ln_s='cp -p'
13445 fi
13446 else
13447 as_ln_s='cp -p'
13448 fi
13449 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13450 rmdir conf$$.dir 2>/dev/null
13451
13452
13453 # as_fn_mkdir_p
13454 # -------------
13455 # Create "$as_dir" as a directory, including parents if necessary.
13456 as_fn_mkdir_p ()
13457 {
13458
13459 case $as_dir in #(
13460 -*) as_dir=./$as_dir;;
13461 esac
13462 test -d "$as_dir" || eval $as_mkdir_p || {
13463 as_dirs=
13464 while :; do
13465 case $as_dir in #(
13466 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13467 *) as_qdir=$as_dir;;
13468 esac
13469 as_dirs="'$as_qdir' $as_dirs"
13470 as_dir=`$as_dirname -- "$as_dir" ||
13471 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13472 X"$as_dir" : 'X\(//\)[^/]' \| \
13473 X"$as_dir" : 'X\(//\)$' \| \
13474 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13475 $as_echo X"$as_dir" |
13476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13477 s//\1/
13478 q
13479 }
13480 /^X\(\/\/\)[^/].*/{
13481 s//\1/
13482 q
13483 }
13484 /^X\(\/\/\)$/{
13485 s//\1/
13486 q
13487 }
13488 /^X\(\/\).*/{
13489 s//\1/
13490 q
13491 }
13492 s/.*/./; q'`
13493 test -d "$as_dir" && break
13494 done
13495 test -z "$as_dirs" || eval "mkdir $as_dirs"
13496 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13497
13498
13499 } # as_fn_mkdir_p
13500 if mkdir -p . 2>/dev/null; then
13501 as_mkdir_p='mkdir -p "$as_dir"'
13502 else
13503 test -d ./-p && rmdir ./-p
13504 as_mkdir_p=false
13505 fi
13506
13507 if test -x / >/dev/null 2>&1; then
13508 as_test_x='test -x'
13509 else
13510 if ls -dL / >/dev/null 2>&1; then
13511 as_ls_L_option=L
13512 else
13513 as_ls_L_option=
13514 fi
13515 as_test_x='
13516 eval sh -c '\''
13517 if test -d "$1"; then
13518 test -d "$1/.";
13519 else
13520 case $1 in #(
13521 -*)set "./$1";;
13522 esac;
13523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13524 ???[sx]*):;;*)false;;esac;fi
13525 '\'' sh
13526 '
13527 fi
13528 as_executable_p=$as_test_x
13529
13530 # Sed expression to map a string onto a valid CPP name.
13531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13532
13533 # Sed expression to map a string onto a valid variable name.
13534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13535
13536
13537 exec 6>&1
13538 ## ----------------------------------- ##
13539 ## Main body of $CONFIG_STATUS script. ##
13540 ## ----------------------------------- ##
13541 _ASEOF
13542 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13543
13544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13545 # Save the log message, to keep $0 and so on meaningful, and to
13546 # report actual input values of CONFIG_FILES etc. instead of their
13547 # values after options handling.
13548 ac_log="
13549 This file was extended by package-unused $as_me version-unused, which was
13550 generated by GNU Autoconf 2.64. Invocation command line was
13551
13552 CONFIG_FILES = $CONFIG_FILES
13553 CONFIG_HEADERS = $CONFIG_HEADERS
13554 CONFIG_LINKS = $CONFIG_LINKS
13555 CONFIG_COMMANDS = $CONFIG_COMMANDS
13556 $ $0 $@
13557
13558 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13559 "
13560
13561 _ACEOF
13562
13563 case $ac_config_files in *"
13564 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13565 esac
13566
13567 case $ac_config_headers in *"
13568 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13569 esac
13570
13571
13572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13573 # Files that config.status was made for.
13574 config_files="$ac_config_files"
13575 config_headers="$ac_config_headers"
13576 config_commands="$ac_config_commands"
13577
13578 _ACEOF
13579
13580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13581 ac_cs_usage="\
13582 \`$as_me' instantiates files and other configuration actions
13583 from templates according to the current configuration. Unless the files
13584 and actions are specified as TAGs, all are instantiated by default.
13585
13586 Usage: $0 [OPTION]... [TAG]...
13587
13588 -h, --help print this help, then exit
13589 -V, --version print version number and configuration settings, then exit
13590 -q, --quiet, --silent
13591 do not print progress messages
13592 -d, --debug don't remove temporary files
13593 --recheck update $as_me by reconfiguring in the same conditions
13594 --file=FILE[:TEMPLATE]
13595 instantiate the configuration file FILE
13596 --header=FILE[:TEMPLATE]
13597 instantiate the configuration header FILE
13598
13599 Configuration files:
13600 $config_files
13601
13602 Configuration headers:
13603 $config_headers
13604
13605 Configuration commands:
13606 $config_commands
13607
13608 Report bugs to the package provider."
13609
13610 _ACEOF
13611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13612 ac_cs_version="\\
13613 package-unused config.status version-unused
13614 configured by $0, generated by GNU Autoconf 2.64,
13615 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13616
13617 Copyright (C) 2009 Free Software Foundation, Inc.
13618 This config.status script is free software; the Free Software Foundation
13619 gives unlimited permission to copy, distribute and modify it."
13620
13621 ac_pwd='$ac_pwd'
13622 srcdir='$srcdir'
13623 INSTALL='$INSTALL'
13624 MKDIR_P='$MKDIR_P'
13625 AWK='$AWK'
13626 test -n "\$AWK" || AWK=awk
13627 _ACEOF
13628
13629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13630 # The default lists apply if the user does not specify any file.
13631 ac_need_defaults=:
13632 while test $# != 0
13633 do
13634 case $1 in
13635 --*=*)
13636 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13637 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13638 ac_shift=:
13639 ;;
13640 *)
13641 ac_option=$1
13642 ac_optarg=$2
13643 ac_shift=shift
13644 ;;
13645 esac
13646
13647 case $ac_option in
13648 # Handling of the options.
13649 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13650 ac_cs_recheck=: ;;
13651 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13652 $as_echo "$ac_cs_version"; exit ;;
13653 --debug | --debu | --deb | --de | --d | -d )
13654 debug=: ;;
13655 --file | --fil | --fi | --f )
13656 $ac_shift
13657 case $ac_optarg in
13658 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13659 esac
13660 as_fn_append CONFIG_FILES " '$ac_optarg'"
13661 ac_need_defaults=false;;
13662 --header | --heade | --head | --hea )
13663 $ac_shift
13664 case $ac_optarg in
13665 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13666 esac
13667 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13668 ac_need_defaults=false;;
13669 --he | --h)
13670 # Conflict between --help and --header
13671 as_fn_error "ambiguous option: \`$1'
13672 Try \`$0 --help' for more information.";;
13673 --help | --hel | -h )
13674 $as_echo "$ac_cs_usage"; exit ;;
13675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13676 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13677 ac_cs_silent=: ;;
13678
13679 # This is an error.
13680 -*) as_fn_error "unrecognized option: \`$1'
13681 Try \`$0 --help' for more information." ;;
13682
13683 *) as_fn_append ac_config_targets " $1"
13684 ac_need_defaults=false ;;
13685
13686 esac
13687 shift
13688 done
13689
13690 ac_configure_extra_args=
13691
13692 if $ac_cs_silent; then
13693 exec 6>/dev/null
13694 ac_configure_extra_args="$ac_configure_extra_args --silent"
13695 fi
13696
13697 _ACEOF
13698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13699 if \$ac_cs_recheck; then
13700 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13701 shift
13702 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13703 CONFIG_SHELL='$SHELL'
13704 export CONFIG_SHELL
13705 exec "\$@"
13706 fi
13707
13708 _ACEOF
13709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13710 exec 5>>config.log
13711 {
13712 echo
13713 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13714 ## Running $as_me. ##
13715 _ASBOX
13716 $as_echo "$ac_log"
13717 } >&5
13718
13719 _ACEOF
13720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13721 #
13722 # INIT-COMMANDS
13723 #
13724
13725 srcdir="$srcdir"
13726 host="$host"
13727 target="$target"
13728 with_multisubdir="$with_multisubdir"
13729 with_multisrctop="$with_multisrctop"
13730 with_target_subdir="$with_target_subdir"
13731 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13732 multi_basedir="$multi_basedir"
13733 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13734 CC="$CC"
13735 CXX="$CXX"
13736 GFORTRAN="$GFORTRAN"
13737
13738
13739 # The HP-UX ksh and POSIX shell print the target directory to stdout
13740 # if CDPATH is set.
13741 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13742
13743 sed_quote_subst='$sed_quote_subst'
13744 double_quote_subst='$double_quote_subst'
13745 delay_variable_subst='$delay_variable_subst'
13746 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13747 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13748 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13749 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13750 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13751 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13752 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13753 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13754 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13755 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13756 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13757 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13758 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13759 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13760 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13761 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13762 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13763 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13764 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13765 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13766 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13767 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13768 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13769 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13770 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13771 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13772 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13773 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13774 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13775 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13776 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13777 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13778 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13779 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13780 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13781 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13782 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13783 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13784 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13785 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13786 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13787 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13788 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13789 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13790 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13791 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13792 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13793 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13794 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"`'
13795 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13796 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13797 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13798 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13799 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13800 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13801 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13802 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13803 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13804 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13805 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13806 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13807 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13808 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13809 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13810 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13811 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13812 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13813 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13814 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13815 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13816 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13817 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13818 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13819 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13820 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13821 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13822 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13823 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13824 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13825 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13826 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13827 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13828 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13829 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13830 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13831 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13832 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13833 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13834 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13835 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13836 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13837 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13838 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13839 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13840 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13841 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13842 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13843 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13844 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13845 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13846 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13847 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13848 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13849 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13850 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13851 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13852 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13853 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13854 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13855 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13856 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13857 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13858 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13859 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13860 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13861 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13862 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13863 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13864 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13865 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13866
13867 LTCC='$LTCC'
13868 LTCFLAGS='$LTCFLAGS'
13869 compiler='$compiler_DEFAULT'
13870
13871 # A function that is used when there is no print builtin or printf.
13872 func_fallback_echo ()
13873 {
13874 eval 'cat <<_LTECHO_EOF
13875 \$1
13876 _LTECHO_EOF'
13877 }
13878
13879 # Quote evaled strings.
13880 for var in SHELL \
13881 ECHO \
13882 SED \
13883 GREP \
13884 EGREP \
13885 FGREP \
13886 LD \
13887 NM \
13888 LN_S \
13889 lt_SP2NL \
13890 lt_NL2SP \
13891 reload_flag \
13892 OBJDUMP \
13893 deplibs_check_method \
13894 file_magic_cmd \
13895 AR \
13896 AR_FLAGS \
13897 STRIP \
13898 RANLIB \
13899 CC \
13900 CFLAGS \
13901 compiler \
13902 lt_cv_sys_global_symbol_pipe \
13903 lt_cv_sys_global_symbol_to_cdecl \
13904 lt_cv_sys_global_symbol_to_c_name_address \
13905 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13906 lt_prog_compiler_no_builtin_flag \
13907 lt_prog_compiler_wl \
13908 lt_prog_compiler_pic \
13909 lt_prog_compiler_static \
13910 lt_cv_prog_compiler_c_o \
13911 need_locks \
13912 DSYMUTIL \
13913 NMEDIT \
13914 LIPO \
13915 OTOOL \
13916 OTOOL64 \
13917 shrext_cmds \
13918 export_dynamic_flag_spec \
13919 whole_archive_flag_spec \
13920 compiler_needs_object \
13921 with_gnu_ld \
13922 allow_undefined_flag \
13923 no_undefined_flag \
13924 hardcode_libdir_flag_spec \
13925 hardcode_libdir_flag_spec_ld \
13926 hardcode_libdir_separator \
13927 fix_srcfile_path \
13928 exclude_expsyms \
13929 include_expsyms \
13930 file_list_spec \
13931 variables_saved_for_relink \
13932 libname_spec \
13933 library_names_spec \
13934 soname_spec \
13935 install_override_mode \
13936 finish_eval \
13937 old_striplib \
13938 striplib; do
13939 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13940 *[\\\\\\\`\\"\\\$]*)
13941 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13942 ;;
13943 *)
13944 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13945 ;;
13946 esac
13947 done
13948
13949 # Double-quote double-evaled strings.
13950 for var in reload_cmds \
13951 old_postinstall_cmds \
13952 old_postuninstall_cmds \
13953 old_archive_cmds \
13954 extract_expsyms_cmds \
13955 old_archive_from_new_cmds \
13956 old_archive_from_expsyms_cmds \
13957 archive_cmds \
13958 archive_expsym_cmds \
13959 module_cmds \
13960 module_expsym_cmds \
13961 export_symbols_cmds \
13962 prelink_cmds \
13963 postinstall_cmds \
13964 postuninstall_cmds \
13965 finish_cmds \
13966 sys_lib_search_path_spec \
13967 sys_lib_dlsearch_path_spec; do
13968 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13969 *[\\\\\\\`\\"\\\$]*)
13970 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13971 ;;
13972 *)
13973 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13974 ;;
13975 esac
13976 done
13977
13978 ac_aux_dir='$ac_aux_dir'
13979 xsi_shell='$xsi_shell'
13980 lt_shell_append='$lt_shell_append'
13981
13982 # See if we are running on zsh, and set the options which allow our
13983 # commands through without removal of \ escapes INIT.
13984 if test -n "\${ZSH_VERSION+set}" ; then
13985 setopt NO_GLOB_SUBST
13986 fi
13987
13988
13989 PACKAGE='$PACKAGE'
13990 VERSION='$VERSION'
13991 TIMESTAMP='$TIMESTAMP'
13992 RM='$RM'
13993 ofile='$ofile'
13994
13995
13996
13997
13998 GCC="$GCC"
13999 CC="$CC"
14000 acx_cv_header_stdint="$acx_cv_header_stdint"
14001 acx_cv_type_int8_t="$acx_cv_type_int8_t"
14002 acx_cv_type_int16_t="$acx_cv_type_int16_t"
14003 acx_cv_type_int32_t="$acx_cv_type_int32_t"
14004 acx_cv_type_int64_t="$acx_cv_type_int64_t"
14005 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
14006 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
14007 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
14008 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
14009 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
14010 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
14011 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
14012 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
14013 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
14014
14015
14016 # Variables needed in config.status (file generation) which aren't already
14017 # passed by autoconf.
14018 SUBDIRS="$SUBDIRS"
14019
14020
14021 _ACEOF
14022
14023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14024
14025 # Handling of arguments.
14026 for ac_config_target in $ac_config_targets
14027 do
14028 case $ac_config_target in
14029 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14030 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14031 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14032 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
14033 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14034 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
14035 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14036
14037 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14038 esac
14039 done
14040
14041
14042 # If the user did not use the arguments to specify the items to instantiate,
14043 # then the envvar interface is used. Set only those that are not.
14044 # We use the long form for the default assignment because of an extremely
14045 # bizarre bug on SunOS 4.1.3.
14046 if $ac_need_defaults; then
14047 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14048 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14049 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14050 fi
14051
14052 # Have a temporary directory for convenience. Make it in the build tree
14053 # simply because there is no reason against having it here, and in addition,
14054 # creating and moving files from /tmp can sometimes cause problems.
14055 # Hook for its removal unless debugging.
14056 # Note that there is a small window in which the directory will not be cleaned:
14057 # after its creation but before its name has been assigned to `$tmp'.
14058 $debug ||
14059 {
14060 tmp=
14061 trap 'exit_status=$?
14062 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14063 ' 0
14064 trap 'as_fn_exit 1' 1 2 13 15
14065 }
14066 # Create a (secure) tmp directory for tmp files.
14067
14068 {
14069 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14070 test -n "$tmp" && test -d "$tmp"
14071 } ||
14072 {
14073 tmp=./conf$$-$RANDOM
14074 (umask 077 && mkdir "$tmp")
14075 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14076
14077 # Set up the scripts for CONFIG_FILES section.
14078 # No need to generate them if there are no CONFIG_FILES.
14079 # This happens for instance with `./config.status config.h'.
14080 if test -n "$CONFIG_FILES"; then
14081
14082
14083 ac_cr=`echo X | tr X '\015'`
14084 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14085 # But we know of no other shell where ac_cr would be empty at this
14086 # point, so we can use a bashism as a fallback.
14087 if test "x$ac_cr" = x; then
14088 eval ac_cr=\$\'\\r\'
14089 fi
14090 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14091 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14092 ac_cs_awk_cr='\r'
14093 else
14094 ac_cs_awk_cr=$ac_cr
14095 fi
14096
14097 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14098 _ACEOF
14099
14100
14101 {
14102 echo "cat >conf$$subs.awk <<_ACEOF" &&
14103 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14104 echo "_ACEOF"
14105 } >conf$$subs.sh ||
14106 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14107 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14108 ac_delim='%!_!# '
14109 for ac_last_try in false false false false false :; do
14110 . ./conf$$subs.sh ||
14111 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14112
14113 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14114 if test $ac_delim_n = $ac_delim_num; then
14115 break
14116 elif $ac_last_try; then
14117 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14118 else
14119 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14120 fi
14121 done
14122 rm -f conf$$subs.sh
14123
14124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14125 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14126 _ACEOF
14127 sed -n '
14128 h
14129 s/^/S["/; s/!.*/"]=/
14130 p
14131 g
14132 s/^[^!]*!//
14133 :repl
14134 t repl
14135 s/'"$ac_delim"'$//
14136 t delim
14137 :nl
14138 h
14139 s/\(.\{148\}\).*/\1/
14140 t more1
14141 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14142 p
14143 n
14144 b repl
14145 :more1
14146 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14147 p
14148 g
14149 s/.\{148\}//
14150 t nl
14151 :delim
14152 h
14153 s/\(.\{148\}\).*/\1/
14154 t more2
14155 s/["\\]/\\&/g; s/^/"/; s/$/"/
14156 p
14157 b
14158 :more2
14159 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14160 p
14161 g
14162 s/.\{148\}//
14163 t delim
14164 ' <conf$$subs.awk | sed '
14165 /^[^""]/{
14166 N
14167 s/\n//
14168 }
14169 ' >>$CONFIG_STATUS || ac_write_fail=1
14170 rm -f conf$$subs.awk
14171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14172 _ACAWK
14173 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14174 for (key in S) S_is_set[key] = 1
14175 FS = "\a"
14176
14177 }
14178 {
14179 line = $ 0
14180 nfields = split(line, field, "@")
14181 substed = 0
14182 len = length(field[1])
14183 for (i = 2; i < nfields; i++) {
14184 key = field[i]
14185 keylen = length(key)
14186 if (S_is_set[key]) {
14187 value = S[key]
14188 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14189 len += length(value) + length(field[++i])
14190 substed = 1
14191 } else
14192 len += 1 + keylen
14193 }
14194
14195 print line
14196 }
14197
14198 _ACAWK
14199 _ACEOF
14200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14201 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14202 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14203 else
14204 cat
14205 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14206 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14207 _ACEOF
14208
14209 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14210 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14211 # trailing colons and then remove the whole line if VPATH becomes empty
14212 # (actually we leave an empty line to preserve line numbers).
14213 if test "x$srcdir" = x.; then
14214 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14215 s/:*\$(srcdir):*/:/
14216 s/:*\${srcdir}:*/:/
14217 s/:*@srcdir@:*/:/
14218 s/^\([^=]*=[ ]*\):*/\1/
14219 s/:*$//
14220 s/^[^=]*=[ ]*$//
14221 }'
14222 fi
14223
14224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14225 fi # test -n "$CONFIG_FILES"
14226
14227 # Set up the scripts for CONFIG_HEADERS section.
14228 # No need to generate them if there are no CONFIG_HEADERS.
14229 # This happens for instance with `./config.status Makefile'.
14230 if test -n "$CONFIG_HEADERS"; then
14231 cat >"$tmp/defines.awk" <<\_ACAWK ||
14232 BEGIN {
14233 _ACEOF
14234
14235 # Transform confdefs.h into an awk script `defines.awk', embedded as
14236 # here-document in config.status, that substitutes the proper values into
14237 # config.h.in to produce config.h.
14238
14239 # Create a delimiter string that does not exist in confdefs.h, to ease
14240 # handling of long lines.
14241 ac_delim='%!_!# '
14242 for ac_last_try in false false :; do
14243 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14244 if test -z "$ac_t"; then
14245 break
14246 elif $ac_last_try; then
14247 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14248 else
14249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14250 fi
14251 done
14252
14253 # For the awk script, D is an array of macro values keyed by name,
14254 # likewise P contains macro parameters if any. Preserve backslash
14255 # newline sequences.
14256
14257 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14258 sed -n '
14259 s/.\{148\}/&'"$ac_delim"'/g
14260 t rset
14261 :rset
14262 s/^[ ]*#[ ]*define[ ][ ]*/ /
14263 t def
14264 d
14265 :def
14266 s/\\$//
14267 t bsnl
14268 s/["\\]/\\&/g
14269 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14270 D["\1"]=" \3"/p
14271 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14272 d
14273 :bsnl
14274 s/["\\]/\\&/g
14275 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14276 D["\1"]=" \3\\\\\\n"\\/p
14277 t cont
14278 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14279 t cont
14280 d
14281 :cont
14282 n
14283 s/.\{148\}/&'"$ac_delim"'/g
14284 t clear
14285 :clear
14286 s/\\$//
14287 t bsnlc
14288 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14289 d
14290 :bsnlc
14291 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14292 b cont
14293 ' <confdefs.h | sed '
14294 s/'"$ac_delim"'/"\\\
14295 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14296
14297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14298 for (key in D) D_is_set[key] = 1
14299 FS = "\a"
14300 }
14301 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14302 line = \$ 0
14303 split(line, arg, " ")
14304 if (arg[1] == "#") {
14305 defundef = arg[2]
14306 mac1 = arg[3]
14307 } else {
14308 defundef = substr(arg[1], 2)
14309 mac1 = arg[2]
14310 }
14311 split(mac1, mac2, "(") #)
14312 macro = mac2[1]
14313 prefix = substr(line, 1, index(line, defundef) - 1)
14314 if (D_is_set[macro]) {
14315 # Preserve the white space surrounding the "#".
14316 print prefix "define", macro P[macro] D[macro]
14317 next
14318 } else {
14319 # Replace #undef with comments. This is necessary, for example,
14320 # in the case of _POSIX_SOURCE, which is predefined and required
14321 # on some systems where configure will not decide to define it.
14322 if (defundef == "undef") {
14323 print "/*", prefix defundef, macro, "*/"
14324 next
14325 }
14326 }
14327 }
14328 { print }
14329 _ACAWK
14330 _ACEOF
14331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14332 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14333 fi # test -n "$CONFIG_HEADERS"
14334
14335
14336 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14337 shift
14338 for ac_tag
14339 do
14340 case $ac_tag in
14341 :[FHLC]) ac_mode=$ac_tag; continue;;
14342 esac
14343 case $ac_mode$ac_tag in
14344 :[FHL]*:*);;
14345 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14346 :[FH]-) ac_tag=-:-;;
14347 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14348 esac
14349 ac_save_IFS=$IFS
14350 IFS=:
14351 set x $ac_tag
14352 IFS=$ac_save_IFS
14353 shift
14354 ac_file=$1
14355 shift
14356
14357 case $ac_mode in
14358 :L) ac_source=$1;;
14359 :[FH])
14360 ac_file_inputs=
14361 for ac_f
14362 do
14363 case $ac_f in
14364 -) ac_f="$tmp/stdin";;
14365 *) # Look for the file first in the build tree, then in the source tree
14366 # (if the path is not absolute). The absolute path cannot be DOS-style,
14367 # because $ac_f cannot contain `:'.
14368 test -f "$ac_f" ||
14369 case $ac_f in
14370 [\\/$]*) false;;
14371 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14372 esac ||
14373 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14374 esac
14375 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14376 as_fn_append ac_file_inputs " '$ac_f'"
14377 done
14378
14379 # Let's still pretend it is `configure' which instantiates (i.e., don't
14380 # use $as_me), people would be surprised to read:
14381 # /* config.h. Generated by config.status. */
14382 configure_input='Generated from '`
14383 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14384 `' by configure.'
14385 if test x"$ac_file" != x-; then
14386 configure_input="$ac_file. $configure_input"
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14388 $as_echo "$as_me: creating $ac_file" >&6;}
14389 fi
14390 # Neutralize special characters interpreted by sed in replacement strings.
14391 case $configure_input in #(
14392 *\&* | *\|* | *\\* )
14393 ac_sed_conf_input=`$as_echo "$configure_input" |
14394 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14395 *) ac_sed_conf_input=$configure_input;;
14396 esac
14397
14398 case $ac_tag in
14399 *:-:* | *:-) cat >"$tmp/stdin" \
14400 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14401 esac
14402 ;;
14403 esac
14404
14405 ac_dir=`$as_dirname -- "$ac_file" ||
14406 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14407 X"$ac_file" : 'X\(//\)[^/]' \| \
14408 X"$ac_file" : 'X\(//\)$' \| \
14409 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14410 $as_echo X"$ac_file" |
14411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14412 s//\1/
14413 q
14414 }
14415 /^X\(\/\/\)[^/].*/{
14416 s//\1/
14417 q
14418 }
14419 /^X\(\/\/\)$/{
14420 s//\1/
14421 q
14422 }
14423 /^X\(\/\).*/{
14424 s//\1/
14425 q
14426 }
14427 s/.*/./; q'`
14428 as_dir="$ac_dir"; as_fn_mkdir_p
14429 ac_builddir=.
14430
14431 case "$ac_dir" in
14432 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14433 *)
14434 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14435 # A ".." for each directory in $ac_dir_suffix.
14436 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14437 case $ac_top_builddir_sub in
14438 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14439 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14440 esac ;;
14441 esac
14442 ac_abs_top_builddir=$ac_pwd
14443 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14444 # for backward compatibility:
14445 ac_top_builddir=$ac_top_build_prefix
14446
14447 case $srcdir in
14448 .) # We are building in place.
14449 ac_srcdir=.
14450 ac_top_srcdir=$ac_top_builddir_sub
14451 ac_abs_top_srcdir=$ac_pwd ;;
14452 [\\/]* | ?:[\\/]* ) # Absolute name.
14453 ac_srcdir=$srcdir$ac_dir_suffix;
14454 ac_top_srcdir=$srcdir
14455 ac_abs_top_srcdir=$srcdir ;;
14456 *) # Relative name.
14457 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14458 ac_top_srcdir=$ac_top_build_prefix$srcdir
14459 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14460 esac
14461 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14462
14463
14464 case $ac_mode in
14465 :F)
14466 #
14467 # CONFIG_FILE
14468 #
14469
14470 case $INSTALL in
14471 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14472 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14473 esac
14474 ac_MKDIR_P=$MKDIR_P
14475 case $MKDIR_P in
14476 [\\/$]* | ?:[\\/]* ) ;;
14477 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14478 esac
14479 _ACEOF
14480
14481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14482 # If the template does not know about datarootdir, expand it.
14483 # FIXME: This hack should be removed a few years after 2.60.
14484 ac_datarootdir_hack=; ac_datarootdir_seen=
14485 ac_sed_dataroot='
14486 /datarootdir/ {
14487 p
14488 q
14489 }
14490 /@datadir@/p
14491 /@docdir@/p
14492 /@infodir@/p
14493 /@localedir@/p
14494 /@mandir@/p'
14495 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14496 *datarootdir*) ac_datarootdir_seen=yes;;
14497 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14499 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14500 _ACEOF
14501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14502 ac_datarootdir_hack='
14503 s&@datadir@&$datadir&g
14504 s&@docdir@&$docdir&g
14505 s&@infodir@&$infodir&g
14506 s&@localedir@&$localedir&g
14507 s&@mandir@&$mandir&g
14508 s&\\\${datarootdir}&$datarootdir&g' ;;
14509 esac
14510 _ACEOF
14511
14512 # Neutralize VPATH when `$srcdir' = `.'.
14513 # Shell code in configure.ac might set extrasub.
14514 # FIXME: do we really want to maintain this feature?
14515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14516 ac_sed_extra="$ac_vpsub
14517 $extrasub
14518 _ACEOF
14519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14520 :t
14521 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14522 s|@configure_input@|$ac_sed_conf_input|;t t
14523 s&@top_builddir@&$ac_top_builddir_sub&;t t
14524 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14525 s&@srcdir@&$ac_srcdir&;t t
14526 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14527 s&@top_srcdir@&$ac_top_srcdir&;t t
14528 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14529 s&@builddir@&$ac_builddir&;t t
14530 s&@abs_builddir@&$ac_abs_builddir&;t t
14531 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14532 s&@INSTALL@&$ac_INSTALL&;t t
14533 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14534 $ac_datarootdir_hack
14535 "
14536 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14537 || as_fn_error "could not create $ac_file" "$LINENO" 5
14538
14539 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14540 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14541 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14543 which seems to be undefined. Please make sure it is defined." >&5
14544 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14545 which seems to be undefined. Please make sure it is defined." >&2;}
14546
14547 rm -f "$tmp/stdin"
14548 case $ac_file in
14549 -) cat "$tmp/out" && rm -f "$tmp/out";;
14550 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14551 esac \
14552 || as_fn_error "could not create $ac_file" "$LINENO" 5
14553 ;;
14554 :H)
14555 #
14556 # CONFIG_HEADER
14557 #
14558 if test x"$ac_file" != x-; then
14559 {
14560 $as_echo "/* $configure_input */" \
14561 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14562 } >"$tmp/config.h" \
14563 || as_fn_error "could not create $ac_file" "$LINENO" 5
14564 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14566 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14567 else
14568 rm -f "$ac_file"
14569 mv "$tmp/config.h" "$ac_file" \
14570 || as_fn_error "could not create $ac_file" "$LINENO" 5
14571 fi
14572 else
14573 $as_echo "/* $configure_input */" \
14574 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14575 || as_fn_error "could not create -" "$LINENO" 5
14576 fi
14577 # Compute "$ac_file"'s index in $config_headers.
14578 _am_arg="$ac_file"
14579 _am_stamp_count=1
14580 for _am_header in $config_headers :; do
14581 case $_am_header in
14582 $_am_arg | $_am_arg:* )
14583 break ;;
14584 * )
14585 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14586 esac
14587 done
14588 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14589 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14590 X"$_am_arg" : 'X\(//\)[^/]' \| \
14591 X"$_am_arg" : 'X\(//\)$' \| \
14592 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14593 $as_echo X"$_am_arg" |
14594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14595 s//\1/
14596 q
14597 }
14598 /^X\(\/\/\)[^/].*/{
14599 s//\1/
14600 q
14601 }
14602 /^X\(\/\/\)$/{
14603 s//\1/
14604 q
14605 }
14606 /^X\(\/\).*/{
14607 s//\1/
14608 q
14609 }
14610 s/.*/./; q'`/stamp-h$_am_stamp_count
14611 ;;
14612
14613 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14614 $as_echo "$as_me: executing $ac_file commands" >&6;}
14615 ;;
14616 esac
14617
14618
14619 case $ac_file$ac_mode in
14620 "default-1":C)
14621 # Only add multilib support code if we just rebuilt the top-level
14622 # Makefile.
14623 case " $CONFIG_FILES " in
14624 *" Makefile "*)
14625 ac_file=Makefile . ${multi_basedir}/config-ml.in
14626 ;;
14627 esac ;;
14628 "libtool":C)
14629
14630 # See if we are running on zsh, and set the options which allow our
14631 # commands through without removal of \ escapes.
14632 if test -n "${ZSH_VERSION+set}" ; then
14633 setopt NO_GLOB_SUBST
14634 fi
14635
14636 cfgfile="${ofile}T"
14637 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14638 $RM "$cfgfile"
14639
14640 cat <<_LT_EOF >> "$cfgfile"
14641 #! $SHELL
14642
14643 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14644 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14645 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14646 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14647 #
14648 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14649 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14650 # Written by Gordon Matzigkeit, 1996
14651 #
14652 # This file is part of GNU Libtool.
14653 #
14654 # GNU Libtool is free software; you can redistribute it and/or
14655 # modify it under the terms of the GNU General Public License as
14656 # published by the Free Software Foundation; either version 2 of
14657 # the License, or (at your option) any later version.
14658 #
14659 # As a special exception to the GNU General Public License,
14660 # if you distribute this file as part of a program or library that
14661 # is built using GNU Libtool, you may include this file under the
14662 # same distribution terms that you use for the rest of that program.
14663 #
14664 # GNU Libtool is distributed in the hope that it will be useful,
14665 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14666 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14667 # GNU General Public License for more details.
14668 #
14669 # You should have received a copy of the GNU General Public License
14670 # along with GNU Libtool; see the file COPYING. If not, a copy
14671 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14672 # obtained by writing to the Free Software Foundation, Inc.,
14673 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14674
14675
14676 # The names of the tagged configurations supported by this script.
14677 available_tags=""
14678
14679 # ### BEGIN LIBTOOL CONFIG
14680
14681 # Which release of libtool.m4 was used?
14682 macro_version=$macro_version
14683 macro_revision=$macro_revision
14684
14685 # Whether or not to build shared libraries.
14686 build_libtool_libs=$enable_shared
14687
14688 # Whether or not to build static libraries.
14689 build_old_libs=$enable_static
14690
14691 # What type of objects to build.
14692 pic_mode=$pic_mode
14693
14694 # Whether or not to optimize for fast installation.
14695 fast_install=$enable_fast_install
14696
14697 # Shell to use when invoking shell scripts.
14698 SHELL=$lt_SHELL
14699
14700 # An echo program that protects backslashes.
14701 ECHO=$lt_ECHO
14702
14703 # The host system.
14704 host_alias=$host_alias
14705 host=$host
14706 host_os=$host_os
14707
14708 # The build system.
14709 build_alias=$build_alias
14710 build=$build
14711 build_os=$build_os
14712
14713 # A sed program that does not truncate output.
14714 SED=$lt_SED
14715
14716 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14717 Xsed="\$SED -e 1s/^X//"
14718
14719 # A grep program that handles long lines.
14720 GREP=$lt_GREP
14721
14722 # An ERE matcher.
14723 EGREP=$lt_EGREP
14724
14725 # A literal string matcher.
14726 FGREP=$lt_FGREP
14727
14728 # A BSD- or MS-compatible name lister.
14729 NM=$lt_NM
14730
14731 # Whether we need soft or hard links.
14732 LN_S=$lt_LN_S
14733
14734 # What is the maximum length of a command?
14735 max_cmd_len=$max_cmd_len
14736
14737 # Object file suffix (normally "o").
14738 objext=$ac_objext
14739
14740 # Executable file suffix (normally "").
14741 exeext=$exeext
14742
14743 # whether the shell understands "unset".
14744 lt_unset=$lt_unset
14745
14746 # turn spaces into newlines.
14747 SP2NL=$lt_lt_SP2NL
14748
14749 # turn newlines into spaces.
14750 NL2SP=$lt_lt_NL2SP
14751
14752 # An object symbol dumper.
14753 OBJDUMP=$lt_OBJDUMP
14754
14755 # Method to check whether dependent libraries are shared objects.
14756 deplibs_check_method=$lt_deplibs_check_method
14757
14758 # Command to use when deplibs_check_method == "file_magic".
14759 file_magic_cmd=$lt_file_magic_cmd
14760
14761 # The archiver.
14762 AR=$lt_AR
14763 AR_FLAGS=$lt_AR_FLAGS
14764
14765 # A symbol stripping program.
14766 STRIP=$lt_STRIP
14767
14768 # Commands used to install an old-style archive.
14769 RANLIB=$lt_RANLIB
14770 old_postinstall_cmds=$lt_old_postinstall_cmds
14771 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14772
14773 # Whether to use a lock for old archive extraction.
14774 lock_old_archive_extraction=$lock_old_archive_extraction
14775
14776 # A C compiler.
14777 LTCC=$lt_CC
14778
14779 # LTCC compiler flags.
14780 LTCFLAGS=$lt_CFLAGS
14781
14782 # Take the output of nm and produce a listing of raw symbols and C names.
14783 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14784
14785 # Transform the output of nm in a proper C declaration.
14786 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14787
14788 # Transform the output of nm in a C name address pair.
14789 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14790
14791 # Transform the output of nm in a C name address pair when lib prefix is needed.
14792 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14793
14794 # The name of the directory that contains temporary libtool files.
14795 objdir=$objdir
14796
14797 # Used to examine libraries when file_magic_cmd begins with "file".
14798 MAGIC_CMD=$MAGIC_CMD
14799
14800 # Must we lock files when doing compilation?
14801 need_locks=$lt_need_locks
14802
14803 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14804 DSYMUTIL=$lt_DSYMUTIL
14805
14806 # Tool to change global to local symbols on Mac OS X.
14807 NMEDIT=$lt_NMEDIT
14808
14809 # Tool to manipulate fat objects and archives on Mac OS X.
14810 LIPO=$lt_LIPO
14811
14812 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14813 OTOOL=$lt_OTOOL
14814
14815 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14816 OTOOL64=$lt_OTOOL64
14817
14818 # Old archive suffix (normally "a").
14819 libext=$libext
14820
14821 # Shared library suffix (normally ".so").
14822 shrext_cmds=$lt_shrext_cmds
14823
14824 # The commands to extract the exported symbol list from a shared archive.
14825 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14826
14827 # Variables whose values should be saved in libtool wrapper scripts and
14828 # restored at link time.
14829 variables_saved_for_relink=$lt_variables_saved_for_relink
14830
14831 # Do we need the "lib" prefix for modules?
14832 need_lib_prefix=$need_lib_prefix
14833
14834 # Do we need a version for libraries?
14835 need_version=$need_version
14836
14837 # Library versioning type.
14838 version_type=$version_type
14839
14840 # Shared library runtime path variable.
14841 runpath_var=$runpath_var
14842
14843 # Shared library path variable.
14844 shlibpath_var=$shlibpath_var
14845
14846 # Is shlibpath searched before the hard-coded library search path?
14847 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14848
14849 # Format of library name prefix.
14850 libname_spec=$lt_libname_spec
14851
14852 # List of archive names. First name is the real one, the rest are links.
14853 # The last name is the one that the linker finds with -lNAME
14854 library_names_spec=$lt_library_names_spec
14855
14856 # The coded name of the library, if different from the real name.
14857 soname_spec=$lt_soname_spec
14858
14859 # Permission mode override for installation of shared libraries.
14860 install_override_mode=$lt_install_override_mode
14861
14862 # Command to use after installation of a shared archive.
14863 postinstall_cmds=$lt_postinstall_cmds
14864
14865 # Command to use after uninstallation of a shared archive.
14866 postuninstall_cmds=$lt_postuninstall_cmds
14867
14868 # Commands used to finish a libtool library installation in a directory.
14869 finish_cmds=$lt_finish_cmds
14870
14871 # As "finish_cmds", except a single script fragment to be evaled but
14872 # not shown.
14873 finish_eval=$lt_finish_eval
14874
14875 # Whether we should hardcode library paths into libraries.
14876 hardcode_into_libs=$hardcode_into_libs
14877
14878 # Compile-time system search path for libraries.
14879 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14880
14881 # Run-time system search path for libraries.
14882 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14883
14884 # Whether dlopen is supported.
14885 dlopen_support=$enable_dlopen
14886
14887 # Whether dlopen of programs is supported.
14888 dlopen_self=$enable_dlopen_self
14889
14890 # Whether dlopen of statically linked programs is supported.
14891 dlopen_self_static=$enable_dlopen_self_static
14892
14893 # Commands to strip libraries.
14894 old_striplib=$lt_old_striplib
14895 striplib=$lt_striplib
14896
14897
14898 # The linker used to build libraries.
14899 LD=$lt_LD
14900
14901 # How to create reloadable object files.
14902 reload_flag=$lt_reload_flag
14903 reload_cmds=$lt_reload_cmds
14904
14905 # Commands used to build an old-style archive.
14906 old_archive_cmds=$lt_old_archive_cmds
14907
14908 # A language specific compiler.
14909 CC=$lt_compiler
14910
14911 # Is the compiler the GNU compiler?
14912 with_gcc=$GCC
14913
14914 # Compiler flag to turn off builtin functions.
14915 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14916
14917 # How to pass a linker flag through the compiler.
14918 wl=$lt_lt_prog_compiler_wl
14919
14920 # Additional compiler flags for building library objects.
14921 pic_flag=$lt_lt_prog_compiler_pic
14922
14923 # Compiler flag to prevent dynamic linking.
14924 link_static_flag=$lt_lt_prog_compiler_static
14925
14926 # Does compiler simultaneously support -c and -o options?
14927 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14928
14929 # Whether or not to add -lc for building shared libraries.
14930 build_libtool_need_lc=$archive_cmds_need_lc
14931
14932 # Whether or not to disallow shared libs when runtime libs are static.
14933 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14934
14935 # Compiler flag to allow reflexive dlopens.
14936 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14937
14938 # Compiler flag to generate shared objects directly from archives.
14939 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14940
14941 # Whether the compiler copes with passing no objects directly.
14942 compiler_needs_object=$lt_compiler_needs_object
14943
14944 # Create an old-style archive from a shared archive.
14945 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14946
14947 # Create a temporary old-style archive to link instead of a shared archive.
14948 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14949
14950 # Commands used to build a shared archive.
14951 archive_cmds=$lt_archive_cmds
14952 archive_expsym_cmds=$lt_archive_expsym_cmds
14953
14954 # Commands used to build a loadable module if different from building
14955 # a shared archive.
14956 module_cmds=$lt_module_cmds
14957 module_expsym_cmds=$lt_module_expsym_cmds
14958
14959 # Whether we are building with GNU ld or not.
14960 with_gnu_ld=$lt_with_gnu_ld
14961
14962 # Flag that allows shared libraries with undefined symbols to be built.
14963 allow_undefined_flag=$lt_allow_undefined_flag
14964
14965 # Flag that enforces no undefined symbols.
14966 no_undefined_flag=$lt_no_undefined_flag
14967
14968 # Flag to hardcode \$libdir into a binary during linking.
14969 # This must work even if \$libdir does not exist
14970 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14971
14972 # If ld is used when linking, flag to hardcode \$libdir into a binary
14973 # during linking. This must work even if \$libdir does not exist.
14974 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14975
14976 # Whether we need a single "-rpath" flag with a separated argument.
14977 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14978
14979 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14980 # DIR into the resulting binary.
14981 hardcode_direct=$hardcode_direct
14982
14983 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14984 # DIR into the resulting binary and the resulting library dependency is
14985 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14986 # library is relocated.
14987 hardcode_direct_absolute=$hardcode_direct_absolute
14988
14989 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14990 # into the resulting binary.
14991 hardcode_minus_L=$hardcode_minus_L
14992
14993 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14994 # into the resulting binary.
14995 hardcode_shlibpath_var=$hardcode_shlibpath_var
14996
14997 # Set to "yes" if building a shared library automatically hardcodes DIR
14998 # into the library and all subsequent libraries and executables linked
14999 # against it.
15000 hardcode_automatic=$hardcode_automatic
15001
15002 # Set to yes if linker adds runtime paths of dependent libraries
15003 # to runtime path list.
15004 inherit_rpath=$inherit_rpath
15005
15006 # Whether libtool must link a program against all its dependency libraries.
15007 link_all_deplibs=$link_all_deplibs
15008
15009 # Fix the shell variable \$srcfile for the compiler.
15010 fix_srcfile_path=$lt_fix_srcfile_path
15011
15012 # Set to "yes" if exported symbols are required.
15013 always_export_symbols=$always_export_symbols
15014
15015 # The commands to list exported symbols.
15016 export_symbols_cmds=$lt_export_symbols_cmds
15017
15018 # Symbols that should not be listed in the preloaded symbols.
15019 exclude_expsyms=$lt_exclude_expsyms
15020
15021 # Symbols that must always be exported.
15022 include_expsyms=$lt_include_expsyms
15023
15024 # Commands necessary for linking programs (against libraries) with templates.
15025 prelink_cmds=$lt_prelink_cmds
15026
15027 # Specify filename containing input files.
15028 file_list_spec=$lt_file_list_spec
15029
15030 # How to hardcode a shared library path into an executable.
15031 hardcode_action=$hardcode_action
15032
15033 # ### END LIBTOOL CONFIG
15034
15035 _LT_EOF
15036
15037 case $host_os in
15038 aix3*)
15039 cat <<\_LT_EOF >> "$cfgfile"
15040 # AIX sometimes has problems with the GCC collect2 program. For some
15041 # reason, if we set the COLLECT_NAMES environment variable, the problems
15042 # vanish in a puff of smoke.
15043 if test "X${COLLECT_NAMES+set}" != Xset; then
15044 COLLECT_NAMES=
15045 export COLLECT_NAMES
15046 fi
15047 _LT_EOF
15048 ;;
15049 esac
15050
15051
15052 ltmain="$ac_aux_dir/ltmain.sh"
15053
15054
15055 # We use sed instead of cat because bash on DJGPP gets confused if
15056 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15057 # text mode, it properly converts lines to CR/LF. This bash problem
15058 # is reportedly fixed, but why not run on old versions too?
15059 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15060 || (rm -f "$cfgfile"; exit 1)
15061
15062 case $xsi_shell in
15063 yes)
15064 cat << \_LT_EOF >> "$cfgfile"
15065
15066 # func_dirname file append nondir_replacement
15067 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15068 # otherwise set result to NONDIR_REPLACEMENT.
15069 func_dirname ()
15070 {
15071 case ${1} in
15072 */*) func_dirname_result="${1%/*}${2}" ;;
15073 * ) func_dirname_result="${3}" ;;
15074 esac
15075 }
15076
15077 # func_basename file
15078 func_basename ()
15079 {
15080 func_basename_result="${1##*/}"
15081 }
15082
15083 # func_dirname_and_basename file append nondir_replacement
15084 # perform func_basename and func_dirname in a single function
15085 # call:
15086 # dirname: Compute the dirname of FILE. If nonempty,
15087 # add APPEND to the result, otherwise set result
15088 # to NONDIR_REPLACEMENT.
15089 # value returned in "$func_dirname_result"
15090 # basename: Compute filename of FILE.
15091 # value retuned in "$func_basename_result"
15092 # Implementation must be kept synchronized with func_dirname
15093 # and func_basename. For efficiency, we do not delegate to
15094 # those functions but instead duplicate the functionality here.
15095 func_dirname_and_basename ()
15096 {
15097 case ${1} in
15098 */*) func_dirname_result="${1%/*}${2}" ;;
15099 * ) func_dirname_result="${3}" ;;
15100 esac
15101 func_basename_result="${1##*/}"
15102 }
15103
15104 # func_stripname prefix suffix name
15105 # strip PREFIX and SUFFIX off of NAME.
15106 # PREFIX and SUFFIX must not contain globbing or regex special
15107 # characters, hashes, percent signs, but SUFFIX may contain a leading
15108 # dot (in which case that matches only a dot).
15109 func_stripname ()
15110 {
15111 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15112 # positional parameters, so assign one to ordinary parameter first.
15113 func_stripname_result=${3}
15114 func_stripname_result=${func_stripname_result#"${1}"}
15115 func_stripname_result=${func_stripname_result%"${2}"}
15116 }
15117
15118 # func_opt_split
15119 func_opt_split ()
15120 {
15121 func_opt_split_opt=${1%%=*}
15122 func_opt_split_arg=${1#*=}
15123 }
15124
15125 # func_lo2o object
15126 func_lo2o ()
15127 {
15128 case ${1} in
15129 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15130 *) func_lo2o_result=${1} ;;
15131 esac
15132 }
15133
15134 # func_xform libobj-or-source
15135 func_xform ()
15136 {
15137 func_xform_result=${1%.*}.lo
15138 }
15139
15140 # func_arith arithmetic-term...
15141 func_arith ()
15142 {
15143 func_arith_result=$(( $* ))
15144 }
15145
15146 # func_len string
15147 # STRING may not start with a hyphen.
15148 func_len ()
15149 {
15150 func_len_result=${#1}
15151 }
15152
15153 _LT_EOF
15154 ;;
15155 *) # Bourne compatible functions.
15156 cat << \_LT_EOF >> "$cfgfile"
15157
15158 # func_dirname file append nondir_replacement
15159 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15160 # otherwise set result to NONDIR_REPLACEMENT.
15161 func_dirname ()
15162 {
15163 # Extract subdirectory from the argument.
15164 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15165 if test "X$func_dirname_result" = "X${1}"; then
15166 func_dirname_result="${3}"
15167 else
15168 func_dirname_result="$func_dirname_result${2}"
15169 fi
15170 }
15171
15172 # func_basename file
15173 func_basename ()
15174 {
15175 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15176 }
15177
15178
15179 # func_stripname prefix suffix name
15180 # strip PREFIX and SUFFIX off of NAME.
15181 # PREFIX and SUFFIX must not contain globbing or regex special
15182 # characters, hashes, percent signs, but SUFFIX may contain a leading
15183 # dot (in which case that matches only a dot).
15184 # func_strip_suffix prefix name
15185 func_stripname ()
15186 {
15187 case ${2} in
15188 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15189 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15190 esac
15191 }
15192
15193 # sed scripts:
15194 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15195 my_sed_long_arg='1s/^-[^=]*=//'
15196
15197 # func_opt_split
15198 func_opt_split ()
15199 {
15200 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15201 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15202 }
15203
15204 # func_lo2o object
15205 func_lo2o ()
15206 {
15207 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15208 }
15209
15210 # func_xform libobj-or-source
15211 func_xform ()
15212 {
15213 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15214 }
15215
15216 # func_arith arithmetic-term...
15217 func_arith ()
15218 {
15219 func_arith_result=`expr "$@"`
15220 }
15221
15222 # func_len string
15223 # STRING may not start with a hyphen.
15224 func_len ()
15225 {
15226 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15227 }
15228
15229 _LT_EOF
15230 esac
15231
15232 case $lt_shell_append in
15233 yes)
15234 cat << \_LT_EOF >> "$cfgfile"
15235
15236 # func_append var value
15237 # Append VALUE to the end of shell variable VAR.
15238 func_append ()
15239 {
15240 eval "$1+=\$2"
15241 }
15242 _LT_EOF
15243 ;;
15244 *)
15245 cat << \_LT_EOF >> "$cfgfile"
15246
15247 # func_append var value
15248 # Append VALUE to the end of shell variable VAR.
15249 func_append ()
15250 {
15251 eval "$1=\$$1\$2"
15252 }
15253
15254 _LT_EOF
15255 ;;
15256 esac
15257
15258
15259 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15260 || (rm -f "$cfgfile"; exit 1)
15261
15262 mv -f "$cfgfile" "$ofile" ||
15263 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15264 chmod +x "$ofile"
15265
15266 ;;
15267 "gstdint.h":C)
15268 if test "$GCC" = yes; then
15269 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
15270 else
15271 echo "/* generated for $CC */" > tmp-stdint.h
15272 fi
15273
15274 sed 's/^ *//' >> tmp-stdint.h <<EOF
15275
15276 #ifndef GCC_GENERATED_STDINT_H
15277 #define GCC_GENERATED_STDINT_H 1
15278
15279 #include <sys/types.h>
15280 EOF
15281
15282 if test "$acx_cv_header_stdint" != stdint.h; then
15283 echo "#include <stddef.h>" >> tmp-stdint.h
15284 fi
15285 if test "$acx_cv_header_stdint" != stddef.h; then
15286 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
15287 fi
15288
15289 sed 's/^ *//' >> tmp-stdint.h <<EOF
15290 /* glibc uses these symbols as guards to prevent redefinitions. */
15291 #ifdef __int8_t_defined
15292 #define _INT8_T
15293 #define _INT16_T
15294 #define _INT32_T
15295 #endif
15296 #ifdef __uint32_t_defined
15297 #define _UINT32_T
15298 #endif
15299
15300 EOF
15301
15302 # ----------------- done header, emit basic int types -------------
15303 if test "$acx_cv_header_stdint" = stddef.h; then
15304 sed 's/^ *//' >> tmp-stdint.h <<EOF
15305
15306 #ifndef _UINT8_T
15307 #define _UINT8_T
15308 #ifndef __uint8_t_defined
15309 #define __uint8_t_defined
15310 #ifndef uint8_t
15311 typedef unsigned $acx_cv_type_int8_t uint8_t;
15312 #endif
15313 #endif
15314 #endif
15315
15316 #ifndef _UINT16_T
15317 #define _UINT16_T
15318 #ifndef __uint16_t_defined
15319 #define __uint16_t_defined
15320 #ifndef uint16_t
15321 typedef unsigned $acx_cv_type_int16_t uint16_t;
15322 #endif
15323 #endif
15324 #endif
15325
15326 #ifndef _UINT32_T
15327 #define _UINT32_T
15328 #ifndef __uint32_t_defined
15329 #define __uint32_t_defined
15330 #ifndef uint32_t
15331 typedef unsigned $acx_cv_type_int32_t uint32_t;
15332 #endif
15333 #endif
15334 #endif
15335
15336 #ifndef _INT8_T
15337 #define _INT8_T
15338 #ifndef __int8_t_defined
15339 #define __int8_t_defined
15340 #ifndef int8_t
15341 typedef $acx_cv_type_int8_t int8_t;
15342 #endif
15343 #endif
15344 #endif
15345
15346 #ifndef _INT16_T
15347 #define _INT16_T
15348 #ifndef __int16_t_defined
15349 #define __int16_t_defined
15350 #ifndef int16_t
15351 typedef $acx_cv_type_int16_t int16_t;
15352 #endif
15353 #endif
15354 #endif
15355
15356 #ifndef _INT32_T
15357 #define _INT32_T
15358 #ifndef __int32_t_defined
15359 #define __int32_t_defined
15360 #ifndef int32_t
15361 typedef $acx_cv_type_int32_t int32_t;
15362 #endif
15363 #endif
15364 #endif
15365 EOF
15366 elif test "$ac_cv_type_u_int32_t" = yes; then
15367 sed 's/^ *//' >> tmp-stdint.h <<EOF
15368
15369 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
15370 #ifndef _INT8_T
15371 #define _INT8_T
15372 #endif
15373 #ifndef _INT16_T
15374 #define _INT16_T
15375 #endif
15376 #ifndef _INT32_T
15377 #define _INT32_T
15378 #endif
15379
15380 #ifndef _UINT8_T
15381 #define _UINT8_T
15382 #ifndef __uint8_t_defined
15383 #define __uint8_t_defined
15384 #ifndef uint8_t
15385 typedef u_int8_t uint8_t;
15386 #endif
15387 #endif
15388 #endif
15389
15390 #ifndef _UINT16_T
15391 #define _UINT16_T
15392 #ifndef __uint16_t_defined
15393 #define __uint16_t_defined
15394 #ifndef uint16_t
15395 typedef u_int16_t uint16_t;
15396 #endif
15397 #endif
15398 #endif
15399
15400 #ifndef _UINT32_T
15401 #define _UINT32_T
15402 #ifndef __uint32_t_defined
15403 #define __uint32_t_defined
15404 #ifndef uint32_t
15405 typedef u_int32_t uint32_t;
15406 #endif
15407 #endif
15408 #endif
15409 EOF
15410 else
15411 sed 's/^ *//' >> tmp-stdint.h <<EOF
15412
15413 /* Some systems have guard macros to prevent redefinitions, define them. */
15414 #ifndef _INT8_T
15415 #define _INT8_T
15416 #endif
15417 #ifndef _INT16_T
15418 #define _INT16_T
15419 #endif
15420 #ifndef _INT32_T
15421 #define _INT32_T
15422 #endif
15423 #ifndef _UINT8_T
15424 #define _UINT8_T
15425 #endif
15426 #ifndef _UINT16_T
15427 #define _UINT16_T
15428 #endif
15429 #ifndef _UINT32_T
15430 #define _UINT32_T
15431 #endif
15432 EOF
15433 fi
15434
15435 # ------------- done basic int types, emit int64_t types ------------
15436 if test "$ac_cv_type_uint64_t" = yes; then
15437 sed 's/^ *//' >> tmp-stdint.h <<EOF
15438
15439 /* system headers have good uint64_t and int64_t */
15440 #ifndef _INT64_T
15441 #define _INT64_T
15442 #endif
15443 #ifndef _UINT64_T
15444 #define _UINT64_T
15445 #endif
15446 EOF
15447 elif test "$ac_cv_type_u_int64_t" = yes; then
15448 sed 's/^ *//' >> tmp-stdint.h <<EOF
15449
15450 /* system headers have an u_int64_t (and int64_t) */
15451 #ifndef _INT64_T
15452 #define _INT64_T
15453 #endif
15454 #ifndef _UINT64_T
15455 #define _UINT64_T
15456 #ifndef __uint64_t_defined
15457 #define __uint64_t_defined
15458 #ifndef uint64_t
15459 typedef u_int64_t uint64_t;
15460 #endif
15461 #endif
15462 #endif
15463 EOF
15464 elif test -n "$acx_cv_type_int64_t"; then
15465 sed 's/^ *//' >> tmp-stdint.h <<EOF
15466
15467 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
15468 #ifndef _INT64_T
15469 #define _INT64_T
15470 #ifndef int64_t
15471 typedef $acx_cv_type_int64_t int64_t;
15472 #endif
15473 #endif
15474 #ifndef _UINT64_T
15475 #define _UINT64_T
15476 #ifndef __uint64_t_defined
15477 #define __uint64_t_defined
15478 #ifndef uint64_t
15479 typedef unsigned $acx_cv_type_int64_t uint64_t;
15480 #endif
15481 #endif
15482 #endif
15483 EOF
15484 else
15485 sed 's/^ *//' >> tmp-stdint.h <<EOF
15486
15487 /* some common heuristics for int64_t, using compiler-specific tests */
15488 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
15489 #ifndef _INT64_T
15490 #define _INT64_T
15491 #ifndef __int64_t_defined
15492 #ifndef int64_t
15493 typedef long long int64_t;
15494 #endif
15495 #endif
15496 #endif
15497 #ifndef _UINT64_T
15498 #define _UINT64_T
15499 #ifndef uint64_t
15500 typedef unsigned long long uint64_t;
15501 #endif
15502 #endif
15503
15504 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
15505 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
15506 does not implement __extension__. But that compiler doesn't define
15507 __GNUC_MINOR__. */
15508 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
15509 # define __extension__
15510 # endif
15511
15512 # ifndef _INT64_T
15513 # define _INT64_T
15514 # ifndef int64_t
15515 __extension__ typedef long long int64_t;
15516 # endif
15517 # endif
15518 # ifndef _UINT64_T
15519 # define _UINT64_T
15520 # ifndef uint64_t
15521 __extension__ typedef unsigned long long uint64_t;
15522 # endif
15523 # endif
15524
15525 #elif !defined __STRICT_ANSI__
15526 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
15527
15528 # ifndef _INT64_T
15529 # define _INT64_T
15530 # ifndef int64_t
15531 typedef __int64 int64_t;
15532 # endif
15533 # endif
15534 # ifndef _UINT64_T
15535 # define _UINT64_T
15536 # ifndef uint64_t
15537 typedef unsigned __int64 uint64_t;
15538 # endif
15539 # endif
15540 # endif /* compiler */
15541
15542 #endif /* ANSI version */
15543 EOF
15544 fi
15545
15546 # ------------- done int64_t types, emit intptr types ------------
15547 if test "$ac_cv_type_uintptr_t" != yes; then
15548 sed 's/^ *//' >> tmp-stdint.h <<EOF
15549
15550 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
15551 #ifndef __uintptr_t_defined
15552 #ifndef uintptr_t
15553 typedef u$acx_cv_type_intptr_t uintptr_t;
15554 #endif
15555 #endif
15556 #ifndef __intptr_t_defined
15557 #ifndef intptr_t
15558 typedef $acx_cv_type_intptr_t intptr_t;
15559 #endif
15560 #endif
15561 EOF
15562 fi
15563
15564 # ------------- done intptr types, emit int_least types ------------
15565 if test "$ac_cv_type_int_least32_t" != yes; then
15566 sed 's/^ *//' >> tmp-stdint.h <<EOF
15567
15568 /* Define int_least types */
15569 typedef int8_t int_least8_t;
15570 typedef int16_t int_least16_t;
15571 typedef int32_t int_least32_t;
15572 #ifdef _INT64_T
15573 typedef int64_t int_least64_t;
15574 #endif
15575
15576 typedef uint8_t uint_least8_t;
15577 typedef uint16_t uint_least16_t;
15578 typedef uint32_t uint_least32_t;
15579 #ifdef _UINT64_T
15580 typedef uint64_t uint_least64_t;
15581 #endif
15582 EOF
15583 fi
15584
15585 # ------------- done intptr types, emit int_fast types ------------
15586 if test "$ac_cv_type_int_fast32_t" != yes; then
15587 sed 's/^ *//' >> tmp-stdint.h <<EOF
15588
15589 /* Define int_fast types. short is often slow */
15590 typedef int8_t int_fast8_t;
15591 typedef int int_fast16_t;
15592 typedef int32_t int_fast32_t;
15593 #ifdef _INT64_T
15594 typedef int64_t int_fast64_t;
15595 #endif
15596
15597 typedef uint8_t uint_fast8_t;
15598 typedef unsigned int uint_fast16_t;
15599 typedef uint32_t uint_fast32_t;
15600 #ifdef _UINT64_T
15601 typedef uint64_t uint_fast64_t;
15602 #endif
15603 EOF
15604 fi
15605
15606 if test "$ac_cv_type_uintmax_t" != yes; then
15607 sed 's/^ *//' >> tmp-stdint.h <<EOF
15608
15609 /* Define intmax based on what we found */
15610 #ifndef intmax_t
15611 #ifdef _INT64_T
15612 typedef int64_t intmax_t;
15613 #else
15614 typedef long intmax_t;
15615 #endif
15616 #endif
15617 #ifndef uintmax_t
15618 #ifdef _UINT64_T
15619 typedef uint64_t uintmax_t;
15620 #else
15621 typedef unsigned long uintmax_t;
15622 #endif
15623 #endif
15624 EOF
15625 fi
15626
15627 sed 's/^ *//' >> tmp-stdint.h <<EOF
15628
15629 #endif /* GCC_GENERATED_STDINT_H */
15630 EOF
15631
15632 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
15633 rm -f tmp-stdint.h
15634 else
15635 mv -f tmp-stdint.h gstdint.h
15636 fi
15637
15638 ;;
15639 "default":C) if test -n "$CONFIG_FILES"; then
15640 if test -n "${with_target_subdir}"; then
15641 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15642 # that multilib installs will end up installed in the correct place.
15643 # The testsuite needs it for multilib-aware ABI baseline files.
15644 # To work around this not being passed down from config-ml.in ->
15645 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
15646 # append it here. Only modify Makefiles that have just been created.
15647 #
15648 # Also, get rid of this simulated-VPATH thing that automake does.
15649 cat > vpsed << \_EOF
15650 s!`test -f '$<' || echo '$(srcdir)/'`!!
15651 _EOF
15652 for i in $SUBDIRS; do
15653 case $CONFIG_FILES in
15654 *${i}/Makefile*)
15655 #echo "Adding MULTISUBDIR to $i/Makefile"
15656 sed -f vpsed $i/Makefile > tmp
15657 grep '^MULTISUBDIR =' Makefile >> tmp
15658 mv tmp $i/Makefile
15659 ;;
15660 esac
15661 done
15662 rm vpsed
15663 fi
15664 fi
15665 ;;
15666
15667 esac
15668 done # for ac_tag
15669
15670
15671 as_fn_exit 0
15672 _ACEOF
15673 ac_clean_files=$ac_clean_files_save
15674
15675 test $ac_write_fail = 0 ||
15676 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15677
15678
15679 # configure is writing to config.log, and then calls config.status.
15680 # config.status does its own redirection, appending to config.log.
15681 # Unfortunately, on DOS this fails, as config.log is still kept open
15682 # by configure, so config.status won't be able to write to it; its
15683 # output is simply discarded. So we exec the FD to /dev/null,
15684 # effectively closing config.log, so it can be properly (re)opened and
15685 # appended to by config.status. When coming back to configure, we
15686 # need to make the FD available again.
15687 if test "$no_create" != yes; then
15688 ac_cs_success=:
15689 ac_config_status_args=
15690 test "$silent" = yes &&
15691 ac_config_status_args="$ac_config_status_args --quiet"
15692 exec 5>/dev/null
15693 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15694 exec 5>>config.log
15695 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15696 # would make configure fail if this is the last instruction.
15697 $ac_cs_success || as_fn_exit $?
15698 fi
15699 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15701 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15702 fi
15703