[RS6000] PR81996, __builtin_return_address(0) fails
[official-gcc.git] / libbacktrace / configure
blob35767344f250288083a7c5d86d389531c26a065d
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.
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.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 *) :
148 esac
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; }
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 :
164 else
165 exitcode=1; echo positional parameters were not saved.
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
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
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
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
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
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+"$@"}
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."
242 exit 1
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
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
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 ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
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/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
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"
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 ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
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 ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
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 ()
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
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
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
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
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
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/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
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
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 '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
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; }
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
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;;
468 ECHO_N='-n';;
469 esac
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
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'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
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
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=
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
526 as_executable_p=$as_test_x
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'"
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'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
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`
545 # Initializations.
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=
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=''
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"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 NATIVE_FALSE
606 NATIVE_TRUE
607 HAVE_PTHREAD_FALSE
608 HAVE_PTHREAD_TRUE
609 PTHREAD_CFLAGS
610 BACKTRACE_USES_MALLOC
611 ALLOC_FILE
612 VIEW_FILE
613 BACKTRACE_SUPPORTS_DATA
614 BACKTRACE_SUPPORTED
615 FORMAT_FILE
616 BACKTRACE_SUPPORTS_THREADS
617 PIC_FLAG
618 WARN_FLAGS
619 EXTRA_FLAGS
620 BACKTRACE_FILE
621 OTOOL64
622 OTOOL
623 LIPO
624 NMEDIT
625 DSYMUTIL
627 OBJDUMP
628 LN_S
630 ac_ct_DUMPBIN
631 DUMPBIN
633 FGREP
635 LIBTOOL
636 RANLIB
637 MAINT
638 MAINTAINER_MODE_FALSE
639 MAINTAINER_MODE_TRUE
640 am__untar
641 am__tar
642 AMTAR
643 am__leading_dot
644 SET_MAKE
646 mkdir_p
647 MKDIR_P
648 INSTALL_STRIP_PROGRAM
649 STRIP
650 install_sh
651 MAKEINFO
652 AUTOHEADER
653 AUTOMAKE
654 AUTOCONF
655 ACLOCAL
656 VERSION
657 PACKAGE
658 CYGPATH_W
659 am__isrc
660 INSTALL_DATA
661 INSTALL_SCRIPT
662 INSTALL_PROGRAM
663 libtool_VERSION
664 EGREP
665 GREP
667 OBJEXT
668 EXEEXT
669 ac_ct_CC
670 CPPFLAGS
671 LDFLAGS
672 CFLAGS
674 target_os
675 target_vendor
676 target_cpu
677 target
678 host_os
679 host_vendor
680 host_cpu
681 host
682 build_os
683 build_vendor
684 build_cpu
685 build
686 multi_basedir
687 target_alias
688 host_alias
689 build_alias
690 LIBS
691 ECHO_T
692 ECHO_N
693 ECHO_C
694 DEFS
695 mandir
696 localedir
697 libdir
698 psdir
699 pdfdir
700 dvidir
701 htmldir
702 infodir
703 docdir
704 oldincludedir
705 includedir
706 localstatedir
707 sharedstatedir
708 sysconfdir
709 datadir
710 datarootdir
711 libexecdir
712 sbindir
713 bindir
714 program_transform_name
715 prefix
716 exec_prefix
717 PACKAGE_URL
718 PACKAGE_BUGREPORT
719 PACKAGE_STRING
720 PACKAGE_VERSION
721 PACKAGE_TARNAME
722 PACKAGE_NAME
723 PATH_SEPARATOR
724 SHELL'
725 ac_subst_files=''
726 ac_user_opts='
727 enable_option_checking
728 enable_multilib
729 enable_maintainer_mode
730 with_target_subdir
731 enable_shared
732 enable_static
733 with_pic
734 enable_fast_install
735 with_gnu_ld
736 enable_libtool_lock
737 enable_largefile
738 with_system_libunwind
739 enable_host_shared
741 ac_precious_vars='build_alias
742 host_alias
743 target_alias
745 CFLAGS
746 LDFLAGS
747 LIBS
748 CPPFLAGS
749 CPP'
752 # Initialize some variables set by options.
753 ac_init_help=
754 ac_init_version=false
755 ac_unrecognized_opts=
756 ac_unrecognized_sep=
757 # The variables have the same names as the options, with
758 # dashes changed to underlines.
759 cache_file=/dev/null
760 exec_prefix=NONE
761 no_create=
762 no_recursion=
763 prefix=NONE
764 program_prefix=NONE
765 program_suffix=NONE
766 program_transform_name=s,x,x,
767 silent=
768 site=
769 srcdir=
770 verbose=
771 x_includes=NONE
772 x_libraries=NONE
774 # Installation directory options.
775 # These are left unexpanded so users can "make install exec_prefix=/foo"
776 # and all the variables that are supposed to be based on exec_prefix
777 # by default will actually change.
778 # Use braces instead of parens because sh, perl, etc. also accept them.
779 # (The list follows the same order as the GNU Coding Standards.)
780 bindir='${exec_prefix}/bin'
781 sbindir='${exec_prefix}/sbin'
782 libexecdir='${exec_prefix}/libexec'
783 datarootdir='${prefix}/share'
784 datadir='${datarootdir}'
785 sysconfdir='${prefix}/etc'
786 sharedstatedir='${prefix}/com'
787 localstatedir='${prefix}/var'
788 includedir='${prefix}/include'
789 oldincludedir='/usr/include'
790 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
791 infodir='${datarootdir}/info'
792 htmldir='${docdir}'
793 dvidir='${docdir}'
794 pdfdir='${docdir}'
795 psdir='${docdir}'
796 libdir='${exec_prefix}/lib'
797 localedir='${datarootdir}/locale'
798 mandir='${datarootdir}/man'
800 ac_prev=
801 ac_dashdash=
802 for ac_option
804 # If the previous option needs an argument, assign it.
805 if test -n "$ac_prev"; then
806 eval $ac_prev=\$ac_option
807 ac_prev=
808 continue
811 case $ac_option in
812 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 *) ac_optarg=yes ;;
814 esac
816 # Accept the important Cygnus configure options, so we can diagnose typos.
818 case $ac_dashdash$ac_option in
820 ac_dashdash=yes ;;
822 -bindir | --bindir | --bindi | --bind | --bin | --bi)
823 ac_prev=bindir ;;
824 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
825 bindir=$ac_optarg ;;
827 -build | --build | --buil | --bui | --bu)
828 ac_prev=build_alias ;;
829 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
830 build_alias=$ac_optarg ;;
832 -cache-file | --cache-file | --cache-fil | --cache-fi \
833 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
834 ac_prev=cache_file ;;
835 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
836 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
837 cache_file=$ac_optarg ;;
839 --config-cache | -C)
840 cache_file=config.cache ;;
842 -datadir | --datadir | --datadi | --datad)
843 ac_prev=datadir ;;
844 -datadir=* | --datadir=* | --datadi=* | --datad=*)
845 datadir=$ac_optarg ;;
847 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
848 | --dataroo | --dataro | --datar)
849 ac_prev=datarootdir ;;
850 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
851 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
852 datarootdir=$ac_optarg ;;
854 -disable-* | --disable-*)
855 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
856 # Reject names that are not valid shell variable names.
857 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858 as_fn_error "invalid feature name: $ac_useropt"
859 ac_useropt_orig=$ac_useropt
860 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861 case $ac_user_opts in
863 "enable_$ac_useropt"
864 "*) ;;
865 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
866 ac_unrecognized_sep=', ';;
867 esac
868 eval enable_$ac_useropt=no ;;
870 -docdir | --docdir | --docdi | --doc | --do)
871 ac_prev=docdir ;;
872 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
873 docdir=$ac_optarg ;;
875 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
876 ac_prev=dvidir ;;
877 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
878 dvidir=$ac_optarg ;;
880 -enable-* | --enable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
889 "enable_$ac_useropt"
890 "*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=\$ac_optarg ;;
896 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
897 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
898 | --exec | --exe | --ex)
899 ac_prev=exec_prefix ;;
900 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
901 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
902 | --exec=* | --exe=* | --ex=*)
903 exec_prefix=$ac_optarg ;;
905 -gas | --gas | --ga | --g)
906 # Obsolete; use --with-gas.
907 with_gas=yes ;;
909 -help | --help | --hel | --he | -h)
910 ac_init_help=long ;;
911 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
912 ac_init_help=recursive ;;
913 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
914 ac_init_help=short ;;
916 -host | --host | --hos | --ho)
917 ac_prev=host_alias ;;
918 -host=* | --host=* | --hos=* | --ho=*)
919 host_alias=$ac_optarg ;;
921 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
922 ac_prev=htmldir ;;
923 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
924 | --ht=*)
925 htmldir=$ac_optarg ;;
927 -includedir | --includedir | --includedi | --included | --include \
928 | --includ | --inclu | --incl | --inc)
929 ac_prev=includedir ;;
930 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
931 | --includ=* | --inclu=* | --incl=* | --inc=*)
932 includedir=$ac_optarg ;;
934 -infodir | --infodir | --infodi | --infod | --info | --inf)
935 ac_prev=infodir ;;
936 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
937 infodir=$ac_optarg ;;
939 -libdir | --libdir | --libdi | --libd)
940 ac_prev=libdir ;;
941 -libdir=* | --libdir=* | --libdi=* | --libd=*)
942 libdir=$ac_optarg ;;
944 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
945 | --libexe | --libex | --libe)
946 ac_prev=libexecdir ;;
947 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
948 | --libexe=* | --libex=* | --libe=*)
949 libexecdir=$ac_optarg ;;
951 -localedir | --localedir | --localedi | --localed | --locale)
952 ac_prev=localedir ;;
953 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
954 localedir=$ac_optarg ;;
956 -localstatedir | --localstatedir | --localstatedi | --localstated \
957 | --localstate | --localstat | --localsta | --localst | --locals)
958 ac_prev=localstatedir ;;
959 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
960 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
961 localstatedir=$ac_optarg ;;
963 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
964 ac_prev=mandir ;;
965 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
966 mandir=$ac_optarg ;;
968 -nfp | --nfp | --nf)
969 # Obsolete; use --without-fp.
970 with_fp=no ;;
972 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
973 | --no-cr | --no-c | -n)
974 no_create=yes ;;
976 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
977 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
978 no_recursion=yes ;;
980 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
981 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
982 | --oldin | --oldi | --old | --ol | --o)
983 ac_prev=oldincludedir ;;
984 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
985 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
986 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
987 oldincludedir=$ac_optarg ;;
989 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
990 ac_prev=prefix ;;
991 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
992 prefix=$ac_optarg ;;
994 -program-prefix | --program-prefix | --program-prefi | --program-pref \
995 | --program-pre | --program-pr | --program-p)
996 ac_prev=program_prefix ;;
997 -program-prefix=* | --program-prefix=* | --program-prefi=* \
998 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
999 program_prefix=$ac_optarg ;;
1001 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1002 | --program-suf | --program-su | --program-s)
1003 ac_prev=program_suffix ;;
1004 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1005 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1006 program_suffix=$ac_optarg ;;
1008 -program-transform-name | --program-transform-name \
1009 | --program-transform-nam | --program-transform-na \
1010 | --program-transform-n | --program-transform- \
1011 | --program-transform | --program-transfor \
1012 | --program-transfo | --program-transf \
1013 | --program-trans | --program-tran \
1014 | --progr-tra | --program-tr | --program-t)
1015 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1025 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1026 ac_prev=pdfdir ;;
1027 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1028 pdfdir=$ac_optarg ;;
1030 -psdir | --psdir | --psdi | --psd | --ps)
1031 ac_prev=psdir ;;
1032 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1033 psdir=$ac_optarg ;;
1035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036 | -silent | --silent | --silen | --sile | --sil)
1037 silent=yes ;;
1039 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1040 ac_prev=sbindir ;;
1041 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1042 | --sbi=* | --sb=*)
1043 sbindir=$ac_optarg ;;
1045 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1046 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1047 | --sharedst | --shareds | --shared | --share | --shar \
1048 | --sha | --sh)
1049 ac_prev=sharedstatedir ;;
1050 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1051 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1052 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1053 | --sha=* | --sh=*)
1054 sharedstatedir=$ac_optarg ;;
1056 -site | --site | --sit)
1057 ac_prev=site ;;
1058 -site=* | --site=* | --sit=*)
1059 site=$ac_optarg ;;
1061 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1062 ac_prev=srcdir ;;
1063 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1064 srcdir=$ac_optarg ;;
1066 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1067 | --syscon | --sysco | --sysc | --sys | --sy)
1068 ac_prev=sysconfdir ;;
1069 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1070 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1071 sysconfdir=$ac_optarg ;;
1073 -target | --target | --targe | --targ | --tar | --ta | --t)
1074 ac_prev=target_alias ;;
1075 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1076 target_alias=$ac_optarg ;;
1078 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1079 verbose=yes ;;
1081 -version | --version | --versio | --versi | --vers | -V)
1082 ac_init_version=: ;;
1084 -with-* | --with-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error "invalid package name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1093 "with_$ac_useropt"
1094 "*) ;;
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1097 esac
1098 eval with_$ac_useropt=\$ac_optarg ;;
1100 -without-* | --without-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error "invalid package name: $ac_useropt"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1109 "with_$ac_useropt"
1110 "*) ;;
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1113 esac
1114 eval with_$ac_useropt=no ;;
1116 --x)
1117 # Obsolete; use --with-x.
1118 with_x=yes ;;
1120 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1121 | --x-incl | --x-inc | --x-in | --x-i)
1122 ac_prev=x_includes ;;
1123 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1124 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1125 x_includes=$ac_optarg ;;
1127 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1128 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1129 ac_prev=x_libraries ;;
1130 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1131 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1132 x_libraries=$ac_optarg ;;
1134 -*) as_fn_error "unrecognized option: \`$ac_option'
1135 Try \`$0 --help' for more information."
1138 *=*)
1139 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140 # Reject names that are not valid shell variable names.
1141 case $ac_envvar in #(
1142 '' | [0-9]* | *[!_$as_cr_alnum]* )
1143 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1144 esac
1145 eval $ac_envvar=\$ac_optarg
1146 export $ac_envvar ;;
1149 # FIXME: should be removed in autoconf 3.0.
1150 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1151 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1153 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1156 esac
1157 done
1159 if test -n "$ac_prev"; then
1160 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1161 as_fn_error "missing argument to $ac_option"
1164 if test -n "$ac_unrecognized_opts"; then
1165 case $enable_option_checking in
1166 no) ;;
1167 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1168 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1169 esac
1172 # Check all directory arguments for consistency.
1173 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1174 datadir sysconfdir sharedstatedir localstatedir includedir \
1175 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1176 libdir localedir mandir
1178 eval ac_val=\$$ac_var
1179 # Remove trailing slashes.
1180 case $ac_val in
1181 */ )
1182 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1183 eval $ac_var=\$ac_val;;
1184 esac
1185 # Be sure to have absolute directory names.
1186 case $ac_val in
1187 [\\/$]* | ?:[\\/]* ) continue;;
1188 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1189 esac
1190 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1191 done
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1196 build=$build_alias
1197 host=$host_alias
1198 target=$target_alias
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used." >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1207 cross_compiling=yes
1211 ac_tool_prefix=
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214 test "$silent" = yes && exec 6>/dev/null
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 as_fn_error "working directory cannot be determined"
1221 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222 as_fn_error "pwd does not report name of working directory"
1225 # Find the source files, if location was not specified.
1226 if test -z "$srcdir"; then
1227 ac_srcdir_defaulted=yes
1228 # Try the directory containing this script, then the parent directory.
1229 ac_confdir=`$as_dirname -- "$as_myself" ||
1230 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231 X"$as_myself" : 'X\(//\)[^/]' \| \
1232 X"$as_myself" : 'X\(//\)$' \| \
1233 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1234 $as_echo X"$as_myself" |
1235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1236 s//\1/
1239 /^X\(\/\/\)[^/].*/{
1240 s//\1/
1243 /^X\(\/\/\)$/{
1244 s//\1/
1247 /^X\(\/\).*/{
1248 s//\1/
1251 s/.*/./; q'`
1252 srcdir=$ac_confdir
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1254 srcdir=..
1256 else
1257 ac_srcdir_defaulted=no
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1261 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1263 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1264 ac_abs_confdir=`(
1265 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1266 pwd)`
1267 # When building in place, set srcdir=.
1268 if test "$ac_abs_confdir" = "$ac_pwd"; then
1269 srcdir=.
1271 # Remove unnecessary trailing slashes from srcdir.
1272 # Double slashes in file names in object file debugging info
1273 # mess up M-x gdb in Emacs.
1274 case $srcdir in
1275 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1276 esac
1277 for ac_var in $ac_precious_vars; do
1278 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_env_${ac_var}_value=\$${ac_var}
1280 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1282 done
1285 # Report the --help message.
1287 if test "$ac_init_help" = "long"; then
1288 # Omit some internal or obsolete options to make the list less imposing.
1289 # This message is too long to be a string in the A/UX 3.1 sh.
1290 cat <<_ACEOF
1291 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1293 Usage: $0 [OPTION]... [VAR=VALUE]...
1295 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296 VAR=VALUE. See below for descriptions of some of the useful variables.
1298 Defaults for the options are specified in brackets.
1300 Configuration:
1301 -h, --help display this help and exit
1302 --help=short display options specific to this package
1303 --help=recursive display the short help of all the included packages
1304 -V, --version display version information and exit
1305 -q, --quiet, --silent do not print \`checking...' messages
1306 --cache-file=FILE cache test results in FILE [disabled]
1307 -C, --config-cache alias for \`--cache-file=config.cache'
1308 -n, --no-create do not create output files
1309 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1311 Installation directories:
1312 --prefix=PREFIX install architecture-independent files in PREFIX
1313 [$ac_default_prefix]
1314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1315 [PREFIX]
1317 By default, \`make install' will install all the files in
1318 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1319 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320 for instance \`--prefix=\$HOME'.
1322 For better control, use the options below.
1324 Fine tuning of the installation directories:
1325 --bindir=DIR user executables [EPREFIX/bin]
1326 --sbindir=DIR system admin executables [EPREFIX/sbin]
1327 --libexecdir=DIR program executables [EPREFIX/libexec]
1328 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1329 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1330 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1331 --libdir=DIR object code libraries [EPREFIX/lib]
1332 --includedir=DIR C header files [PREFIX/include]
1333 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1336 --infodir=DIR info documentation [DATAROOTDIR/info]
1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1338 --mandir=DIR man documentation [DATAROOTDIR/man]
1339 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1340 --htmldir=DIR html documentation [DOCDIR]
1341 --dvidir=DIR dvi documentation [DOCDIR]
1342 --pdfdir=DIR pdf documentation [DOCDIR]
1343 --psdir=DIR ps documentation [DOCDIR]
1344 _ACEOF
1346 cat <<\_ACEOF
1348 Program names:
1349 --program-prefix=PREFIX prepend PREFIX to installed program names
1350 --program-suffix=SUFFIX append SUFFIX to installed program names
1351 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1353 System types:
1354 --build=BUILD configure for building on BUILD [guessed]
1355 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1356 --target=TARGET configure for building compilers for TARGET [HOST]
1357 _ACEOF
1360 if test -n "$ac_init_help"; then
1361 case $ac_init_help in
1362 short | recursive ) echo "Configuration of package-unused version-unused:";;
1363 esac
1364 cat <<\_ACEOF
1366 Optional Features:
1367 --disable-option-checking ignore unrecognized --enable/--with options
1368 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1369 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1370 --enable-multilib build many library versions (default)
1371 --enable-maintainer-mode enable make rules and dependencies not useful
1372 (and sometimes confusing) to the casual installer
1373 --enable-shared[=PKGS] build shared libraries [default=yes]
1374 --enable-static[=PKGS] build static libraries [default=yes]
1375 --enable-fast-install[=PKGS]
1376 optimize for fast installation [default=yes]
1377 --disable-libtool-lock avoid locking (might break parallel builds)
1378 --disable-largefile omit support for large files
1379 --enable-host-shared build host code as shared libraries
1381 Optional Packages:
1382 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1383 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1384 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1385 --with-pic try to use only PIC/non-PIC objects [default=use
1386 both]
1387 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1388 --with-system-libunwind use installed libunwind
1390 Some influential environment variables:
1391 CC C compiler command
1392 CFLAGS C compiler flags
1393 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1394 nonstandard directory <lib dir>
1395 LIBS libraries to pass to the linker, e.g. -l<library>
1396 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1397 you have headers in a nonstandard directory <include dir>
1398 CPP C preprocessor
1400 Use these variables to override the choices made by `configure' or to help
1401 it to find libraries and programs with nonstandard names/locations.
1403 Report bugs to the package provider.
1404 _ACEOF
1405 ac_status=$?
1408 if test "$ac_init_help" = "recursive"; then
1409 # If there are subdirs, report their specific --help.
1410 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1411 test -d "$ac_dir" ||
1412 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1413 continue
1414 ac_builddir=.
1416 case "$ac_dir" in
1417 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1420 # A ".." for each directory in $ac_dir_suffix.
1421 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1422 case $ac_top_builddir_sub in
1423 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1425 esac ;;
1426 esac
1427 ac_abs_top_builddir=$ac_pwd
1428 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1429 # for backward compatibility:
1430 ac_top_builddir=$ac_top_build_prefix
1432 case $srcdir in
1433 .) # We are building in place.
1434 ac_srcdir=.
1435 ac_top_srcdir=$ac_top_builddir_sub
1436 ac_abs_top_srcdir=$ac_pwd ;;
1437 [\\/]* | ?:[\\/]* ) # Absolute name.
1438 ac_srcdir=$srcdir$ac_dir_suffix;
1439 ac_top_srcdir=$srcdir
1440 ac_abs_top_srcdir=$srcdir ;;
1441 *) # Relative name.
1442 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1443 ac_top_srcdir=$ac_top_build_prefix$srcdir
1444 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1445 esac
1446 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1448 cd "$ac_dir" || { ac_status=$?; continue; }
1449 # Check for guested configure.
1450 if test -f "$ac_srcdir/configure.gnu"; then
1451 echo &&
1452 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1453 elif test -f "$ac_srcdir/configure"; then
1454 echo &&
1455 $SHELL "$ac_srcdir/configure" --help=recursive
1456 else
1457 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1458 fi || ac_status=$?
1459 cd "$ac_pwd" || { ac_status=$?; break; }
1460 done
1463 test -n "$ac_init_help" && exit $ac_status
1464 if $ac_init_version; then
1465 cat <<\_ACEOF
1466 package-unused configure version-unused
1467 generated by GNU Autoconf 2.64
1469 Copyright (C) 2009 Free Software Foundation, Inc.
1470 This configure script is free software; the Free Software Foundation
1471 gives unlimited permission to copy, distribute and modify it.
1472 _ACEOF
1473 exit
1476 ## ------------------------ ##
1477 ## Autoconf initialization. ##
1478 ## ------------------------ ##
1480 # ac_fn_c_try_compile LINENO
1481 # --------------------------
1482 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1483 ac_fn_c_try_compile ()
1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486 rm -f conftest.$ac_objext
1487 if { { ac_try="$ac_compile"
1488 case "(($ac_try" in
1489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490 *) ac_try_echo=$ac_try;;
1491 esac
1492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493 $as_echo "$ac_try_echo"; } >&5
1494 (eval "$ac_compile") 2>conftest.err
1495 ac_status=$?
1496 if test -s conftest.err; then
1497 grep -v '^ *+' conftest.err >conftest.er1
1498 cat conftest.er1 >&5
1499 mv -f conftest.er1 conftest.err
1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502 test $ac_status = 0; } && {
1503 test -z "$ac_c_werror_flag" ||
1504 test ! -s conftest.err
1505 } && test -s conftest.$ac_objext; then :
1506 ac_retval=0
1507 else
1508 $as_echo "$as_me: failed program was:" >&5
1509 sed 's/^/| /' conftest.$ac_ext >&5
1511 ac_retval=1
1513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1514 return $ac_retval
1516 } # ac_fn_c_try_compile
1518 # ac_fn_c_try_cpp LINENO
1519 # ----------------------
1520 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1521 ac_fn_c_try_cpp ()
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 if { { ac_try="$ac_cpp conftest.$ac_ext"
1525 case "(($ac_try" in
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1528 esac
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1532 ac_status=$?
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } >/dev/null && {
1540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1542 }; then :
1543 ac_retval=0
1544 else
1545 $as_echo "$as_me: failed program was:" >&5
1546 sed 's/^/| /' conftest.$ac_ext >&5
1548 ac_retval=1
1550 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1551 return $ac_retval
1553 } # ac_fn_c_try_cpp
1555 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1556 # -------------------------------------------------------
1557 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1558 # the include files in INCLUDES and setting the cache variable VAR
1559 # accordingly.
1560 ac_fn_c_check_header_mongrel ()
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1565 $as_echo_n "checking for $2... " >&6; }
1566 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1567 $as_echo_n "(cached) " >&6
1569 eval ac_res=\$$3
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571 $as_echo "$ac_res" >&6; }
1572 else
1573 # Is the header compilable?
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1575 $as_echo_n "checking $2 usability... " >&6; }
1576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577 /* end confdefs.h. */
1579 #include <$2>
1580 _ACEOF
1581 if ac_fn_c_try_compile "$LINENO"; then :
1582 ac_header_compiler=yes
1583 else
1584 ac_header_compiler=no
1586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1588 $as_echo "$ac_header_compiler" >&6; }
1590 # Is the header present?
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1592 $as_echo_n "checking $2 presence... " >&6; }
1593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594 /* end confdefs.h. */
1595 #include <$2>
1596 _ACEOF
1597 if ac_fn_c_try_cpp "$LINENO"; then :
1598 ac_header_preproc=yes
1599 else
1600 ac_header_preproc=no
1602 rm -f conftest.err conftest.$ac_ext
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1604 $as_echo "$ac_header_preproc" >&6; }
1606 # So? What about this header?
1607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1608 yes:no: )
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1610 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1612 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1614 no:yes:* )
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1616 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1618 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1620 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1622 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1624 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1626 esac
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628 $as_echo_n "checking for $2... " >&6; }
1629 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1630 $as_echo_n "(cached) " >&6
1631 else
1632 eval "$3=\$ac_header_compiler"
1634 eval ac_res=\$$3
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636 $as_echo "$ac_res" >&6; }
1638 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640 } # ac_fn_c_check_header_mongrel
1642 # ac_fn_c_try_run LINENO
1643 # ----------------------
1644 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1645 # that executables *can* be run.
1646 ac_fn_c_try_run ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_link"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_link") 2>&5
1657 ac_status=$?
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1660 { { case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_try") 2>&5
1667 ac_status=$?
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; }; }; then :
1670 ac_retval=0
1671 else
1672 $as_echo "$as_me: program exited with status $ac_status" >&5
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1676 ac_retval=$ac_status
1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1680 return $ac_retval
1682 } # ac_fn_c_try_run
1684 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1685 # -------------------------------------------------------
1686 # Tests whether HEADER exists and can be compiled using the include files in
1687 # INCLUDES, setting the cache variable VAR accordingly.
1688 ac_fn_c_check_header_compile ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 $as_echo_n "checking for $2... " >&6; }
1693 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1694 $as_echo_n "(cached) " >&6
1695 else
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1699 #include <$2>
1700 _ACEOF
1701 if ac_fn_c_try_compile "$LINENO"; then :
1702 eval "$3=yes"
1703 else
1704 eval "$3=no"
1706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1708 eval ac_res=\$$3
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710 $as_echo "$ac_res" >&6; }
1711 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1713 } # ac_fn_c_check_header_compile
1715 # ac_fn_c_try_link LINENO
1716 # -----------------------
1717 # Try to link conftest.$ac_ext, and return whether this succeeded.
1718 ac_fn_c_try_link ()
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 rm -f conftest.$ac_objext conftest$ac_exeext
1722 if { { ac_try="$ac_link"
1723 case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_link") 2>conftest.err
1730 ac_status=$?
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && {
1738 test -z "$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 } && test -s conftest$ac_exeext && {
1741 test "$cross_compiling" = yes ||
1742 $as_test_x conftest$ac_exeext
1743 }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1749 ac_retval=1
1751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1753 # interfere with the next link command; also delete a directory that is
1754 # left behind by Apple's compiler. We do this before executing the actions.
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1757 return $ac_retval
1759 } # ac_fn_c_try_link
1761 # ac_fn_c_check_func LINENO FUNC VAR
1762 # ----------------------------------
1763 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1764 ac_fn_c_check_func ()
1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770 $as_echo_n "(cached) " >&6
1771 else
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1774 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1776 #define $2 innocuous_$2
1778 /* System header to define __stub macros and hopefully few prototypes,
1779 which can conflict with char $2 (); below.
1780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1781 <limits.h> exists even on freestanding compilers. */
1783 #ifdef __STDC__
1784 # include <limits.h>
1785 #else
1786 # include <assert.h>
1787 #endif
1789 #undef $2
1791 /* Override any GCC internal prototype to avoid an error.
1792 Use char because int might match the return type of a GCC
1793 builtin and then its argument prototype would still apply. */
1794 #ifdef __cplusplus
1795 extern "C"
1796 #endif
1797 char $2 ();
1798 /* The GNU C library defines this for functions which it implements
1799 to always fail with ENOSYS. Some functions are actually named
1800 something starting with __ and the normal name is an alias. */
1801 #if defined __stub_$2 || defined __stub___$2
1802 choke me
1803 #endif
1806 main ()
1808 return $2 ();
1810 return 0;
1812 _ACEOF
1813 if ac_fn_c_try_link "$LINENO"; then :
1814 eval "$3=yes"
1815 else
1816 eval "$3=no"
1818 rm -f core conftest.err conftest.$ac_objext \
1819 conftest$ac_exeext conftest.$ac_ext
1821 eval ac_res=\$$3
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1826 } # ac_fn_c_check_func
1828 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1829 # -------------------------------------------
1830 # Tests whether TYPE exists after having included INCLUDES, setting cache
1831 # variable VAR accordingly.
1832 ac_fn_c_check_type ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 $as_echo_n "checking for $2... " >&6; }
1837 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1838 $as_echo_n "(cached) " >&6
1839 else
1840 eval "$3=no"
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1845 main ()
1847 if (sizeof ($2))
1848 return 0;
1850 return 0;
1852 _ACEOF
1853 if ac_fn_c_try_compile "$LINENO"; then :
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1858 main ()
1860 if (sizeof (($2)))
1861 return 0;
1863 return 0;
1865 _ACEOF
1866 if ac_fn_c_try_compile "$LINENO"; then :
1868 else
1869 eval "$3=yes"
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 eval ac_res=\$$3
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 } # ac_fn_c_check_type
1882 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1883 # --------------------------------------------
1884 # Tries to find the compile-time value of EXPR in a program that includes
1885 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1886 # computed
1887 ac_fn_c_compute_int ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 if test "$cross_compiling" = yes; then
1891 # Depending upon the size, compute the lo and hi bounds.
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1896 main ()
1898 static int test_array [1 - 2 * !(($2) >= 0)];
1899 test_array [0] = 0
1902 return 0;
1904 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906 ac_lo=0 ac_mid=0
1907 while :; do
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1912 main ()
1914 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1915 test_array [0] = 0
1918 return 0;
1920 _ACEOF
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922 ac_hi=$ac_mid; break
1923 else
1924 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1925 if test $ac_lo -le $ac_mid; then
1926 ac_lo= ac_hi=
1927 break
1929 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 done
1933 else
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1938 main ()
1940 static int test_array [1 - 2 * !(($2) < 0)];
1941 test_array [0] = 0
1944 return 0;
1946 _ACEOF
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948 ac_hi=-1 ac_mid=-1
1949 while :; do
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1954 main ()
1956 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1957 test_array [0] = 0
1960 return 0;
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 ac_lo=$ac_mid; break
1965 else
1966 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1967 if test $ac_mid -le $ac_hi; then
1968 ac_lo= ac_hi=
1969 break
1971 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 done
1975 else
1976 ac_lo= ac_hi=
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 # Binary search between lo and hi bounds.
1982 while test "x$ac_lo" != "x$ac_hi"; do
1983 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1988 main ()
1990 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1991 test_array [0] = 0
1994 return 0;
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_hi=$ac_mid
1999 else
2000 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 done
2004 case $ac_lo in #((
2005 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2006 '') ac_retval=1 ;;
2007 esac
2008 else
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2012 static long int longval () { return $2; }
2013 static unsigned long int ulongval () { return $2; }
2014 #include <stdio.h>
2015 #include <stdlib.h>
2017 main ()
2020 FILE *f = fopen ("conftest.val", "w");
2021 if (! f)
2022 return 1;
2023 if (($2) < 0)
2025 long int i = longval ();
2026 if (i != ($2))
2027 return 1;
2028 fprintf (f, "%ld", i);
2030 else
2032 unsigned long int i = ulongval ();
2033 if (i != ($2))
2034 return 1;
2035 fprintf (f, "%lu", i);
2037 /* Do not output a trailing newline, as this causes \r\n confusion
2038 on some platforms. */
2039 return ferror (f) || fclose (f) != 0;
2042 return 0;
2044 _ACEOF
2045 if ac_fn_c_try_run "$LINENO"; then :
2046 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2047 else
2048 ac_retval=1
2050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2051 conftest.$ac_objext conftest.beam conftest.$ac_ext
2052 rm -f conftest.val
2055 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2056 return $ac_retval
2058 } # ac_fn_c_compute_int
2060 # ac_fn_c_check_decl LINENO SYMBOL VAR
2061 # ------------------------------------
2062 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2063 ac_fn_c_check_decl ()
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 as_decl_name=`echo $2|sed 's/ *(.*//'`
2067 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2069 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2070 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2071 $as_echo_n "(cached) " >&6
2072 else
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2077 main ()
2079 #ifndef $as_decl_name
2080 #ifdef __cplusplus
2081 (void) $as_decl_use;
2082 #else
2083 (void) $as_decl_name;
2084 #endif
2085 #endif
2088 return 0;
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092 eval "$3=yes"
2093 else
2094 eval "$3=no"
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100 $as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103 } # ac_fn_c_check_decl
2104 cat >config.log <<_ACEOF
2105 This file contains any messages produced by compilers while
2106 running configure, to aid debugging if configure makes a mistake.
2108 It was created by package-unused $as_me version-unused, which was
2109 generated by GNU Autoconf 2.64. Invocation command line was
2111 $ $0 $@
2113 _ACEOF
2114 exec 5>>config.log
2116 cat <<_ASUNAME
2117 ## --------- ##
2118 ## Platform. ##
2119 ## --------- ##
2121 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2122 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2123 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2124 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2125 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2127 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2128 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2130 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2131 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2132 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2133 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2134 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2135 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2136 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2138 _ASUNAME
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
2145 $as_echo "PATH: $as_dir"
2146 done
2147 IFS=$as_save_IFS
2149 } >&5
2151 cat >&5 <<_ACEOF
2154 ## ----------- ##
2155 ## Core tests. ##
2156 ## ----------- ##
2158 _ACEOF
2161 # Keep a trace of the command line.
2162 # Strip out --no-create and --no-recursion so they do not pile up.
2163 # Strip out --silent because we don't want to record it for future runs.
2164 # Also quote any args containing shell meta-characters.
2165 # Make two passes to allow for proper duplicate-argument suppression.
2166 ac_configure_args=
2167 ac_configure_args0=
2168 ac_configure_args1=
2169 ac_must_keep_next=false
2170 for ac_pass in 1 2
2172 for ac_arg
2174 case $ac_arg in
2175 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2177 | -silent | --silent | --silen | --sile | --sil)
2178 continue ;;
2179 *\'*)
2180 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2181 esac
2182 case $ac_pass in
2183 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2185 as_fn_append ac_configure_args1 " '$ac_arg'"
2186 if test $ac_must_keep_next = true; then
2187 ac_must_keep_next=false # Got value, back to normal.
2188 else
2189 case $ac_arg in
2190 *=* | --config-cache | -C | -disable-* | --disable-* \
2191 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2192 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2193 | -with-* | --with-* | -without-* | --without-* | --x)
2194 case "$ac_configure_args0 " in
2195 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2196 esac
2198 -* ) ac_must_keep_next=true ;;
2199 esac
2201 as_fn_append ac_configure_args " '$ac_arg'"
2203 esac
2204 done
2205 done
2206 { ac_configure_args0=; unset ac_configure_args0;}
2207 { ac_configure_args1=; unset ac_configure_args1;}
2209 # When interrupted or exit'd, cleanup temporary files, and complete
2210 # config.log. We remove comments because anyway the quotes in there
2211 # would cause problems or look ugly.
2212 # WARNING: Use '\'' to represent an apostrophe within the trap.
2213 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2214 trap 'exit_status=$?
2215 # Save into config.log some information that might help in debugging.
2217 echo
2219 cat <<\_ASBOX
2220 ## ---------------- ##
2221 ## Cache variables. ##
2222 ## ---------------- ##
2223 _ASBOX
2224 echo
2225 # The following way of writing the cache mishandles newlines in values,
2227 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2228 eval ac_val=\$$ac_var
2229 case $ac_val in #(
2230 *${as_nl}*)
2231 case $ac_var in #(
2232 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2233 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2234 esac
2235 case $ac_var in #(
2236 _ | IFS | as_nl) ;; #(
2237 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2238 *) { eval $ac_var=; unset $ac_var;} ;;
2239 esac ;;
2240 esac
2241 done
2242 (set) 2>&1 |
2243 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2244 *${as_nl}ac_space=\ *)
2245 sed -n \
2246 "s/'\''/'\''\\\\'\'''\''/g;
2247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2248 ;; #(
2250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2252 esac |
2253 sort
2255 echo
2257 cat <<\_ASBOX
2258 ## ----------------- ##
2259 ## Output variables. ##
2260 ## ----------------- ##
2261 _ASBOX
2262 echo
2263 for ac_var in $ac_subst_vars
2265 eval ac_val=\$$ac_var
2266 case $ac_val in
2267 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2268 esac
2269 $as_echo "$ac_var='\''$ac_val'\''"
2270 done | sort
2271 echo
2273 if test -n "$ac_subst_files"; then
2274 cat <<\_ASBOX
2275 ## ------------------- ##
2276 ## File substitutions. ##
2277 ## ------------------- ##
2278 _ASBOX
2279 echo
2280 for ac_var in $ac_subst_files
2282 eval ac_val=\$$ac_var
2283 case $ac_val in
2284 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2285 esac
2286 $as_echo "$ac_var='\''$ac_val'\''"
2287 done | sort
2288 echo
2291 if test -s confdefs.h; then
2292 cat <<\_ASBOX
2293 ## ----------- ##
2294 ## confdefs.h. ##
2295 ## ----------- ##
2296 _ASBOX
2297 echo
2298 cat confdefs.h
2299 echo
2301 test "$ac_signal" != 0 &&
2302 $as_echo "$as_me: caught signal $ac_signal"
2303 $as_echo "$as_me: exit $exit_status"
2304 } >&5
2305 rm -f core *.core core.conftest.* &&
2306 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2307 exit $exit_status
2309 for ac_signal in 1 2 13 15; do
2310 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2311 done
2312 ac_signal=0
2314 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2315 rm -f -r conftest* confdefs.h
2317 $as_echo "/* confdefs.h */" > confdefs.h
2319 # Predefined preprocessor variables.
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_NAME "$PACKAGE_NAME"
2323 _ACEOF
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2327 _ACEOF
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2331 _ACEOF
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_STRING "$PACKAGE_STRING"
2335 _ACEOF
2337 cat >>confdefs.h <<_ACEOF
2338 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2339 _ACEOF
2341 cat >>confdefs.h <<_ACEOF
2342 #define PACKAGE_URL "$PACKAGE_URL"
2343 _ACEOF
2346 # Let the site file select an alternate cache file if it wants to.
2347 # Prefer an explicitly selected file to automatically selected ones.
2348 ac_site_file1=NONE
2349 ac_site_file2=NONE
2350 if test -n "$CONFIG_SITE"; then
2351 ac_site_file1=$CONFIG_SITE
2352 elif test "x$prefix" != xNONE; then
2353 ac_site_file1=$prefix/share/config.site
2354 ac_site_file2=$prefix/etc/config.site
2355 else
2356 ac_site_file1=$ac_default_prefix/share/config.site
2357 ac_site_file2=$ac_default_prefix/etc/config.site
2359 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2361 test "x$ac_site_file" = xNONE && continue
2362 if test -r "$ac_site_file"; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2364 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2365 sed 's/^/| /' "$ac_site_file" >&5
2366 . "$ac_site_file"
2368 done
2370 if test -r "$cache_file"; then
2371 # Some versions of bash will fail to source /dev/null (special
2372 # files actually), so we avoid doing that.
2373 if test -f "$cache_file"; then
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2375 $as_echo "$as_me: loading cache $cache_file" >&6;}
2376 case $cache_file in
2377 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2378 *) . "./$cache_file";;
2379 esac
2381 else
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2383 $as_echo "$as_me: creating cache $cache_file" >&6;}
2384 >$cache_file
2387 # Check that the precious variables saved in the cache have kept the same
2388 # value.
2389 ac_cache_corrupted=false
2390 for ac_var in $ac_precious_vars; do
2391 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2392 eval ac_new_set=\$ac_env_${ac_var}_set
2393 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2394 eval ac_new_val=\$ac_env_${ac_var}_value
2395 case $ac_old_set,$ac_new_set in
2396 set,)
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2398 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2399 ac_cache_corrupted=: ;;
2400 ,set)
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2402 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2403 ac_cache_corrupted=: ;;
2404 ,);;
2406 if test "x$ac_old_val" != "x$ac_new_val"; then
2407 # differences in whitespace do not lead to failure.
2408 ac_old_val_w=`echo x $ac_old_val`
2409 ac_new_val_w=`echo x $ac_new_val`
2410 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2412 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2413 ac_cache_corrupted=:
2414 else
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2416 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2417 eval $ac_var=\$ac_old_val
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2420 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2422 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2423 fi;;
2424 esac
2425 # Pass precious variables to config.status.
2426 if test "$ac_new_set" = set; then
2427 case $ac_new_val in
2428 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2429 *) ac_arg=$ac_var=$ac_new_val ;;
2430 esac
2431 case " $ac_configure_args " in
2432 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2433 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2434 esac
2436 done
2437 if $ac_cache_corrupted; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2441 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2442 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2444 ## -------------------- ##
2445 ## Main body of script. ##
2446 ## -------------------- ##
2448 ac_ext=c
2449 ac_cpp='$CPP $CPPFLAGS'
2450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2459 ac_config_headers="$ac_config_headers config.h"
2462 if test -n "${with_target_subdir}"; then
2463 # Default to --enable-multilib
2464 # Check whether --enable-multilib was given.
2465 if test "${enable_multilib+set}" = set; then :
2466 enableval=$enable_multilib; case "$enableval" in
2467 yes) multilib=yes ;;
2468 no) multilib=no ;;
2469 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2470 esac
2471 else
2472 multilib=yes
2476 # We may get other options which we leave undocumented:
2477 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2478 # See config-ml.in if you want the gory details.
2480 if test "$srcdir" = "."; then
2481 if test "$with_target_subdir" != "."; then
2482 multi_basedir="$srcdir/$with_multisrctop../.."
2483 else
2484 multi_basedir="$srcdir/$with_multisrctop.."
2486 else
2487 multi_basedir="$srcdir/.."
2491 # Even if the default multilib is not a cross compilation,
2492 # it may be that some of the other multilibs are.
2493 if test $cross_compiling = no && test $multilib = yes \
2494 && test "x${with_multisubdir}" != x ; then
2495 cross_compiling=maybe
2498 ac_config_commands="$ac_config_commands default-1"
2502 ac_aux_dir=
2503 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2504 for ac_t in install-sh install.sh shtool; do
2505 if test -f "$ac_dir/$ac_t"; then
2506 ac_aux_dir=$ac_dir
2507 ac_install_sh="$ac_aux_dir/$ac_t -c"
2508 break 2
2510 done
2511 done
2512 if test -z "$ac_aux_dir"; then
2513 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2516 # These three variables are undocumented and unsupported,
2517 # and are intended to be withdrawn in a future Autoconf release.
2518 # They can cause serious problems if a builder's source tree is in a directory
2519 # whose full name contains unusual characters.
2520 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2521 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2522 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2525 # Make sure we can run config.sub.
2526 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2527 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2530 $as_echo_n "checking build system type... " >&6; }
2531 if test "${ac_cv_build+set}" = set; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 ac_build_alias=$build_alias
2535 test "x$ac_build_alias" = x &&
2536 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2537 test "x$ac_build_alias" = x &&
2538 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2539 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2540 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2544 $as_echo "$ac_cv_build" >&6; }
2545 case $ac_cv_build in
2546 *-*-*) ;;
2547 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2548 esac
2549 build=$ac_cv_build
2550 ac_save_IFS=$IFS; IFS='-'
2551 set x $ac_cv_build
2552 shift
2553 build_cpu=$1
2554 build_vendor=$2
2555 shift; shift
2556 # Remember, the first character of IFS is used to create $*,
2557 # except with old shells:
2558 build_os=$*
2559 IFS=$ac_save_IFS
2560 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2564 $as_echo_n "checking host system type... " >&6; }
2565 if test "${ac_cv_host+set}" = set; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 if test "x$host_alias" = x; then
2569 ac_cv_host=$ac_cv_build
2570 else
2571 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2572 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2577 $as_echo "$ac_cv_host" >&6; }
2578 case $ac_cv_host in
2579 *-*-*) ;;
2580 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2581 esac
2582 host=$ac_cv_host
2583 ac_save_IFS=$IFS; IFS='-'
2584 set x $ac_cv_host
2585 shift
2586 host_cpu=$1
2587 host_vendor=$2
2588 shift; shift
2589 # Remember, the first character of IFS is used to create $*,
2590 # except with old shells:
2591 host_os=$*
2592 IFS=$ac_save_IFS
2593 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2597 $as_echo_n "checking target system type... " >&6; }
2598 if test "${ac_cv_target+set}" = set; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 if test "x$target_alias" = x; then
2602 ac_cv_target=$ac_cv_host
2603 else
2604 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2605 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2610 $as_echo "$ac_cv_target" >&6; }
2611 case $ac_cv_target in
2612 *-*-*) ;;
2613 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2614 esac
2615 target=$ac_cv_target
2616 ac_save_IFS=$IFS; IFS='-'
2617 set x $ac_cv_target
2618 shift
2619 target_cpu=$1
2620 target_vendor=$2
2621 shift; shift
2622 # Remember, the first character of IFS is used to create $*,
2623 # except with old shells:
2624 target_os=$*
2625 IFS=$ac_save_IFS
2626 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2629 # The aliases save the names the user supplied, while $host etc.
2630 # will get canonicalized.
2631 test -n "$target_alias" &&
2632 test "$program_prefix$program_suffix$program_transform_name" = \
2633 NONENONEs,x,x, &&
2634 program_prefix=${target_alias}-
2636 target_alias=${target_alias-$host_alias}
2638 ac_ext=c
2639 ac_cpp='$CPP $CPPFLAGS'
2640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643 if test -n "$ac_tool_prefix"; then
2644 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2645 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2647 $as_echo_n "checking for $ac_word... " >&6; }
2648 if test "${ac_cv_prog_CC+set}" = set; then :
2649 $as_echo_n "(cached) " >&6
2650 else
2651 if test -n "$CC"; then
2652 ac_cv_prog_CC="$CC" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2661 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2665 done
2666 done
2667 IFS=$as_save_IFS
2671 CC=$ac_cv_prog_CC
2672 if test -n "$CC"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2674 $as_echo "$CC" >&6; }
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2682 if test -z "$ac_cv_prog_CC"; then
2683 ac_ct_CC=$CC
2684 # Extract the first word of "gcc", so it can be a program name with args.
2685 set dummy gcc; ac_word=$2
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687 $as_echo_n "checking for $ac_word... " >&6; }
2688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2689 $as_echo_n "(cached) " >&6
2690 else
2691 if test -n "$ac_ct_CC"; then
2692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701 ac_cv_prog_ac_ct_CC="gcc"
2702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 break 2
2705 done
2706 done
2707 IFS=$as_save_IFS
2711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2712 if test -n "$ac_ct_CC"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2714 $as_echo "$ac_ct_CC" >&6; }
2715 else
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717 $as_echo "no" >&6; }
2720 if test "x$ac_ct_CC" = x; then
2721 CC=""
2722 else
2723 case $cross_compiling:$ac_tool_warned in
2724 yes:)
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2727 ac_tool_warned=yes ;;
2728 esac
2729 CC=$ac_ct_CC
2731 else
2732 CC="$ac_cv_prog_CC"
2735 if test -z "$CC"; then
2736 if test -n "$ac_tool_prefix"; then
2737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2738 set dummy ${ac_tool_prefix}cc; ac_word=$2
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2740 $as_echo_n "checking for $ac_word... " >&6; }
2741 if test "${ac_cv_prog_CC+set}" = set; then :
2742 $as_echo_n "(cached) " >&6
2743 else
2744 if test -n "$CC"; then
2745 ac_cv_prog_CC="$CC" # Let the user override the test.
2746 else
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2754 ac_cv_prog_CC="${ac_tool_prefix}cc"
2755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 break 2
2758 done
2759 done
2760 IFS=$as_save_IFS
2764 CC=$ac_cv_prog_CC
2765 if test -n "$CC"; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2767 $as_echo "$CC" >&6; }
2768 else
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770 $as_echo "no" >&6; }
2776 if test -z "$CC"; then
2777 # Extract the first word of "cc", so it can be a program name with args.
2778 set dummy cc; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if test "${ac_cv_prog_CC+set}" = set; then :
2782 $as_echo_n "(cached) " >&6
2783 else
2784 if test -n "$CC"; then
2785 ac_cv_prog_CC="$CC" # Let the user override the test.
2786 else
2787 ac_prog_rejected=no
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2796 ac_prog_rejected=yes
2797 continue
2799 ac_cv_prog_CC="cc"
2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 break 2
2803 done
2804 done
2805 IFS=$as_save_IFS
2807 if test $ac_prog_rejected = yes; then
2808 # We found a bogon in the path, so make sure we never use it.
2809 set dummy $ac_cv_prog_CC
2810 shift
2811 if test $# != 0; then
2812 # We chose a different compiler from the bogus one.
2813 # However, it has the same basename, so the bogon will be chosen
2814 # first if we set CC to just the basename; use the full file name.
2815 shift
2816 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2821 CC=$ac_cv_prog_CC
2822 if test -n "$CC"; then
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2824 $as_echo "$CC" >&6; }
2825 else
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2832 if test -z "$CC"; then
2833 if test -n "$ac_tool_prefix"; then
2834 for ac_prog in cl.exe
2836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if test "${ac_cv_prog_CC+set}" = set; then :
2841 $as_echo_n "(cached) " >&6
2842 else
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2857 done
2858 done
2859 IFS=$as_save_IFS
2863 CC=$ac_cv_prog_CC
2864 if test -n "$CC"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2866 $as_echo "$CC" >&6; }
2867 else
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2873 test -n "$CC" && break
2874 done
2876 if test -z "$CC"; then
2877 ac_ct_CC=$CC
2878 for ac_prog in cl.exe
2880 # Extract the first word of "$ac_prog", so it can be a program name with args.
2881 set dummy $ac_prog; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 if test -n "$ac_ct_CC"; then
2888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2893 IFS=$as_save_IFS
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_ac_ct_CC="$ac_prog"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2899 break 2
2901 done
2902 done
2903 IFS=$as_save_IFS
2907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2908 if test -n "$ac_ct_CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2910 $as_echo "$ac_ct_CC" >&6; }
2911 else
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2917 test -n "$ac_ct_CC" && break
2918 done
2920 if test "x$ac_ct_CC" = x; then
2921 CC=""
2922 else
2923 case $cross_compiling:$ac_tool_warned in
2924 yes:)
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2927 ac_tool_warned=yes ;;
2928 esac
2929 CC=$ac_ct_CC
2936 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2938 as_fn_error "no acceptable C compiler found in \$PATH
2939 See \`config.log' for more details." "$LINENO" 5; }
2941 # Provide some information about the compiler.
2942 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2943 set X $ac_compile
2944 ac_compiler=$2
2945 for ac_option in --version -v -V -qversion; do
2946 { { ac_try="$ac_compiler $ac_option >&5"
2947 case "(($ac_try" in
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2950 esac
2951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2952 $as_echo "$ac_try_echo"; } >&5
2953 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2954 ac_status=$?
2955 if test -s conftest.err; then
2956 sed '10a\
2957 ... rest of stderr output deleted ...
2958 10q' conftest.err >conftest.er1
2959 cat conftest.er1 >&5
2960 rm -f conftest.er1 conftest.err
2962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2963 test $ac_status = 0; }
2964 done
2966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2967 /* end confdefs.h. */
2970 main ()
2974 return 0;
2976 _ACEOF
2977 ac_clean_files_save=$ac_clean_files
2978 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2979 # Try to create an executable without -o first, disregard a.out.
2980 # It will help us diagnose broken compilers, and finding out an intuition
2981 # of exeext.
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2983 $as_echo_n "checking for C compiler default output file name... " >&6; }
2984 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2986 # The possible output files:
2987 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2989 ac_rmfiles=
2990 for ac_file in $ac_files
2992 case $ac_file in
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2994 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2995 esac
2996 done
2997 rm -f $ac_rmfiles
2999 if { { ac_try="$ac_link_default"
3000 case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3003 esac
3004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005 $as_echo "$ac_try_echo"; } >&5
3006 (eval "$ac_link_default") 2>&5
3007 ac_status=$?
3008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009 test $ac_status = 0; }; then :
3010 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3011 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3012 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3013 # so that the user can short-circuit this test for compilers unknown to
3014 # Autoconf.
3015 for ac_file in $ac_files ''
3017 test -f "$ac_file" || continue
3018 case $ac_file in
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3021 [ab].out )
3022 # We found the default executable, but exeext='' is most
3023 # certainly right.
3024 break;;
3025 *.* )
3026 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3027 then :; else
3028 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3030 # We set ac_cv_exeext here because the later test for it is not
3031 # safe: cross compilers may not add the suffix if given an `-o'
3032 # argument, so we may need to know it at that point already.
3033 # Even if this section looks crufty: it has the advantage of
3034 # actually working.
3035 break;;
3037 break;;
3038 esac
3039 done
3040 test "$ac_cv_exeext" = no && ac_cv_exeext=
3042 else
3043 ac_file=''
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3046 $as_echo "$ac_file" >&6; }
3047 if test -z "$ac_file"; then :
3048 $as_echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3053 { as_fn_set_status 77
3054 as_fn_error "C compiler cannot create executables
3055 See \`config.log' for more details." "$LINENO" 5; }; }
3057 ac_exeext=$ac_cv_exeext
3059 # Check that the compiler produces executables we can run. If not, either
3060 # the compiler is broken, or we cross compile.
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3062 $as_echo_n "checking whether the C compiler works... " >&6; }
3063 # If not cross compiling, check that we can run a simple program.
3064 if test "$cross_compiling" != yes; then
3065 if { ac_try='./$ac_file'
3066 { { case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071 $as_echo "$ac_try_echo"; } >&5
3072 (eval "$ac_try") 2>&5
3073 ac_status=$?
3074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075 test $ac_status = 0; }; }; then
3076 cross_compiling=no
3077 else
3078 if test "$cross_compiling" = maybe; then
3079 cross_compiling=yes
3080 else
3081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083 as_fn_error "cannot run C compiled programs.
3084 If you meant to cross compile, use \`--host'.
3085 See \`config.log' for more details." "$LINENO" 5; }
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3090 $as_echo "yes" >&6; }
3092 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3093 ac_clean_files=$ac_clean_files_save
3094 # Check that the compiler produces executables we can run. If not, either
3095 # the compiler is broken, or we cross compile.
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3097 $as_echo_n "checking whether we are cross compiling... " >&6; }
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3099 $as_echo "$cross_compiling" >&6; }
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3102 $as_echo_n "checking for suffix of executables... " >&6; }
3103 if { { ac_try="$ac_link"
3104 case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107 esac
3108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109 $as_echo "$ac_try_echo"; } >&5
3110 (eval "$ac_link") 2>&5
3111 ac_status=$?
3112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }; then :
3114 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3115 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3116 # work properly (i.e., refer to `conftest.exe'), while it won't with
3117 # `rm'.
3118 for ac_file in conftest.exe conftest conftest.*; do
3119 test -f "$ac_file" || continue
3120 case $ac_file in
3121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3122 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3123 break;;
3124 * ) break;;
3125 esac
3126 done
3127 else
3128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error "cannot compute suffix of executables: cannot compile and link
3131 See \`config.log' for more details." "$LINENO" 5; }
3133 rm -f conftest$ac_cv_exeext
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3135 $as_echo "$ac_cv_exeext" >&6; }
3137 rm -f conftest.$ac_ext
3138 EXEEXT=$ac_cv_exeext
3139 ac_exeext=$EXEEXT
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3141 $as_echo_n "checking for suffix of object files... " >&6; }
3142 if test "${ac_cv_objext+set}" = set; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3146 /* end confdefs.h. */
3149 main ()
3153 return 0;
3155 _ACEOF
3156 rm -f conftest.o conftest.obj
3157 if { { ac_try="$ac_compile"
3158 case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161 esac
3162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3163 $as_echo "$ac_try_echo"; } >&5
3164 (eval "$ac_compile") 2>&5
3165 ac_status=$?
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }; then :
3168 for ac_file in conftest.o conftest.obj conftest.*; do
3169 test -f "$ac_file" || continue;
3170 case $ac_file in
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3172 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3173 break;;
3174 esac
3175 done
3176 else
3177 $as_echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error "cannot compute suffix of object files: cannot compile
3183 See \`config.log' for more details." "$LINENO" 5; }
3185 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3188 $as_echo "$ac_cv_objext" >&6; }
3189 OBJEXT=$ac_cv_objext
3190 ac_objext=$OBJEXT
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3192 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3193 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3194 $as_echo_n "(cached) " >&6
3195 else
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3200 main ()
3202 #ifndef __GNUC__
3203 choke me
3204 #endif
3207 return 0;
3209 _ACEOF
3210 if ac_fn_c_try_compile "$LINENO"; then :
3211 ac_compiler_gnu=yes
3212 else
3213 ac_compiler_gnu=no
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3220 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3221 if test $ac_compiler_gnu = yes; then
3222 GCC=yes
3223 else
3224 GCC=
3226 ac_test_CFLAGS=${CFLAGS+set}
3227 ac_save_CFLAGS=$CFLAGS
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3229 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3230 if test "${ac_cv_prog_cc_g+set}" = set; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 ac_save_c_werror_flag=$ac_c_werror_flag
3234 ac_c_werror_flag=yes
3235 ac_cv_prog_cc_g=no
3236 CFLAGS="-g"
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3241 main ()
3245 return 0;
3247 _ACEOF
3248 if ac_fn_c_try_compile "$LINENO"; then :
3249 ac_cv_prog_cc_g=yes
3250 else
3251 CFLAGS=""
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3256 main ()
3260 return 0;
3262 _ACEOF
3263 if ac_fn_c_try_compile "$LINENO"; then :
3265 else
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3267 CFLAGS="-g"
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3272 main ()
3276 return 0;
3278 _ACEOF
3279 if ac_fn_c_try_compile "$LINENO"; then :
3280 ac_cv_prog_cc_g=yes
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3287 ac_c_werror_flag=$ac_save_c_werror_flag
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3290 $as_echo "$ac_cv_prog_cc_g" >&6; }
3291 if test "$ac_test_CFLAGS" = set; then
3292 CFLAGS=$ac_save_CFLAGS
3293 elif test $ac_cv_prog_cc_g = yes; then
3294 if test "$GCC" = yes; then
3295 CFLAGS="-g -O2"
3296 else
3297 CFLAGS="-g"
3299 else
3300 if test "$GCC" = yes; then
3301 CFLAGS="-O2"
3302 else
3303 CFLAGS=
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3307 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3308 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3309 $as_echo_n "(cached) " >&6
3310 else
3311 ac_cv_prog_cc_c89=no
3312 ac_save_CC=$CC
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3315 #include <stdarg.h>
3316 #include <stdio.h>
3317 #include <sys/types.h>
3318 #include <sys/stat.h>
3319 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3320 struct buf { int x; };
3321 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3322 static char *e (p, i)
3323 char **p;
3324 int i;
3326 return p[i];
3328 static char *f (char * (*g) (char **, int), char **p, ...)
3330 char *s;
3331 va_list v;
3332 va_start (v,p);
3333 s = g (p, va_arg (v,int));
3334 va_end (v);
3335 return s;
3338 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3339 function prototypes and stuff, but not '\xHH' hex character constants.
3340 These don't provoke an error unfortunately, instead are silently treated
3341 as 'x'. The following induces an error, until -std is added to get
3342 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3343 array size at least. It's necessary to write '\x00'==0 to get something
3344 that's true only with -std. */
3345 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3347 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3348 inside strings and character constants. */
3349 #define FOO(x) 'x'
3350 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3352 int test (int i, double x);
3353 struct s1 {int (*f) (int a);};
3354 struct s2 {int (*f) (double a);};
3355 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3356 int argc;
3357 char **argv;
3359 main ()
3361 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3363 return 0;
3365 _ACEOF
3366 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3367 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3369 CC="$ac_save_CC $ac_arg"
3370 if ac_fn_c_try_compile "$LINENO"; then :
3371 ac_cv_prog_cc_c89=$ac_arg
3373 rm -f core conftest.err conftest.$ac_objext
3374 test "x$ac_cv_prog_cc_c89" != "xno" && break
3375 done
3376 rm -f conftest.$ac_ext
3377 CC=$ac_save_CC
3380 # AC_CACHE_VAL
3381 case "x$ac_cv_prog_cc_c89" in
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3384 $as_echo "none needed" >&6; } ;;
3385 xno)
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3387 $as_echo "unsupported" >&6; } ;;
3389 CC="$CC $ac_cv_prog_cc_c89"
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3391 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3392 esac
3393 if test "x$ac_cv_prog_cc_c89" != xno; then :
3397 ac_ext=c
3398 ac_cpp='$CPP $CPPFLAGS'
3399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404 ac_ext=c
3405 ac_cpp='$CPP $CPPFLAGS'
3406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3410 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3411 # On Suns, sometimes $CPP names a directory.
3412 if test -n "$CPP" && test -d "$CPP"; then
3413 CPP=
3415 if test -z "$CPP"; then
3416 if test "${ac_cv_prog_CPP+set}" = set; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 # Double quotes because CPP needs to be expanded
3420 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3422 ac_preproc_ok=false
3423 for ac_c_preproc_warn_flag in '' yes
3425 # Use a header file that comes with gcc, so configuring glibc
3426 # with a fresh cross-compiler works.
3427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428 # <limits.h> exists even on freestanding compilers.
3429 # On the NeXT, cc -E runs the code through the compiler's parser,
3430 # not just through cpp. "Syntax error" is here to catch this case.
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3433 #ifdef __STDC__
3434 # include <limits.h>
3435 #else
3436 # include <assert.h>
3437 #endif
3438 Syntax error
3439 _ACEOF
3440 if ac_fn_c_try_cpp "$LINENO"; then :
3442 else
3443 # Broken: fails on valid input.
3444 continue
3446 rm -f conftest.err conftest.$ac_ext
3448 # OK, works on sane cases. Now check whether nonexistent headers
3449 # can be detected and how.
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3452 #include <ac_nonexistent.h>
3453 _ACEOF
3454 if ac_fn_c_try_cpp "$LINENO"; then :
3455 # Broken: success on invalid input.
3456 continue
3457 else
3458 # Passes both tests.
3459 ac_preproc_ok=:
3460 break
3462 rm -f conftest.err conftest.$ac_ext
3464 done
3465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3466 rm -f conftest.err conftest.$ac_ext
3467 if $ac_preproc_ok; then :
3468 break
3471 done
3472 ac_cv_prog_CPP=$CPP
3475 CPP=$ac_cv_prog_CPP
3476 else
3477 ac_cv_prog_CPP=$CPP
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3480 $as_echo "$CPP" >&6; }
3481 ac_preproc_ok=false
3482 for ac_c_preproc_warn_flag in '' yes
3484 # Use a header file that comes with gcc, so configuring glibc
3485 # with a fresh cross-compiler works.
3486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3487 # <limits.h> exists even on freestanding compilers.
3488 # On the NeXT, cc -E runs the code through the compiler's parser,
3489 # not just through cpp. "Syntax error" is here to catch this case.
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3492 #ifdef __STDC__
3493 # include <limits.h>
3494 #else
3495 # include <assert.h>
3496 #endif
3497 Syntax error
3498 _ACEOF
3499 if ac_fn_c_try_cpp "$LINENO"; then :
3501 else
3502 # Broken: fails on valid input.
3503 continue
3505 rm -f conftest.err conftest.$ac_ext
3507 # OK, works on sane cases. Now check whether nonexistent headers
3508 # can be detected and how.
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3511 #include <ac_nonexistent.h>
3512 _ACEOF
3513 if ac_fn_c_try_cpp "$LINENO"; then :
3514 # Broken: success on invalid input.
3515 continue
3516 else
3517 # Passes both tests.
3518 ac_preproc_ok=:
3519 break
3521 rm -f conftest.err conftest.$ac_ext
3523 done
3524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3525 rm -f conftest.err conftest.$ac_ext
3526 if $ac_preproc_ok; then :
3528 else
3529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3532 See \`config.log' for more details." "$LINENO" 5; }
3535 ac_ext=c
3536 ac_cpp='$CPP $CPPFLAGS'
3537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3543 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3544 if test "${ac_cv_path_GREP+set}" = set; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 if test -z "$GREP"; then
3548 ac_path_GREP_found=false
3549 # Loop through the user's path and test for each of PROGNAME-LIST
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_prog in grep ggrep; do
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3558 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3559 # Check for GNU ac_path_GREP and select it if it is found.
3560 # Check for GNU $ac_path_GREP
3561 case `"$ac_path_GREP" --version 2>&1` in
3562 *GNU*)
3563 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3565 ac_count=0
3566 $as_echo_n 0123456789 >"conftest.in"
3567 while :
3569 cat "conftest.in" "conftest.in" >"conftest.tmp"
3570 mv "conftest.tmp" "conftest.in"
3571 cp "conftest.in" "conftest.nl"
3572 $as_echo 'GREP' >> "conftest.nl"
3573 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3575 as_fn_arith $ac_count + 1 && ac_count=$as_val
3576 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3577 # Best one so far, save it but keep looking for a better one
3578 ac_cv_path_GREP="$ac_path_GREP"
3579 ac_path_GREP_max=$ac_count
3581 # 10*(2^10) chars as input seems more than enough
3582 test $ac_count -gt 10 && break
3583 done
3584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3585 esac
3587 $ac_path_GREP_found && break 3
3588 done
3589 done
3590 done
3591 IFS=$as_save_IFS
3592 if test -z "$ac_cv_path_GREP"; then
3593 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3595 else
3596 ac_cv_path_GREP=$GREP
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3601 $as_echo "$ac_cv_path_GREP" >&6; }
3602 GREP="$ac_cv_path_GREP"
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3606 $as_echo_n "checking for egrep... " >&6; }
3607 if test "${ac_cv_path_EGREP+set}" = set; then :
3608 $as_echo_n "(cached) " >&6
3609 else
3610 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3611 then ac_cv_path_EGREP="$GREP -E"
3612 else
3613 if test -z "$EGREP"; then
3614 ac_path_EGREP_found=false
3615 # Loop through the user's path and test for each of PROGNAME-LIST
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
3621 for ac_prog in egrep; do
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3624 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3625 # Check for GNU ac_path_EGREP and select it if it is found.
3626 # Check for GNU $ac_path_EGREP
3627 case `"$ac_path_EGREP" --version 2>&1` in
3628 *GNU*)
3629 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3631 ac_count=0
3632 $as_echo_n 0123456789 >"conftest.in"
3633 while :
3635 cat "conftest.in" "conftest.in" >"conftest.tmp"
3636 mv "conftest.tmp" "conftest.in"
3637 cp "conftest.in" "conftest.nl"
3638 $as_echo 'EGREP' >> "conftest.nl"
3639 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3641 as_fn_arith $ac_count + 1 && ac_count=$as_val
3642 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3643 # Best one so far, save it but keep looking for a better one
3644 ac_cv_path_EGREP="$ac_path_EGREP"
3645 ac_path_EGREP_max=$ac_count
3647 # 10*(2^10) chars as input seems more than enough
3648 test $ac_count -gt 10 && break
3649 done
3650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3651 esac
3653 $ac_path_EGREP_found && break 3
3654 done
3655 done
3656 done
3657 IFS=$as_save_IFS
3658 if test -z "$ac_cv_path_EGREP"; then
3659 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3661 else
3662 ac_cv_path_EGREP=$EGREP
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3668 $as_echo "$ac_cv_path_EGREP" >&6; }
3669 EGREP="$ac_cv_path_EGREP"
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3673 $as_echo_n "checking for ANSI C header files... " >&6; }
3674 if test "${ac_cv_header_stdc+set}" = set; then :
3675 $as_echo_n "(cached) " >&6
3676 else
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679 #include <stdlib.h>
3680 #include <stdarg.h>
3681 #include <string.h>
3682 #include <float.h>
3685 main ()
3689 return 0;
3691 _ACEOF
3692 if ac_fn_c_try_compile "$LINENO"; then :
3693 ac_cv_header_stdc=yes
3694 else
3695 ac_cv_header_stdc=no
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 if test $ac_cv_header_stdc = yes; then
3700 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3703 #include <string.h>
3705 _ACEOF
3706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3707 $EGREP "memchr" >/dev/null 2>&1; then :
3709 else
3710 ac_cv_header_stdc=no
3712 rm -f conftest*
3716 if test $ac_cv_header_stdc = yes; then
3717 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3720 #include <stdlib.h>
3722 _ACEOF
3723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3724 $EGREP "free" >/dev/null 2>&1; then :
3726 else
3727 ac_cv_header_stdc=no
3729 rm -f conftest*
3733 if test $ac_cv_header_stdc = yes; then
3734 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3735 if test "$cross_compiling" = yes; then :
3737 else
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740 #include <ctype.h>
3741 #include <stdlib.h>
3742 #if ((' ' & 0x0FF) == 0x020)
3743 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3744 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3745 #else
3746 # define ISLOWER(c) \
3747 (('a' <= (c) && (c) <= 'i') \
3748 || ('j' <= (c) && (c) <= 'r') \
3749 || ('s' <= (c) && (c) <= 'z'))
3750 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3751 #endif
3753 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3755 main ()
3757 int i;
3758 for (i = 0; i < 256; i++)
3759 if (XOR (islower (i), ISLOWER (i))
3760 || toupper (i) != TOUPPER (i))
3761 return 2;
3762 return 0;
3764 _ACEOF
3765 if ac_fn_c_try_run "$LINENO"; then :
3767 else
3768 ac_cv_header_stdc=no
3770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3771 conftest.$ac_objext conftest.beam conftest.$ac_ext
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3777 $as_echo "$ac_cv_header_stdc" >&6; }
3778 if test $ac_cv_header_stdc = yes; then
3780 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3784 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3785 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3786 inttypes.h stdint.h unistd.h
3787 do :
3788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3789 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3791 eval as_val=\$$as_ac_Header
3792 if test "x$as_val" = x""yes; then :
3793 cat >>confdefs.h <<_ACEOF
3794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3795 _ACEOF
3799 done
3803 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3804 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3805 MINIX=yes
3806 else
3807 MINIX=
3811 if test "$MINIX" = yes; then
3813 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3816 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3819 $as_echo "#define _MINIX 1" >>confdefs.h
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3825 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3826 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3832 # define __EXTENSIONS__ 1
3833 $ac_includes_default
3835 main ()
3839 return 0;
3841 _ACEOF
3842 if ac_fn_c_try_compile "$LINENO"; then :
3843 ac_cv_safe_to_define___extensions__=yes
3844 else
3845 ac_cv_safe_to_define___extensions__=no
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3850 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3851 test $ac_cv_safe_to_define___extensions__ = yes &&
3852 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3854 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3856 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3858 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3860 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3864 libtool_VERSION=1:0:0
3867 # 1.11.1: Require that version of automake.
3868 # foreign: Don't require README, INSTALL, NEWS, etc.
3869 # no-define: Don't define PACKAGE and VERSION.
3870 # no-dependencies: Don't generate automatic dependencies.
3871 # (because it breaks when using bootstrap-lean, since some of the
3872 # headers are gone at "make install" time).
3873 # -Wall: Issue all automake warnings.
3874 # -Wno-portability: Don't warn about constructs supported by GNU make.
3875 # (because GCC requires GNU make anyhow).
3876 am__api_version='1.11'
3878 # Find a good install program. We prefer a C program (faster),
3879 # so one script is as good as another. But avoid the broken or
3880 # incompatible versions:
3881 # SysV /etc/install, /usr/sbin/install
3882 # SunOS /usr/etc/install
3883 # IRIX /sbin/install
3884 # AIX /bin/install
3885 # AmigaOS /C/install, which installs bootblocks on floppy discs
3886 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3887 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3888 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3889 # OS/2's system install, which has a completely different semantic
3890 # ./install, which can be erroneously created by make from ./install.sh.
3891 # Reject install programs that cannot install multiple files.
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3893 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3894 if test -z "$INSTALL"; then
3895 if test "${ac_cv_path_install+set}" = set; then :
3896 $as_echo_n "(cached) " >&6
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 # Account for people who put trailing slashes in PATH elements.
3904 case $as_dir/ in #((
3905 ./ | .// | /[cC]/* | \
3906 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3907 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3908 /usr/ucb/* ) ;;
3910 # OSF1 and SCO ODT 3.0 have their own names for install.
3911 # Don't use installbsd from OSF since it installs stuff as root
3912 # by default.
3913 for ac_prog in ginstall scoinst install; do
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3916 if test $ac_prog = install &&
3917 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3918 # AIX install. It has an incompatible calling convention.
3920 elif test $ac_prog = install &&
3921 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3922 # program-specific install script used by HP pwplus--don't use.
3924 else
3925 rm -rf conftest.one conftest.two conftest.dir
3926 echo one > conftest.one
3927 echo two > conftest.two
3928 mkdir conftest.dir
3929 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3930 test -s conftest.one && test -s conftest.two &&
3931 test -s conftest.dir/conftest.one &&
3932 test -s conftest.dir/conftest.two
3933 then
3934 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3935 break 3
3939 done
3940 done
3942 esac
3944 done
3945 IFS=$as_save_IFS
3947 rm -rf conftest.one conftest.two conftest.dir
3950 if test "${ac_cv_path_install+set}" = set; then
3951 INSTALL=$ac_cv_path_install
3952 else
3953 # As a last resort, use the slow shell script. Don't cache a
3954 # value for INSTALL within a source directory, because that will
3955 # break other packages using the cache if that directory is
3956 # removed, or if the value is a relative name.
3957 INSTALL=$ac_install_sh
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3961 $as_echo "$INSTALL" >&6; }
3963 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3964 # It thinks the first close brace ends the variable substitution.
3965 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3967 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3969 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3972 $as_echo_n "checking whether build environment is sane... " >&6; }
3973 # Just in case
3974 sleep 1
3975 echo timestamp > conftest.file
3976 # Reject unsafe characters in $srcdir or the absolute working directory
3977 # name. Accept space and tab only in the latter.
3978 am_lf='
3980 case `pwd` in
3981 *[\\\"\#\$\&\'\`$am_lf]*)
3982 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3983 esac
3984 case $srcdir in
3985 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3986 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3987 esac
3989 # Do `set' in a subshell so we don't clobber the current shell's
3990 # arguments. Must try -L first in case configure is actually a
3991 # symlink; some systems play weird games with the mod time of symlinks
3992 # (eg FreeBSD returns the mod time of the symlink's containing
3993 # directory).
3994 if (
3995 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3996 if test "$*" = "X"; then
3997 # -L didn't work.
3998 set X `ls -t "$srcdir/configure" conftest.file`
4000 rm -f conftest.file
4001 if test "$*" != "X $srcdir/configure conftest.file" \
4002 && test "$*" != "X conftest.file $srcdir/configure"; then
4004 # If neither matched, then we have a broken ls. This can happen
4005 # if, for instance, CONFIG_SHELL is bash and it inherits a
4006 # broken ls alias from the environment. This has actually
4007 # happened. Such a system could not be considered "sane".
4008 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4009 alias in your environment" "$LINENO" 5
4012 test "$2" = conftest.file
4014 then
4015 # Ok.
4017 else
4018 as_fn_error "newly created file is older than distributed files!
4019 Check your system clock" "$LINENO" 5
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4022 $as_echo "yes" >&6; }
4023 test "$program_prefix" != NONE &&
4024 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4025 # Use a double $ so make ignores it.
4026 test "$program_suffix" != NONE &&
4027 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4028 # Double any \ or $.
4029 # By default was `s,x,x', remove it if useless.
4030 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4031 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4033 # expand $ac_aux_dir to an absolute path
4034 am_aux_dir=`cd $ac_aux_dir && pwd`
4036 if test x"${MISSING+set}" != xset; then
4037 case $am_aux_dir in
4038 *\ * | *\ *)
4039 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4041 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4042 esac
4044 # Use eval to expand $SHELL
4045 if eval "$MISSING --run true"; then
4046 am_missing_run="$MISSING --run "
4047 else
4048 am_missing_run=
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4050 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4053 if test x"${install_sh}" != xset; then
4054 case $am_aux_dir in
4055 *\ * | *\ *)
4056 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4058 install_sh="\${SHELL} $am_aux_dir/install-sh"
4059 esac
4062 # Installed binaries are usually stripped using `strip' when the user
4063 # run `make install-strip'. However `strip' might not be the right
4064 # tool to use in cross-compilation environments, therefore Automake
4065 # will honor the `STRIP' environment variable to overrule this program.
4066 if test "$cross_compiling" != no; then
4067 if test -n "$ac_tool_prefix"; then
4068 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4069 set dummy ${ac_tool_prefix}strip; ac_word=$2
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4071 $as_echo_n "checking for $ac_word... " >&6; }
4072 if test "${ac_cv_prog_STRIP+set}" = set; then :
4073 $as_echo_n "(cached) " >&6
4074 else
4075 if test -n "$STRIP"; then
4076 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4077 else
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4085 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 break 2
4089 done
4090 done
4091 IFS=$as_save_IFS
4095 STRIP=$ac_cv_prog_STRIP
4096 if test -n "$STRIP"; then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4098 $as_echo "$STRIP" >&6; }
4099 else
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101 $as_echo "no" >&6; }
4106 if test -z "$ac_cv_prog_STRIP"; then
4107 ac_ct_STRIP=$STRIP
4108 # Extract the first word of "strip", so it can be a program name with args.
4109 set dummy strip; ac_word=$2
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4111 $as_echo_n "checking for $ac_word... " >&6; }
4112 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4113 $as_echo_n "(cached) " >&6
4114 else
4115 if test -n "$ac_ct_STRIP"; then
4116 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4117 else
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH
4121 IFS=$as_save_IFS
4122 test -z "$as_dir" && as_dir=.
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4125 ac_cv_prog_ac_ct_STRIP="strip"
4126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 break 2
4129 done
4130 done
4131 IFS=$as_save_IFS
4135 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4136 if test -n "$ac_ct_STRIP"; then
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4138 $as_echo "$ac_ct_STRIP" >&6; }
4139 else
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141 $as_echo "no" >&6; }
4144 if test "x$ac_ct_STRIP" = x; then
4145 STRIP=":"
4146 else
4147 case $cross_compiling:$ac_tool_warned in
4148 yes:)
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4151 ac_tool_warned=yes ;;
4152 esac
4153 STRIP=$ac_ct_STRIP
4155 else
4156 STRIP="$ac_cv_prog_STRIP"
4160 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4163 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4164 if test -z "$MKDIR_P"; then
4165 if test "${ac_cv_path_mkdir+set}" = set; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4171 IFS=$as_save_IFS
4172 test -z "$as_dir" && as_dir=.
4173 for ac_prog in mkdir gmkdir; do
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4176 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4177 'mkdir (GNU coreutils) '* | \
4178 'mkdir (coreutils) '* | \
4179 'mkdir (fileutils) '4.1*)
4180 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4181 break 3;;
4182 esac
4183 done
4184 done
4185 done
4186 IFS=$as_save_IFS
4190 if test "${ac_cv_path_mkdir+set}" = set; then
4191 MKDIR_P="$ac_cv_path_mkdir -p"
4192 else
4193 # As a last resort, use the slow shell script. Don't cache a
4194 # value for MKDIR_P within a source directory, because that will
4195 # break other packages using the cache if that directory is
4196 # removed, or if the value is a relative name.
4197 test -d ./--version && rmdir ./--version
4198 MKDIR_P="$ac_install_sh -d"
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4202 $as_echo "$MKDIR_P" >&6; }
4204 mkdir_p="$MKDIR_P"
4205 case $mkdir_p in
4206 [\\/$]* | ?:[\\/]*) ;;
4207 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4208 esac
4210 for ac_prog in gawk mawk nawk awk
4212 # Extract the first word of "$ac_prog", so it can be a program name with args.
4213 set dummy $ac_prog; ac_word=$2
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215 $as_echo_n "checking for $ac_word... " >&6; }
4216 if test "${ac_cv_prog_AWK+set}" = set; then :
4217 $as_echo_n "(cached) " >&6
4218 else
4219 if test -n "$AWK"; then
4220 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4221 else
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4229 ac_cv_prog_AWK="$ac_prog"
4230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 break 2
4233 done
4234 done
4235 IFS=$as_save_IFS
4239 AWK=$ac_cv_prog_AWK
4240 if test -n "$AWK"; then
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4242 $as_echo "$AWK" >&6; }
4243 else
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245 $as_echo "no" >&6; }
4249 test -n "$AWK" && break
4250 done
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4253 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4254 set x ${MAKE-make}
4255 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4256 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 cat >conftest.make <<\_ACEOF
4260 SHELL = /bin/sh
4261 all:
4262 @echo '@@@%%%=$(MAKE)=@@@%%%'
4263 _ACEOF
4264 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4265 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4266 *@@@%%%=?*=@@@%%%*)
4267 eval ac_cv_prog_make_${ac_make}_set=yes;;
4269 eval ac_cv_prog_make_${ac_make}_set=no;;
4270 esac
4271 rm -f conftest.make
4273 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4275 $as_echo "yes" >&6; }
4276 SET_MAKE=
4277 else
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279 $as_echo "no" >&6; }
4280 SET_MAKE="MAKE=${MAKE-make}"
4283 rm -rf .tst 2>/dev/null
4284 mkdir .tst 2>/dev/null
4285 if test -d .tst; then
4286 am__leading_dot=.
4287 else
4288 am__leading_dot=_
4290 rmdir .tst 2>/dev/null
4292 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4293 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4294 # is not polluted with repeated "-I."
4295 am__isrc=' -I$(srcdir)'
4296 # test to see if srcdir already configured
4297 if test -f $srcdir/config.status; then
4298 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4302 # test whether we have cygpath
4303 if test -z "$CYGPATH_W"; then
4304 if (cygpath --version) >/dev/null 2>/dev/null; then
4305 CYGPATH_W='cygpath -w'
4306 else
4307 CYGPATH_W=echo
4312 # Define the identity of the package.
4313 PACKAGE='libbacktrace'
4314 VERSION='version-unused'
4317 # Some tools Automake needs.
4319 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4322 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4325 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4328 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4331 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4333 # We need awk for the "check" target. The system "awk" is bad on
4334 # some platforms.
4335 # Always define AMTAR for backward compatibility. Yes, it's still used
4336 # in the wild :-( We should find a proper way to deprecate it ...
4337 AMTAR='$${TAR-tar}'
4339 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4348 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4349 # Check whether --enable-maintainer-mode was given.
4350 if test "${enable_maintainer_mode+set}" = set; then :
4351 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4352 else
4353 USE_MAINTAINER_MODE=no
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4357 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4358 if test $USE_MAINTAINER_MODE = yes; then
4359 MAINTAINER_MODE_TRUE=
4360 MAINTAINER_MODE_FALSE='#'
4361 else
4362 MAINTAINER_MODE_TRUE='#'
4363 MAINTAINER_MODE_FALSE=
4366 MAINT=$MAINTAINER_MODE_TRUE
4371 # Check whether --with-target-subdir was given.
4372 if test "${with_target_subdir+set}" = set; then :
4373 withval=$with_target_subdir;
4377 # We must force CC to /not/ be precious variables; otherwise
4378 # the wrong, non-multilib-adjusted value will be used in multilibs.
4379 # As a side effect, we have to subst CFLAGS ourselves.
4382 ac_ext=c
4383 ac_cpp='$CPP $CPPFLAGS'
4384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387 if test -n "$ac_tool_prefix"; then
4388 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4389 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4391 $as_echo_n "checking for $ac_word... " >&6; }
4392 if test "${ac_cv_prog_CC+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 if test -n "$CC"; then
4396 ac_cv_prog_CC="$CC" # Let the user override the test.
4397 else
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 for as_dir in $PATH
4401 IFS=$as_save_IFS
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4407 break 2
4409 done
4410 done
4411 IFS=$as_save_IFS
4415 CC=$ac_cv_prog_CC
4416 if test -n "$CC"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4418 $as_echo "$CC" >&6; }
4419 else
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4426 if test -z "$ac_cv_prog_CC"; then
4427 ac_ct_CC=$CC
4428 # Extract the first word of "gcc", so it can be a program name with args.
4429 set dummy gcc; ac_word=$2
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4431 $as_echo_n "checking for $ac_word... " >&6; }
4432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 if test -n "$ac_ct_CC"; then
4436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_ac_ct_CC="gcc"
4446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4449 done
4450 done
4451 IFS=$as_save_IFS
4455 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4456 if test -n "$ac_ct_CC"; then
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4458 $as_echo "$ac_ct_CC" >&6; }
4459 else
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461 $as_echo "no" >&6; }
4464 if test "x$ac_ct_CC" = x; then
4465 CC=""
4466 else
4467 case $cross_compiling:$ac_tool_warned in
4468 yes:)
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4471 ac_tool_warned=yes ;;
4472 esac
4473 CC=$ac_ct_CC
4475 else
4476 CC="$ac_cv_prog_CC"
4479 if test -z "$CC"; then
4480 if test -n "$ac_tool_prefix"; then
4481 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4482 set dummy ${ac_tool_prefix}cc; ac_word=$2
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4484 $as_echo_n "checking for $ac_word... " >&6; }
4485 if test "${ac_cv_prog_CC+set}" = set; then :
4486 $as_echo_n "(cached) " >&6
4487 else
4488 if test -n "$CC"; then
4489 ac_cv_prog_CC="$CC" # Let the user override the test.
4490 else
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498 ac_cv_prog_CC="${ac_tool_prefix}cc"
4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 break 2
4502 done
4503 done
4504 IFS=$as_save_IFS
4508 CC=$ac_cv_prog_CC
4509 if test -n "$CC"; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4511 $as_echo "$CC" >&6; }
4512 else
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 $as_echo "no" >&6; }
4520 if test -z "$CC"; then
4521 # Extract the first word of "cc", so it can be a program name with args.
4522 set dummy cc; ac_word=$2
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4524 $as_echo_n "checking for $ac_word... " >&6; }
4525 if test "${ac_cv_prog_CC+set}" = set; then :
4526 $as_echo_n "(cached) " >&6
4527 else
4528 if test -n "$CC"; then
4529 ac_cv_prog_CC="$CC" # Let the user override the test.
4530 else
4531 ac_prog_rejected=no
4532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533 for as_dir in $PATH
4535 IFS=$as_save_IFS
4536 test -z "$as_dir" && as_dir=.
4537 for ac_exec_ext in '' $ac_executable_extensions; do
4538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4539 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4540 ac_prog_rejected=yes
4541 continue
4543 ac_cv_prog_CC="cc"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4547 done
4548 done
4549 IFS=$as_save_IFS
4551 if test $ac_prog_rejected = yes; then
4552 # We found a bogon in the path, so make sure we never use it.
4553 set dummy $ac_cv_prog_CC
4554 shift
4555 if test $# != 0; then
4556 # We chose a different compiler from the bogus one.
4557 # However, it has the same basename, so the bogon will be chosen
4558 # first if we set CC to just the basename; use the full file name.
4559 shift
4560 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4565 CC=$ac_cv_prog_CC
4566 if test -n "$CC"; then
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4568 $as_echo "$CC" >&6; }
4569 else
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571 $as_echo "no" >&6; }
4576 if test -z "$CC"; then
4577 if test -n "$ac_tool_prefix"; then
4578 for ac_prog in cl.exe
4580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4581 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if test "${ac_cv_prog_CC+set}" = set; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -n "$CC"; then
4588 ac_cv_prog_CC="$CC" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4601 done
4602 done
4603 IFS=$as_save_IFS
4607 CC=$ac_cv_prog_CC
4608 if test -n "$CC"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4610 $as_echo "$CC" >&6; }
4611 else
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4617 test -n "$CC" && break
4618 done
4620 if test -z "$CC"; then
4621 ac_ct_CC=$CC
4622 for ac_prog in cl.exe
4624 # Extract the first word of "$ac_prog", so it can be a program name with args.
4625 set dummy $ac_prog; ac_word=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 if test -n "$ac_ct_CC"; then
4632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4633 else
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4641 ac_cv_prog_ac_ct_CC="$ac_prog"
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 break 2
4645 done
4646 done
4647 IFS=$as_save_IFS
4651 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4652 if test -n "$ac_ct_CC"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4654 $as_echo "$ac_ct_CC" >&6; }
4655 else
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4661 test -n "$ac_ct_CC" && break
4662 done
4664 if test "x$ac_ct_CC" = x; then
4665 CC=""
4666 else
4667 case $cross_compiling:$ac_tool_warned in
4668 yes:)
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4671 ac_tool_warned=yes ;;
4672 esac
4673 CC=$ac_ct_CC
4680 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4682 as_fn_error "no acceptable C compiler found in \$PATH
4683 See \`config.log' for more details." "$LINENO" 5; }
4685 # Provide some information about the compiler.
4686 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4687 set X $ac_compile
4688 ac_compiler=$2
4689 for ac_option in --version -v -V -qversion; do
4690 { { ac_try="$ac_compiler $ac_option >&5"
4691 case "(($ac_try" in
4692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693 *) ac_try_echo=$ac_try;;
4694 esac
4695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4696 $as_echo "$ac_try_echo"; } >&5
4697 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4698 ac_status=$?
4699 if test -s conftest.err; then
4700 sed '10a\
4701 ... rest of stderr output deleted ...
4702 10q' conftest.err >conftest.er1
4703 cat conftest.er1 >&5
4704 rm -f conftest.er1 conftest.err
4706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4707 test $ac_status = 0; }
4708 done
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4711 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4712 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4719 main ()
4721 #ifndef __GNUC__
4722 choke me
4723 #endif
4726 return 0;
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730 ac_compiler_gnu=yes
4731 else
4732 ac_compiler_gnu=no
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4739 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4740 if test $ac_compiler_gnu = yes; then
4741 GCC=yes
4742 else
4743 GCC=
4745 ac_test_CFLAGS=${CFLAGS+set}
4746 ac_save_CFLAGS=$CFLAGS
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4748 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4749 if test "${ac_cv_prog_cc_g+set}" = set; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 ac_save_c_werror_flag=$ac_c_werror_flag
4753 ac_c_werror_flag=yes
4754 ac_cv_prog_cc_g=no
4755 CFLAGS="-g"
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4760 main ()
4764 return 0;
4766 _ACEOF
4767 if ac_fn_c_try_compile "$LINENO"; then :
4768 ac_cv_prog_cc_g=yes
4769 else
4770 CFLAGS=""
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4775 main ()
4779 return 0;
4781 _ACEOF
4782 if ac_fn_c_try_compile "$LINENO"; then :
4784 else
4785 ac_c_werror_flag=$ac_save_c_werror_flag
4786 CFLAGS="-g"
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4791 main ()
4795 return 0;
4797 _ACEOF
4798 if ac_fn_c_try_compile "$LINENO"; then :
4799 ac_cv_prog_cc_g=yes
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 ac_c_werror_flag=$ac_save_c_werror_flag
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4809 $as_echo "$ac_cv_prog_cc_g" >&6; }
4810 if test "$ac_test_CFLAGS" = set; then
4811 CFLAGS=$ac_save_CFLAGS
4812 elif test $ac_cv_prog_cc_g = yes; then
4813 if test "$GCC" = yes; then
4814 CFLAGS="-g -O2"
4815 else
4816 CFLAGS="-g"
4818 else
4819 if test "$GCC" = yes; then
4820 CFLAGS="-O2"
4821 else
4822 CFLAGS=
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4827 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 ac_cv_prog_cc_c89=no
4831 ac_save_CC=$CC
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834 #include <stdarg.h>
4835 #include <stdio.h>
4836 #include <sys/types.h>
4837 #include <sys/stat.h>
4838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4839 struct buf { int x; };
4840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4841 static char *e (p, i)
4842 char **p;
4843 int i;
4845 return p[i];
4847 static char *f (char * (*g) (char **, int), char **p, ...)
4849 char *s;
4850 va_list v;
4851 va_start (v,p);
4852 s = g (p, va_arg (v,int));
4853 va_end (v);
4854 return s;
4857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4858 function prototypes and stuff, but not '\xHH' hex character constants.
4859 These don't provoke an error unfortunately, instead are silently treated
4860 as 'x'. The following induces an error, until -std is added to get
4861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4862 array size at least. It's necessary to write '\x00'==0 to get something
4863 that's true only with -std. */
4864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4867 inside strings and character constants. */
4868 #define FOO(x) 'x'
4869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4871 int test (int i, double x);
4872 struct s1 {int (*f) (int a);};
4873 struct s2 {int (*f) (double a);};
4874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4875 int argc;
4876 char **argv;
4878 main ()
4880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4882 return 0;
4884 _ACEOF
4885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4888 CC="$ac_save_CC $ac_arg"
4889 if ac_fn_c_try_compile "$LINENO"; then :
4890 ac_cv_prog_cc_c89=$ac_arg
4892 rm -f core conftest.err conftest.$ac_objext
4893 test "x$ac_cv_prog_cc_c89" != "xno" && break
4894 done
4895 rm -f conftest.$ac_ext
4896 CC=$ac_save_CC
4899 # AC_CACHE_VAL
4900 case "x$ac_cv_prog_cc_c89" in
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4903 $as_echo "none needed" >&6; } ;;
4904 xno)
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4906 $as_echo "unsupported" >&6; } ;;
4908 CC="$CC $ac_cv_prog_cc_c89"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4911 esac
4912 if test "x$ac_cv_prog_cc_c89" != xno; then :
4916 ac_ext=c
4917 ac_cpp='$CPP $CPPFLAGS'
4918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926 if test -n "$ac_tool_prefix"; then
4927 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4928 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930 $as_echo_n "checking for $ac_word... " >&6; }
4931 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4932 $as_echo_n "(cached) " >&6
4933 else
4934 if test -n "$RANLIB"; then
4935 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4936 else
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
4942 for ac_exec_ext in '' $ac_executable_extensions; do
4943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 break 2
4948 done
4949 done
4950 IFS=$as_save_IFS
4954 RANLIB=$ac_cv_prog_RANLIB
4955 if test -n "$RANLIB"; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4957 $as_echo "$RANLIB" >&6; }
4958 else
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960 $as_echo "no" >&6; }
4965 if test -z "$ac_cv_prog_RANLIB"; then
4966 ac_ct_RANLIB=$RANLIB
4967 # Extract the first word of "ranlib", so it can be a program name with args.
4968 set dummy ranlib; ac_word=$2
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4970 $as_echo_n "checking for $ac_word... " >&6; }
4971 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 if test -n "$ac_ct_RANLIB"; then
4975 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4984 ac_cv_prog_ac_ct_RANLIB="ranlib"
4985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4988 done
4989 done
4990 IFS=$as_save_IFS
4994 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4995 if test -n "$ac_ct_RANLIB"; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4997 $as_echo "$ac_ct_RANLIB" >&6; }
4998 else
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5003 if test "x$ac_ct_RANLIB" = x; then
5004 RANLIB=":"
5005 else
5006 case $cross_compiling:$ac_tool_warned in
5007 yes:)
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5010 ac_tool_warned=yes ;;
5011 esac
5012 RANLIB=$ac_ct_RANLIB
5014 else
5015 RANLIB="$ac_cv_prog_RANLIB"
5019 for ac_prog in gawk mawk nawk awk
5021 # Extract the first word of "$ac_prog", so it can be a program name with args.
5022 set dummy $ac_prog; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if test "${ac_cv_prog_AWK+set}" = set; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 if test -n "$AWK"; then
5029 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5030 else
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_prog_AWK="$ac_prog"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5042 done
5043 done
5044 IFS=$as_save_IFS
5048 AWK=$ac_cv_prog_AWK
5049 if test -n "$AWK"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5051 $as_echo "$AWK" >&6; }
5052 else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5058 test -n "$AWK" && break
5059 done
5061 case "$AWK" in
5062 "") as_fn_error "can't build without awk" "$LINENO" 5 ;;
5063 esac
5065 case `pwd` in
5066 *\ * | *\ *)
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5068 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5069 esac
5073 macro_version='2.2.7a'
5074 macro_revision='1.3134'
5088 ltmain="$ac_aux_dir/ltmain.sh"
5090 # Backslashify metacharacters that are still active within
5091 # double-quoted strings.
5092 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5094 # Same as above, but do not quote variable references.
5095 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5097 # Sed substitution to delay expansion of an escaped shell variable in a
5098 # double_quote_subst'ed string.
5099 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5101 # Sed substitution to delay expansion of an escaped single quote.
5102 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5104 # Sed substitution to avoid accidental globbing in evaled expressions
5105 no_glob_subst='s/\*/\\\*/g'
5107 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5108 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5109 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5112 $as_echo_n "checking how to print strings... " >&6; }
5113 # Test print first, because it will be a builtin if present.
5114 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5115 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5116 ECHO='print -r --'
5117 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5118 ECHO='printf %s\n'
5119 else
5120 # Use this function as a fallback that always works.
5121 func_fallback_echo ()
5123 eval 'cat <<_LTECHO_EOF
5125 _LTECHO_EOF'
5127 ECHO='func_fallback_echo'
5130 # func_echo_all arg...
5131 # Invoke $ECHO with all args, space-separated.
5132 func_echo_all ()
5134 $ECHO ""
5137 case "$ECHO" in
5138 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5139 $as_echo "printf" >&6; } ;;
5140 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5141 $as_echo "print -r" >&6; } ;;
5142 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5143 $as_echo "cat" >&6; } ;;
5144 esac
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5160 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5161 if test "${ac_cv_path_SED+set}" = set; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5165 for ac_i in 1 2 3 4 5 6 7; do
5166 ac_script="$ac_script$as_nl$ac_script"
5167 done
5168 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5169 { ac_script=; unset ac_script;}
5170 if test -z "$SED"; then
5171 ac_path_SED_found=false
5172 # Loop through the user's path and test for each of PROGNAME-LIST
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_prog in sed gsed; do
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5181 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5182 # Check for GNU ac_path_SED and select it if it is found.
5183 # Check for GNU $ac_path_SED
5184 case `"$ac_path_SED" --version 2>&1` in
5185 *GNU*)
5186 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5188 ac_count=0
5189 $as_echo_n 0123456789 >"conftest.in"
5190 while :
5192 cat "conftest.in" "conftest.in" >"conftest.tmp"
5193 mv "conftest.tmp" "conftest.in"
5194 cp "conftest.in" "conftest.nl"
5195 $as_echo '' >> "conftest.nl"
5196 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5198 as_fn_arith $ac_count + 1 && ac_count=$as_val
5199 if test $ac_count -gt ${ac_path_SED_max-0}; then
5200 # Best one so far, save it but keep looking for a better one
5201 ac_cv_path_SED="$ac_path_SED"
5202 ac_path_SED_max=$ac_count
5204 # 10*(2^10) chars as input seems more than enough
5205 test $ac_count -gt 10 && break
5206 done
5207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5208 esac
5210 $ac_path_SED_found && break 3
5211 done
5212 done
5213 done
5214 IFS=$as_save_IFS
5215 if test -z "$ac_cv_path_SED"; then
5216 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5218 else
5219 ac_cv_path_SED=$SED
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5224 $as_echo "$ac_cv_path_SED" >&6; }
5225 SED="$ac_cv_path_SED"
5226 rm -f conftest.sed
5228 test -z "$SED" && SED=sed
5229 Xsed="$SED -e 1s/^X//"
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5242 $as_echo_n "checking for fgrep... " >&6; }
5243 if test "${ac_cv_path_FGREP+set}" = set; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5247 then ac_cv_path_FGREP="$GREP -F"
5248 else
5249 if test -z "$FGREP"; then
5250 ac_path_FGREP_found=false
5251 # Loop through the user's path and test for each of PROGNAME-LIST
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_prog in fgrep; do
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5260 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5261 # Check for GNU ac_path_FGREP and select it if it is found.
5262 # Check for GNU $ac_path_FGREP
5263 case `"$ac_path_FGREP" --version 2>&1` in
5264 *GNU*)
5265 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5267 ac_count=0
5268 $as_echo_n 0123456789 >"conftest.in"
5269 while :
5271 cat "conftest.in" "conftest.in" >"conftest.tmp"
5272 mv "conftest.tmp" "conftest.in"
5273 cp "conftest.in" "conftest.nl"
5274 $as_echo 'FGREP' >> "conftest.nl"
5275 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5277 as_fn_arith $ac_count + 1 && ac_count=$as_val
5278 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5279 # Best one so far, save it but keep looking for a better one
5280 ac_cv_path_FGREP="$ac_path_FGREP"
5281 ac_path_FGREP_max=$ac_count
5283 # 10*(2^10) chars as input seems more than enough
5284 test $ac_count -gt 10 && break
5285 done
5286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5287 esac
5289 $ac_path_FGREP_found && break 3
5290 done
5291 done
5292 done
5293 IFS=$as_save_IFS
5294 if test -z "$ac_cv_path_FGREP"; then
5295 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5297 else
5298 ac_cv_path_FGREP=$FGREP
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5304 $as_echo "$ac_cv_path_FGREP" >&6; }
5305 FGREP="$ac_cv_path_FGREP"
5308 test -z "$GREP" && GREP=grep
5328 # Check whether --with-gnu-ld was given.
5329 if test "${with_gnu_ld+set}" = set; then :
5330 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5331 else
5332 with_gnu_ld=no
5335 ac_prog=ld
5336 if test "$GCC" = yes; then
5337 # Check if gcc -print-prog-name=ld gives a path.
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5339 $as_echo_n "checking for ld used by $CC... " >&6; }
5340 case $host in
5341 *-*-mingw*)
5342 # gcc leaves a trailing carriage return which upsets mingw
5343 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5345 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5346 esac
5347 case $ac_prog in
5348 # Accept absolute paths.
5349 [\\/]* | ?:[\\/]*)
5350 re_direlt='/[^/][^/]*/\.\./'
5351 # Canonicalize the pathname of ld
5352 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5353 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5354 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5355 done
5356 test -z "$LD" && LD="$ac_prog"
5359 # If it fails, then pretend we aren't using GCC.
5360 ac_prog=ld
5363 # If it is relative, then search for the first ld in PATH.
5364 with_gnu_ld=unknown
5366 esac
5367 elif test "$with_gnu_ld" = yes; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5369 $as_echo_n "checking for GNU ld... " >&6; }
5370 else
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5372 $as_echo_n "checking for non-GNU ld... " >&6; }
5374 if test "${lt_cv_path_LD+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377 if test -z "$LD"; then
5378 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5379 for ac_dir in $PATH; do
5380 IFS="$lt_save_ifs"
5381 test -z "$ac_dir" && ac_dir=.
5382 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5383 lt_cv_path_LD="$ac_dir/$ac_prog"
5384 # Check to see if the program is GNU ld. I'd rather use --version,
5385 # but apparently some variants of GNU ld only accept -v.
5386 # Break only if it was the GNU/non-GNU ld that we prefer.
5387 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5388 *GNU* | *'with BFD'*)
5389 test "$with_gnu_ld" != no && break
5392 test "$with_gnu_ld" != yes && break
5394 esac
5396 done
5397 IFS="$lt_save_ifs"
5398 else
5399 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5403 LD="$lt_cv_path_LD"
5404 if test -n "$LD"; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5406 $as_echo "$LD" >&6; }
5407 else
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5411 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5413 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5414 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5418 case `$LD -v 2>&1 </dev/null` in
5419 *GNU* | *'with BFD'*)
5420 lt_cv_prog_gnu_ld=yes
5423 lt_cv_prog_gnu_ld=no
5425 esac
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5428 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5429 with_gnu_ld=$lt_cv_prog_gnu_ld
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5440 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5441 if test "${lt_cv_path_NM+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 if test -n "$NM"; then
5445 # Let the user override the test.
5446 lt_cv_path_NM="$NM"
5447 else
5448 lt_nm_to_check="${ac_tool_prefix}nm"
5449 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5450 lt_nm_to_check="$lt_nm_to_check nm"
5452 for lt_tmp_nm in $lt_nm_to_check; do
5453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5454 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5455 IFS="$lt_save_ifs"
5456 test -z "$ac_dir" && ac_dir=.
5457 tmp_nm="$ac_dir/$lt_tmp_nm"
5458 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5459 # Check to see if the nm accepts a BSD-compat flag.
5460 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5461 # nm: unknown option "B" ignored
5462 # Tru64's nm complains that /dev/null is an invalid object file
5463 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5464 */dev/null* | *'Invalid file or object type'*)
5465 lt_cv_path_NM="$tmp_nm -B"
5466 break
5469 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5470 */dev/null*)
5471 lt_cv_path_NM="$tmp_nm -p"
5472 break
5475 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5476 continue # so that we can try to find one that supports BSD flags
5478 esac
5480 esac
5482 done
5483 IFS="$lt_save_ifs"
5484 done
5485 : ${lt_cv_path_NM=no}
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5489 $as_echo "$lt_cv_path_NM" >&6; }
5490 if test "$lt_cv_path_NM" != "no"; then
5491 NM="$lt_cv_path_NM"
5492 else
5493 # Didn't find any BSD compatible name lister, look for dumpbin.
5494 if test -n "$DUMPBIN"; then :
5495 # Let the user override the test.
5496 else
5497 if test -n "$ac_tool_prefix"; then
5498 for ac_prog in dumpbin "link -dump"
5500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 if test -n "$DUMPBIN"; then
5508 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5521 done
5522 done
5523 IFS=$as_save_IFS
5527 DUMPBIN=$ac_cv_prog_DUMPBIN
5528 if test -n "$DUMPBIN"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5530 $as_echo "$DUMPBIN" >&6; }
5531 else
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5537 test -n "$DUMPBIN" && break
5538 done
5540 if test -z "$DUMPBIN"; then
5541 ac_ct_DUMPBIN=$DUMPBIN
5542 for ac_prog in dumpbin "link -dump"
5544 # Extract the first word of "$ac_prog", so it can be a program name with args.
5545 set dummy $ac_prog; ac_word=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 if test -n "$ac_ct_DUMPBIN"; then
5552 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5553 else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555 for as_dir in $PATH
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5561 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 break 2
5565 done
5566 done
5567 IFS=$as_save_IFS
5571 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5572 if test -n "$ac_ct_DUMPBIN"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5574 $as_echo "$ac_ct_DUMPBIN" >&6; }
5575 else
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5581 test -n "$ac_ct_DUMPBIN" && break
5582 done
5584 if test "x$ac_ct_DUMPBIN" = x; then
5585 DUMPBIN=":"
5586 else
5587 case $cross_compiling:$ac_tool_warned in
5588 yes:)
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5591 ac_tool_warned=yes ;;
5592 esac
5593 DUMPBIN=$ac_ct_DUMPBIN
5597 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5598 *COFF*)
5599 DUMPBIN="$DUMPBIN -symbols"
5602 DUMPBIN=:
5604 esac
5607 if test "$DUMPBIN" != ":"; then
5608 NM="$DUMPBIN"
5611 test -z "$NM" && NM=nm
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5619 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5620 if test "${lt_cv_nm_interface+set}" = set; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 lt_cv_nm_interface="BSD nm"
5624 echo "int some_variable = 0;" > conftest.$ac_ext
5625 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5626 (eval "$ac_compile" 2>conftest.err)
5627 cat conftest.err >&5
5628 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5629 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5630 cat conftest.err >&5
5631 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5632 cat conftest.out >&5
5633 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5634 lt_cv_nm_interface="MS dumpbin"
5636 rm -f conftest*
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5639 $as_echo "$lt_cv_nm_interface" >&6; }
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5642 $as_echo_n "checking whether ln -s works... " >&6; }
5643 LN_S=$as_ln_s
5644 if test "$LN_S" = "ln -s"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5646 $as_echo "yes" >&6; }
5647 else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5649 $as_echo "no, using $LN_S" >&6; }
5652 # find the maximum length of command line arguments
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5654 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5655 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5659 teststring="ABCD"
5661 case $build_os in
5662 msdosdjgpp*)
5663 # On DJGPP, this test can blow up pretty badly due to problems in libc
5664 # (any single argument exceeding 2000 bytes causes a buffer overrun
5665 # during glob expansion). Even if it were fixed, the result of this
5666 # check would be larger than it should be.
5667 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5670 gnu*)
5671 # Under GNU Hurd, this test is not required because there is
5672 # no limit to the length of command line arguments.
5673 # Libtool will interpret -1 as no limit whatsoever
5674 lt_cv_sys_max_cmd_len=-1;
5677 cygwin* | mingw* | cegcc*)
5678 # On Win9x/ME, this test blows up -- it succeeds, but takes
5679 # about 5 minutes as the teststring grows exponentially.
5680 # Worse, since 9x/ME are not pre-emptively multitasking,
5681 # you end up with a "frozen" computer, even though with patience
5682 # the test eventually succeeds (with a max line length of 256k).
5683 # Instead, let's just punt: use the minimum linelength reported by
5684 # all of the supported platforms: 8192 (on NT/2K/XP).
5685 lt_cv_sys_max_cmd_len=8192;
5688 mint*)
5689 # On MiNT this can take a long time and run out of memory.
5690 lt_cv_sys_max_cmd_len=8192;
5693 amigaos*)
5694 # On AmigaOS with pdksh, this test takes hours, literally.
5695 # So we just punt and use a minimum line length of 8192.
5696 lt_cv_sys_max_cmd_len=8192;
5699 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5700 # This has been around since 386BSD, at least. Likely further.
5701 if test -x /sbin/sysctl; then
5702 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5703 elif test -x /usr/sbin/sysctl; then
5704 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5705 else
5706 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5708 # And add a safety zone
5709 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5713 interix*)
5714 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5715 lt_cv_sys_max_cmd_len=196608
5718 osf*)
5719 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5720 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5721 # nice to cause kernel panics so lets avoid the loop below.
5722 # First set a reasonable default.
5723 lt_cv_sys_max_cmd_len=16384
5725 if test -x /sbin/sysconfig; then
5726 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5727 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5728 esac
5731 sco3.2v5*)
5732 lt_cv_sys_max_cmd_len=102400
5734 sysv5* | sco5v6* | sysv4.2uw2*)
5735 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5736 if test -n "$kargmax"; then
5737 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5738 else
5739 lt_cv_sys_max_cmd_len=32768
5743 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5744 if test -n "$lt_cv_sys_max_cmd_len"; then
5745 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5747 else
5748 # Make teststring a little bigger before we do anything with it.
5749 # a 1K string should be a reasonable start.
5750 for i in 1 2 3 4 5 6 7 8 ; do
5751 teststring=$teststring$teststring
5752 done
5753 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5754 # If test is not a shell built-in, we'll probably end up computing a
5755 # maximum length that is only half of the actual maximum length, but
5756 # we can't tell.
5757 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5758 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5759 test $i != 17 # 1/2 MB should be enough
5761 i=`expr $i + 1`
5762 teststring=$teststring$teststring
5763 done
5764 # Only check the string length outside the loop.
5765 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5766 teststring=
5767 # Add a significant safety factor because C++ compilers can tack on
5768 # massive amounts of additional arguments before passing them to the
5769 # linker. It appears as though 1/2 is a usable value.
5770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5773 esac
5777 if test -n $lt_cv_sys_max_cmd_len ; then
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5779 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5780 else
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5782 $as_echo "none" >&6; }
5784 max_cmd_len=$lt_cv_sys_max_cmd_len
5791 : ${CP="cp -f"}
5792 : ${MV="mv -f"}
5793 : ${RM="rm -f"}
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5796 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5797 # Try some XSI features
5798 xsi_shell=no
5799 ( _lt_dummy="a/b/c"
5800 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5801 = c,a/b,, \
5802 && eval 'test $(( 1 + 1 )) -eq 2 \
5803 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5804 && xsi_shell=yes
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5806 $as_echo "$xsi_shell" >&6; }
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5810 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5811 lt_shell_append=no
5812 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5813 >/dev/null 2>&1 \
5814 && lt_shell_append=yes
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5816 $as_echo "$lt_shell_append" >&6; }
5819 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5820 lt_unset=unset
5821 else
5822 lt_unset=false
5829 # test EBCDIC or ASCII
5830 case `echo X|tr X '\101'` in
5831 A) # ASCII based system
5832 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5833 lt_SP2NL='tr \040 \012'
5834 lt_NL2SP='tr \015\012 \040\040'
5836 *) # EBCDIC based system
5837 lt_SP2NL='tr \100 \n'
5838 lt_NL2SP='tr \r\n \100\100'
5840 esac
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5851 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5852 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5854 else
5855 lt_cv_ld_reload_flag='-r'
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5858 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5859 reload_flag=$lt_cv_ld_reload_flag
5860 case $reload_flag in
5861 "" | " "*) ;;
5862 *) reload_flag=" $reload_flag" ;;
5863 esac
5864 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5865 case $host_os in
5866 darwin*)
5867 if test "$GCC" = yes; then
5868 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5869 else
5870 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5873 esac
5883 if test -n "$ac_tool_prefix"; then
5884 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5885 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 $as_echo_n "checking for $ac_word... " >&6; }
5888 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5889 $as_echo_n "(cached) " >&6
5890 else
5891 if test -n "$OBJDUMP"; then
5892 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5893 else
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5897 IFS=$as_save_IFS
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5901 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903 break 2
5905 done
5906 done
5907 IFS=$as_save_IFS
5911 OBJDUMP=$ac_cv_prog_OBJDUMP
5912 if test -n "$OBJDUMP"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5914 $as_echo "$OBJDUMP" >&6; }
5915 else
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5922 if test -z "$ac_cv_prog_OBJDUMP"; then
5923 ac_ct_OBJDUMP=$OBJDUMP
5924 # Extract the first word of "objdump", so it can be a program name with args.
5925 set dummy objdump; ac_word=$2
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5927 $as_echo_n "checking for $ac_word... " >&6; }
5928 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 if test -n "$ac_ct_OBJDUMP"; then
5932 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5933 else
5934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5937 IFS=$as_save_IFS
5938 test -z "$as_dir" && as_dir=.
5939 for ac_exec_ext in '' $ac_executable_extensions; do
5940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5941 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943 break 2
5945 done
5946 done
5947 IFS=$as_save_IFS
5951 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5952 if test -n "$ac_ct_OBJDUMP"; then
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5954 $as_echo "$ac_ct_OBJDUMP" >&6; }
5955 else
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5957 $as_echo "no" >&6; }
5960 if test "x$ac_ct_OBJDUMP" = x; then
5961 OBJDUMP="false"
5962 else
5963 case $cross_compiling:$ac_tool_warned in
5964 yes:)
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5967 ac_tool_warned=yes ;;
5968 esac
5969 OBJDUMP=$ac_ct_OBJDUMP
5971 else
5972 OBJDUMP="$ac_cv_prog_OBJDUMP"
5975 test -z "$OBJDUMP" && OBJDUMP=objdump
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5986 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5987 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 lt_cv_file_magic_cmd='$MAGIC_CMD'
5991 lt_cv_file_magic_test_file=
5992 lt_cv_deplibs_check_method='unknown'
5993 # Need to set the preceding variable on all platforms that support
5994 # interlibrary dependencies.
5995 # 'none' -- dependencies not supported.
5996 # `unknown' -- same as none, but documents that we really don't know.
5997 # 'pass_all' -- all dependencies passed with no checks.
5998 # 'test_compile' -- check by making test program.
5999 # 'file_magic [[regex]]' -- check by looking for files in library path
6000 # which responds to the $file_magic_cmd with a given extended regex.
6001 # If you have `file' or equivalent on your system and you're not sure
6002 # whether `pass_all' will *always* work, you probably want this one.
6004 case $host_os in
6005 aix[4-9]*)
6006 lt_cv_deplibs_check_method=pass_all
6009 beos*)
6010 lt_cv_deplibs_check_method=pass_all
6013 bsdi[45]*)
6014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6015 lt_cv_file_magic_cmd='/usr/bin/file -L'
6016 lt_cv_file_magic_test_file=/shlib/libc.so
6019 cygwin*)
6020 # func_win32_libid is a shell function defined in ltmain.sh
6021 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6022 lt_cv_file_magic_cmd='func_win32_libid'
6025 mingw* | pw32*)
6026 # Base MSYS/MinGW do not provide the 'file' command needed by
6027 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6028 # unless we find 'file', for example because we are cross-compiling.
6029 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6030 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6031 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6032 lt_cv_file_magic_cmd='func_win32_libid'
6033 else
6034 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6035 lt_cv_file_magic_cmd='$OBJDUMP -f'
6039 cegcc*)
6040 # use the weaker test based on 'objdump'. See mingw*.
6041 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6042 lt_cv_file_magic_cmd='$OBJDUMP -f'
6045 darwin* | rhapsody*)
6046 lt_cv_deplibs_check_method=pass_all
6049 freebsd* | dragonfly*)
6050 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6051 case $host_cpu in
6052 i*86 )
6053 # Not sure whether the presence of OpenBSD here was a mistake.
6054 # Let's accept both of them until this is cleared up.
6055 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6056 lt_cv_file_magic_cmd=/usr/bin/file
6057 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6059 esac
6060 else
6061 lt_cv_deplibs_check_method=pass_all
6065 gnu*)
6066 lt_cv_deplibs_check_method=pass_all
6069 haiku*)
6070 lt_cv_deplibs_check_method=pass_all
6073 hpux10.20* | hpux11*)
6074 lt_cv_file_magic_cmd=/usr/bin/file
6075 case $host_cpu in
6076 ia64*)
6077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6078 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6080 hppa*64*)
6081 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]'
6082 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6085 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6086 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6088 esac
6091 interix[3-9]*)
6092 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6096 irix5* | irix6* | nonstopux*)
6097 case $LD in
6098 *-32|*"-32 ") libmagic=32-bit;;
6099 *-n32|*"-n32 ") libmagic=N32;;
6100 *-64|*"-64 ") libmagic=64-bit;;
6101 *) libmagic=never-match;;
6102 esac
6103 lt_cv_deplibs_check_method=pass_all
6106 # This must be Linux ELF.
6107 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6108 lt_cv_deplibs_check_method=pass_all
6111 netbsd*)
6112 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6114 else
6115 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6119 newos6*)
6120 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6121 lt_cv_file_magic_cmd=/usr/bin/file
6122 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6125 *nto* | *qnx*)
6126 lt_cv_deplibs_check_method=pass_all
6129 openbsd*)
6130 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6132 else
6133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6137 osf3* | osf4* | osf5*)
6138 lt_cv_deplibs_check_method=pass_all
6141 rdos*)
6142 lt_cv_deplibs_check_method=pass_all
6145 solaris*)
6146 lt_cv_deplibs_check_method=pass_all
6149 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6150 lt_cv_deplibs_check_method=pass_all
6153 sysv4 | sysv4.3*)
6154 case $host_vendor in
6155 motorola)
6156 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]'
6157 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6159 ncr)
6160 lt_cv_deplibs_check_method=pass_all
6162 sequent)
6163 lt_cv_file_magic_cmd='/bin/file'
6164 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6166 sni)
6167 lt_cv_file_magic_cmd='/bin/file'
6168 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6169 lt_cv_file_magic_test_file=/lib/libc.so
6171 siemens)
6172 lt_cv_deplibs_check_method=pass_all
6175 lt_cv_deplibs_check_method=pass_all
6177 esac
6180 tpf*)
6181 lt_cv_deplibs_check_method=pass_all
6183 esac
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6187 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6188 file_magic_cmd=$lt_cv_file_magic_cmd
6189 deplibs_check_method=$lt_cv_deplibs_check_method
6190 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6203 if test -n "$ac_tool_prefix"; then
6204 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6205 set dummy ${ac_tool_prefix}ar; ac_word=$2
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6207 $as_echo_n "checking for $ac_word... " >&6; }
6208 if test "${ac_cv_prog_AR+set}" = set; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 if test -n "$AR"; then
6212 ac_cv_prog_AR="$AR" # Let the user override the test.
6213 else
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 for as_dir in $PATH
6217 IFS=$as_save_IFS
6218 test -z "$as_dir" && as_dir=.
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6221 ac_cv_prog_AR="${ac_tool_prefix}ar"
6222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 break 2
6225 done
6226 done
6227 IFS=$as_save_IFS
6231 AR=$ac_cv_prog_AR
6232 if test -n "$AR"; then
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6234 $as_echo "$AR" >&6; }
6235 else
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 $as_echo "no" >&6; }
6242 if test -z "$ac_cv_prog_AR"; then
6243 ac_ct_AR=$AR
6244 # Extract the first word of "ar", so it can be a program name with args.
6245 set dummy ar; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6249 $as_echo_n "(cached) " >&6
6250 else
6251 if test -n "$ac_ct_AR"; then
6252 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6257 IFS=$as_save_IFS
6258 test -z "$as_dir" && as_dir=.
6259 for ac_exec_ext in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_prog_ac_ct_AR="ar"
6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263 break 2
6265 done
6266 done
6267 IFS=$as_save_IFS
6271 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6272 if test -n "$ac_ct_AR"; then
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6274 $as_echo "$ac_ct_AR" >&6; }
6275 else
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6280 if test "x$ac_ct_AR" = x; then
6281 AR="false"
6282 else
6283 case $cross_compiling:$ac_tool_warned in
6284 yes:)
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6287 ac_tool_warned=yes ;;
6288 esac
6289 AR=$ac_ct_AR
6291 else
6292 AR="$ac_cv_prog_AR"
6295 test -z "$AR" && AR=ar
6296 test -z "$AR_FLAGS" && AR_FLAGS=cru
6308 if test -n "$ac_tool_prefix"; then
6309 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6310 set dummy ${ac_tool_prefix}strip; ac_word=$2
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312 $as_echo_n "checking for $ac_word... " >&6; }
6313 if test "${ac_cv_prog_STRIP+set}" = set; then :
6314 $as_echo_n "(cached) " >&6
6315 else
6316 if test -n "$STRIP"; then
6317 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6318 else
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6322 IFS=$as_save_IFS
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6326 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 break 2
6330 done
6331 done
6332 IFS=$as_save_IFS
6336 STRIP=$ac_cv_prog_STRIP
6337 if test -n "$STRIP"; then
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6339 $as_echo "$STRIP" >&6; }
6340 else
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 $as_echo "no" >&6; }
6347 if test -z "$ac_cv_prog_STRIP"; then
6348 ac_ct_STRIP=$STRIP
6349 # Extract the first word of "strip", so it can be a program name with args.
6350 set dummy strip; ac_word=$2
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 if test -n "$ac_ct_STRIP"; then
6357 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_prog_ac_ct_STRIP="strip"
6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 break 2
6370 done
6371 done
6372 IFS=$as_save_IFS
6376 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6377 if test -n "$ac_ct_STRIP"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6379 $as_echo "$ac_ct_STRIP" >&6; }
6380 else
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 $as_echo "no" >&6; }
6385 if test "x$ac_ct_STRIP" = x; then
6386 STRIP=":"
6387 else
6388 case $cross_compiling:$ac_tool_warned in
6389 yes:)
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6392 ac_tool_warned=yes ;;
6393 esac
6394 STRIP=$ac_ct_STRIP
6396 else
6397 STRIP="$ac_cv_prog_STRIP"
6400 test -z "$STRIP" && STRIP=:
6407 if test -n "$ac_tool_prefix"; then
6408 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6409 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411 $as_echo_n "checking for $ac_word... " >&6; }
6412 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 if test -n "$RANLIB"; then
6416 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6417 else
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH
6421 IFS=$as_save_IFS
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6425 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 break 2
6429 done
6430 done
6431 IFS=$as_save_IFS
6435 RANLIB=$ac_cv_prog_RANLIB
6436 if test -n "$RANLIB"; then
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6438 $as_echo "$RANLIB" >&6; }
6439 else
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6446 if test -z "$ac_cv_prog_RANLIB"; then
6447 ac_ct_RANLIB=$RANLIB
6448 # Extract the first word of "ranlib", so it can be a program name with args.
6449 set dummy ranlib; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 if test -n "$ac_ct_RANLIB"; then
6456 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6457 else
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6461 IFS=$as_save_IFS
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6465 ac_cv_prog_ac_ct_RANLIB="ranlib"
6466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 break 2
6469 done
6470 done
6471 IFS=$as_save_IFS
6475 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6476 if test -n "$ac_ct_RANLIB"; then
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6478 $as_echo "$ac_ct_RANLIB" >&6; }
6479 else
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6484 if test "x$ac_ct_RANLIB" = x; then
6485 RANLIB=":"
6486 else
6487 case $cross_compiling:$ac_tool_warned in
6488 yes:)
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6491 ac_tool_warned=yes ;;
6492 esac
6493 RANLIB=$ac_ct_RANLIB
6495 else
6496 RANLIB="$ac_cv_prog_RANLIB"
6499 test -z "$RANLIB" && RANLIB=:
6506 # Determine commands to create old-style static archives.
6507 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6508 old_postinstall_cmds='chmod 644 $oldlib'
6509 old_postuninstall_cmds=
6511 if test -n "$RANLIB"; then
6512 case $host_os in
6513 openbsd*)
6514 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6517 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6519 esac
6520 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6523 case $host_os in
6524 darwin*)
6525 lock_old_archive_extraction=yes ;;
6527 lock_old_archive_extraction=no ;;
6528 esac
6568 # If no C compiler was specified, use CC.
6569 LTCC=${LTCC-"$CC"}
6571 # If no C compiler flags were specified, use CFLAGS.
6572 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6574 # Allow CC to be a program name with arguments.
6575 compiler=$CC
6578 # Check for command to grab the raw symbol name followed by C symbol from nm.
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6580 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6581 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6582 $as_echo_n "(cached) " >&6
6583 else
6585 # These are sane defaults that work on at least a few old systems.
6586 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6588 # Character class describing NM global symbol codes.
6589 symcode='[BCDEGRST]'
6591 # Regexp to match symbols that can be accessed directly from C.
6592 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6594 # Define system-specific variables.
6595 case $host_os in
6596 aix*)
6597 symcode='[BCDT]'
6599 cygwin* | mingw* | pw32* | cegcc*)
6600 symcode='[ABCDGISTW]'
6602 hpux*)
6603 if test "$host_cpu" = ia64; then
6604 symcode='[ABCDEGRST]'
6607 irix* | nonstopux*)
6608 symcode='[BCDEGRST]'
6610 osf*)
6611 symcode='[BCDEGQRST]'
6613 solaris*)
6614 symcode='[BDRT]'
6616 sco3.2v5*)
6617 symcode='[DT]'
6619 sysv4.2uw2*)
6620 symcode='[DT]'
6622 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6623 symcode='[ABDT]'
6625 sysv4)
6626 symcode='[DFNSTU]'
6628 esac
6630 # If we're using GNU nm, then use its standard symbol codes.
6631 case `$NM -V 2>&1` in
6632 *GNU* | *'with BFD'*)
6633 symcode='[ABCDGIRSTW]' ;;
6634 esac
6636 # Transform an extracted symbol line into a proper C declaration.
6637 # Some systems (esp. on ia64) link data and code symbols differently,
6638 # so use this general approach.
6639 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6641 # Transform an extracted symbol line into symbol name and symbol address
6642 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6643 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'"
6645 # Handle CRLF in mingw tool chain
6646 opt_cr=
6647 case $build_os in
6648 mingw*)
6649 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6651 esac
6653 # Try without a prefix underscore, then with it.
6654 for ac_symprfx in "" "_"; do
6656 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6657 symxfrm="\\1 $ac_symprfx\\2 \\2"
6659 # Write the raw and C identifiers.
6660 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6661 # Fake it for dumpbin and say T for any non-static function
6662 # and D for any global variable.
6663 # Also find C++ and __fastcall symbols from MSVC++,
6664 # which start with @ or ?.
6665 lt_cv_sys_global_symbol_pipe="$AWK '"\
6666 " {last_section=section; section=\$ 3};"\
6667 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6668 " \$ 0!~/External *\|/{next};"\
6669 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6670 " {if(hide[section]) next};"\
6671 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6672 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6673 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6674 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6675 " ' prfx=^$ac_symprfx"
6676 else
6677 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6680 # Check to see that the pipe works correctly.
6681 pipe_works=no
6683 rm -f conftest*
6684 cat > conftest.$ac_ext <<_LT_EOF
6685 #ifdef __cplusplus
6686 extern "C" {
6687 #endif
6688 char nm_test_var;
6689 void nm_test_func(void);
6690 void nm_test_func(void){}
6691 #ifdef __cplusplus
6693 #endif
6694 int main(){nm_test_var='a';nm_test_func();return(0);}
6695 _LT_EOF
6697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6698 (eval $ac_compile) 2>&5
6699 ac_status=$?
6700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6701 test $ac_status = 0; }; then
6702 # Now try to grab the symbols.
6703 nlist=conftest.nm
6704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6705 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6706 ac_status=$?
6707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6708 test $ac_status = 0; } && test -s "$nlist"; then
6709 # Try sorting and uniquifying the output.
6710 if sort "$nlist" | uniq > "$nlist"T; then
6711 mv -f "$nlist"T "$nlist"
6712 else
6713 rm -f "$nlist"T
6716 # Make sure that we snagged all the symbols we need.
6717 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6718 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6719 cat <<_LT_EOF > conftest.$ac_ext
6720 #ifdef __cplusplus
6721 extern "C" {
6722 #endif
6724 _LT_EOF
6725 # Now generate the symbol file.
6726 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6728 cat <<_LT_EOF >> conftest.$ac_ext
6730 /* The mapping between symbol names and symbols. */
6731 const struct {
6732 const char *name;
6733 void *address;
6735 lt__PROGRAM__LTX_preloaded_symbols[] =
6737 { "@PROGRAM@", (void *) 0 },
6738 _LT_EOF
6739 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6740 cat <<\_LT_EOF >> conftest.$ac_ext
6741 {0, (void *) 0}
6744 /* This works around a problem in FreeBSD linker */
6745 #ifdef FREEBSD_WORKAROUND
6746 static const void *lt_preloaded_setup() {
6747 return lt__PROGRAM__LTX_preloaded_symbols;
6749 #endif
6751 #ifdef __cplusplus
6753 #endif
6754 _LT_EOF
6755 # Now try linking the two files.
6756 mv conftest.$ac_objext conftstm.$ac_objext
6757 lt_save_LIBS="$LIBS"
6758 lt_save_CFLAGS="$CFLAGS"
6759 LIBS="conftstm.$ac_objext"
6760 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6762 (eval $ac_link) 2>&5
6763 ac_status=$?
6764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6765 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6766 pipe_works=yes
6768 LIBS="$lt_save_LIBS"
6769 CFLAGS="$lt_save_CFLAGS"
6770 else
6771 echo "cannot find nm_test_func in $nlist" >&5
6773 else
6774 echo "cannot find nm_test_var in $nlist" >&5
6776 else
6777 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6779 else
6780 echo "$progname: failed program was:" >&5
6781 cat conftest.$ac_ext >&5
6783 rm -rf conftest* conftst*
6785 # Do not use the global_symbol_pipe unless it works.
6786 if test "$pipe_works" = yes; then
6787 break
6788 else
6789 lt_cv_sys_global_symbol_pipe=
6791 done
6795 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6796 lt_cv_sys_global_symbol_to_cdecl=
6798 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6800 $as_echo "failed" >&6; }
6801 else
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6803 $as_echo "ok" >&6; }
6827 # Check whether --enable-libtool-lock was given.
6828 if test "${enable_libtool_lock+set}" = set; then :
6829 enableval=$enable_libtool_lock;
6832 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6834 # Some flags need to be propagated to the compiler or linker for good
6835 # libtool support.
6836 case $host in
6837 ia64-*-hpux*)
6838 # Find out which ABI we are using.
6839 echo 'int i;' > conftest.$ac_ext
6840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6841 (eval $ac_compile) 2>&5
6842 ac_status=$?
6843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6844 test $ac_status = 0; }; then
6845 case `/usr/bin/file conftest.$ac_objext` in
6846 *ELF-32*)
6847 HPUX_IA64_MODE="32"
6849 *ELF-64*)
6850 HPUX_IA64_MODE="64"
6852 esac
6854 rm -rf conftest*
6856 *-*-irix6*)
6857 # Find out which ABI we are using.
6858 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6860 (eval $ac_compile) 2>&5
6861 ac_status=$?
6862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6863 test $ac_status = 0; }; then
6864 if test "$lt_cv_prog_gnu_ld" = yes; then
6865 case `/usr/bin/file conftest.$ac_objext` in
6866 *32-bit*)
6867 LD="${LD-ld} -melf32bsmip"
6869 *N32*)
6870 LD="${LD-ld} -melf32bmipn32"
6872 *64-bit*)
6873 LD="${LD-ld} -melf64bmip"
6875 esac
6876 else
6877 case `/usr/bin/file conftest.$ac_objext` in
6878 *32-bit*)
6879 LD="${LD-ld} -32"
6881 *N32*)
6882 LD="${LD-ld} -n32"
6884 *64-bit*)
6885 LD="${LD-ld} -64"
6887 esac
6890 rm -rf conftest*
6893 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6894 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6895 # Find out which ABI we are using.
6896 echo 'int i;' > conftest.$ac_ext
6897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6898 (eval $ac_compile) 2>&5
6899 ac_status=$?
6900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6901 test $ac_status = 0; }; then
6902 case `/usr/bin/file conftest.o` in
6903 *32-bit*)
6904 case $host in
6905 x86_64-*kfreebsd*-gnu)
6906 LD="${LD-ld} -m elf_i386_fbsd"
6908 x86_64-*linux*)
6909 case `/usr/bin/file conftest.o` in
6910 *x86-64*)
6911 LD="${LD-ld} -m elf32_x86_64"
6914 LD="${LD-ld} -m elf_i386"
6916 esac
6918 powerpc64le-*linux*)
6919 LD="${LD-ld} -m elf32lppclinux"
6921 powerpc64-*linux*)
6922 LD="${LD-ld} -m elf32ppclinux"
6924 s390x-*linux*)
6925 LD="${LD-ld} -m elf_s390"
6927 sparc64-*linux*)
6928 LD="${LD-ld} -m elf32_sparc"
6930 esac
6932 *64-bit*)
6933 case $host in
6934 x86_64-*kfreebsd*-gnu)
6935 LD="${LD-ld} -m elf_x86_64_fbsd"
6937 x86_64-*linux*)
6938 LD="${LD-ld} -m elf_x86_64"
6940 powerpcle-*linux*)
6941 LD="${LD-ld} -m elf64lppc"
6943 powerpc-*linux*)
6944 LD="${LD-ld} -m elf64ppc"
6946 s390*-*linux*|s390*-*tpf*)
6947 LD="${LD-ld} -m elf64_s390"
6949 sparc*-*linux*)
6950 LD="${LD-ld} -m elf64_sparc"
6952 esac
6954 esac
6956 rm -rf conftest*
6959 *-*-sco3.2v5*)
6960 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6961 SAVE_CFLAGS="$CFLAGS"
6962 CFLAGS="$CFLAGS -belf"
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6964 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6965 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 ac_ext=c
6969 ac_cpp='$CPP $CPPFLAGS'
6970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6978 main ()
6982 return 0;
6984 _ACEOF
6985 if ac_fn_c_try_link "$LINENO"; then :
6986 lt_cv_cc_needs_belf=yes
6987 else
6988 lt_cv_cc_needs_belf=no
6990 rm -f core conftest.err conftest.$ac_objext \
6991 conftest$ac_exeext conftest.$ac_ext
6992 ac_ext=c
6993 ac_cpp='$CPP $CPPFLAGS'
6994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7000 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7001 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7002 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7003 CFLAGS="$SAVE_CFLAGS"
7006 sparc*-*solaris*)
7007 # Find out which ABI we are using.
7008 echo 'int i;' > conftest.$ac_ext
7009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7010 (eval $ac_compile) 2>&5
7011 ac_status=$?
7012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7013 test $ac_status = 0; }; then
7014 case `/usr/bin/file conftest.o` in
7015 *64-bit*)
7016 case $lt_cv_prog_gnu_ld in
7017 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7019 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7020 LD="${LD-ld} -64"
7023 esac
7025 esac
7027 rm -rf conftest*
7029 esac
7031 need_locks="$enable_libtool_lock"
7034 case $host_os in
7035 rhapsody* | darwin*)
7036 if test -n "$ac_tool_prefix"; then
7037 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7038 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 $as_echo_n "checking for $ac_word... " >&6; }
7041 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7042 $as_echo_n "(cached) " >&6
7043 else
7044 if test -n "$DSYMUTIL"; then
7045 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7046 else
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 for as_dir in $PATH
7050 IFS=$as_save_IFS
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7054 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 break 2
7058 done
7059 done
7060 IFS=$as_save_IFS
7064 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7065 if test -n "$DSYMUTIL"; then
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7067 $as_echo "$DSYMUTIL" >&6; }
7068 else
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070 $as_echo "no" >&6; }
7075 if test -z "$ac_cv_prog_DSYMUTIL"; then
7076 ac_ct_DSYMUTIL=$DSYMUTIL
7077 # Extract the first word of "dsymutil", so it can be a program name with args.
7078 set dummy dsymutil; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 if test -n "$ac_ct_DSYMUTIL"; then
7085 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7094 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 break 2
7098 done
7099 done
7100 IFS=$as_save_IFS
7104 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7105 if test -n "$ac_ct_DSYMUTIL"; then
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7107 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7108 else
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7113 if test "x$ac_ct_DSYMUTIL" = x; then
7114 DSYMUTIL=":"
7115 else
7116 case $cross_compiling:$ac_tool_warned in
7117 yes:)
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7120 ac_tool_warned=yes ;;
7121 esac
7122 DSYMUTIL=$ac_ct_DSYMUTIL
7124 else
7125 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7128 if test -n "$ac_tool_prefix"; then
7129 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7130 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7134 $as_echo_n "(cached) " >&6
7135 else
7136 if test -n "$NMEDIT"; then
7137 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7142 IFS=$as_save_IFS
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7146 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 break 2
7150 done
7151 done
7152 IFS=$as_save_IFS
7156 NMEDIT=$ac_cv_prog_NMEDIT
7157 if test -n "$NMEDIT"; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7159 $as_echo "$NMEDIT" >&6; }
7160 else
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7167 if test -z "$ac_cv_prog_NMEDIT"; then
7168 ac_ct_NMEDIT=$NMEDIT
7169 # Extract the first word of "nmedit", so it can be a program name with args.
7170 set dummy nmedit; ac_word=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176 if test -n "$ac_ct_NMEDIT"; then
7177 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7178 else
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7186 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7190 done
7191 done
7192 IFS=$as_save_IFS
7196 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7197 if test -n "$ac_ct_NMEDIT"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7199 $as_echo "$ac_ct_NMEDIT" >&6; }
7200 else
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7205 if test "x$ac_ct_NMEDIT" = x; then
7206 NMEDIT=":"
7207 else
7208 case $cross_compiling:$ac_tool_warned in
7209 yes:)
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7212 ac_tool_warned=yes ;;
7213 esac
7214 NMEDIT=$ac_ct_NMEDIT
7216 else
7217 NMEDIT="$ac_cv_prog_NMEDIT"
7220 if test -n "$ac_tool_prefix"; then
7221 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7222 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224 $as_echo_n "checking for $ac_word... " >&6; }
7225 if test "${ac_cv_prog_LIPO+set}" = set; then :
7226 $as_echo_n "(cached) " >&6
7227 else
7228 if test -n "$LIPO"; then
7229 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7230 else
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7234 IFS=$as_save_IFS
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7238 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 break 2
7242 done
7243 done
7244 IFS=$as_save_IFS
7248 LIPO=$ac_cv_prog_LIPO
7249 if test -n "$LIPO"; then
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7251 $as_echo "$LIPO" >&6; }
7252 else
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7259 if test -z "$ac_cv_prog_LIPO"; then
7260 ac_ct_LIPO=$LIPO
7261 # Extract the first word of "lipo", so it can be a program name with args.
7262 set dummy lipo; ac_word=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 $as_echo_n "checking for $ac_word... " >&6; }
7265 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7266 $as_echo_n "(cached) " >&6
7267 else
7268 if test -n "$ac_ct_LIPO"; then
7269 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7270 else
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7274 IFS=$as_save_IFS
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7278 ac_cv_prog_ac_ct_LIPO="lipo"
7279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 break 2
7282 done
7283 done
7284 IFS=$as_save_IFS
7288 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7289 if test -n "$ac_ct_LIPO"; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7291 $as_echo "$ac_ct_LIPO" >&6; }
7292 else
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7297 if test "x$ac_ct_LIPO" = x; then
7298 LIPO=":"
7299 else
7300 case $cross_compiling:$ac_tool_warned in
7301 yes:)
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7304 ac_tool_warned=yes ;;
7305 esac
7306 LIPO=$ac_ct_LIPO
7308 else
7309 LIPO="$ac_cv_prog_LIPO"
7312 if test -n "$ac_tool_prefix"; then
7313 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7314 set dummy ${ac_tool_prefix}otool; ac_word=$2
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7316 $as_echo_n "checking for $ac_word... " >&6; }
7317 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 if test -n "$OTOOL"; then
7321 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7322 else
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 for as_dir in $PATH
7326 IFS=$as_save_IFS
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7330 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 break 2
7334 done
7335 done
7336 IFS=$as_save_IFS
7340 OTOOL=$ac_cv_prog_OTOOL
7341 if test -n "$OTOOL"; then
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7343 $as_echo "$OTOOL" >&6; }
7344 else
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7346 $as_echo "no" >&6; }
7351 if test -z "$ac_cv_prog_OTOOL"; then
7352 ac_ct_OTOOL=$OTOOL
7353 # Extract the first word of "otool", so it can be a program name with args.
7354 set dummy otool; ac_word=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7358 $as_echo_n "(cached) " >&6
7359 else
7360 if test -n "$ac_ct_OTOOL"; then
7361 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7362 else
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7370 ac_cv_prog_ac_ct_OTOOL="otool"
7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7374 done
7375 done
7376 IFS=$as_save_IFS
7380 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7381 if test -n "$ac_ct_OTOOL"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7383 $as_echo "$ac_ct_OTOOL" >&6; }
7384 else
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7389 if test "x$ac_ct_OTOOL" = x; then
7390 OTOOL=":"
7391 else
7392 case $cross_compiling:$ac_tool_warned in
7393 yes:)
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7396 ac_tool_warned=yes ;;
7397 esac
7398 OTOOL=$ac_ct_OTOOL
7400 else
7401 OTOOL="$ac_cv_prog_OTOOL"
7404 if test -n "$ac_tool_prefix"; then
7405 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7406 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408 $as_echo_n "checking for $ac_word... " >&6; }
7409 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7410 $as_echo_n "(cached) " >&6
7411 else
7412 if test -n "$OTOOL64"; then
7413 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7414 else
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 for as_dir in $PATH
7418 IFS=$as_save_IFS
7419 test -z "$as_dir" && as_dir=.
7420 for ac_exec_ext in '' $ac_executable_extensions; do
7421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7422 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7424 break 2
7426 done
7427 done
7428 IFS=$as_save_IFS
7432 OTOOL64=$ac_cv_prog_OTOOL64
7433 if test -n "$OTOOL64"; then
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7435 $as_echo "$OTOOL64" >&6; }
7436 else
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }
7443 if test -z "$ac_cv_prog_OTOOL64"; then
7444 ac_ct_OTOOL64=$OTOOL64
7445 # Extract the first word of "otool64", so it can be a program name with args.
7446 set dummy otool64; ac_word=$2
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 if test -n "$ac_ct_OTOOL64"; then
7453 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7454 else
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 for as_dir in $PATH
7458 IFS=$as_save_IFS
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7462 ac_cv_prog_ac_ct_OTOOL64="otool64"
7463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 break 2
7466 done
7467 done
7468 IFS=$as_save_IFS
7472 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7473 if test -n "$ac_ct_OTOOL64"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7475 $as_echo "$ac_ct_OTOOL64" >&6; }
7476 else
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7481 if test "x$ac_ct_OTOOL64" = x; then
7482 OTOOL64=":"
7483 else
7484 case $cross_compiling:$ac_tool_warned in
7485 yes:)
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7488 ac_tool_warned=yes ;;
7489 esac
7490 OTOOL64=$ac_ct_OTOOL64
7492 else
7493 OTOOL64="$ac_cv_prog_OTOOL64"
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7523 $as_echo_n "checking for -single_module linker flag... " >&6; }
7524 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7525 $as_echo_n "(cached) " >&6
7526 else
7527 lt_cv_apple_cc_single_mod=no
7528 if test -z "${LT_MULTI_MODULE}"; then
7529 # By default we will add the -single_module flag. You can override
7530 # by either setting the environment variable LT_MULTI_MODULE
7531 # non-empty at configure time, or by adding -multi_module to the
7532 # link flags.
7533 rm -rf libconftest.dylib*
7534 echo "int foo(void){return 1;}" > conftest.c
7535 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7536 -dynamiclib -Wl,-single_module conftest.c" >&5
7537 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7538 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7539 _lt_result=$?
7540 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7541 lt_cv_apple_cc_single_mod=yes
7542 else
7543 cat conftest.err >&5
7545 rm -rf libconftest.dylib*
7546 rm -f conftest.*
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7550 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7552 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7553 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7554 $as_echo_n "(cached) " >&6
7555 else
7556 lt_cv_ld_exported_symbols_list=no
7557 save_LDFLAGS=$LDFLAGS
7558 echo "_main" > conftest.sym
7559 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7561 /* end confdefs.h. */
7564 main ()
7568 return 0;
7570 _ACEOF
7571 if ac_fn_c_try_link "$LINENO"; then :
7572 lt_cv_ld_exported_symbols_list=yes
7573 else
7574 lt_cv_ld_exported_symbols_list=no
7576 rm -f core conftest.err conftest.$ac_objext \
7577 conftest$ac_exeext conftest.$ac_ext
7578 LDFLAGS="$save_LDFLAGS"
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7582 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7584 $as_echo_n "checking for -force_load linker flag... " >&6; }
7585 if test "${lt_cv_ld_force_load+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 lt_cv_ld_force_load=no
7589 cat > conftest.c << _LT_EOF
7590 int forced_loaded() { return 2;}
7591 _LT_EOF
7592 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7593 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7594 echo "$AR cru libconftest.a conftest.o" >&5
7595 $AR cru libconftest.a conftest.o 2>&5
7596 cat > conftest.c << _LT_EOF
7597 int main() { return 0;}
7598 _LT_EOF
7599 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7600 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7601 _lt_result=$?
7602 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7603 lt_cv_ld_force_load=yes
7604 else
7605 cat conftest.err >&5
7607 rm -f conftest.err libconftest.a conftest conftest.c
7608 rm -rf conftest.dSYM
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7612 $as_echo "$lt_cv_ld_force_load" >&6; }
7613 case $host_os in
7614 rhapsody* | darwin1.[012])
7615 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7616 darwin1.*)
7617 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7618 darwin*) # darwin 5.x on
7619 # if running on 10.5 or later, the deployment target defaults
7620 # to the OS version, if on x86, and 10.4, the deployment
7621 # target defaults to 10.4. Don't you love it?
7622 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7623 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7624 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7625 10.[012][,.]*)
7626 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7627 10.*)
7628 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7629 esac
7631 esac
7632 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7633 _lt_dar_single_mod='$single_module'
7635 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7636 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7637 else
7638 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7640 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7641 _lt_dsymutil='~$DSYMUTIL $lib || :'
7642 else
7643 _lt_dsymutil=
7646 esac
7648 for ac_header in dlfcn.h
7649 do :
7650 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7652 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7653 cat >>confdefs.h <<_ACEOF
7654 #define HAVE_DLFCN_H 1
7655 _ACEOF
7659 done
7665 # Set options
7669 enable_dlopen=no
7672 enable_win32_dll=no
7675 # Check whether --enable-shared was given.
7676 if test "${enable_shared+set}" = set; then :
7677 enableval=$enable_shared; p=${PACKAGE-default}
7678 case $enableval in
7679 yes) enable_shared=yes ;;
7680 no) enable_shared=no ;;
7682 enable_shared=no
7683 # Look at the argument we got. We use all the common list separators.
7684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7685 for pkg in $enableval; do
7686 IFS="$lt_save_ifs"
7687 if test "X$pkg" = "X$p"; then
7688 enable_shared=yes
7690 done
7691 IFS="$lt_save_ifs"
7693 esac
7694 else
7695 enable_shared=yes
7706 # Check whether --enable-static was given.
7707 if test "${enable_static+set}" = set; then :
7708 enableval=$enable_static; p=${PACKAGE-default}
7709 case $enableval in
7710 yes) enable_static=yes ;;
7711 no) enable_static=no ;;
7713 enable_static=no
7714 # Look at the argument we got. We use all the common list separators.
7715 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7716 for pkg in $enableval; do
7717 IFS="$lt_save_ifs"
7718 if test "X$pkg" = "X$p"; then
7719 enable_static=yes
7721 done
7722 IFS="$lt_save_ifs"
7724 esac
7725 else
7726 enable_static=yes
7738 # Check whether --with-pic was given.
7739 if test "${with_pic+set}" = set; then :
7740 withval=$with_pic; pic_mode="$withval"
7741 else
7742 pic_mode=default
7746 test -z "$pic_mode" && pic_mode=default
7754 # Check whether --enable-fast-install was given.
7755 if test "${enable_fast_install+set}" = set; then :
7756 enableval=$enable_fast_install; p=${PACKAGE-default}
7757 case $enableval in
7758 yes) enable_fast_install=yes ;;
7759 no) enable_fast_install=no ;;
7761 enable_fast_install=no
7762 # Look at the argument we got. We use all the common list separators.
7763 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7764 for pkg in $enableval; do
7765 IFS="$lt_save_ifs"
7766 if test "X$pkg" = "X$p"; then
7767 enable_fast_install=yes
7769 done
7770 IFS="$lt_save_ifs"
7772 esac
7773 else
7774 enable_fast_install=yes
7787 # This can be used to rebuild libtool when needed
7788 LIBTOOL_DEPS="$ltmain"
7790 # Always use our own libtool.
7791 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7818 test -z "$LN_S" && LN_S="ln -s"
7833 if test -n "${ZSH_VERSION+set}" ; then
7834 setopt NO_GLOB_SUBST
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7838 $as_echo_n "checking for objdir... " >&6; }
7839 if test "${lt_cv_objdir+set}" = set; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 rm -f .libs 2>/dev/null
7843 mkdir .libs 2>/dev/null
7844 if test -d .libs; then
7845 lt_cv_objdir=.libs
7846 else
7847 # MS-DOS does not allow filenames that begin with a dot.
7848 lt_cv_objdir=_libs
7850 rmdir .libs 2>/dev/null
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7853 $as_echo "$lt_cv_objdir" >&6; }
7854 objdir=$lt_cv_objdir
7860 cat >>confdefs.h <<_ACEOF
7861 #define LT_OBJDIR "$lt_cv_objdir/"
7862 _ACEOF
7867 case $host_os in
7868 aix3*)
7869 # AIX sometimes has problems with the GCC collect2 program. For some
7870 # reason, if we set the COLLECT_NAMES environment variable, the problems
7871 # vanish in a puff of smoke.
7872 if test "X${COLLECT_NAMES+set}" != Xset; then
7873 COLLECT_NAMES=
7874 export COLLECT_NAMES
7877 esac
7879 # Global variables:
7880 ofile=libtool
7881 can_build_shared=yes
7883 # All known linkers require a `.a' archive for static linking (except MSVC,
7884 # which needs '.lib').
7885 libext=a
7887 with_gnu_ld="$lt_cv_prog_gnu_ld"
7889 old_CC="$CC"
7890 old_CFLAGS="$CFLAGS"
7892 # Set sane defaults for various variables
7893 test -z "$CC" && CC=cc
7894 test -z "$LTCC" && LTCC=$CC
7895 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7896 test -z "$LD" && LD=ld
7897 test -z "$ac_objext" && ac_objext=o
7899 for cc_temp in $compiler""; do
7900 case $cc_temp in
7901 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7902 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7903 \-*) ;;
7904 *) break;;
7905 esac
7906 done
7907 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7910 # Only perform the check for file, if the check method requires it
7911 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7912 case $deplibs_check_method in
7913 file_magic*)
7914 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7916 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7917 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7918 $as_echo_n "(cached) " >&6
7919 else
7920 case $MAGIC_CMD in
7921 [\\/*] | ?:[\\/]*)
7922 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7925 lt_save_MAGIC_CMD="$MAGIC_CMD"
7926 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7927 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7928 for ac_dir in $ac_dummy; do
7929 IFS="$lt_save_ifs"
7930 test -z "$ac_dir" && ac_dir=.
7931 if test -f $ac_dir/${ac_tool_prefix}file; then
7932 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7933 if test -n "$file_magic_test_file"; then
7934 case $deplibs_check_method in
7935 "file_magic "*)
7936 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7937 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7938 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7939 $EGREP "$file_magic_regex" > /dev/null; then
7941 else
7942 cat <<_LT_EOF 1>&2
7944 *** Warning: the command libtool uses to detect shared libraries,
7945 *** $file_magic_cmd, produces output that libtool cannot recognize.
7946 *** The result is that libtool may fail to recognize shared libraries
7947 *** as such. This will affect the creation of libtool libraries that
7948 *** depend on shared libraries, but programs linked with such libtool
7949 *** libraries will work regardless of this problem. Nevertheless, you
7950 *** may want to report the problem to your system manager and/or to
7951 *** bug-libtool@gnu.org
7953 _LT_EOF
7954 fi ;;
7955 esac
7957 break
7959 done
7960 IFS="$lt_save_ifs"
7961 MAGIC_CMD="$lt_save_MAGIC_CMD"
7963 esac
7966 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7967 if test -n "$MAGIC_CMD"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7969 $as_echo "$MAGIC_CMD" >&6; }
7970 else
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7972 $as_echo "no" >&6; }
7979 if test -z "$lt_cv_path_MAGIC_CMD"; then
7980 if test -n "$ac_tool_prefix"; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7982 $as_echo_n "checking for file... " >&6; }
7983 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
7985 else
7986 case $MAGIC_CMD in
7987 [\\/*] | ?:[\\/]*)
7988 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7991 lt_save_MAGIC_CMD="$MAGIC_CMD"
7992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7993 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7994 for ac_dir in $ac_dummy; do
7995 IFS="$lt_save_ifs"
7996 test -z "$ac_dir" && ac_dir=.
7997 if test -f $ac_dir/file; then
7998 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7999 if test -n "$file_magic_test_file"; then
8000 case $deplibs_check_method in
8001 "file_magic "*)
8002 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8003 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8004 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8005 $EGREP "$file_magic_regex" > /dev/null; then
8007 else
8008 cat <<_LT_EOF 1>&2
8010 *** Warning: the command libtool uses to detect shared libraries,
8011 *** $file_magic_cmd, produces output that libtool cannot recognize.
8012 *** The result is that libtool may fail to recognize shared libraries
8013 *** as such. This will affect the creation of libtool libraries that
8014 *** depend on shared libraries, but programs linked with such libtool
8015 *** libraries will work regardless of this problem. Nevertheless, you
8016 *** may want to report the problem to your system manager and/or to
8017 *** bug-libtool@gnu.org
8019 _LT_EOF
8020 fi ;;
8021 esac
8023 break
8025 done
8026 IFS="$lt_save_ifs"
8027 MAGIC_CMD="$lt_save_MAGIC_CMD"
8029 esac
8032 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8033 if test -n "$MAGIC_CMD"; then
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8035 $as_echo "$MAGIC_CMD" >&6; }
8036 else
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8038 $as_echo "no" >&6; }
8042 else
8043 MAGIC_CMD=:
8049 esac
8051 # Use C for the default configuration in the libtool script
8053 lt_save_CC="$CC"
8054 ac_ext=c
8055 ac_cpp='$CPP $CPPFLAGS'
8056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8061 # Source file extension for C test sources.
8062 ac_ext=c
8064 # Object file extension for compiled C test sources.
8065 objext=o
8066 objext=$objext
8068 # Code to be used in simple compile tests
8069 lt_simple_compile_test_code="int some_variable = 0;"
8071 # Code to be used in simple link tests
8072 lt_simple_link_test_code='int main(){return(0);}'
8080 # If no C compiler was specified, use CC.
8081 LTCC=${LTCC-"$CC"}
8083 # If no C compiler flags were specified, use CFLAGS.
8084 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8086 # Allow CC to be a program name with arguments.
8087 compiler=$CC
8089 # Save the default compiler, since it gets overwritten when the other
8090 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8091 compiler_DEFAULT=$CC
8093 # save warnings/boilerplate of simple test code
8094 ac_outfile=conftest.$ac_objext
8095 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8096 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8097 _lt_compiler_boilerplate=`cat conftest.err`
8098 $RM conftest*
8100 ac_outfile=conftest.$ac_objext
8101 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8102 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8103 _lt_linker_boilerplate=`cat conftest.err`
8104 $RM -r conftest*
8107 ## CAVEAT EMPTOR:
8108 ## There is no encapsulation within the following macros, do not change
8109 ## the running order or otherwise move them around unless you know exactly
8110 ## what you are doing...
8111 if test -n "$compiler"; then
8113 lt_prog_compiler_no_builtin_flag=
8115 if test "$GCC" = yes; then
8116 case $cc_basename in
8117 nvcc*)
8118 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8120 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8121 esac
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8124 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8125 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8126 $as_echo_n "(cached) " >&6
8127 else
8128 lt_cv_prog_compiler_rtti_exceptions=no
8129 ac_outfile=conftest.$ac_objext
8130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8131 lt_compiler_flag="-fno-rtti -fno-exceptions"
8132 # Insert the option either (1) after the last *FLAGS variable, or
8133 # (2) before a word containing "conftest.", or (3) at the end.
8134 # Note that $ac_compile itself does not contain backslashes and begins
8135 # with a dollar sign (not a hyphen), so the echo should work correctly.
8136 # The option is referenced via a variable to avoid confusing sed.
8137 lt_compile=`echo "$ac_compile" | $SED \
8138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8140 -e 's:$: $lt_compiler_flag:'`
8141 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8142 (eval "$lt_compile" 2>conftest.err)
8143 ac_status=$?
8144 cat conftest.err >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 if (exit $ac_status) && test -s "$ac_outfile"; then
8147 # The compiler can only warn and ignore the option if not recognized
8148 # So say no if there are warnings other than the usual output.
8149 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8151 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8152 lt_cv_prog_compiler_rtti_exceptions=yes
8155 $RM conftest*
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8159 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8161 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8162 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8163 else
8174 lt_prog_compiler_wl=
8175 lt_prog_compiler_pic=
8176 lt_prog_compiler_static=
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8179 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8181 if test "$GCC" = yes; then
8182 lt_prog_compiler_wl='-Wl,'
8183 lt_prog_compiler_static='-static'
8185 case $host_os in
8186 aix*)
8187 # All AIX code is PIC.
8188 if test "$host_cpu" = ia64; then
8189 # AIX 5 now supports IA64 processor
8190 lt_prog_compiler_static='-Bstatic'
8192 lt_prog_compiler_pic='-fPIC'
8195 amigaos*)
8196 case $host_cpu in
8197 powerpc)
8198 # see comment about AmigaOS4 .so support
8199 lt_prog_compiler_pic='-fPIC'
8201 m68k)
8202 # FIXME: we need at least 68020 code to build shared libraries, but
8203 # adding the `-m68020' flag to GCC prevents building anything better,
8204 # like `-m68040'.
8205 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8207 esac
8210 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8211 # PIC is the default for these OSes.
8214 mingw* | cygwin* | pw32* | os2* | cegcc*)
8215 # This hack is so that the source file can tell whether it is being
8216 # built for inclusion in a dll (and should export symbols for example).
8217 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8218 # (--disable-auto-import) libraries
8219 lt_prog_compiler_pic='-DDLL_EXPORT'
8222 darwin* | rhapsody*)
8223 # PIC is the default on this platform
8224 # Common symbols not allowed in MH_DYLIB files
8225 lt_prog_compiler_pic='-fno-common'
8228 haiku*)
8229 # PIC is the default for Haiku.
8230 # The "-static" flag exists, but is broken.
8231 lt_prog_compiler_static=
8234 hpux*)
8235 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8236 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8237 # sets the default TLS model and affects inlining.
8238 case $host_cpu in
8239 hppa*64*)
8240 # +Z the default
8243 lt_prog_compiler_pic='-fPIC'
8245 esac
8248 interix[3-9]*)
8249 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8250 # Instead, we relocate shared libraries at runtime.
8253 msdosdjgpp*)
8254 # Just because we use GCC doesn't mean we suddenly get shared libraries
8255 # on systems that don't support them.
8256 lt_prog_compiler_can_build_shared=no
8257 enable_shared=no
8260 *nto* | *qnx*)
8261 # QNX uses GNU C++, but need to define -shared option too, otherwise
8262 # it will coredump.
8263 lt_prog_compiler_pic='-fPIC -shared'
8266 sysv4*MP*)
8267 if test -d /usr/nec; then
8268 lt_prog_compiler_pic=-Kconform_pic
8273 lt_prog_compiler_pic='-fPIC'
8275 esac
8277 case $cc_basename in
8278 nvcc*) # Cuda Compiler Driver 2.2
8279 lt_prog_compiler_wl='-Xlinker '
8280 lt_prog_compiler_pic='-Xcompiler -fPIC'
8282 esac
8283 else
8284 # PORTME Check for flag to pass linker flags through the system compiler.
8285 case $host_os in
8286 aix*)
8287 lt_prog_compiler_wl='-Wl,'
8288 if test "$host_cpu" = ia64; then
8289 # AIX 5 now supports IA64 processor
8290 lt_prog_compiler_static='-Bstatic'
8291 else
8292 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8296 mingw* | cygwin* | pw32* | os2* | cegcc*)
8297 # This hack is so that the source file can tell whether it is being
8298 # built for inclusion in a dll (and should export symbols for example).
8299 lt_prog_compiler_pic='-DDLL_EXPORT'
8302 hpux9* | hpux10* | hpux11*)
8303 lt_prog_compiler_wl='-Wl,'
8304 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8305 # not for PA HP-UX.
8306 case $host_cpu in
8307 hppa*64*|ia64*)
8308 # +Z the default
8311 lt_prog_compiler_pic='+Z'
8313 esac
8314 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8315 lt_prog_compiler_static='${wl}-a ${wl}archive'
8318 irix5* | irix6* | nonstopux*)
8319 lt_prog_compiler_wl='-Wl,'
8320 # PIC (with -KPIC) is the default.
8321 lt_prog_compiler_static='-non_shared'
8324 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8325 case $cc_basename in
8326 # old Intel for x86_64 which still supported -KPIC.
8327 ecc*)
8328 lt_prog_compiler_wl='-Wl,'
8329 lt_prog_compiler_pic='-KPIC'
8330 lt_prog_compiler_static='-static'
8332 # icc used to be incompatible with GCC.
8333 # ICC 10 doesn't accept -KPIC any more.
8334 icc* | ifort*)
8335 lt_prog_compiler_wl='-Wl,'
8336 lt_prog_compiler_pic='-fPIC'
8337 lt_prog_compiler_static='-static'
8339 # Lahey Fortran 8.1.
8340 lf95*)
8341 lt_prog_compiler_wl='-Wl,'
8342 lt_prog_compiler_pic='--shared'
8343 lt_prog_compiler_static='--static'
8345 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8346 # Portland Group compilers (*not* the Pentium gcc compiler,
8347 # which looks to be a dead project)
8348 lt_prog_compiler_wl='-Wl,'
8349 lt_prog_compiler_pic='-fpic'
8350 lt_prog_compiler_static='-Bstatic'
8352 ccc*)
8353 lt_prog_compiler_wl='-Wl,'
8354 # All Alpha code is PIC.
8355 lt_prog_compiler_static='-non_shared'
8357 xl* | bgxl* | bgf* | mpixl*)
8358 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8359 lt_prog_compiler_wl='-Wl,'
8360 lt_prog_compiler_pic='-qpic'
8361 lt_prog_compiler_static='-qstaticlink'
8364 case `$CC -V 2>&1 | sed 5q` in
8365 *Sun\ F* | *Sun*Fortran*)
8366 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8367 lt_prog_compiler_pic='-KPIC'
8368 lt_prog_compiler_static='-Bstatic'
8369 lt_prog_compiler_wl=''
8371 *Sun\ C*)
8372 # Sun C 5.9
8373 lt_prog_compiler_pic='-KPIC'
8374 lt_prog_compiler_static='-Bstatic'
8375 lt_prog_compiler_wl='-Wl,'
8377 esac
8379 esac
8382 newsos6)
8383 lt_prog_compiler_pic='-KPIC'
8384 lt_prog_compiler_static='-Bstatic'
8387 *nto* | *qnx*)
8388 # QNX uses GNU C++, but need to define -shared option too, otherwise
8389 # it will coredump.
8390 lt_prog_compiler_pic='-fPIC -shared'
8393 osf3* | osf4* | osf5*)
8394 lt_prog_compiler_wl='-Wl,'
8395 # All OSF/1 code is PIC.
8396 lt_prog_compiler_static='-non_shared'
8399 rdos*)
8400 lt_prog_compiler_static='-non_shared'
8403 solaris*)
8404 lt_prog_compiler_pic='-KPIC'
8405 lt_prog_compiler_static='-Bstatic'
8406 case $cc_basename in
8407 f77* | f90* | f95*)
8408 lt_prog_compiler_wl='-Qoption ld ';;
8410 lt_prog_compiler_wl='-Wl,';;
8411 esac
8414 sunos4*)
8415 lt_prog_compiler_wl='-Qoption ld '
8416 lt_prog_compiler_pic='-PIC'
8417 lt_prog_compiler_static='-Bstatic'
8420 sysv4 | sysv4.2uw2* | sysv4.3*)
8421 lt_prog_compiler_wl='-Wl,'
8422 lt_prog_compiler_pic='-KPIC'
8423 lt_prog_compiler_static='-Bstatic'
8426 sysv4*MP*)
8427 if test -d /usr/nec ;then
8428 lt_prog_compiler_pic='-Kconform_pic'
8429 lt_prog_compiler_static='-Bstatic'
8433 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8434 lt_prog_compiler_wl='-Wl,'
8435 lt_prog_compiler_pic='-KPIC'
8436 lt_prog_compiler_static='-Bstatic'
8439 unicos*)
8440 lt_prog_compiler_wl='-Wl,'
8441 lt_prog_compiler_can_build_shared=no
8444 uts4*)
8445 lt_prog_compiler_pic='-pic'
8446 lt_prog_compiler_static='-Bstatic'
8450 lt_prog_compiler_can_build_shared=no
8452 esac
8455 case $host_os in
8456 # For platforms which do not support PIC, -DPIC is meaningless:
8457 *djgpp*)
8458 lt_prog_compiler_pic=
8461 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8463 esac
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8465 $as_echo "$lt_prog_compiler_pic" >&6; }
8473 # Check to make sure the PIC flag actually works.
8475 if test -n "$lt_prog_compiler_pic"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8477 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8478 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8479 $as_echo_n "(cached) " >&6
8480 else
8481 lt_cv_prog_compiler_pic_works=no
8482 ac_outfile=conftest.$ac_objext
8483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8484 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8485 # Insert the option either (1) after the last *FLAGS variable, or
8486 # (2) before a word containing "conftest.", or (3) at the end.
8487 # Note that $ac_compile itself does not contain backslashes and begins
8488 # with a dollar sign (not a hyphen), so the echo should work correctly.
8489 # The option is referenced via a variable to avoid confusing sed.
8490 lt_compile=`echo "$ac_compile" | $SED \
8491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8493 -e 's:$: $lt_compiler_flag:'`
8494 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8495 (eval "$lt_compile" 2>conftest.err)
8496 ac_status=$?
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 if (exit $ac_status) && test -s "$ac_outfile"; then
8500 # The compiler can only warn and ignore the option if not recognized
8501 # So say no if there are warnings other than the usual output.
8502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8505 lt_cv_prog_compiler_pic_works=yes
8508 $RM conftest*
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8512 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8514 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8515 case $lt_prog_compiler_pic in
8516 "" | " "*) ;;
8517 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8518 esac
8519 else
8520 lt_prog_compiler_pic=
8521 lt_prog_compiler_can_build_shared=no
8532 # Check to make sure the static flag actually works.
8534 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8536 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8537 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8538 $as_echo_n "(cached) " >&6
8539 else
8540 lt_cv_prog_compiler_static_works=no
8541 save_LDFLAGS="$LDFLAGS"
8542 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8543 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8544 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8545 # The linker can only warn and ignore the option if not recognized
8546 # So say no if there are warnings
8547 if test -s conftest.err; then
8548 # Append any errors to the config.log.
8549 cat conftest.err 1>&5
8550 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8552 if diff conftest.exp conftest.er2 >/dev/null; then
8553 lt_cv_prog_compiler_static_works=yes
8555 else
8556 lt_cv_prog_compiler_static_works=yes
8559 $RM -r conftest*
8560 LDFLAGS="$save_LDFLAGS"
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8564 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8566 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8568 else
8569 lt_prog_compiler_static=
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8579 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8580 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8583 lt_cv_prog_compiler_c_o=no
8584 $RM -r conftest 2>/dev/null
8585 mkdir conftest
8586 cd conftest
8587 mkdir out
8588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8590 lt_compiler_flag="-o out/conftest2.$ac_objext"
8591 # Insert the option either (1) after the last *FLAGS variable, or
8592 # (2) before a word containing "conftest.", or (3) at the end.
8593 # Note that $ac_compile itself does not contain backslashes and begins
8594 # with a dollar sign (not a hyphen), so the echo should work correctly.
8595 lt_compile=`echo "$ac_compile" | $SED \
8596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8598 -e 's:$: $lt_compiler_flag:'`
8599 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8600 (eval "$lt_compile" 2>out/conftest.err)
8601 ac_status=$?
8602 cat out/conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8605 then
8606 # The compiler can only warn and ignore the option if not recognized
8607 # So say no if there are warnings
8608 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8609 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8610 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8611 lt_cv_prog_compiler_c_o=yes
8614 chmod u+w . 2>&5
8615 $RM conftest*
8616 # SGI C++ compiler will create directory out/ii_files/ for
8617 # template instantiation
8618 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8619 $RM out/* && rmdir out
8620 cd ..
8621 $RM -r conftest
8622 $RM conftest*
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8626 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8634 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8635 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8636 $as_echo_n "(cached) " >&6
8637 else
8638 lt_cv_prog_compiler_c_o=no
8639 $RM -r conftest 2>/dev/null
8640 mkdir conftest
8641 cd conftest
8642 mkdir out
8643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8645 lt_compiler_flag="-o out/conftest2.$ac_objext"
8646 # Insert the option either (1) after the last *FLAGS variable, or
8647 # (2) before a word containing "conftest.", or (3) at the end.
8648 # Note that $ac_compile itself does not contain backslashes and begins
8649 # with a dollar sign (not a hyphen), so the echo should work correctly.
8650 lt_compile=`echo "$ac_compile" | $SED \
8651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8653 -e 's:$: $lt_compiler_flag:'`
8654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8655 (eval "$lt_compile" 2>out/conftest.err)
8656 ac_status=$?
8657 cat out/conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8660 then
8661 # The compiler can only warn and ignore the option if not recognized
8662 # So say no if there are warnings
8663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8666 lt_cv_prog_compiler_c_o=yes
8669 chmod u+w . 2>&5
8670 $RM conftest*
8671 # SGI C++ compiler will create directory out/ii_files/ for
8672 # template instantiation
8673 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8674 $RM out/* && rmdir out
8675 cd ..
8676 $RM -r conftest
8677 $RM conftest*
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8681 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8686 hard_links="nottested"
8687 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8688 # do not overwrite the value of need_locks provided by the user
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8690 $as_echo_n "checking if we can lock with hard links... " >&6; }
8691 hard_links=yes
8692 $RM conftest*
8693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8694 touch conftest.a
8695 ln conftest.a conftest.b 2>&5 || hard_links=no
8696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8698 $as_echo "$hard_links" >&6; }
8699 if test "$hard_links" = no; then
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8701 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8702 need_locks=warn
8704 else
8705 need_locks=no
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8714 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8716 runpath_var=
8717 allow_undefined_flag=
8718 always_export_symbols=no
8719 archive_cmds=
8720 archive_expsym_cmds=
8721 compiler_needs_object=no
8722 enable_shared_with_static_runtimes=no
8723 export_dynamic_flag_spec=
8724 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8725 hardcode_automatic=no
8726 hardcode_direct=no
8727 hardcode_direct_absolute=no
8728 hardcode_libdir_flag_spec=
8729 hardcode_libdir_flag_spec_ld=
8730 hardcode_libdir_separator=
8731 hardcode_minus_L=no
8732 hardcode_shlibpath_var=unsupported
8733 inherit_rpath=no
8734 link_all_deplibs=unknown
8735 module_cmds=
8736 module_expsym_cmds=
8737 old_archive_from_new_cmds=
8738 old_archive_from_expsyms_cmds=
8739 thread_safe_flag_spec=
8740 whole_archive_flag_spec=
8741 # include_expsyms should be a list of space-separated symbols to be *always*
8742 # included in the symbol list
8743 include_expsyms=
8744 # exclude_expsyms can be an extended regexp of symbols to exclude
8745 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8746 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8747 # as well as any symbol that contains `d'.
8748 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8749 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8750 # platforms (ab)use it in PIC code, but their linkers get confused if
8751 # the symbol is explicitly referenced. Since portable code cannot
8752 # rely on this symbol name, it's probably fine to never include it in
8753 # preloaded symbol tables.
8754 # Exclude shared library initialization/finalization symbols.
8755 extract_expsyms_cmds=
8757 case $host_os in
8758 cygwin* | mingw* | pw32* | cegcc*)
8759 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8760 # When not using gcc, we currently assume that we are using
8761 # Microsoft Visual C++.
8762 if test "$GCC" != yes; then
8763 with_gnu_ld=no
8766 interix*)
8767 # we just hope/assume this is gcc and not c89 (= MSVC++)
8768 with_gnu_ld=yes
8770 openbsd*)
8771 with_gnu_ld=no
8773 esac
8775 ld_shlibs=yes
8777 # On some targets, GNU ld is compatible enough with the native linker
8778 # that we're better off using the native interface for both.
8779 lt_use_gnu_ld_interface=no
8780 if test "$with_gnu_ld" = yes; then
8781 case $host_os in
8782 aix*)
8783 # The AIX port of GNU ld has always aspired to compatibility
8784 # with the native linker. However, as the warning in the GNU ld
8785 # block says, versions before 2.19.5* couldn't really create working
8786 # shared libraries, regardless of the interface used.
8787 case `$LD -v 2>&1` in
8788 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8789 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8790 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8792 lt_use_gnu_ld_interface=yes
8794 esac
8797 lt_use_gnu_ld_interface=yes
8799 esac
8802 if test "$lt_use_gnu_ld_interface" = yes; then
8803 # If archive_cmds runs LD, not CC, wlarc should be empty
8804 wlarc='${wl}'
8806 # Set some defaults for GNU ld with shared library support. These
8807 # are reset later if shared libraries are not supported. Putting them
8808 # here allows them to be overridden if necessary.
8809 runpath_var=LD_RUN_PATH
8810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8811 export_dynamic_flag_spec='${wl}--export-dynamic'
8812 # ancient GNU ld didn't support --whole-archive et. al.
8813 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8814 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8815 else
8816 whole_archive_flag_spec=
8818 supports_anon_versioning=no
8819 case `$LD -v 2>&1` in
8820 *GNU\ gold*) supports_anon_versioning=yes ;;
8821 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8822 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8823 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8824 *\ 2.11.*) ;; # other 2.11 versions
8825 *) supports_anon_versioning=yes ;;
8826 esac
8828 # See if GNU ld supports shared libraries.
8829 case $host_os in
8830 aix[3-9]*)
8831 # On AIX/PPC, the GNU linker is very broken
8832 if test "$host_cpu" != ia64; then
8833 ld_shlibs=no
8834 cat <<_LT_EOF 1>&2
8836 *** Warning: the GNU linker, at least up to release 2.19, is reported
8837 *** to be unable to reliably create shared libraries on AIX.
8838 *** Therefore, libtool is disabling shared libraries support. If you
8839 *** really care for shared libraries, you may want to install binutils
8840 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8841 *** You will then need to restart the configuration process.
8843 _LT_EOF
8847 amigaos*)
8848 case $host_cpu in
8849 powerpc)
8850 # see comment about AmigaOS4 .so support
8851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8852 archive_expsym_cmds=''
8854 m68k)
8855 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)'
8856 hardcode_libdir_flag_spec='-L$libdir'
8857 hardcode_minus_L=yes
8859 esac
8862 beos*)
8863 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8864 allow_undefined_flag=unsupported
8865 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8866 # support --undefined. This deserves some investigation. FIXME
8867 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8868 else
8869 ld_shlibs=no
8873 cygwin* | mingw* | pw32* | cegcc*)
8874 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8875 # as there is no search path for DLLs.
8876 hardcode_libdir_flag_spec='-L$libdir'
8877 export_dynamic_flag_spec='${wl}--export-all-symbols'
8878 allow_undefined_flag=unsupported
8879 always_export_symbols=no
8880 enable_shared_with_static_runtimes=yes
8881 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8883 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8884 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8885 # If the export-symbols file already is a .def file (1st line
8886 # is EXPORTS), use it as is; otherwise, prepend...
8887 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8888 cp $export_symbols $output_objdir/$soname.def;
8889 else
8890 echo EXPORTS > $output_objdir/$soname.def;
8891 cat $export_symbols >> $output_objdir/$soname.def;
8893 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8894 else
8895 ld_shlibs=no
8899 haiku*)
8900 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8901 link_all_deplibs=yes
8904 interix[3-9]*)
8905 hardcode_direct=no
8906 hardcode_shlibpath_var=no
8907 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8908 export_dynamic_flag_spec='${wl}-E'
8909 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8910 # Instead, shared libraries are loaded at an image base (0x10000000 by
8911 # default) and relocated if they conflict, which is a slow very memory
8912 # consuming and fragmenting process. To avoid this, we pick a random,
8913 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8914 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8915 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8916 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'
8919 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8920 tmp_diet=no
8921 if test "$host_os" = linux-dietlibc; then
8922 case $cc_basename in
8923 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8924 esac
8926 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8927 && test "$tmp_diet" = no
8928 then
8929 tmp_addflag=' $pic_flag'
8930 tmp_sharedflag='-shared'
8931 case $cc_basename,$host_cpu in
8932 pgcc*) # Portland Group C compiler
8933 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'
8934 tmp_addflag=' $pic_flag'
8936 pgf77* | pgf90* | pgf95* | pgfortran*)
8937 # Portland Group f77 and f90 compilers
8938 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'
8939 tmp_addflag=' $pic_flag -Mnomain' ;;
8940 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8941 tmp_addflag=' -i_dynamic' ;;
8942 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8943 tmp_addflag=' -i_dynamic -nofor_main' ;;
8944 ifc* | ifort*) # Intel Fortran compiler
8945 tmp_addflag=' -nofor_main' ;;
8946 lf95*) # Lahey Fortran 8.1
8947 whole_archive_flag_spec=
8948 tmp_sharedflag='--shared' ;;
8949 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8950 tmp_sharedflag='-qmkshrobj'
8951 tmp_addflag= ;;
8952 nvcc*) # Cuda Compiler Driver 2.2
8953 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'
8954 compiler_needs_object=yes
8956 esac
8957 case `$CC -V 2>&1 | sed 5q` in
8958 *Sun\ C*) # Sun C 5.9
8959 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'
8960 compiler_needs_object=yes
8961 tmp_sharedflag='-G' ;;
8962 *Sun\ F*) # Sun Fortran 8.3
8963 tmp_sharedflag='-G' ;;
8964 esac
8965 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8967 if test "x$supports_anon_versioning" = xyes; then
8968 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8969 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8970 echo "local: *; };" >> $output_objdir/$libname.ver~
8971 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8974 case $cc_basename in
8975 xlf* | bgf* | bgxlf* | mpixlf*)
8976 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8977 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8978 hardcode_libdir_flag_spec=
8979 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8980 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8981 if test "x$supports_anon_versioning" = xyes; then
8982 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8983 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8984 echo "local: *; };" >> $output_objdir/$libname.ver~
8985 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8988 esac
8989 else
8990 ld_shlibs=no
8994 netbsd*)
8995 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8996 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8997 wlarc=
8998 else
8999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9000 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9004 solaris*)
9005 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9006 ld_shlibs=no
9007 cat <<_LT_EOF 1>&2
9009 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9010 *** create shared libraries on Solaris systems. Therefore, libtool
9011 *** is disabling shared libraries support. We urge you to upgrade GNU
9012 *** binutils to release 2.9.1 or newer. Another option is to modify
9013 *** your PATH or compiler configuration so that the native linker is
9014 *** used, and then restart.
9016 _LT_EOF
9017 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9020 else
9021 ld_shlibs=no
9025 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9026 case `$LD -v 2>&1` in
9027 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9028 ld_shlibs=no
9029 cat <<_LT_EOF 1>&2
9031 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9032 *** reliably create shared libraries on SCO systems. Therefore, libtool
9033 *** is disabling shared libraries support. We urge you to upgrade GNU
9034 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9035 *** your PATH or compiler configuration so that the native linker is
9036 *** used, and then restart.
9038 _LT_EOF
9041 # For security reasons, it is highly recommended that you always
9042 # use absolute paths for naming shared libraries, and exclude the
9043 # DT_RUNPATH tag from executables and libraries. But doing so
9044 # requires that you compile everything twice, which is a pain.
9045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9046 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9049 else
9050 ld_shlibs=no
9053 esac
9056 sunos4*)
9057 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9058 wlarc=
9059 hardcode_direct=yes
9060 hardcode_shlibpath_var=no
9064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9066 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9067 else
9068 ld_shlibs=no
9071 esac
9073 if test "$ld_shlibs" = no; then
9074 runpath_var=
9075 hardcode_libdir_flag_spec=
9076 export_dynamic_flag_spec=
9077 whole_archive_flag_spec=
9079 else
9080 # PORTME fill in a description of your system's linker (not GNU ld)
9081 case $host_os in
9082 aix3*)
9083 allow_undefined_flag=unsupported
9084 always_export_symbols=yes
9085 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'
9086 # Note: this linker hardcodes the directories in LIBPATH if there
9087 # are no directories specified by -L.
9088 hardcode_minus_L=yes
9089 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9090 # Neither direct hardcoding nor static linking is supported with a
9091 # broken collect2.
9092 hardcode_direct=unsupported
9096 aix[4-9]*)
9097 if test "$host_cpu" = ia64; then
9098 # On IA64, the linker does run time linking by default, so we don't
9099 # have to do anything special.
9100 aix_use_runtimelinking=no
9101 exp_sym_flag='-Bexport'
9102 no_entry_flag=""
9103 else
9104 # If we're using GNU nm, then we don't want the "-C" option.
9105 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9106 # Also, AIX nm treats weak defined symbols like other global
9107 # defined symbols, whereas GNU nm marks them as "W".
9108 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9109 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'
9110 else
9111 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'
9113 aix_use_runtimelinking=no
9115 # Test if we are trying to use run time linking or normal
9116 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9117 # need to do runtime linking.
9118 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9119 for ld_flag in $LDFLAGS; do
9120 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9121 aix_use_runtimelinking=yes
9122 break
9124 done
9126 esac
9128 exp_sym_flag='-bexport'
9129 no_entry_flag='-bnoentry'
9132 # When large executables or shared objects are built, AIX ld can
9133 # have problems creating the table of contents. If linking a library
9134 # or program results in "error TOC overflow" add -mminimal-toc to
9135 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9136 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9138 archive_cmds=''
9139 hardcode_direct=yes
9140 hardcode_direct_absolute=yes
9141 hardcode_libdir_separator=':'
9142 link_all_deplibs=yes
9143 file_list_spec='${wl}-f,'
9145 if test "$GCC" = yes; then
9146 case $host_os in aix4.[012]|aix4.[012].*)
9147 # We only want to do this on AIX 4.2 and lower, the check
9148 # below for broken collect2 doesn't work under 4.3+
9149 collect2name=`${CC} -print-prog-name=collect2`
9150 if test -f "$collect2name" &&
9151 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9152 then
9153 # We have reworked collect2
9155 else
9156 # We have old collect2
9157 hardcode_direct=unsupported
9158 # It fails to find uninstalled libraries when the uninstalled
9159 # path is not listed in the libpath. Setting hardcode_minus_L
9160 # to unsupported forces relinking
9161 hardcode_minus_L=yes
9162 hardcode_libdir_flag_spec='-L$libdir'
9163 hardcode_libdir_separator=
9166 esac
9167 shared_flag='-shared'
9168 if test "$aix_use_runtimelinking" = yes; then
9169 shared_flag="$shared_flag "'${wl}-G'
9171 else
9172 # not using gcc
9173 if test "$host_cpu" = ia64; then
9174 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9175 # chokes on -Wl,-G. The following line is correct:
9176 shared_flag='-G'
9177 else
9178 if test "$aix_use_runtimelinking" = yes; then
9179 shared_flag='${wl}-G'
9180 else
9181 shared_flag='${wl}-bM:SRE'
9186 export_dynamic_flag_spec='${wl}-bexpall'
9187 # It seems that -bexpall does not export symbols beginning with
9188 # underscore (_), so it is better to generate a list of symbols to export.
9189 always_export_symbols=yes
9190 if test "$aix_use_runtimelinking" = yes; then
9191 # Warning - without using the other runtime loading flags (-brtl),
9192 # -berok will link without error, but may produce a broken library.
9193 allow_undefined_flag='-berok'
9194 # Determine the default libpath from the value encoded in an
9195 # empty executable.
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9200 main ()
9204 return 0;
9206 _ACEOF
9207 if ac_fn_c_try_link "$LINENO"; then :
9209 lt_aix_libpath_sed='
9210 /Import File Strings/,/^$/ {
9211 /^0/ {
9212 s/^0 *\(.*\)$/\1/
9216 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9217 # Check for a 64-bit object if we didn't find anything.
9218 if test -z "$aix_libpath"; then
9219 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9222 rm -f core conftest.err conftest.$ac_objext \
9223 conftest$ac_exeext conftest.$ac_ext
9224 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9226 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9227 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"
9228 else
9229 if test "$host_cpu" = ia64; then
9230 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9231 allow_undefined_flag="-z nodefs"
9232 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"
9233 else
9234 # Determine the default libpath from the value encoded in an
9235 # empty executable.
9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9240 main ()
9244 return 0;
9246 _ACEOF
9247 if ac_fn_c_try_link "$LINENO"; then :
9249 lt_aix_libpath_sed='
9250 /Import File Strings/,/^$/ {
9251 /^0/ {
9252 s/^0 *\(.*\)$/\1/
9256 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9257 # Check for a 64-bit object if we didn't find anything.
9258 if test -z "$aix_libpath"; then
9259 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9262 rm -f core conftest.err conftest.$ac_objext \
9263 conftest$ac_exeext conftest.$ac_ext
9264 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9266 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9267 # Warning - without using the other run time loading flags,
9268 # -berok will link without error, but may produce a broken library.
9269 no_undefined_flag=' ${wl}-bernotok'
9270 allow_undefined_flag=' ${wl}-berok'
9271 if test "$with_gnu_ld" = yes; then
9272 # We only use this code for GNU lds that support --whole-archive.
9273 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9274 else
9275 # Exported symbols can be pulled into shared objects from archives
9276 whole_archive_flag_spec='$convenience'
9278 archive_cmds_need_lc=yes
9279 # This is similar to how AIX traditionally builds its shared libraries.
9280 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'
9285 amigaos*)
9286 case $host_cpu in
9287 powerpc)
9288 # see comment about AmigaOS4 .so support
9289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9290 archive_expsym_cmds=''
9292 m68k)
9293 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)'
9294 hardcode_libdir_flag_spec='-L$libdir'
9295 hardcode_minus_L=yes
9297 esac
9300 bsdi[45]*)
9301 export_dynamic_flag_spec=-rdynamic
9304 cygwin* | mingw* | pw32* | cegcc*)
9305 # When not using gcc, we currently assume that we are using
9306 # Microsoft Visual C++.
9307 # hardcode_libdir_flag_spec is actually meaningless, as there is
9308 # no search path for DLLs.
9309 hardcode_libdir_flag_spec=' '
9310 allow_undefined_flag=unsupported
9311 # Tell ltmain to make .lib files, not .a files.
9312 libext=lib
9313 # Tell ltmain to make .dll files, not .so files.
9314 shrext_cmds=".dll"
9315 # FIXME: Setting linknames here is a bad hack.
9316 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9317 # The linker will automatically build a .lib file if we build a DLL.
9318 old_archive_from_new_cmds='true'
9319 # FIXME: Should let the user specify the lib program.
9320 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9321 fix_srcfile_path='`cygpath -w "$srcfile"`'
9322 enable_shared_with_static_runtimes=yes
9325 darwin* | rhapsody*)
9328 archive_cmds_need_lc=no
9329 hardcode_direct=no
9330 hardcode_automatic=yes
9331 hardcode_shlibpath_var=unsupported
9332 if test "$lt_cv_ld_force_load" = "yes"; then
9333 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\"`'
9334 else
9335 whole_archive_flag_spec=''
9337 link_all_deplibs=yes
9338 allow_undefined_flag="$_lt_dar_allow_undefined"
9339 case $cc_basename in
9340 ifort*) _lt_dar_can_shared=yes ;;
9341 *) _lt_dar_can_shared=$GCC ;;
9342 esac
9343 if test "$_lt_dar_can_shared" = "yes"; then
9344 output_verbose_link_cmd=func_echo_all
9345 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9346 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9347 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}"
9348 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}"
9350 else
9351 ld_shlibs=no
9356 dgux*)
9357 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9358 hardcode_libdir_flag_spec='-L$libdir'
9359 hardcode_shlibpath_var=no
9362 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9363 # support. Future versions do this automatically, but an explicit c++rt0.o
9364 # does not break anything, and helps significantly (at the cost of a little
9365 # extra space).
9366 freebsd2.2*)
9367 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9368 hardcode_libdir_flag_spec='-R$libdir'
9369 hardcode_direct=yes
9370 hardcode_shlibpath_var=no
9373 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9374 freebsd2.*)
9375 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9376 hardcode_direct=yes
9377 hardcode_minus_L=yes
9378 hardcode_shlibpath_var=no
9381 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9382 freebsd* | dragonfly*)
9383 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9384 hardcode_libdir_flag_spec='-R$libdir'
9385 hardcode_direct=yes
9386 hardcode_shlibpath_var=no
9389 hpux9*)
9390 if test "$GCC" = yes; then
9391 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'
9392 else
9393 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'
9395 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9396 hardcode_libdir_separator=:
9397 hardcode_direct=yes
9399 # hardcode_minus_L: Not really in the search PATH,
9400 # but as the default location of the library.
9401 hardcode_minus_L=yes
9402 export_dynamic_flag_spec='${wl}-E'
9405 hpux10*)
9406 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9407 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9408 else
9409 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9411 if test "$with_gnu_ld" = no; then
9412 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9413 hardcode_libdir_flag_spec_ld='+b $libdir'
9414 hardcode_libdir_separator=:
9415 hardcode_direct=yes
9416 hardcode_direct_absolute=yes
9417 export_dynamic_flag_spec='${wl}-E'
9418 # hardcode_minus_L: Not really in the search PATH,
9419 # but as the default location of the library.
9420 hardcode_minus_L=yes
9424 hpux11*)
9425 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9426 case $host_cpu in
9427 hppa*64*)
9428 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9430 ia64*)
9431 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9434 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9436 esac
9437 else
9438 case $host_cpu in
9439 hppa*64*)
9440 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9442 ia64*)
9443 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9447 # Older versions of the 11.00 compiler do not understand -b yet
9448 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9450 $as_echo_n "checking if $CC understands -b... " >&6; }
9451 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 lt_cv_prog_compiler__b=no
9455 save_LDFLAGS="$LDFLAGS"
9456 LDFLAGS="$LDFLAGS -b"
9457 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9458 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9459 # The linker can only warn and ignore the option if not recognized
9460 # So say no if there are warnings
9461 if test -s conftest.err; then
9462 # Append any errors to the config.log.
9463 cat conftest.err 1>&5
9464 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9466 if diff conftest.exp conftest.er2 >/dev/null; then
9467 lt_cv_prog_compiler__b=yes
9469 else
9470 lt_cv_prog_compiler__b=yes
9473 $RM -r conftest*
9474 LDFLAGS="$save_LDFLAGS"
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9478 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9480 if test x"$lt_cv_prog_compiler__b" = xyes; then
9481 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9482 else
9483 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9487 esac
9489 if test "$with_gnu_ld" = no; then
9490 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9491 hardcode_libdir_separator=:
9493 case $host_cpu in
9494 hppa*64*|ia64*)
9495 hardcode_direct=no
9496 hardcode_shlibpath_var=no
9499 hardcode_direct=yes
9500 hardcode_direct_absolute=yes
9501 export_dynamic_flag_spec='${wl}-E'
9503 # hardcode_minus_L: Not really in the search PATH,
9504 # but as the default location of the library.
9505 hardcode_minus_L=yes
9507 esac
9511 irix5* | irix6* | nonstopux*)
9512 if test "$GCC" = yes; then
9513 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'
9514 # Try to use the -exported_symbol ld option, if it does not
9515 # work, assume that -exports_file does not work either and
9516 # implicitly export all symbols.
9517 save_LDFLAGS="$LDFLAGS"
9518 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520 /* end confdefs.h. */
9521 int foo(void) {}
9522 _ACEOF
9523 if ac_fn_c_try_link "$LINENO"; then :
9524 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'
9527 rm -f core conftest.err conftest.$ac_objext \
9528 conftest$ac_exeext conftest.$ac_ext
9529 LDFLAGS="$save_LDFLAGS"
9530 else
9531 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'
9532 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'
9534 archive_cmds_need_lc='no'
9535 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9536 hardcode_libdir_separator=:
9537 inherit_rpath=yes
9538 link_all_deplibs=yes
9541 netbsd*)
9542 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9544 else
9545 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9547 hardcode_libdir_flag_spec='-R$libdir'
9548 hardcode_direct=yes
9549 hardcode_shlibpath_var=no
9552 newsos6)
9553 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9554 hardcode_direct=yes
9555 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9556 hardcode_libdir_separator=:
9557 hardcode_shlibpath_var=no
9560 *nto* | *qnx*)
9563 openbsd*)
9564 if test -f /usr/libexec/ld.so; then
9565 hardcode_direct=yes
9566 hardcode_shlibpath_var=no
9567 hardcode_direct_absolute=yes
9568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9569 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9570 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9571 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9572 export_dynamic_flag_spec='${wl}-E'
9573 else
9574 case $host_os in
9575 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9576 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9577 hardcode_libdir_flag_spec='-R$libdir'
9580 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9581 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9583 esac
9585 else
9586 ld_shlibs=no
9590 os2*)
9591 hardcode_libdir_flag_spec='-L$libdir'
9592 hardcode_minus_L=yes
9593 allow_undefined_flag=unsupported
9594 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'
9595 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9598 osf3*)
9599 if test "$GCC" = yes; then
9600 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9601 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'
9602 else
9603 allow_undefined_flag=' -expect_unresolved \*'
9604 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'
9606 archive_cmds_need_lc='no'
9607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9608 hardcode_libdir_separator=:
9611 osf4* | osf5*) # as osf3* with the addition of -msym flag
9612 if test "$GCC" = yes; then
9613 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9614 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'
9615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9616 else
9617 allow_undefined_flag=' -expect_unresolved \*'
9618 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'
9619 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~
9620 $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'
9622 # Both c and cxx compiler support -rpath directly
9623 hardcode_libdir_flag_spec='-rpath $libdir'
9625 archive_cmds_need_lc='no'
9626 hardcode_libdir_separator=:
9629 solaris*)
9630 no_undefined_flag=' -z defs'
9631 if test "$GCC" = yes; then
9632 wlarc='${wl}'
9633 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9634 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9635 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9636 else
9637 case `$CC -V 2>&1` in
9638 *"Compilers 5.0"*)
9639 wlarc=''
9640 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9642 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9645 wlarc='${wl}'
9646 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9647 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9648 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9650 esac
9652 hardcode_libdir_flag_spec='-R$libdir'
9653 hardcode_shlibpath_var=no
9654 case $host_os in
9655 solaris2.[0-5] | solaris2.[0-5].*) ;;
9657 # The compiler driver will combine and reorder linker options,
9658 # but understands `-z linker_flag'. GCC discards it without `$wl',
9659 # but is careful enough not to reorder.
9660 # Supported since Solaris 2.6 (maybe 2.5.1?)
9661 if test "$GCC" = yes; then
9662 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9663 else
9664 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9667 esac
9668 link_all_deplibs=yes
9671 sunos4*)
9672 if test "x$host_vendor" = xsequent; then
9673 # Use $CC to link under sequent, because it throws in some extra .o
9674 # files that make .init and .fini sections work.
9675 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9676 else
9677 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9679 hardcode_libdir_flag_spec='-L$libdir'
9680 hardcode_direct=yes
9681 hardcode_minus_L=yes
9682 hardcode_shlibpath_var=no
9685 sysv4)
9686 case $host_vendor in
9687 sni)
9688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689 hardcode_direct=yes # is this really true???
9691 siemens)
9692 ## LD is ld it makes a PLAMLIB
9693 ## CC just makes a GrossModule.
9694 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9695 reload_cmds='$CC -r -o $output$reload_objs'
9696 hardcode_direct=no
9698 motorola)
9699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9700 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9702 esac
9703 runpath_var='LD_RUN_PATH'
9704 hardcode_shlibpath_var=no
9707 sysv4.3*)
9708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709 hardcode_shlibpath_var=no
9710 export_dynamic_flag_spec='-Bexport'
9713 sysv4*MP*)
9714 if test -d /usr/nec; then
9715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9716 hardcode_shlibpath_var=no
9717 runpath_var=LD_RUN_PATH
9718 hardcode_runpath_var=yes
9719 ld_shlibs=yes
9723 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9724 no_undefined_flag='${wl}-z,text'
9725 archive_cmds_need_lc=no
9726 hardcode_shlibpath_var=no
9727 runpath_var='LD_RUN_PATH'
9729 if test "$GCC" = yes; then
9730 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9731 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9732 else
9733 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9734 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9738 sysv5* | sco3.2v5* | sco5v6*)
9739 # Note: We can NOT use -z defs as we might desire, because we do not
9740 # link with -lc, and that would cause any symbols used from libc to
9741 # always be unresolved, which means just about no library would
9742 # ever link correctly. If we're not using GNU ld we use -z text
9743 # though, which does catch some bad symbols but isn't as heavy-handed
9744 # as -z defs.
9745 no_undefined_flag='${wl}-z,text'
9746 allow_undefined_flag='${wl}-z,nodefs'
9747 archive_cmds_need_lc=no
9748 hardcode_shlibpath_var=no
9749 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9750 hardcode_libdir_separator=':'
9751 link_all_deplibs=yes
9752 export_dynamic_flag_spec='${wl}-Bexport'
9753 runpath_var='LD_RUN_PATH'
9755 if test "$GCC" = yes; then
9756 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9758 else
9759 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9760 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9764 uts4*)
9765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9766 hardcode_libdir_flag_spec='-L$libdir'
9767 hardcode_shlibpath_var=no
9771 ld_shlibs=no
9773 esac
9775 if test x$host_vendor = xsni; then
9776 case $host in
9777 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9778 export_dynamic_flag_spec='${wl}-Blargedynsym'
9780 esac
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9785 $as_echo "$ld_shlibs" >&6; }
9786 test "$ld_shlibs" = no && can_build_shared=no
9788 with_gnu_ld=$with_gnu_ld
9805 # Do we need to explicitly link libc?
9807 case "x$archive_cmds_need_lc" in
9808 x|xyes)
9809 # Assume -lc should be added
9810 archive_cmds_need_lc=yes
9812 if test "$enable_shared" = yes && test "$GCC" = yes; then
9813 case $archive_cmds in
9814 *'~'*)
9815 # FIXME: we may have to deal with multi-command sequences.
9817 '$CC '*)
9818 # Test whether the compiler implicitly links with -lc since on some
9819 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9820 # to ld, don't add -lc before -lgcc.
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9822 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9823 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 $RM conftest*
9827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9830 (eval $ac_compile) 2>&5
9831 ac_status=$?
9832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9833 test $ac_status = 0; } 2>conftest.err; then
9834 soname=conftest
9835 lib=conftest
9836 libobjs=conftest.$ac_objext
9837 deplibs=
9838 wl=$lt_prog_compiler_wl
9839 pic_flag=$lt_prog_compiler_pic
9840 compiler_flags=-v
9841 linker_flags=-v
9842 verstring=
9843 output_objdir=.
9844 libname=conftest
9845 lt_save_allow_undefined_flag=$allow_undefined_flag
9846 allow_undefined_flag=
9847 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9848 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9849 ac_status=$?
9850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9851 test $ac_status = 0; }
9852 then
9853 lt_cv_archive_cmds_need_lc=no
9854 else
9855 lt_cv_archive_cmds_need_lc=yes
9857 allow_undefined_flag=$lt_save_allow_undefined_flag
9858 else
9859 cat conftest.err 1>&5
9861 $RM conftest*
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9865 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9866 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9868 esac
9871 esac
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10030 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10032 if test "$GCC" = yes; then
10033 case $host_os in
10034 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10035 *) lt_awk_arg="/^libraries:/" ;;
10036 esac
10037 case $host_os in
10038 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10039 *) lt_sed_strip_eq="s,=/,/,g" ;;
10040 esac
10041 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10042 case $lt_search_path_spec in
10043 *\;*)
10044 # if the path contains ";" then we assume it to be the separator
10045 # otherwise default to the standard path separator (i.e. ":") - it is
10046 # assumed that no part of a normal pathname contains ";" but that should
10047 # okay in the real world where ";" in dirpaths is itself problematic.
10048 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10051 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10053 esac
10054 # Ok, now we have the path, separated by spaces, we can step through it
10055 # and add multilib dir if necessary.
10056 lt_tmp_lt_search_path_spec=
10057 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10058 for lt_sys_path in $lt_search_path_spec; do
10059 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10060 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10061 else
10062 test -d "$lt_sys_path" && \
10063 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10065 done
10066 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10067 BEGIN {RS=" "; FS="/|\n";} {
10068 lt_foo="";
10069 lt_count=0;
10070 for (lt_i = NF; lt_i > 0; lt_i--) {
10071 if ($lt_i != "" && $lt_i != ".") {
10072 if ($lt_i == "..") {
10073 lt_count++;
10074 } else {
10075 if (lt_count == 0) {
10076 lt_foo="/" $lt_i lt_foo;
10077 } else {
10078 lt_count--;
10083 if (lt_foo != "") { lt_freq[lt_foo]++; }
10084 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10086 # AWK program above erroneously prepends '/' to C:/dos/paths
10087 # for these hosts.
10088 case $host_os in
10089 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10090 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10091 esac
10092 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10093 else
10094 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10096 library_names_spec=
10097 libname_spec='lib$name'
10098 soname_spec=
10099 shrext_cmds=".so"
10100 postinstall_cmds=
10101 postuninstall_cmds=
10102 finish_cmds=
10103 finish_eval=
10104 shlibpath_var=
10105 shlibpath_overrides_runpath=unknown
10106 version_type=none
10107 dynamic_linker="$host_os ld.so"
10108 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10109 need_lib_prefix=unknown
10110 hardcode_into_libs=no
10112 # when you set need_version to no, make sure it does not cause -set_version
10113 # flags to be left without arguments
10114 need_version=unknown
10116 case $host_os in
10117 aix3*)
10118 version_type=linux
10119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10120 shlibpath_var=LIBPATH
10122 # AIX 3 has no versioning support, so we append a major version to the name.
10123 soname_spec='${libname}${release}${shared_ext}$major'
10126 aix[4-9]*)
10127 version_type=linux
10128 need_lib_prefix=no
10129 need_version=no
10130 hardcode_into_libs=yes
10131 if test "$host_cpu" = ia64; then
10132 # AIX 5 supports IA64
10133 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10134 shlibpath_var=LD_LIBRARY_PATH
10135 else
10136 # With GCC up to 2.95.x, collect2 would create an import file
10137 # for dependence libraries. The import file would start with
10138 # the line `#! .'. This would cause the generated library to
10139 # depend on `.', always an invalid library. This was fixed in
10140 # development snapshots of GCC prior to 3.0.
10141 case $host_os in
10142 aix4 | aix4.[01] | aix4.[01].*)
10143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10144 echo ' yes '
10145 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10147 else
10148 can_build_shared=no
10151 esac
10152 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10153 # soname into executable. Probably we can add versioning support to
10154 # collect2, so additional links can be useful in future.
10155 if test "$aix_use_runtimelinking" = yes; then
10156 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10157 # instead of lib<name>.a to let people know that these are not
10158 # typical AIX shared libraries.
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10160 else
10161 # We preserve .a as extension for shared libraries through AIX4.2
10162 # and later when we are not doing run time linking.
10163 library_names_spec='${libname}${release}.a $libname.a'
10164 soname_spec='${libname}${release}${shared_ext}$major'
10166 shlibpath_var=LIBPATH
10170 amigaos*)
10171 case $host_cpu in
10172 powerpc)
10173 # Since July 2007 AmigaOS4 officially supports .so libraries.
10174 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10177 m68k)
10178 library_names_spec='$libname.ixlibrary $libname.a'
10179 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10180 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'
10182 esac
10185 beos*)
10186 library_names_spec='${libname}${shared_ext}'
10187 dynamic_linker="$host_os ld.so"
10188 shlibpath_var=LIBRARY_PATH
10191 bsdi[45]*)
10192 version_type=linux
10193 need_version=no
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10197 shlibpath_var=LD_LIBRARY_PATH
10198 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10199 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10200 # the default ld.so.conf also contains /usr/contrib/lib and
10201 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10202 # libtool to hard-code these into programs
10205 cygwin* | mingw* | pw32* | cegcc*)
10206 version_type=windows
10207 shrext_cmds=".dll"
10208 need_version=no
10209 need_lib_prefix=no
10211 case $GCC,$host_os in
10212 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10213 library_names_spec='$libname.dll.a'
10214 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10215 postinstall_cmds='base_file=`basename \${file}`~
10216 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10217 dldir=$destdir/`dirname \$dlpath`~
10218 test -d \$dldir || mkdir -p \$dldir~
10219 $install_prog $dir/$dlname \$dldir/$dlname~
10220 chmod a+x \$dldir/$dlname~
10221 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10222 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10224 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10225 dlpath=$dir/\$dldll~
10226 $RM \$dlpath'
10227 shlibpath_overrides_runpath=yes
10229 case $host_os in
10230 cygwin*)
10231 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10232 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10234 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10236 mingw* | cegcc*)
10237 # MinGW DLLs use traditional 'lib' prefix
10238 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10240 pw32*)
10241 # pw32 DLLs use 'pw' prefix rather than 'lib'
10242 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10244 esac
10248 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10250 esac
10251 dynamic_linker='Win32 ld.exe'
10252 # FIXME: first we should search . and the directory the executable is in
10253 shlibpath_var=PATH
10256 darwin* | rhapsody*)
10257 dynamic_linker="$host_os dyld"
10258 version_type=darwin
10259 need_lib_prefix=no
10260 need_version=no
10261 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10262 soname_spec='${libname}${release}${major}$shared_ext'
10263 shlibpath_overrides_runpath=yes
10264 shlibpath_var=DYLD_LIBRARY_PATH
10265 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10267 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10268 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10271 dgux*)
10272 version_type=linux
10273 need_lib_prefix=no
10274 need_version=no
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 shlibpath_var=LD_LIBRARY_PATH
10280 freebsd* | dragonfly*)
10281 # DragonFly does not have aout. When/if they implement a new
10282 # versioning mechanism, adjust this.
10283 if test -x /usr/bin/objformat; then
10284 objformat=`/usr/bin/objformat`
10285 else
10286 case $host_os in
10287 freebsd[23].*) objformat=aout ;;
10288 *) objformat=elf ;;
10289 esac
10291 version_type=freebsd-$objformat
10292 case $version_type in
10293 freebsd-elf*)
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10295 need_version=no
10296 need_lib_prefix=no
10298 freebsd-*)
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10300 need_version=yes
10302 esac
10303 shlibpath_var=LD_LIBRARY_PATH
10304 case $host_os in
10305 freebsd2.*)
10306 shlibpath_overrides_runpath=yes
10308 freebsd3.[01]* | freebsdelf3.[01]*)
10309 shlibpath_overrides_runpath=yes
10310 hardcode_into_libs=yes
10312 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10313 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10314 shlibpath_overrides_runpath=no
10315 hardcode_into_libs=yes
10317 *) # from 4.6 on, and DragonFly
10318 shlibpath_overrides_runpath=yes
10319 hardcode_into_libs=yes
10321 esac
10324 gnu*)
10325 version_type=linux
10326 need_lib_prefix=no
10327 need_version=no
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 shlibpath_var=LD_LIBRARY_PATH
10331 hardcode_into_libs=yes
10334 haiku*)
10335 version_type=linux
10336 need_lib_prefix=no
10337 need_version=no
10338 dynamic_linker="$host_os runtime_loader"
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 shlibpath_var=LIBRARY_PATH
10342 shlibpath_overrides_runpath=yes
10343 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10344 hardcode_into_libs=yes
10347 hpux9* | hpux10* | hpux11*)
10348 # Give a soname corresponding to the major version so that dld.sl refuses to
10349 # link against other versions.
10350 version_type=sunos
10351 need_lib_prefix=no
10352 need_version=no
10353 case $host_cpu in
10354 ia64*)
10355 shrext_cmds='.so'
10356 hardcode_into_libs=yes
10357 dynamic_linker="$host_os dld.so"
10358 shlibpath_var=LD_LIBRARY_PATH
10359 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361 soname_spec='${libname}${release}${shared_ext}$major'
10362 if test "X$HPUX_IA64_MODE" = X32; then
10363 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10364 else
10365 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10367 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10369 hppa*64*)
10370 shrext_cmds='.sl'
10371 hardcode_into_libs=yes
10372 dynamic_linker="$host_os dld.sl"
10373 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10374 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10381 shrext_cmds='.sl'
10382 dynamic_linker="$host_os dld.sl"
10383 shlibpath_var=SHLIB_PATH
10384 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10388 esac
10389 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10390 postinstall_cmds='chmod 555 $lib'
10391 # or fails outright, so override atomically:
10392 install_override_mode=555
10395 interix[3-9]*)
10396 version_type=linux
10397 need_lib_prefix=no
10398 need_version=no
10399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10400 soname_spec='${libname}${release}${shared_ext}$major'
10401 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10402 shlibpath_var=LD_LIBRARY_PATH
10403 shlibpath_overrides_runpath=no
10404 hardcode_into_libs=yes
10407 irix5* | irix6* | nonstopux*)
10408 case $host_os in
10409 nonstopux*) version_type=nonstopux ;;
10411 if test "$lt_cv_prog_gnu_ld" = yes; then
10412 version_type=linux
10413 else
10414 version_type=irix
10415 fi ;;
10416 esac
10417 need_lib_prefix=no
10418 need_version=no
10419 soname_spec='${libname}${release}${shared_ext}$major'
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10421 case $host_os in
10422 irix5* | nonstopux*)
10423 libsuff= shlibsuff=
10426 case $LD in # libtool.m4 will add one of these switches to LD
10427 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10428 libsuff= shlibsuff= libmagic=32-bit;;
10429 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10430 libsuff=32 shlibsuff=N32 libmagic=N32;;
10431 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10432 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10433 *) libsuff= shlibsuff= libmagic=never-match;;
10434 esac
10436 esac
10437 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10438 shlibpath_overrides_runpath=no
10439 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10440 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10441 hardcode_into_libs=yes
10444 # No shared lib support for Linux oldld, aout, or coff.
10445 linux*oldld* | linux*aout* | linux*coff*)
10446 dynamic_linker=no
10449 # This must be Linux ELF.
10450 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10451 version_type=linux
10452 need_lib_prefix=no
10453 need_version=no
10454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 shlibpath_overrides_runpath=no
10460 # Some binutils ld are patched to set DT_RUNPATH
10461 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10462 $as_echo_n "(cached) " >&6
10463 else
10464 lt_cv_shlibpath_overrides_runpath=no
10465 save_LDFLAGS=$LDFLAGS
10466 save_libdir=$libdir
10467 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10468 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h. */
10473 main ()
10477 return 0;
10479 _ACEOF
10480 if ac_fn_c_try_link "$LINENO"; then :
10481 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10482 lt_cv_shlibpath_overrides_runpath=yes
10485 rm -f core conftest.err conftest.$ac_objext \
10486 conftest$ac_exeext conftest.$ac_ext
10487 LDFLAGS=$save_LDFLAGS
10488 libdir=$save_libdir
10492 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10494 # This implies no fast_install, which is unacceptable.
10495 # Some rework will be needed to allow for fast_install
10496 # before this can be enabled.
10497 hardcode_into_libs=yes
10499 # Append ld.so.conf contents to the search path
10500 if test -f /etc/ld.so.conf; then
10501 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' ' '`
10502 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10505 # We used to test for /lib/ld.so.1 and disable shared libraries on
10506 # powerpc, because MkLinux only supported shared libraries with the
10507 # GNU dynamic linker. Since this was broken with cross compilers,
10508 # most powerpc-linux boxes support dynamic linking these days and
10509 # people can always --disable-shared, the test was removed, and we
10510 # assume the GNU/Linux dynamic linker is in use.
10511 dynamic_linker='GNU/Linux ld.so'
10514 netbsd*)
10515 version_type=sunos
10516 need_lib_prefix=no
10517 need_version=no
10518 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10521 dynamic_linker='NetBSD (a.out) ld.so'
10522 else
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10524 soname_spec='${libname}${release}${shared_ext}$major'
10525 dynamic_linker='NetBSD ld.elf_so'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 shlibpath_overrides_runpath=yes
10529 hardcode_into_libs=yes
10532 newsos6)
10533 version_type=linux
10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10535 shlibpath_var=LD_LIBRARY_PATH
10536 shlibpath_overrides_runpath=yes
10539 *nto* | *qnx*)
10540 version_type=qnx
10541 need_lib_prefix=no
10542 need_version=no
10543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10544 soname_spec='${libname}${release}${shared_ext}$major'
10545 shlibpath_var=LD_LIBRARY_PATH
10546 shlibpath_overrides_runpath=no
10547 hardcode_into_libs=yes
10548 dynamic_linker='ldqnx.so'
10551 openbsd*)
10552 version_type=sunos
10553 sys_lib_dlsearch_path_spec="/usr/lib"
10554 need_lib_prefix=no
10555 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10556 case $host_os in
10557 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10558 *) need_version=no ;;
10559 esac
10560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10562 shlibpath_var=LD_LIBRARY_PATH
10563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10564 case $host_os in
10565 openbsd2.[89] | openbsd2.[89].*)
10566 shlibpath_overrides_runpath=no
10569 shlibpath_overrides_runpath=yes
10571 esac
10572 else
10573 shlibpath_overrides_runpath=yes
10577 os2*)
10578 libname_spec='$name'
10579 shrext_cmds=".dll"
10580 need_lib_prefix=no
10581 library_names_spec='$libname${shared_ext} $libname.a'
10582 dynamic_linker='OS/2 ld.exe'
10583 shlibpath_var=LIBPATH
10586 osf3* | osf4* | osf5*)
10587 version_type=osf
10588 need_lib_prefix=no
10589 need_version=no
10590 soname_spec='${libname}${release}${shared_ext}$major'
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592 shlibpath_var=LD_LIBRARY_PATH
10593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10597 rdos*)
10598 dynamic_linker=no
10601 solaris*)
10602 version_type=linux
10603 need_lib_prefix=no
10604 need_version=no
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10606 soname_spec='${libname}${release}${shared_ext}$major'
10607 shlibpath_var=LD_LIBRARY_PATH
10608 shlibpath_overrides_runpath=yes
10609 hardcode_into_libs=yes
10610 # ldd complains unless libraries are executable
10611 postinstall_cmds='chmod +x $lib'
10614 sunos4*)
10615 version_type=sunos
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10617 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10618 shlibpath_var=LD_LIBRARY_PATH
10619 shlibpath_overrides_runpath=yes
10620 if test "$with_gnu_ld" = yes; then
10621 need_lib_prefix=no
10623 need_version=yes
10626 sysv4 | sysv4.3*)
10627 version_type=linux
10628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629 soname_spec='${libname}${release}${shared_ext}$major'
10630 shlibpath_var=LD_LIBRARY_PATH
10631 case $host_vendor in
10632 sni)
10633 shlibpath_overrides_runpath=no
10634 need_lib_prefix=no
10635 runpath_var=LD_RUN_PATH
10637 siemens)
10638 need_lib_prefix=no
10640 motorola)
10641 need_lib_prefix=no
10642 need_version=no
10643 shlibpath_overrides_runpath=no
10644 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10646 esac
10649 sysv4*MP*)
10650 if test -d /usr/nec ;then
10651 version_type=linux
10652 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10653 soname_spec='$libname${shared_ext}.$major'
10654 shlibpath_var=LD_LIBRARY_PATH
10658 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10659 version_type=freebsd-elf
10660 need_lib_prefix=no
10661 need_version=no
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 shlibpath_overrides_runpath=yes
10666 hardcode_into_libs=yes
10667 if test "$with_gnu_ld" = yes; then
10668 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10669 else
10670 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10671 case $host_os in
10672 sco3.2v5*)
10673 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10675 esac
10677 sys_lib_dlsearch_path_spec='/usr/lib'
10680 tpf*)
10681 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10682 version_type=linux
10683 need_lib_prefix=no
10684 need_version=no
10685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686 shlibpath_var=LD_LIBRARY_PATH
10687 shlibpath_overrides_runpath=no
10688 hardcode_into_libs=yes
10691 uts4*)
10692 version_type=linux
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 shlibpath_var=LD_LIBRARY_PATH
10699 dynamic_linker=no
10701 esac
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10703 $as_echo "$dynamic_linker" >&6; }
10704 test "$dynamic_linker" = no && can_build_shared=no
10706 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10707 if test "$GCC" = yes; then
10708 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10711 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10712 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10714 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10715 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10810 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10811 hardcode_action=
10812 if test -n "$hardcode_libdir_flag_spec" ||
10813 test -n "$runpath_var" ||
10814 test "X$hardcode_automatic" = "Xyes" ; then
10816 # We can hardcode non-existent directories.
10817 if test "$hardcode_direct" != no &&
10818 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10819 # have to relink, otherwise we might link with an installed library
10820 # when we should be linking with a yet-to-be-installed one
10821 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10822 test "$hardcode_minus_L" != no; then
10823 # Linking always hardcodes the temporary library directory.
10824 hardcode_action=relink
10825 else
10826 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10827 hardcode_action=immediate
10829 else
10830 # We cannot hardcode anything, or else we can only hardcode existing
10831 # directories.
10832 hardcode_action=unsupported
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10835 $as_echo "$hardcode_action" >&6; }
10837 if test "$hardcode_action" = relink ||
10838 test "$inherit_rpath" = yes; then
10839 # Fast installation is not supported
10840 enable_fast_install=no
10841 elif test "$shlibpath_overrides_runpath" = yes ||
10842 test "$enable_shared" = no; then
10843 # Fast installation is not necessary
10844 enable_fast_install=needless
10852 if test "x$enable_dlopen" != xyes; then
10853 enable_dlopen=unknown
10854 enable_dlopen_self=unknown
10855 enable_dlopen_self_static=unknown
10856 else
10857 lt_cv_dlopen=no
10858 lt_cv_dlopen_libs=
10860 case $host_os in
10861 beos*)
10862 lt_cv_dlopen="load_add_on"
10863 lt_cv_dlopen_libs=
10864 lt_cv_dlopen_self=yes
10867 mingw* | pw32* | cegcc*)
10868 lt_cv_dlopen="LoadLibrary"
10869 lt_cv_dlopen_libs=
10872 cygwin*)
10873 lt_cv_dlopen="dlopen"
10874 lt_cv_dlopen_libs=
10877 darwin*)
10878 # if libdl is installed we need to link against it
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10880 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10881 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10882 $as_echo_n "(cached) " >&6
10883 else
10884 ac_check_lib_save_LIBS=$LIBS
10885 LIBS="-ldl $LIBS"
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10889 /* Override any GCC internal prototype to avoid an error.
10890 Use char because int might match the return type of a GCC
10891 builtin and then its argument prototype would still apply. */
10892 #ifdef __cplusplus
10893 extern "C"
10894 #endif
10895 char dlopen ();
10897 main ()
10899 return dlopen ();
10901 return 0;
10903 _ACEOF
10904 if ac_fn_c_try_link "$LINENO"; then :
10905 ac_cv_lib_dl_dlopen=yes
10906 else
10907 ac_cv_lib_dl_dlopen=no
10909 rm -f core conftest.err conftest.$ac_objext \
10910 conftest$ac_exeext conftest.$ac_ext
10911 LIBS=$ac_check_lib_save_LIBS
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10914 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10915 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10916 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10917 else
10919 lt_cv_dlopen="dyld"
10920 lt_cv_dlopen_libs=
10921 lt_cv_dlopen_self=yes
10928 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10929 if test "x$ac_cv_func_shl_load" = x""yes; then :
10930 lt_cv_dlopen="shl_load"
10931 else
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10933 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10934 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10935 $as_echo_n "(cached) " >&6
10936 else
10937 ac_check_lib_save_LIBS=$LIBS
10938 LIBS="-ldld $LIBS"
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10942 /* Override any GCC internal prototype to avoid an error.
10943 Use char because int might match the return type of a GCC
10944 builtin and then its argument prototype would still apply. */
10945 #ifdef __cplusplus
10946 extern "C"
10947 #endif
10948 char shl_load ();
10950 main ()
10952 return shl_load ();
10954 return 0;
10956 _ACEOF
10957 if ac_fn_c_try_link "$LINENO"; then :
10958 ac_cv_lib_dld_shl_load=yes
10959 else
10960 ac_cv_lib_dld_shl_load=no
10962 rm -f core conftest.err conftest.$ac_objext \
10963 conftest$ac_exeext conftest.$ac_ext
10964 LIBS=$ac_check_lib_save_LIBS
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10967 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10968 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10969 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10970 else
10971 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10972 if test "x$ac_cv_func_dlopen" = x""yes; then :
10973 lt_cv_dlopen="dlopen"
10974 else
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10976 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10977 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10978 $as_echo_n "(cached) " >&6
10979 else
10980 ac_check_lib_save_LIBS=$LIBS
10981 LIBS="-ldl $LIBS"
10982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983 /* end confdefs.h. */
10985 /* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
10988 #ifdef __cplusplus
10989 extern "C"
10990 #endif
10991 char dlopen ();
10993 main ()
10995 return dlopen ();
10997 return 0;
10999 _ACEOF
11000 if ac_fn_c_try_link "$LINENO"; then :
11001 ac_cv_lib_dl_dlopen=yes
11002 else
11003 ac_cv_lib_dl_dlopen=no
11005 rm -f core conftest.err conftest.$ac_objext \
11006 conftest$ac_exeext conftest.$ac_ext
11007 LIBS=$ac_check_lib_save_LIBS
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11010 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11011 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11013 else
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11015 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11016 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11017 $as_echo_n "(cached) " >&6
11018 else
11019 ac_check_lib_save_LIBS=$LIBS
11020 LIBS="-lsvld $LIBS"
11021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11022 /* end confdefs.h. */
11024 /* Override any GCC internal prototype to avoid an error.
11025 Use char because int might match the return type of a GCC
11026 builtin and then its argument prototype would still apply. */
11027 #ifdef __cplusplus
11028 extern "C"
11029 #endif
11030 char dlopen ();
11032 main ()
11034 return dlopen ();
11036 return 0;
11038 _ACEOF
11039 if ac_fn_c_try_link "$LINENO"; then :
11040 ac_cv_lib_svld_dlopen=yes
11041 else
11042 ac_cv_lib_svld_dlopen=no
11044 rm -f core conftest.err conftest.$ac_objext \
11045 conftest$ac_exeext conftest.$ac_ext
11046 LIBS=$ac_check_lib_save_LIBS
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11049 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11050 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11051 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11052 else
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11054 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11055 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
11057 else
11058 ac_check_lib_save_LIBS=$LIBS
11059 LIBS="-ldld $LIBS"
11060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11061 /* end confdefs.h. */
11063 /* Override any GCC internal prototype to avoid an error.
11064 Use char because int might match the return type of a GCC
11065 builtin and then its argument prototype would still apply. */
11066 #ifdef __cplusplus
11067 extern "C"
11068 #endif
11069 char dld_link ();
11071 main ()
11073 return dld_link ();
11075 return 0;
11077 _ACEOF
11078 if ac_fn_c_try_link "$LINENO"; then :
11079 ac_cv_lib_dld_dld_link=yes
11080 else
11081 ac_cv_lib_dld_dld_link=no
11083 rm -f core conftest.err conftest.$ac_objext \
11084 conftest$ac_exeext conftest.$ac_ext
11085 LIBS=$ac_check_lib_save_LIBS
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11088 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11089 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11090 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11109 esac
11111 if test "x$lt_cv_dlopen" != xno; then
11112 enable_dlopen=yes
11113 else
11114 enable_dlopen=no
11117 case $lt_cv_dlopen in
11118 dlopen)
11119 save_CPPFLAGS="$CPPFLAGS"
11120 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11122 save_LDFLAGS="$LDFLAGS"
11123 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11125 save_LIBS="$LIBS"
11126 LIBS="$lt_cv_dlopen_libs $LIBS"
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11129 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11130 if test "${lt_cv_dlopen_self+set}" = set; then :
11131 $as_echo_n "(cached) " >&6
11132 else
11133 if test "$cross_compiling" = yes; then :
11134 lt_cv_dlopen_self=cross
11135 else
11136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11137 lt_status=$lt_dlunknown
11138 cat > conftest.$ac_ext <<_LT_EOF
11139 #line 11139 "configure"
11140 #include "confdefs.h"
11142 #if HAVE_DLFCN_H
11143 #include <dlfcn.h>
11144 #endif
11146 #include <stdio.h>
11148 #ifdef RTLD_GLOBAL
11149 # define LT_DLGLOBAL RTLD_GLOBAL
11150 #else
11151 # ifdef DL_GLOBAL
11152 # define LT_DLGLOBAL DL_GLOBAL
11153 # else
11154 # define LT_DLGLOBAL 0
11155 # endif
11156 #endif
11158 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11159 find out it does not work in some platform. */
11160 #ifndef LT_DLLAZY_OR_NOW
11161 # ifdef RTLD_LAZY
11162 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11163 # else
11164 # ifdef DL_LAZY
11165 # define LT_DLLAZY_OR_NOW DL_LAZY
11166 # else
11167 # ifdef RTLD_NOW
11168 # define LT_DLLAZY_OR_NOW RTLD_NOW
11169 # else
11170 # ifdef DL_NOW
11171 # define LT_DLLAZY_OR_NOW DL_NOW
11172 # else
11173 # define LT_DLLAZY_OR_NOW 0
11174 # endif
11175 # endif
11176 # endif
11177 # endif
11178 #endif
11180 /* When -fvisbility=hidden is used, assume the code has been annotated
11181 correspondingly for the symbols needed. */
11182 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11183 void fnord () __attribute__((visibility("default")));
11184 #endif
11186 void fnord () { int i=42; }
11187 int main ()
11189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11190 int status = $lt_dlunknown;
11192 if (self)
11194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11195 else
11197 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11198 else puts (dlerror ());
11200 /* dlclose (self); */
11202 else
11203 puts (dlerror ());
11205 return status;
11207 _LT_EOF
11208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11209 (eval $ac_link) 2>&5
11210 ac_status=$?
11211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11212 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11213 (./conftest; exit; ) >&5 2>/dev/null
11214 lt_status=$?
11215 case x$lt_status in
11216 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11217 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11218 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11219 esac
11220 else :
11221 # compilation failed
11222 lt_cv_dlopen_self=no
11225 rm -fr conftest*
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11230 $as_echo "$lt_cv_dlopen_self" >&6; }
11232 if test "x$lt_cv_dlopen_self" = xyes; then
11233 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11235 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11236 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11237 $as_echo_n "(cached) " >&6
11238 else
11239 if test "$cross_compiling" = yes; then :
11240 lt_cv_dlopen_self_static=cross
11241 else
11242 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11243 lt_status=$lt_dlunknown
11244 cat > conftest.$ac_ext <<_LT_EOF
11245 #line 11245 "configure"
11246 #include "confdefs.h"
11248 #if HAVE_DLFCN_H
11249 #include <dlfcn.h>
11250 #endif
11252 #include <stdio.h>
11254 #ifdef RTLD_GLOBAL
11255 # define LT_DLGLOBAL RTLD_GLOBAL
11256 #else
11257 # ifdef DL_GLOBAL
11258 # define LT_DLGLOBAL DL_GLOBAL
11259 # else
11260 # define LT_DLGLOBAL 0
11261 # endif
11262 #endif
11264 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11265 find out it does not work in some platform. */
11266 #ifndef LT_DLLAZY_OR_NOW
11267 # ifdef RTLD_LAZY
11268 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11269 # else
11270 # ifdef DL_LAZY
11271 # define LT_DLLAZY_OR_NOW DL_LAZY
11272 # else
11273 # ifdef RTLD_NOW
11274 # define LT_DLLAZY_OR_NOW RTLD_NOW
11275 # else
11276 # ifdef DL_NOW
11277 # define LT_DLLAZY_OR_NOW DL_NOW
11278 # else
11279 # define LT_DLLAZY_OR_NOW 0
11280 # endif
11281 # endif
11282 # endif
11283 # endif
11284 #endif
11286 /* When -fvisbility=hidden is used, assume the code has been annotated
11287 correspondingly for the symbols needed. */
11288 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11289 void fnord () __attribute__((visibility("default")));
11290 #endif
11292 void fnord () { int i=42; }
11293 int main ()
11295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11296 int status = $lt_dlunknown;
11298 if (self)
11300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11301 else
11303 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11304 else puts (dlerror ());
11306 /* dlclose (self); */
11308 else
11309 puts (dlerror ());
11311 return status;
11313 _LT_EOF
11314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11315 (eval $ac_link) 2>&5
11316 ac_status=$?
11317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11318 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11319 (./conftest; exit; ) >&5 2>/dev/null
11320 lt_status=$?
11321 case x$lt_status in
11322 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11323 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11324 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11325 esac
11326 else :
11327 # compilation failed
11328 lt_cv_dlopen_self_static=no
11331 rm -fr conftest*
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11336 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11339 CPPFLAGS="$save_CPPFLAGS"
11340 LDFLAGS="$save_LDFLAGS"
11341 LIBS="$save_LIBS"
11343 esac
11345 case $lt_cv_dlopen_self in
11346 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11347 *) enable_dlopen_self=unknown ;;
11348 esac
11350 case $lt_cv_dlopen_self_static in
11351 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11352 *) enable_dlopen_self_static=unknown ;;
11353 esac
11372 striplib=
11373 old_striplib=
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11375 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11376 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11377 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11378 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11380 $as_echo "yes" >&6; }
11381 else
11382 # FIXME - insert some real tests, host_os isn't really good enough
11383 case $host_os in
11384 darwin*)
11385 if test -n "$STRIP" ; then
11386 striplib="$STRIP -x"
11387 old_striplib="$STRIP -S"
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11389 $as_echo "yes" >&6; }
11390 else
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11392 $as_echo "no" >&6; }
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11397 $as_echo "no" >&6; }
11399 esac
11413 # Report which library types will actually be built
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11415 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11417 $as_echo "$can_build_shared" >&6; }
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11420 $as_echo_n "checking whether to build shared libraries... " >&6; }
11421 test "$can_build_shared" = "no" && enable_shared=no
11423 # On AIX, shared libraries and static libraries use the same namespace, and
11424 # are all built from PIC.
11425 case $host_os in
11426 aix3*)
11427 test "$enable_shared" = yes && enable_static=no
11428 if test -n "$RANLIB"; then
11429 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11430 postinstall_cmds='$RANLIB $lib'
11434 aix[4-9]*)
11435 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11436 test "$enable_shared" = yes && enable_static=no
11439 esac
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11441 $as_echo "$enable_shared" >&6; }
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11444 $as_echo_n "checking whether to build static libraries... " >&6; }
11445 # Make sure either enable_shared or enable_static is yes.
11446 test "$enable_shared" = yes || enable_static=yes
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11448 $as_echo "$enable_static" >&6; }
11454 ac_ext=c
11455 ac_cpp='$CPP $CPPFLAGS'
11456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11460 CC="$lt_save_CC"
11474 ac_config_commands="$ac_config_commands libtool"
11479 # Only expand once:
11484 # Check whether --enable-largefile was given.
11485 if test "${enable_largefile+set}" = set; then :
11486 enableval=$enable_largefile;
11489 if test "$enable_largefile" != no; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11492 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11493 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11494 $as_echo_n "(cached) " >&6
11495 else
11496 ac_cv_sys_largefile_CC=no
11497 if test "$GCC" != yes; then
11498 ac_save_CC=$CC
11499 while :; do
11500 # IRIX 6.2 and later do not support large files by default,
11501 # so use the C compiler's -n32 option if that helps.
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11504 #include <sys/types.h>
11505 /* Check that off_t can represent 2**63 - 1 correctly.
11506 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11507 since some C++ compilers masquerading as C compilers
11508 incorrectly reject 9223372036854775807. */
11509 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11510 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11511 && LARGE_OFF_T % 2147483647 == 1)
11512 ? 1 : -1];
11514 main ()
11518 return 0;
11520 _ACEOF
11521 if ac_fn_c_try_compile "$LINENO"; then :
11522 break
11524 rm -f core conftest.err conftest.$ac_objext
11525 CC="$CC -n32"
11526 if ac_fn_c_try_compile "$LINENO"; then :
11527 ac_cv_sys_largefile_CC=' -n32'; break
11529 rm -f core conftest.err conftest.$ac_objext
11530 break
11531 done
11532 CC=$ac_save_CC
11533 rm -f conftest.$ac_ext
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11537 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11538 if test "$ac_cv_sys_largefile_CC" != no; then
11539 CC=$CC$ac_cv_sys_largefile_CC
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11543 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11544 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11545 $as_echo_n "(cached) " >&6
11546 else
11547 while :; do
11548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h. */
11550 #include <sys/types.h>
11551 /* Check that off_t can represent 2**63 - 1 correctly.
11552 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11553 since some C++ compilers masquerading as C compilers
11554 incorrectly reject 9223372036854775807. */
11555 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11556 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11557 && LARGE_OFF_T % 2147483647 == 1)
11558 ? 1 : -1];
11560 main ()
11564 return 0;
11566 _ACEOF
11567 if ac_fn_c_try_compile "$LINENO"; then :
11568 ac_cv_sys_file_offset_bits=no; break
11570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572 /* end confdefs.h. */
11573 #define _FILE_OFFSET_BITS 64
11574 #include <sys/types.h>
11575 /* Check that off_t can represent 2**63 - 1 correctly.
11576 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11577 since some C++ compilers masquerading as C compilers
11578 incorrectly reject 9223372036854775807. */
11579 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11580 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11581 && LARGE_OFF_T % 2147483647 == 1)
11582 ? 1 : -1];
11584 main ()
11588 return 0;
11590 _ACEOF
11591 if ac_fn_c_try_compile "$LINENO"; then :
11592 ac_cv_sys_file_offset_bits=64; break
11594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11595 ac_cv_sys_file_offset_bits=unknown
11596 break
11597 done
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11600 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11601 case $ac_cv_sys_file_offset_bits in #(
11602 no | unknown) ;;
11604 cat >>confdefs.h <<_ACEOF
11605 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11606 _ACEOF
11608 esac
11609 rm -rf conftest*
11610 if test $ac_cv_sys_file_offset_bits = unknown; then
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11612 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11613 if test "${ac_cv_sys_large_files+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11615 else
11616 while :; do
11617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h. */
11619 #include <sys/types.h>
11620 /* Check that off_t can represent 2**63 - 1 correctly.
11621 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11622 since some C++ compilers masquerading as C compilers
11623 incorrectly reject 9223372036854775807. */
11624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11626 && LARGE_OFF_T % 2147483647 == 1)
11627 ? 1 : -1];
11629 main ()
11633 return 0;
11635 _ACEOF
11636 if ac_fn_c_try_compile "$LINENO"; then :
11637 ac_cv_sys_large_files=no; break
11639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11641 /* end confdefs.h. */
11642 #define _LARGE_FILES 1
11643 #include <sys/types.h>
11644 /* Check that off_t can represent 2**63 - 1 correctly.
11645 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11646 since some C++ compilers masquerading as C compilers
11647 incorrectly reject 9223372036854775807. */
11648 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11649 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11650 && LARGE_OFF_T % 2147483647 == 1)
11651 ? 1 : -1];
11653 main ()
11657 return 0;
11659 _ACEOF
11660 if ac_fn_c_try_compile "$LINENO"; then :
11661 ac_cv_sys_large_files=1; break
11663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11664 ac_cv_sys_large_files=unknown
11665 break
11666 done
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11669 $as_echo "$ac_cv_sys_large_files" >&6; }
11670 case $ac_cv_sys_large_files in #(
11671 no | unknown) ;;
11673 cat >>confdefs.h <<_ACEOF
11674 #define _LARGE_FILES $ac_cv_sys_large_files
11675 _ACEOF
11677 esac
11678 rm -rf conftest*
11683 backtrace_supported=yes
11685 if test -n "${with_target_subdir}"; then
11686 # We are compiling a GCC library. We can assume that the unwind
11687 # library exists.
11688 BACKTRACE_FILE="backtrace.lo simple.lo"
11689 else
11690 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
11691 if test "x$ac_cv_header_unwind_h" = x""yes; then :
11692 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
11693 if test "x$ac_cv_func__Unwind_Backtrace" = x""yes; then :
11694 BACKTRACE_FILE="backtrace.lo simple.lo"
11695 else
11696 BACKTRACE_FILE="nounwind.lo"
11697 backtrace_supported=no
11700 else
11701 BACKTRACE_FILE="nounwind.lo"
11702 backtrace_supported=no
11709 EXTRA_FLAGS=
11710 if test -n "${with_target_subdir}"; then
11711 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
11712 else
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
11714 $as_echo_n "checking for -funwind-tables option... " >&6; }
11715 if test "${libbacktrace_cv_c_unwind_tables+set}" = set; then :
11716 $as_echo_n "(cached) " >&6
11717 else
11718 CFLAGS_hold="$CFLAGS"
11719 CFLAGS="$CFLAGS -funwind-tables"
11720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11721 /* end confdefs.h. */
11722 static int f() { return 0; }
11724 main ()
11726 return f();
11728 return 0;
11730 _ACEOF
11731 if ac_fn_c_try_compile "$LINENO"; then :
11732 libbacktrace_cv_c_unwind_tables=yes
11733 else
11734 libbacktrace_cv_c_unwind_tables=no
11736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11737 CFLAGS="$CFLAGS_hold"
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
11740 $as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
11741 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
11742 EXTRA_FLAGS=-funwind-tables
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
11745 $as_echo_n "checking for -frandom-seed=string option... " >&6; }
11746 if test "${libbacktrace_cv_c_random_seed_string+set}" = set; then :
11747 $as_echo_n "(cached) " >&6
11748 else
11749 CFLAGS_hold="$CFLAGS"
11750 CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
11751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752 /* end confdefs.h. */
11755 main ()
11757 return 0;
11759 return 0;
11761 _ACEOF
11762 if ac_fn_c_try_compile "$LINENO"; then :
11763 libbacktrace_cv_c_random_seed_string=yes
11764 else
11765 libbacktrace_cv_c_random_seed_string=no
11767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11768 CFLAGS="$CFLAGS_hold"
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
11771 $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
11772 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
11773 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
11778 ac_ext=c
11779 ac_cpp='$CPP $CPPFLAGS'
11780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11784 WARN_FLAGS=
11785 save_CFLAGS="$CFLAGS"
11786 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
11787 -Wmissing-prototypes -Wold-style-definition \
11788 -Wmissing-format-attribute -Wcast-qual; do
11789 # Do the check with the no- prefix removed since gcc silently
11790 # accepts any -Wno-* option on purpose
11791 case $real_option in
11792 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
11793 *) option=$real_option ;;
11794 esac
11795 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
11798 $as_echo_n "checking whether $CC supports $option... " >&6; }
11799 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
11800 $as_echo_n "(cached) " >&6
11801 else
11802 CFLAGS="$option"
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804 /* end confdefs.h. */
11807 main ()
11811 return 0;
11813 _ACEOF
11814 if ac_fn_c_try_compile "$LINENO"; then :
11815 eval "$as_acx_Woption=yes"
11816 else
11817 eval "$as_acx_Woption=no"
11819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822 eval ac_res=\$$as_acx_Woption
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11824 $as_echo "$ac_res" >&6; }
11825 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
11826 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
11828 done
11829 CFLAGS="$save_CFLAGS"
11830 ac_ext=c
11831 ac_cpp='$CPP $CPPFLAGS'
11832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11838 if test -n "${with_target_subdir}"; then
11839 WARN_FLAGS="$WARN_FLAGS -Werror"
11844 if test -n "${with_target_subdir}"; then
11847 # Check whether --with-system-libunwind was given.
11848 if test "${with_system_libunwind+set}" = set; then :
11849 withval=$with_system_libunwind;
11852 # If system-libunwind was not specifically set, pick a default setting.
11853 if test x$with_system_libunwind = x; then
11854 case ${target} in
11855 ia64-*-hpux*) with_system_libunwind=yes ;;
11856 *) with_system_libunwind=no ;;
11857 esac
11859 # Based on system-libunwind and target, do we have ipinfo?
11860 if test x$with_system_libunwind = xyes; then
11861 case ${target} in
11862 ia64-*-*) have_unwind_getipinfo=no ;;
11863 *) have_unwind_getipinfo=yes ;;
11864 esac
11865 else
11866 # Darwin before version 9 does not have _Unwind_GetIPInfo.
11868 case ${target} in
11869 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
11870 *) have_unwind_getipinfo=yes ;;
11871 esac
11875 if test x$have_unwind_getipinfo = xyes; then
11877 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11881 else
11882 ac_save_CFFLAGS="$CFLAGS"
11883 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
11885 $as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
11886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h. */
11888 #include "unwind.h"
11889 struct _Unwind_Context *context;
11890 int ip_before_insn = 0;
11892 main ()
11894 return _Unwind_GetIPInfo (context, &ip_before_insn);
11896 return 0;
11898 _ACEOF
11899 if ac_fn_c_try_link "$LINENO"; then :
11900 have_unwind_getipinfo=yes
11901 else
11902 have_unwind_getipinfo=no
11904 rm -f core conftest.err conftest.$ac_objext \
11905 conftest$ac_exeext conftest.$ac_ext
11906 CFLAGS="$ac_save_CFLAGS"
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
11908 $as_echo "$have_unwind_getipinfo" >&6; }
11909 if test "$have_unwind_getipinfo" = "yes"; then
11911 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
11916 # Enable --enable-host-shared.
11917 # Check whether --enable-host-shared was given.
11918 if test "${enable_host_shared+set}" = set; then :
11919 enableval=$enable_host_shared; PIC_FLAG=-fPIC
11920 else
11921 PIC_FLAG=
11926 # Test for __sync support.
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
11928 $as_echo_n "checking __sync extensions... " >&6; }
11929 if test "${libbacktrace_cv_sys_sync+set}" = set; then :
11930 $as_echo_n "(cached) " >&6
11931 else
11932 if test -n "${with_target_subdir}"; then
11933 case "${host}" in
11934 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
11935 *) libbacktrace_cv_sys_sync=yes ;;
11936 esac
11937 else
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11940 int i;
11942 main ()
11944 __sync_bool_compare_and_swap (&i, i, i);
11945 __sync_lock_test_and_set (&i, 1);
11946 __sync_lock_release (&i);
11948 return 0;
11950 _ACEOF
11951 if ac_fn_c_try_link "$LINENO"; then :
11952 libbacktrace_cv_sys_sync=yes
11953 else
11954 libbacktrace_cv_sys_sync=no
11956 rm -f core conftest.err conftest.$ac_objext \
11957 conftest$ac_exeext conftest.$ac_ext
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
11961 $as_echo "$libbacktrace_cv_sys_sync" >&6; }
11962 BACKTRACE_SUPPORTS_THREADS=0
11963 if test "$libbacktrace_cv_sys_sync" = "yes"; then
11964 BACKTRACE_SUPPORTS_THREADS=1
11966 $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
11971 # Test for __atomic support.
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
11973 $as_echo_n "checking __atomic extensions... " >&6; }
11974 if test "${libbacktrace_cv_sys_atomic+set}" = set; then :
11975 $as_echo_n "(cached) " >&6
11976 else
11977 if test -n "${with_target_subdir}"; then
11978 libbacktrace_cv_sys_atomic=yes
11979 else
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11982 int i;
11984 main ()
11986 __atomic_load_n (&i, __ATOMIC_ACQUIRE);
11987 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
11989 return 0;
11991 _ACEOF
11992 if ac_fn_c_try_link "$LINENO"; then :
11993 libbacktrace_cv_sys_atomic=yes
11994 else
11995 libbacktrace_cv_sys_atomic=no
11997 rm -f core conftest.err conftest.$ac_objext \
11998 conftest$ac_exeext conftest.$ac_ext
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12002 $as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12003 if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12005 $as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12009 # The library needs to be able to read the executable itself. Compile
12010 # a file to determine the executable format. The awk script
12011 # filetype.awk prints out the file type.
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12013 $as_echo_n "checking output filetype... " >&6; }
12014 if test "${libbacktrace_cv_sys_filetype+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 filetype=
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12020 int i;
12022 main ()
12024 int j;
12026 return 0;
12028 _ACEOF
12029 if ac_fn_c_try_compile "$LINENO"; then :
12030 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12031 else
12032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12033 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12034 as_fn_error "compiler failed
12035 See \`config.log' for more details." "$LINENO" 5; }
12037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12038 libbacktrace_cv_sys_filetype=$filetype
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12041 $as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12043 # Match the file type to decide what files to compile.
12044 FORMAT_FILE=
12045 backtrace_supports_data=yes
12046 case "$libbacktrace_cv_sys_filetype" in
12047 elf*) FORMAT_FILE="elf.lo" ;;
12048 pecoff) FORMAT_FILE="pecoff.lo"
12049 backtrace_supports_data=no
12051 xcoff*) FORMAT_FILE="xcoff.lo"
12052 backtrace_supports_data=no
12054 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12055 $as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12056 FORMAT_FILE="unknown.lo"
12057 backtrace_supported=no
12059 esac
12062 # ELF defines.
12063 elfsize=
12064 case "$libbacktrace_cv_sys_filetype" in
12065 elf32) elfsize=32 ;;
12066 elf64) elfsize=64 ;;
12067 *) elfsize=unused
12068 esac
12070 cat >>confdefs.h <<_ACEOF
12071 #define BACKTRACE_ELF_SIZE $elfsize
12072 _ACEOF
12075 # XCOFF defines.
12076 xcoffsize=
12077 case "$libbacktrace_cv_sys_filetype" in
12078 xcoff32) xcoffsize=32 ;;
12079 xcoff64) xcoffsize=64 ;;
12080 *) xcoffsize=unused
12081 esac
12083 cat >>confdefs.h <<_ACEOF
12084 #define BACKTRACE_XCOFF_SIZE $xcoffsize
12085 _ACEOF
12088 BACKTRACE_SUPPORTED=0
12089 if test "$backtrace_supported" = "yes"; then
12090 BACKTRACE_SUPPORTED=1
12094 BACKTRACE_SUPPORTS_DATA=0
12095 if test "$backtrace_supports_data" = "yes"; then
12096 BACKTRACE_SUPPORTS_DATA=1
12102 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12104 acx_cv_header_stdint=stddef.h
12105 acx_cv_header_stdint_kind="(already complete)"
12106 for i in stdint.h $inttype_headers; do
12107 unset ac_cv_type_uintptr_t
12108 unset ac_cv_type_uintmax_t
12109 unset ac_cv_type_int_least32_t
12110 unset ac_cv_type_int_fast32_t
12111 unset ac_cv_type_uint64_t
12112 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12113 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12114 #include <$i>
12116 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
12117 acx_cv_header_stdint=$i
12118 else
12119 continue
12122 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12123 #include <$i>
12125 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12127 else
12128 acx_cv_header_stdint_kind="(mostly complete)"
12131 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12132 #include <$i>
12134 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
12136 else
12137 acx_cv_header_stdint_kind="(mostly complete)"
12140 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12141 #include <$i>
12143 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
12145 else
12146 acx_cv_header_stdint_kind="(mostly complete)"
12149 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12150 #include <$i>
12152 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12154 else
12155 acx_cv_header_stdint_kind="(lacks uint64_t)"
12158 break
12159 done
12160 if test "$acx_cv_header_stdint" = stddef.h; then
12161 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12162 for i in stdint.h $inttype_headers; do
12163 unset ac_cv_type_uintptr_t
12164 unset ac_cv_type_uint32_t
12165 unset ac_cv_type_uint64_t
12166 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12167 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12168 #include <$i>
12170 if test "x$ac_cv_type_uint32_t" = x""yes; then :
12171 acx_cv_header_stdint=$i
12172 else
12173 continue
12176 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12177 #include <$i>
12179 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12183 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12184 #include <$i>
12186 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12190 break
12191 done
12193 if test "$acx_cv_header_stdint" = stddef.h; then
12194 acx_cv_header_stdint_kind="(u_intXX_t style)"
12195 for i in sys/types.h $inttype_headers; do
12196 unset ac_cv_type_u_int32_t
12197 unset ac_cv_type_u_int64_t
12198 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12199 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12200 #include <$i>
12202 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
12203 acx_cv_header_stdint=$i
12204 else
12205 continue
12208 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12209 #include <$i>
12211 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
12215 break
12216 done
12218 if test "$acx_cv_header_stdint" = stddef.h; then
12219 acx_cv_header_stdint_kind="(using manual detection)"
12222 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12223 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12224 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12225 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12226 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12228 # ----------------- Summarize what we found so far
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12231 $as_echo_n "checking what to include in gstdint.h... " >&6; }
12233 case `$as_basename -- gstdint.h ||
12234 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12235 Xgstdint.h : 'X\(//\)$' \| \
12236 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12237 $as_echo X/gstdint.h |
12238 sed '/^.*\/\([^/][^/]*\)\/*$/{
12239 s//\1/
12242 /^X\/\(\/\/\)$/{
12243 s//\1/
12246 /^X\/\(\/\).*/{
12247 s//\1/
12250 s/.*/./; q'` in
12251 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12252 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12253 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12254 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12255 *) ;;
12256 esac
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12259 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12261 # ----------------- done included file, check C basic types --------
12263 # Lacking an uintptr_t? Test size of void *
12264 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12265 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12266 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12267 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12268 # This bug is HP SR number 8606223364.
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12270 $as_echo_n "checking size of void *... " >&6; }
12271 if test "${ac_cv_sizeof_void_p+set}" = set; then :
12272 $as_echo_n "(cached) " >&6
12273 else
12274 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12276 else
12277 if test "$ac_cv_type_void_p" = yes; then
12278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12280 { as_fn_set_status 77
12281 as_fn_error "cannot compute sizeof (void *)
12282 See \`config.log' for more details." "$LINENO" 5; }; }
12283 else
12284 ac_cv_sizeof_void_p=0
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12290 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12294 cat >>confdefs.h <<_ACEOF
12295 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12296 _ACEOF
12299 esac
12301 # Lacking an uint64_t? Test size of long
12302 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12303 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12304 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12305 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12306 # This bug is HP SR number 8606223364.
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12308 $as_echo_n "checking size of long... " >&6; }
12309 if test "${ac_cv_sizeof_long+set}" = set; then :
12310 $as_echo_n "(cached) " >&6
12311 else
12312 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12314 else
12315 if test "$ac_cv_type_long" = yes; then
12316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12318 { as_fn_set_status 77
12319 as_fn_error "cannot compute sizeof (long)
12320 See \`config.log' for more details." "$LINENO" 5; }; }
12321 else
12322 ac_cv_sizeof_long=0
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12328 $as_echo "$ac_cv_sizeof_long" >&6; }
12332 cat >>confdefs.h <<_ACEOF
12333 #define SIZEOF_LONG $ac_cv_sizeof_long
12334 _ACEOF
12337 esac
12339 if test $acx_cv_header_stdint = stddef.h; then
12340 # Lacking a good header? Test size of everything and deduce all types.
12341 # The cast to long int works around a bug in the HP C Compiler
12342 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12343 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12344 # This bug is HP SR number 8606223364.
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12346 $as_echo_n "checking size of int... " >&6; }
12347 if test "${ac_cv_sizeof_int+set}" = set; then :
12348 $as_echo_n "(cached) " >&6
12349 else
12350 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12352 else
12353 if test "$ac_cv_type_int" = yes; then
12354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12356 { as_fn_set_status 77
12357 as_fn_error "cannot compute sizeof (int)
12358 See \`config.log' for more details." "$LINENO" 5; }; }
12359 else
12360 ac_cv_sizeof_int=0
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12366 $as_echo "$ac_cv_sizeof_int" >&6; }
12370 cat >>confdefs.h <<_ACEOF
12371 #define SIZEOF_INT $ac_cv_sizeof_int
12372 _ACEOF
12375 # The cast to long int works around a bug in the HP C Compiler
12376 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12377 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12378 # This bug is HP SR number 8606223364.
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12380 $as_echo_n "checking size of short... " >&6; }
12381 if test "${ac_cv_sizeof_short+set}" = set; then :
12382 $as_echo_n "(cached) " >&6
12383 else
12384 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12386 else
12387 if test "$ac_cv_type_short" = yes; then
12388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12390 { as_fn_set_status 77
12391 as_fn_error "cannot compute sizeof (short)
12392 See \`config.log' for more details." "$LINENO" 5; }; }
12393 else
12394 ac_cv_sizeof_short=0
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12400 $as_echo "$ac_cv_sizeof_short" >&6; }
12404 cat >>confdefs.h <<_ACEOF
12405 #define SIZEOF_SHORT $ac_cv_sizeof_short
12406 _ACEOF
12409 # The cast to long int works around a bug in the HP C Compiler
12410 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12411 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12412 # This bug is HP SR number 8606223364.
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12414 $as_echo_n "checking size of char... " >&6; }
12415 if test "${ac_cv_sizeof_char+set}" = set; then :
12416 $as_echo_n "(cached) " >&6
12417 else
12418 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
12420 else
12421 if test "$ac_cv_type_char" = yes; then
12422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12424 { as_fn_set_status 77
12425 as_fn_error "cannot compute sizeof (char)
12426 See \`config.log' for more details." "$LINENO" 5; }; }
12427 else
12428 ac_cv_sizeof_char=0
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12434 $as_echo "$ac_cv_sizeof_char" >&6; }
12438 cat >>confdefs.h <<_ACEOF
12439 #define SIZEOF_CHAR $ac_cv_sizeof_char
12440 _ACEOF
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12445 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
12446 case "$ac_cv_sizeof_char" in
12447 1) acx_cv_type_int8_t=char ;;
12448 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
12449 esac
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12451 $as_echo "$acx_cv_type_int8_t" >&6; }
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12454 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
12455 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12456 2:*) acx_cv_type_int16_t=int ;;
12457 *:2) acx_cv_type_int16_t=short ;;
12458 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
12459 esac
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12461 $as_echo "$acx_cv_type_int16_t" >&6; }
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12464 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
12465 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12466 4:*) acx_cv_type_int32_t=int ;;
12467 *:4) acx_cv_type_int32_t=long ;;
12468 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
12469 esac
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12471 $as_echo "$acx_cv_type_int32_t" >&6; }
12474 # These tests are here to make the output prettier
12476 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12477 case "$ac_cv_sizeof_long" in
12478 8) acx_cv_type_int64_t=long ;;
12479 esac
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12481 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12483 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12486 # Now we can use the above types
12488 if test "$ac_cv_type_uintptr_t" != yes; then
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12490 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12491 case $ac_cv_sizeof_void_p in
12492 2) acx_cv_type_intptr_t=int16_t ;;
12493 4) acx_cv_type_intptr_t=int32_t ;;
12494 8) acx_cv_type_intptr_t=int64_t ;;
12495 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
12496 esac
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12498 $as_echo "$acx_cv_type_intptr_t" >&6; }
12501 # ----------------- done all checks, emit header -------------
12502 ac_config_commands="$ac_config_commands gstdint.h"
12507 for ac_header in sys/mman.h
12508 do :
12509 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12510 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
12511 cat >>confdefs.h <<_ACEOF
12512 #define HAVE_SYS_MMAN_H 1
12513 _ACEOF
12517 done
12519 if test "$ac_cv_header_sys_mman_h" = "no"; then
12520 have_mmap=no
12521 else
12522 if test -n "${with_target_subdir}"; then
12523 # When built as a GCC target library, we can't do a link test. We
12524 # simply assume that if we have mman.h, we have mmap.
12525 have_mmap=yes
12526 case "${host}" in
12527 spu-*-*|*-*-msdosdjgpp)
12528 # The SPU does not have mmap, but it has a sys/mman.h header file
12529 # containing "mmap_eaddr" and the mmap flags, confusing the test.
12530 # DJGPP also has sys/man.h, but no mmap
12531 have_mmap=no ;;
12532 esac
12533 else
12534 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12535 if test "x$ac_cv_func_mmap" = x""yes; then :
12536 have_mmap=yes
12537 else
12538 have_mmap=no
12543 if test "$have_mmap" = "no"; then
12544 VIEW_FILE=read.lo
12545 ALLOC_FILE=alloc.lo
12546 else
12547 VIEW_FILE=mmapio.lo
12548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549 /* end confdefs.h. */
12551 #include <sys/mman.h>
12552 #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
12553 #error no MAP_ANONYMOUS
12554 #endif
12556 _ACEOF
12557 if ac_fn_c_try_cpp "$LINENO"; then :
12558 ALLOC_FILE=mmap.lo
12559 else
12560 ALLOC_FILE=alloc.lo
12562 rm -f conftest.err conftest.$ac_ext
12567 BACKTRACE_USES_MALLOC=0
12568 if test "$ALLOC_FILE" = "alloc.lo"; then
12569 BACKTRACE_USES_MALLOC=1
12573 # Check for dl_iterate_phdr.
12574 for ac_header in link.h
12575 do :
12576 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
12577 if test "x$ac_cv_header_link_h" = x""yes; then :
12578 cat >>confdefs.h <<_ACEOF
12579 #define HAVE_LINK_H 1
12580 _ACEOF
12584 done
12586 if test "$ac_cv_header_link_h" = "no"; then
12587 have_dl_iterate_phdr=no
12588 else
12589 if test -n "${with_target_subdir}"; then
12590 # When built as a GCC target library, we can't do a link test.
12591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12592 /* end confdefs.h. */
12593 #include <link.h>
12595 _ACEOF
12596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12597 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
12598 have_dl_iterate_phdr=yes
12599 else
12600 have_dl_iterate_phdr=no
12602 rm -f conftest*
12604 case "${host}" in
12605 *-*-solaris2.10*)
12606 # Avoid dl_iterate_phdr on Solaris 10, where it is in the
12607 # header file but is only in -ldl.
12608 have_dl_iterate_phdr=no ;;
12609 esac
12610 else
12611 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
12612 if test "x$ac_cv_func_dl_iterate_phdr" = x""yes; then :
12613 have_dl_iterate_phdr=yes
12614 else
12615 have_dl_iterate_phdr=no
12620 if test "$have_dl_iterate_phdr" = "yes"; then
12622 $as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
12626 # Check for loadquery.
12627 for ac_header in sys/ldr.h
12628 do :
12629 ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
12630 if test "x$ac_cv_header_sys_ldr_h" = x""yes; then :
12631 cat >>confdefs.h <<_ACEOF
12632 #define HAVE_SYS_LDR_H 1
12633 _ACEOF
12637 done
12639 if test "$ac_cv_header_sys_ldr_h" = "no"; then
12640 have_loadquery=no
12641 else
12642 if test -n "${with_target_subdir}"; then
12643 # When built as a GCC target library, we can't do a link test.
12644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645 /* end confdefs.h. */
12646 #include <sys/ldr.h>
12648 _ACEOF
12649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12650 $EGREP "loadquery" >/dev/null 2>&1; then :
12651 have_loadquery=yes
12652 else
12653 have_loadquery=no
12655 rm -f conftest*
12657 else
12658 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
12659 if test "x$ac_cv_func_loadquery" = x""yes; then :
12660 have_loadquery=yes
12661 else
12662 have_loadquery=no
12667 if test "$have_loadquery" = "yes"; then
12669 $as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
12673 # Check for the fcntl function.
12674 if test -n "${with_target_subdir}"; then
12675 case "${host}" in
12676 *-*-mingw*) have_fcntl=no ;;
12677 spu-*-*) have_fcntl=no ;;
12678 *) have_fcntl=yes ;;
12679 esac
12680 else
12681 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
12682 if test "x$ac_cv_func_fcntl" = x""yes; then :
12683 have_fcntl=yes
12684 else
12685 have_fcntl=no
12689 if test "$have_fcntl" = "yes"; then
12691 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
12695 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
12696 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
12697 ac_have_decl=1
12698 else
12699 ac_have_decl=0
12702 cat >>confdefs.h <<_ACEOF
12703 #define HAVE_DECL_STRNLEN $ac_have_decl
12704 _ACEOF
12707 # Check for getexecname function.
12708 if test -n "${with_target_subdir}"; then
12709 case "${host}" in
12710 *-*-solaris2*) have_getexecname=yes ;;
12711 *) have_getexecname=no ;;
12712 esac
12713 else
12714 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
12715 if test "x$ac_cv_func_getexecname" = x""yes; then :
12716 have_getexecname=yes
12717 else
12718 have_getexecname=no
12722 if test "$have_getexecname" = "yes"; then
12724 $as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
12729 $as_echo_n "checking whether -pthread is supported... " >&6; }
12730 if test "${libgo_cv_lib_pthread+set}" = set; then :
12731 $as_echo_n "(cached) " >&6
12732 else
12733 CFLAGS_hold=$CFLAGS
12734 CFLAGS="$CFLAGS -pthread"
12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12737 int i;
12738 _ACEOF
12739 if ac_fn_c_try_compile "$LINENO"; then :
12740 libgo_cv_lib_pthread=yes
12741 else
12742 libgo_cv_lib_pthread=no
12744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12745 CFLAGS=$CFLAGS_hold
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
12748 $as_echo "$libgo_cv_lib_pthread" >&6; }
12749 PTHREAD_CFLAGS=
12750 if test "$libgo_cv_lib_pthread" = yes; then
12751 PTHREAD_CFLAGS=-pthread
12755 if test "$libgo_cv_lib_pthread" = yes; then
12756 HAVE_PTHREAD_TRUE=
12757 HAVE_PTHREAD_FALSE='#'
12758 else
12759 HAVE_PTHREAD_TRUE='#'
12760 HAVE_PTHREAD_FALSE=
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
12765 $as_echo_n "checking whether tests can run... " >&6; }
12766 if test "${libbacktrace_cv_sys_native+set}" = set; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 if test "$cross_compiling" = yes; then :
12770 libbacktrace_cv_sys_native=no
12771 else
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h. */
12776 main ()
12778 return 0;
12780 return 0;
12782 _ACEOF
12783 if ac_fn_c_try_run "$LINENO"; then :
12784 libbacktrace_cv_sys_native=yes
12785 else
12786 libbacktrace_cv_sys_native=no
12788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12789 conftest.$ac_objext conftest.beam conftest.$ac_ext
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
12794 $as_echo "$libbacktrace_cv_sys_native" >&6; }
12795 if test "$libbacktrace_cv_sys_native" = "yes"; then
12796 NATIVE_TRUE=
12797 NATIVE_FALSE='#'
12798 else
12799 NATIVE_TRUE='#'
12800 NATIVE_FALSE=
12804 if test "${multilib}" = "yes"; then
12805 multilib_arg="--enable-multilib"
12806 else
12807 multilib_arg=
12810 ac_config_files="$ac_config_files Makefile backtrace-supported.h"
12813 # We need multilib support, but only if configuring for the target.
12814 ac_config_commands="$ac_config_commands default"
12817 cat >confcache <<\_ACEOF
12818 # This file is a shell script that caches the results of configure
12819 # tests run on this system so they can be shared between configure
12820 # scripts and configure runs, see configure's option --config-cache.
12821 # It is not useful on other systems. If it contains results you don't
12822 # want to keep, you may remove or edit it.
12824 # config.status only pays attention to the cache file if you give it
12825 # the --recheck option to rerun configure.
12827 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12828 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12829 # following values.
12831 _ACEOF
12833 # The following way of writing the cache mishandles newlines in values,
12834 # but we know of no workaround that is simple, portable, and efficient.
12835 # So, we kill variables containing newlines.
12836 # Ultrix sh set writes to stderr and can't be redirected directly,
12837 # and sets the high bit in the cache file unless we assign to the vars.
12839 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12840 eval ac_val=\$$ac_var
12841 case $ac_val in #(
12842 *${as_nl}*)
12843 case $ac_var in #(
12844 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12845 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12846 esac
12847 case $ac_var in #(
12848 _ | IFS | as_nl) ;; #(
12849 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12850 *) { eval $ac_var=; unset $ac_var;} ;;
12851 esac ;;
12852 esac
12853 done
12855 (set) 2>&1 |
12856 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12857 *${as_nl}ac_space=\ *)
12858 # `set' does not quote correctly, so add quotes: double-quote
12859 # substitution turns \\\\ into \\, and sed turns \\ into \.
12860 sed -n \
12861 "s/'/'\\\\''/g;
12862 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12863 ;; #(
12865 # `set' quotes correctly as required by POSIX, so do not add quotes.
12866 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12868 esac |
12869 sort
12871 sed '
12872 /^ac_cv_env_/b end
12873 t clear
12874 :clear
12875 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12876 t end
12877 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12878 :end' >>confcache
12879 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12880 if test -w "$cache_file"; then
12881 test "x$cache_file" != "x/dev/null" &&
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12883 $as_echo "$as_me: updating cache $cache_file" >&6;}
12884 cat confcache >$cache_file
12885 else
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12887 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12890 rm -f confcache
12892 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12893 # Let make expand exec_prefix.
12894 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12896 DEFS=-DHAVE_CONFIG_H
12898 ac_libobjs=
12899 ac_ltlibobjs=
12900 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12901 # 1. Remove the extension, and $U if already installed.
12902 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12903 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12904 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12905 # will be set to the directory where LIBOBJS objects are built.
12906 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12907 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12908 done
12909 LIBOBJS=$ac_libobjs
12911 LTLIBOBJS=$ac_ltlibobjs
12914 if test -n "$EXEEXT"; then
12915 am__EXEEXT_TRUE=
12916 am__EXEEXT_FALSE='#'
12917 else
12918 am__EXEEXT_TRUE='#'
12919 am__EXEEXT_FALSE=
12922 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12923 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12926 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
12927 as_fn_error "conditional \"HAVE_PTHREAD\" was never defined.
12928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12930 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
12931 as_fn_error "conditional \"NATIVE\" was never defined.
12932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12935 : ${CONFIG_STATUS=./config.status}
12936 ac_write_fail=0
12937 ac_clean_files_save=$ac_clean_files
12938 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12940 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12941 as_write_fail=0
12942 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12943 #! $SHELL
12944 # Generated by $as_me.
12945 # Run this file to recreate the current configuration.
12946 # Compiler output produced by configure, useful for debugging
12947 # configure, is in config.log if it exists.
12949 debug=false
12950 ac_cs_recheck=false
12951 ac_cs_silent=false
12953 SHELL=\${CONFIG_SHELL-$SHELL}
12954 export SHELL
12955 _ASEOF
12956 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12957 ## -------------------- ##
12958 ## M4sh Initialization. ##
12959 ## -------------------- ##
12961 # Be more Bourne compatible
12962 DUALCASE=1; export DUALCASE # for MKS sh
12963 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12964 emulate sh
12965 NULLCMD=:
12966 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12967 # is contrary to our usage. Disable this feature.
12968 alias -g '${1+"$@"}'='"$@"'
12969 setopt NO_GLOB_SUBST
12970 else
12971 case `(set -o) 2>/dev/null` in #(
12972 *posix*) :
12973 set -o posix ;; #(
12974 *) :
12976 esac
12980 as_nl='
12982 export as_nl
12983 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12984 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12985 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12986 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12987 # Prefer a ksh shell builtin over an external printf program on Solaris,
12988 # but without wasting forks for bash or zsh.
12989 if test -z "$BASH_VERSION$ZSH_VERSION" \
12990 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12991 as_echo='print -r --'
12992 as_echo_n='print -rn --'
12993 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12994 as_echo='printf %s\n'
12995 as_echo_n='printf %s'
12996 else
12997 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12998 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12999 as_echo_n='/usr/ucb/echo -n'
13000 else
13001 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13002 as_echo_n_body='eval
13003 arg=$1;
13004 case $arg in #(
13005 *"$as_nl"*)
13006 expr "X$arg" : "X\\(.*\\)$as_nl";
13007 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13008 esac;
13009 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13011 export as_echo_n_body
13012 as_echo_n='sh -c $as_echo_n_body as_echo'
13014 export as_echo_body
13015 as_echo='sh -c $as_echo_body as_echo'
13018 # The user is always right.
13019 if test "${PATH_SEPARATOR+set}" != set; then
13020 PATH_SEPARATOR=:
13021 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13022 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13023 PATH_SEPARATOR=';'
13028 # IFS
13029 # We need space, tab and new line, in precisely that order. Quoting is
13030 # there to prevent editors from complaining about space-tab.
13031 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13032 # splitting by setting IFS to empty value.)
13033 IFS=" "" $as_nl"
13035 # Find who we are. Look in the path if we contain no directory separator.
13036 case $0 in #((
13037 *[\\/]* ) as_myself=$0 ;;
13038 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13039 for as_dir in $PATH
13041 IFS=$as_save_IFS
13042 test -z "$as_dir" && as_dir=.
13043 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13044 done
13045 IFS=$as_save_IFS
13048 esac
13049 # We did not find ourselves, most probably we were run as `sh COMMAND'
13050 # in which case we are not to be found in the path.
13051 if test "x$as_myself" = x; then
13052 as_myself=$0
13054 if test ! -f "$as_myself"; then
13055 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13056 exit 1
13059 # Unset variables that we do not need and which cause bugs (e.g. in
13060 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13061 # suppresses any "Segmentation fault" message there. '((' could
13062 # trigger a bug in pdksh 5.2.14.
13063 for as_var in BASH_ENV ENV MAIL MAILPATH
13064 do eval test x\${$as_var+set} = xset \
13065 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13066 done
13067 PS1='$ '
13068 PS2='> '
13069 PS4='+ '
13071 # NLS nuisances.
13072 LC_ALL=C
13073 export LC_ALL
13074 LANGUAGE=C
13075 export LANGUAGE
13077 # CDPATH.
13078 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13081 # as_fn_error ERROR [LINENO LOG_FD]
13082 # ---------------------------------
13083 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13084 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13085 # script with status $?, using 1 if that was 0.
13086 as_fn_error ()
13088 as_status=$?; test $as_status -eq 0 && as_status=1
13089 if test "$3"; then
13090 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13091 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13093 $as_echo "$as_me: error: $1" >&2
13094 as_fn_exit $as_status
13095 } # as_fn_error
13098 # as_fn_set_status STATUS
13099 # -----------------------
13100 # Set $? to STATUS, without forking.
13101 as_fn_set_status ()
13103 return $1
13104 } # as_fn_set_status
13106 # as_fn_exit STATUS
13107 # -----------------
13108 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13109 as_fn_exit ()
13111 set +e
13112 as_fn_set_status $1
13113 exit $1
13114 } # as_fn_exit
13116 # as_fn_unset VAR
13117 # ---------------
13118 # Portably unset VAR.
13119 as_fn_unset ()
13121 { eval $1=; unset $1;}
13123 as_unset=as_fn_unset
13124 # as_fn_append VAR VALUE
13125 # ----------------------
13126 # Append the text in VALUE to the end of the definition contained in VAR. Take
13127 # advantage of any shell optimizations that allow amortized linear growth over
13128 # repeated appends, instead of the typical quadratic growth present in naive
13129 # implementations.
13130 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13131 eval 'as_fn_append ()
13133 eval $1+=\$2
13135 else
13136 as_fn_append ()
13138 eval $1=\$$1\$2
13140 fi # as_fn_append
13142 # as_fn_arith ARG...
13143 # ------------------
13144 # Perform arithmetic evaluation on the ARGs, and store the result in the
13145 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13146 # must be portable across $(()) and expr.
13147 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13148 eval 'as_fn_arith ()
13150 as_val=$(( $* ))
13152 else
13153 as_fn_arith ()
13155 as_val=`expr "$@" || test $? -eq 1`
13157 fi # as_fn_arith
13160 if expr a : '\(a\)' >/dev/null 2>&1 &&
13161 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13162 as_expr=expr
13163 else
13164 as_expr=false
13167 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13168 as_basename=basename
13169 else
13170 as_basename=false
13173 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13174 as_dirname=dirname
13175 else
13176 as_dirname=false
13179 as_me=`$as_basename -- "$0" ||
13180 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13181 X"$0" : 'X\(//\)$' \| \
13182 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13183 $as_echo X/"$0" |
13184 sed '/^.*\/\([^/][^/]*\)\/*$/{
13185 s//\1/
13188 /^X\/\(\/\/\)$/{
13189 s//\1/
13192 /^X\/\(\/\).*/{
13193 s//\1/
13196 s/.*/./; q'`
13198 # Avoid depending upon Character Ranges.
13199 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13200 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13201 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13202 as_cr_digits='0123456789'
13203 as_cr_alnum=$as_cr_Letters$as_cr_digits
13205 ECHO_C= ECHO_N= ECHO_T=
13206 case `echo -n x` in #(((((
13207 -n*)
13208 case `echo 'xy\c'` in
13209 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13210 xy) ECHO_C='\c';;
13211 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13212 ECHO_T=' ';;
13213 esac;;
13215 ECHO_N='-n';;
13216 esac
13218 rm -f conf$$ conf$$.exe conf$$.file
13219 if test -d conf$$.dir; then
13220 rm -f conf$$.dir/conf$$.file
13221 else
13222 rm -f conf$$.dir
13223 mkdir conf$$.dir 2>/dev/null
13225 if (echo >conf$$.file) 2>/dev/null; then
13226 if ln -s conf$$.file conf$$ 2>/dev/null; then
13227 as_ln_s='ln -s'
13228 # ... but there are two gotchas:
13229 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13230 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13231 # In both cases, we have to default to `cp -p'.
13232 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13233 as_ln_s='cp -p'
13234 elif ln conf$$.file conf$$ 2>/dev/null; then
13235 as_ln_s=ln
13236 else
13237 as_ln_s='cp -p'
13239 else
13240 as_ln_s='cp -p'
13242 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13243 rmdir conf$$.dir 2>/dev/null
13246 # as_fn_mkdir_p
13247 # -------------
13248 # Create "$as_dir" as a directory, including parents if necessary.
13249 as_fn_mkdir_p ()
13252 case $as_dir in #(
13253 -*) as_dir=./$as_dir;;
13254 esac
13255 test -d "$as_dir" || eval $as_mkdir_p || {
13256 as_dirs=
13257 while :; do
13258 case $as_dir in #(
13259 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13260 *) as_qdir=$as_dir;;
13261 esac
13262 as_dirs="'$as_qdir' $as_dirs"
13263 as_dir=`$as_dirname -- "$as_dir" ||
13264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13265 X"$as_dir" : 'X\(//\)[^/]' \| \
13266 X"$as_dir" : 'X\(//\)$' \| \
13267 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13268 $as_echo X"$as_dir" |
13269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13270 s//\1/
13273 /^X\(\/\/\)[^/].*/{
13274 s//\1/
13277 /^X\(\/\/\)$/{
13278 s//\1/
13281 /^X\(\/\).*/{
13282 s//\1/
13285 s/.*/./; q'`
13286 test -d "$as_dir" && break
13287 done
13288 test -z "$as_dirs" || eval "mkdir $as_dirs"
13289 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13292 } # as_fn_mkdir_p
13293 if mkdir -p . 2>/dev/null; then
13294 as_mkdir_p='mkdir -p "$as_dir"'
13295 else
13296 test -d ./-p && rmdir ./-p
13297 as_mkdir_p=false
13300 if test -x / >/dev/null 2>&1; then
13301 as_test_x='test -x'
13302 else
13303 if ls -dL / >/dev/null 2>&1; then
13304 as_ls_L_option=L
13305 else
13306 as_ls_L_option=
13308 as_test_x='
13309 eval sh -c '\''
13310 if test -d "$1"; then
13311 test -d "$1/.";
13312 else
13313 case $1 in #(
13314 -*)set "./$1";;
13315 esac;
13316 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13317 ???[sx]*):;;*)false;;esac;fi
13318 '\'' sh
13321 as_executable_p=$as_test_x
13323 # Sed expression to map a string onto a valid CPP name.
13324 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13326 # Sed expression to map a string onto a valid variable name.
13327 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13330 exec 6>&1
13331 ## ----------------------------------- ##
13332 ## Main body of $CONFIG_STATUS script. ##
13333 ## ----------------------------------- ##
13334 _ASEOF
13335 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13338 # Save the log message, to keep $0 and so on meaningful, and to
13339 # report actual input values of CONFIG_FILES etc. instead of their
13340 # values after options handling.
13341 ac_log="
13342 This file was extended by package-unused $as_me version-unused, which was
13343 generated by GNU Autoconf 2.64. Invocation command line was
13345 CONFIG_FILES = $CONFIG_FILES
13346 CONFIG_HEADERS = $CONFIG_HEADERS
13347 CONFIG_LINKS = $CONFIG_LINKS
13348 CONFIG_COMMANDS = $CONFIG_COMMANDS
13349 $ $0 $@
13351 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13354 _ACEOF
13356 case $ac_config_files in *"
13357 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13358 esac
13360 case $ac_config_headers in *"
13361 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13362 esac
13365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13366 # Files that config.status was made for.
13367 config_files="$ac_config_files"
13368 config_headers="$ac_config_headers"
13369 config_commands="$ac_config_commands"
13371 _ACEOF
13373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13374 ac_cs_usage="\
13375 \`$as_me' instantiates files and other configuration actions
13376 from templates according to the current configuration. Unless the files
13377 and actions are specified as TAGs, all are instantiated by default.
13379 Usage: $0 [OPTION]... [TAG]...
13381 -h, --help print this help, then exit
13382 -V, --version print version number and configuration settings, then exit
13383 -q, --quiet, --silent
13384 do not print progress messages
13385 -d, --debug don't remove temporary files
13386 --recheck update $as_me by reconfiguring in the same conditions
13387 --file=FILE[:TEMPLATE]
13388 instantiate the configuration file FILE
13389 --header=FILE[:TEMPLATE]
13390 instantiate the configuration header FILE
13392 Configuration files:
13393 $config_files
13395 Configuration headers:
13396 $config_headers
13398 Configuration commands:
13399 $config_commands
13401 Report bugs to the package provider."
13403 _ACEOF
13404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13405 ac_cs_version="\\
13406 package-unused config.status version-unused
13407 configured by $0, generated by GNU Autoconf 2.64,
13408 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13410 Copyright (C) 2009 Free Software Foundation, Inc.
13411 This config.status script is free software; the Free Software Foundation
13412 gives unlimited permission to copy, distribute and modify it."
13414 ac_pwd='$ac_pwd'
13415 srcdir='$srcdir'
13416 INSTALL='$INSTALL'
13417 MKDIR_P='$MKDIR_P'
13418 AWK='$AWK'
13419 test -n "\$AWK" || AWK=awk
13420 _ACEOF
13422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13423 # The default lists apply if the user does not specify any file.
13424 ac_need_defaults=:
13425 while test $# != 0
13427 case $1 in
13428 --*=*)
13429 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13430 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13431 ac_shift=:
13434 ac_option=$1
13435 ac_optarg=$2
13436 ac_shift=shift
13438 esac
13440 case $ac_option in
13441 # Handling of the options.
13442 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13443 ac_cs_recheck=: ;;
13444 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13445 $as_echo "$ac_cs_version"; exit ;;
13446 --debug | --debu | --deb | --de | --d | -d )
13447 debug=: ;;
13448 --file | --fil | --fi | --f )
13449 $ac_shift
13450 case $ac_optarg in
13451 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13452 esac
13453 as_fn_append CONFIG_FILES " '$ac_optarg'"
13454 ac_need_defaults=false;;
13455 --header | --heade | --head | --hea )
13456 $ac_shift
13457 case $ac_optarg in
13458 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13459 esac
13460 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13461 ac_need_defaults=false;;
13462 --he | --h)
13463 # Conflict between --help and --header
13464 as_fn_error "ambiguous option: \`$1'
13465 Try \`$0 --help' for more information.";;
13466 --help | --hel | -h )
13467 $as_echo "$ac_cs_usage"; exit ;;
13468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13469 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13470 ac_cs_silent=: ;;
13472 # This is an error.
13473 -*) as_fn_error "unrecognized option: \`$1'
13474 Try \`$0 --help' for more information." ;;
13476 *) as_fn_append ac_config_targets " $1"
13477 ac_need_defaults=false ;;
13479 esac
13480 shift
13481 done
13483 ac_configure_extra_args=
13485 if $ac_cs_silent; then
13486 exec 6>/dev/null
13487 ac_configure_extra_args="$ac_configure_extra_args --silent"
13490 _ACEOF
13491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13492 if \$ac_cs_recheck; then
13493 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13494 shift
13495 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13496 CONFIG_SHELL='$SHELL'
13497 export CONFIG_SHELL
13498 exec "\$@"
13501 _ACEOF
13502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13503 exec 5>>config.log
13505 echo
13506 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13507 ## Running $as_me. ##
13508 _ASBOX
13509 $as_echo "$ac_log"
13510 } >&5
13512 _ACEOF
13513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13515 # INIT-COMMANDS
13518 srcdir="$srcdir"
13519 host="$host"
13520 target="$target"
13521 with_multisubdir="$with_multisubdir"
13522 with_multisrctop="$with_multisrctop"
13523 with_target_subdir="$with_target_subdir"
13524 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13525 multi_basedir="$multi_basedir"
13526 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13527 CC="$CC"
13528 CXX="$CXX"
13529 GFORTRAN="$GFORTRAN"
13532 # The HP-UX ksh and POSIX shell print the target directory to stdout
13533 # if CDPATH is set.
13534 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13536 sed_quote_subst='$sed_quote_subst'
13537 double_quote_subst='$double_quote_subst'
13538 delay_variable_subst='$delay_variable_subst'
13539 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13540 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13541 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13542 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13543 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13544 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13545 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13546 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13547 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13548 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13549 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13550 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13551 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13552 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13553 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13554 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13555 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13556 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13557 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13558 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13559 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13560 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13561 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13562 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13563 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13564 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13565 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13566 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13567 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13568 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13569 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13570 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13571 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13572 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13573 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13574 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13575 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13576 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13577 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13578 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13579 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13580 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13581 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13582 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13583 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13584 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13585 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13586 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13587 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"`'
13588 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13589 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13590 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13591 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13592 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13593 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13594 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13595 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13596 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13597 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13598 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13599 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13600 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13601 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13602 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13603 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13604 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13605 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13606 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13607 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13608 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13609 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13610 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13611 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13612 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13613 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13614 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13615 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13616 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13617 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13618 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13619 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13620 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13621 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13622 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13623 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13624 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13625 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13626 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13627 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13628 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13629 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13630 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13631 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13632 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13633 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13634 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13635 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13636 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13637 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13638 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13639 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13640 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13641 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13642 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13643 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13644 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13645 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13646 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13647 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13648 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13649 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13650 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13651 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13652 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13653 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13654 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13655 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13656 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13657 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13658 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13660 LTCC='$LTCC'
13661 LTCFLAGS='$LTCFLAGS'
13662 compiler='$compiler_DEFAULT'
13664 # A function that is used when there is no print builtin or printf.
13665 func_fallback_echo ()
13667 eval 'cat <<_LTECHO_EOF
13669 _LTECHO_EOF'
13672 # Quote evaled strings.
13673 for var in SHELL \
13674 ECHO \
13675 SED \
13676 GREP \
13677 EGREP \
13678 FGREP \
13679 LD \
13680 NM \
13681 LN_S \
13682 lt_SP2NL \
13683 lt_NL2SP \
13684 reload_flag \
13685 OBJDUMP \
13686 deplibs_check_method \
13687 file_magic_cmd \
13688 AR \
13689 AR_FLAGS \
13690 STRIP \
13691 RANLIB \
13692 CC \
13693 CFLAGS \
13694 compiler \
13695 lt_cv_sys_global_symbol_pipe \
13696 lt_cv_sys_global_symbol_to_cdecl \
13697 lt_cv_sys_global_symbol_to_c_name_address \
13698 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13699 lt_prog_compiler_no_builtin_flag \
13700 lt_prog_compiler_wl \
13701 lt_prog_compiler_pic \
13702 lt_prog_compiler_static \
13703 lt_cv_prog_compiler_c_o \
13704 need_locks \
13705 DSYMUTIL \
13706 NMEDIT \
13707 LIPO \
13708 OTOOL \
13709 OTOOL64 \
13710 shrext_cmds \
13711 export_dynamic_flag_spec \
13712 whole_archive_flag_spec \
13713 compiler_needs_object \
13714 with_gnu_ld \
13715 allow_undefined_flag \
13716 no_undefined_flag \
13717 hardcode_libdir_flag_spec \
13718 hardcode_libdir_flag_spec_ld \
13719 hardcode_libdir_separator \
13720 fix_srcfile_path \
13721 exclude_expsyms \
13722 include_expsyms \
13723 file_list_spec \
13724 variables_saved_for_relink \
13725 libname_spec \
13726 library_names_spec \
13727 soname_spec \
13728 install_override_mode \
13729 finish_eval \
13730 old_striplib \
13731 striplib; do
13732 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13733 *[\\\\\\\`\\"\\\$]*)
13734 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13737 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13739 esac
13740 done
13742 # Double-quote double-evaled strings.
13743 for var in reload_cmds \
13744 old_postinstall_cmds \
13745 old_postuninstall_cmds \
13746 old_archive_cmds \
13747 extract_expsyms_cmds \
13748 old_archive_from_new_cmds \
13749 old_archive_from_expsyms_cmds \
13750 archive_cmds \
13751 archive_expsym_cmds \
13752 module_cmds \
13753 module_expsym_cmds \
13754 export_symbols_cmds \
13755 prelink_cmds \
13756 postinstall_cmds \
13757 postuninstall_cmds \
13758 finish_cmds \
13759 sys_lib_search_path_spec \
13760 sys_lib_dlsearch_path_spec; do
13761 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13762 *[\\\\\\\`\\"\\\$]*)
13763 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13766 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13768 esac
13769 done
13771 ac_aux_dir='$ac_aux_dir'
13772 xsi_shell='$xsi_shell'
13773 lt_shell_append='$lt_shell_append'
13775 # See if we are running on zsh, and set the options which allow our
13776 # commands through without removal of \ escapes INIT.
13777 if test -n "\${ZSH_VERSION+set}" ; then
13778 setopt NO_GLOB_SUBST
13782 PACKAGE='$PACKAGE'
13783 VERSION='$VERSION'
13784 TIMESTAMP='$TIMESTAMP'
13785 RM='$RM'
13786 ofile='$ofile'
13791 GCC="$GCC"
13792 CC="$CC"
13793 acx_cv_header_stdint="$acx_cv_header_stdint"
13794 acx_cv_type_int8_t="$acx_cv_type_int8_t"
13795 acx_cv_type_int16_t="$acx_cv_type_int16_t"
13796 acx_cv_type_int32_t="$acx_cv_type_int32_t"
13797 acx_cv_type_int64_t="$acx_cv_type_int64_t"
13798 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
13799 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
13800 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
13801 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
13802 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
13803 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
13804 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
13805 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
13806 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
13809 # Variables needed in config.status (file generation) which aren't already
13810 # passed by autoconf.
13811 SUBDIRS="$SUBDIRS"
13814 _ACEOF
13816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13818 # Handling of arguments.
13819 for ac_config_target in $ac_config_targets
13821 case $ac_config_target in
13822 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13823 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13824 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13825 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
13826 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13827 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
13828 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13830 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13831 esac
13832 done
13835 # If the user did not use the arguments to specify the items to instantiate,
13836 # then the envvar interface is used. Set only those that are not.
13837 # We use the long form for the default assignment because of an extremely
13838 # bizarre bug on SunOS 4.1.3.
13839 if $ac_need_defaults; then
13840 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13841 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13842 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13845 # Have a temporary directory for convenience. Make it in the build tree
13846 # simply because there is no reason against having it here, and in addition,
13847 # creating and moving files from /tmp can sometimes cause problems.
13848 # Hook for its removal unless debugging.
13849 # Note that there is a small window in which the directory will not be cleaned:
13850 # after its creation but before its name has been assigned to `$tmp'.
13851 $debug ||
13853 tmp=
13854 trap 'exit_status=$?
13855 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13857 trap 'as_fn_exit 1' 1 2 13 15
13859 # Create a (secure) tmp directory for tmp files.
13862 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13863 test -n "$tmp" && test -d "$tmp"
13864 } ||
13866 tmp=./conf$$-$RANDOM
13867 (umask 077 && mkdir "$tmp")
13868 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13870 # Set up the scripts for CONFIG_FILES section.
13871 # No need to generate them if there are no CONFIG_FILES.
13872 # This happens for instance with `./config.status config.h'.
13873 if test -n "$CONFIG_FILES"; then
13876 ac_cr=`echo X | tr X '\015'`
13877 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13878 # But we know of no other shell where ac_cr would be empty at this
13879 # point, so we can use a bashism as a fallback.
13880 if test "x$ac_cr" = x; then
13881 eval ac_cr=\$\'\\r\'
13883 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13884 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13885 ac_cs_awk_cr='\r'
13886 else
13887 ac_cs_awk_cr=$ac_cr
13890 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13891 _ACEOF
13895 echo "cat >conf$$subs.awk <<_ACEOF" &&
13896 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13897 echo "_ACEOF"
13898 } >conf$$subs.sh ||
13899 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13900 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13901 ac_delim='%!_!# '
13902 for ac_last_try in false false false false false :; do
13903 . ./conf$$subs.sh ||
13904 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13906 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13907 if test $ac_delim_n = $ac_delim_num; then
13908 break
13909 elif $ac_last_try; then
13910 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13911 else
13912 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13914 done
13915 rm -f conf$$subs.sh
13917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13918 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13919 _ACEOF
13920 sed -n '
13922 s/^/S["/; s/!.*/"]=/
13925 s/^[^!]*!//
13926 :repl
13927 t repl
13928 s/'"$ac_delim"'$//
13929 t delim
13932 s/\(.\{148\}\).*/\1/
13933 t more1
13934 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13937 b repl
13938 :more1
13939 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13942 s/.\{148\}//
13943 t nl
13944 :delim
13946 s/\(.\{148\}\).*/\1/
13947 t more2
13948 s/["\\]/\\&/g; s/^/"/; s/$/"/
13951 :more2
13952 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13955 s/.\{148\}//
13956 t delim
13957 ' <conf$$subs.awk | sed '
13958 /^[^""]/{
13960 s/\n//
13962 ' >>$CONFIG_STATUS || ac_write_fail=1
13963 rm -f conf$$subs.awk
13964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13965 _ACAWK
13966 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13967 for (key in S) S_is_set[key] = 1
13968 FS = "\a"
13972 line = $ 0
13973 nfields = split(line, field, "@")
13974 substed = 0
13975 len = length(field[1])
13976 for (i = 2; i < nfields; i++) {
13977 key = field[i]
13978 keylen = length(key)
13979 if (S_is_set[key]) {
13980 value = S[key]
13981 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13982 len += length(value) + length(field[++i])
13983 substed = 1
13984 } else
13985 len += 1 + keylen
13988 print line
13991 _ACAWK
13992 _ACEOF
13993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13994 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13995 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13996 else
13998 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13999 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14000 _ACEOF
14002 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14003 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14004 # trailing colons and then remove the whole line if VPATH becomes empty
14005 # (actually we leave an empty line to preserve line numbers).
14006 if test "x$srcdir" = x.; then
14007 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14008 s/:*\$(srcdir):*/:/
14009 s/:*\${srcdir}:*/:/
14010 s/:*@srcdir@:*/:/
14011 s/^\([^=]*=[ ]*\):*/\1/
14012 s/:*$//
14013 s/^[^=]*=[ ]*$//
14017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14018 fi # test -n "$CONFIG_FILES"
14020 # Set up the scripts for CONFIG_HEADERS section.
14021 # No need to generate them if there are no CONFIG_HEADERS.
14022 # This happens for instance with `./config.status Makefile'.
14023 if test -n "$CONFIG_HEADERS"; then
14024 cat >"$tmp/defines.awk" <<\_ACAWK ||
14025 BEGIN {
14026 _ACEOF
14028 # Transform confdefs.h into an awk script `defines.awk', embedded as
14029 # here-document in config.status, that substitutes the proper values into
14030 # config.h.in to produce config.h.
14032 # Create a delimiter string that does not exist in confdefs.h, to ease
14033 # handling of long lines.
14034 ac_delim='%!_!# '
14035 for ac_last_try in false false :; do
14036 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14037 if test -z "$ac_t"; then
14038 break
14039 elif $ac_last_try; then
14040 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14041 else
14042 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14044 done
14046 # For the awk script, D is an array of macro values keyed by name,
14047 # likewise P contains macro parameters if any. Preserve backslash
14048 # newline sequences.
14050 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14051 sed -n '
14052 s/.\{148\}/&'"$ac_delim"'/g
14053 t rset
14054 :rset
14055 s/^[ ]*#[ ]*define[ ][ ]*/ /
14056 t def
14058 :def
14059 s/\\$//
14060 t bsnl
14061 s/["\\]/\\&/g
14062 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14063 D["\1"]=" \3"/p
14064 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14066 :bsnl
14067 s/["\\]/\\&/g
14068 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14069 D["\1"]=" \3\\\\\\n"\\/p
14070 t cont
14071 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14072 t cont
14074 :cont
14076 s/.\{148\}/&'"$ac_delim"'/g
14077 t clear
14078 :clear
14079 s/\\$//
14080 t bsnlc
14081 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14083 :bsnlc
14084 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14085 b cont
14086 ' <confdefs.h | sed '
14087 s/'"$ac_delim"'/"\\\
14088 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14091 for (key in D) D_is_set[key] = 1
14092 FS = "\a"
14094 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14095 line = \$ 0
14096 split(line, arg, " ")
14097 if (arg[1] == "#") {
14098 defundef = arg[2]
14099 mac1 = arg[3]
14100 } else {
14101 defundef = substr(arg[1], 2)
14102 mac1 = arg[2]
14104 split(mac1, mac2, "(") #)
14105 macro = mac2[1]
14106 prefix = substr(line, 1, index(line, defundef) - 1)
14107 if (D_is_set[macro]) {
14108 # Preserve the white space surrounding the "#".
14109 print prefix "define", macro P[macro] D[macro]
14110 next
14111 } else {
14112 # Replace #undef with comments. This is necessary, for example,
14113 # in the case of _POSIX_SOURCE, which is predefined and required
14114 # on some systems where configure will not decide to define it.
14115 if (defundef == "undef") {
14116 print "/*", prefix defundef, macro, "*/"
14117 next
14121 { print }
14122 _ACAWK
14123 _ACEOF
14124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14125 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14126 fi # test -n "$CONFIG_HEADERS"
14129 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14130 shift
14131 for ac_tag
14133 case $ac_tag in
14134 :[FHLC]) ac_mode=$ac_tag; continue;;
14135 esac
14136 case $ac_mode$ac_tag in
14137 :[FHL]*:*);;
14138 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14139 :[FH]-) ac_tag=-:-;;
14140 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14141 esac
14142 ac_save_IFS=$IFS
14143 IFS=:
14144 set x $ac_tag
14145 IFS=$ac_save_IFS
14146 shift
14147 ac_file=$1
14148 shift
14150 case $ac_mode in
14151 :L) ac_source=$1;;
14152 :[FH])
14153 ac_file_inputs=
14154 for ac_f
14156 case $ac_f in
14157 -) ac_f="$tmp/stdin";;
14158 *) # Look for the file first in the build tree, then in the source tree
14159 # (if the path is not absolute). The absolute path cannot be DOS-style,
14160 # because $ac_f cannot contain `:'.
14161 test -f "$ac_f" ||
14162 case $ac_f in
14163 [\\/$]*) false;;
14164 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14165 esac ||
14166 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14167 esac
14168 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14169 as_fn_append ac_file_inputs " '$ac_f'"
14170 done
14172 # Let's still pretend it is `configure' which instantiates (i.e., don't
14173 # use $as_me), people would be surprised to read:
14174 # /* config.h. Generated by config.status. */
14175 configure_input='Generated from '`
14176 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14177 `' by configure.'
14178 if test x"$ac_file" != x-; then
14179 configure_input="$ac_file. $configure_input"
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14181 $as_echo "$as_me: creating $ac_file" >&6;}
14183 # Neutralize special characters interpreted by sed in replacement strings.
14184 case $configure_input in #(
14185 *\&* | *\|* | *\\* )
14186 ac_sed_conf_input=`$as_echo "$configure_input" |
14187 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14188 *) ac_sed_conf_input=$configure_input;;
14189 esac
14191 case $ac_tag in
14192 *:-:* | *:-) cat >"$tmp/stdin" \
14193 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14194 esac
14196 esac
14198 ac_dir=`$as_dirname -- "$ac_file" ||
14199 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14200 X"$ac_file" : 'X\(//\)[^/]' \| \
14201 X"$ac_file" : 'X\(//\)$' \| \
14202 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14203 $as_echo X"$ac_file" |
14204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14205 s//\1/
14208 /^X\(\/\/\)[^/].*/{
14209 s//\1/
14212 /^X\(\/\/\)$/{
14213 s//\1/
14216 /^X\(\/\).*/{
14217 s//\1/
14220 s/.*/./; q'`
14221 as_dir="$ac_dir"; as_fn_mkdir_p
14222 ac_builddir=.
14224 case "$ac_dir" in
14225 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14227 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14228 # A ".." for each directory in $ac_dir_suffix.
14229 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14230 case $ac_top_builddir_sub in
14231 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14232 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14233 esac ;;
14234 esac
14235 ac_abs_top_builddir=$ac_pwd
14236 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14237 # for backward compatibility:
14238 ac_top_builddir=$ac_top_build_prefix
14240 case $srcdir in
14241 .) # We are building in place.
14242 ac_srcdir=.
14243 ac_top_srcdir=$ac_top_builddir_sub
14244 ac_abs_top_srcdir=$ac_pwd ;;
14245 [\\/]* | ?:[\\/]* ) # Absolute name.
14246 ac_srcdir=$srcdir$ac_dir_suffix;
14247 ac_top_srcdir=$srcdir
14248 ac_abs_top_srcdir=$srcdir ;;
14249 *) # Relative name.
14250 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14251 ac_top_srcdir=$ac_top_build_prefix$srcdir
14252 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14253 esac
14254 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14257 case $ac_mode in
14260 # CONFIG_FILE
14263 case $INSTALL in
14264 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14265 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14266 esac
14267 ac_MKDIR_P=$MKDIR_P
14268 case $MKDIR_P in
14269 [\\/$]* | ?:[\\/]* ) ;;
14270 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14271 esac
14272 _ACEOF
14274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14275 # If the template does not know about datarootdir, expand it.
14276 # FIXME: This hack should be removed a few years after 2.60.
14277 ac_datarootdir_hack=; ac_datarootdir_seen=
14278 ac_sed_dataroot='
14279 /datarootdir/ {
14283 /@datadir@/p
14284 /@docdir@/p
14285 /@infodir@/p
14286 /@localedir@/p
14287 /@mandir@/p'
14288 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14289 *datarootdir*) ac_datarootdir_seen=yes;;
14290 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14292 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14293 _ACEOF
14294 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14295 ac_datarootdir_hack='
14296 s&@datadir@&$datadir&g
14297 s&@docdir@&$docdir&g
14298 s&@infodir@&$infodir&g
14299 s&@localedir@&$localedir&g
14300 s&@mandir@&$mandir&g
14301 s&\\\${datarootdir}&$datarootdir&g' ;;
14302 esac
14303 _ACEOF
14305 # Neutralize VPATH when `$srcdir' = `.'.
14306 # Shell code in configure.ac might set extrasub.
14307 # FIXME: do we really want to maintain this feature?
14308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14309 ac_sed_extra="$ac_vpsub
14310 $extrasub
14311 _ACEOF
14312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14314 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14315 s|@configure_input@|$ac_sed_conf_input|;t t
14316 s&@top_builddir@&$ac_top_builddir_sub&;t t
14317 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14318 s&@srcdir@&$ac_srcdir&;t t
14319 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14320 s&@top_srcdir@&$ac_top_srcdir&;t t
14321 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14322 s&@builddir@&$ac_builddir&;t t
14323 s&@abs_builddir@&$ac_abs_builddir&;t t
14324 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14325 s&@INSTALL@&$ac_INSTALL&;t t
14326 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14327 $ac_datarootdir_hack
14329 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14330 || as_fn_error "could not create $ac_file" "$LINENO" 5
14332 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14333 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14334 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14336 which seems to be undefined. Please make sure it is defined." >&5
14337 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14338 which seems to be undefined. Please make sure it is defined." >&2;}
14340 rm -f "$tmp/stdin"
14341 case $ac_file in
14342 -) cat "$tmp/out" && rm -f "$tmp/out";;
14343 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14344 esac \
14345 || as_fn_error "could not create $ac_file" "$LINENO" 5
14349 # CONFIG_HEADER
14351 if test x"$ac_file" != x-; then
14353 $as_echo "/* $configure_input */" \
14354 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14355 } >"$tmp/config.h" \
14356 || as_fn_error "could not create $ac_file" "$LINENO" 5
14357 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14359 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14360 else
14361 rm -f "$ac_file"
14362 mv "$tmp/config.h" "$ac_file" \
14363 || as_fn_error "could not create $ac_file" "$LINENO" 5
14365 else
14366 $as_echo "/* $configure_input */" \
14367 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14368 || as_fn_error "could not create -" "$LINENO" 5
14370 # Compute "$ac_file"'s index in $config_headers.
14371 _am_arg="$ac_file"
14372 _am_stamp_count=1
14373 for _am_header in $config_headers :; do
14374 case $_am_header in
14375 $_am_arg | $_am_arg:* )
14376 break ;;
14378 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14379 esac
14380 done
14381 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14382 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14383 X"$_am_arg" : 'X\(//\)[^/]' \| \
14384 X"$_am_arg" : 'X\(//\)$' \| \
14385 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14386 $as_echo X"$_am_arg" |
14387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14388 s//\1/
14391 /^X\(\/\/\)[^/].*/{
14392 s//\1/
14395 /^X\(\/\/\)$/{
14396 s//\1/
14399 /^X\(\/\).*/{
14400 s//\1/
14403 s/.*/./; q'`/stamp-h$_am_stamp_count
14406 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14407 $as_echo "$as_me: executing $ac_file commands" >&6;}
14409 esac
14412 case $ac_file$ac_mode in
14413 "default-1":C)
14414 # Only add multilib support code if we just rebuilt the top-level
14415 # Makefile.
14416 case " $CONFIG_FILES " in
14417 *" Makefile "*)
14418 ac_file=Makefile . ${multi_basedir}/config-ml.in
14420 esac ;;
14421 "libtool":C)
14423 # See if we are running on zsh, and set the options which allow our
14424 # commands through without removal of \ escapes.
14425 if test -n "${ZSH_VERSION+set}" ; then
14426 setopt NO_GLOB_SUBST
14429 cfgfile="${ofile}T"
14430 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14431 $RM "$cfgfile"
14433 cat <<_LT_EOF >> "$cfgfile"
14434 #! $SHELL
14436 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14437 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14438 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14439 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14441 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14442 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14443 # Written by Gordon Matzigkeit, 1996
14445 # This file is part of GNU Libtool.
14447 # GNU Libtool is free software; you can redistribute it and/or
14448 # modify it under the terms of the GNU General Public License as
14449 # published by the Free Software Foundation; either version 2 of
14450 # the License, or (at your option) any later version.
14452 # As a special exception to the GNU General Public License,
14453 # if you distribute this file as part of a program or library that
14454 # is built using GNU Libtool, you may include this file under the
14455 # same distribution terms that you use for the rest of that program.
14457 # GNU Libtool is distributed in the hope that it will be useful,
14458 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14459 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14460 # GNU General Public License for more details.
14462 # You should have received a copy of the GNU General Public License
14463 # along with GNU Libtool; see the file COPYING. If not, a copy
14464 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14465 # obtained by writing to the Free Software Foundation, Inc.,
14466 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14469 # The names of the tagged configurations supported by this script.
14470 available_tags=""
14472 # ### BEGIN LIBTOOL CONFIG
14474 # Which release of libtool.m4 was used?
14475 macro_version=$macro_version
14476 macro_revision=$macro_revision
14478 # Whether or not to build shared libraries.
14479 build_libtool_libs=$enable_shared
14481 # Whether or not to build static libraries.
14482 build_old_libs=$enable_static
14484 # What type of objects to build.
14485 pic_mode=$pic_mode
14487 # Whether or not to optimize for fast installation.
14488 fast_install=$enable_fast_install
14490 # Shell to use when invoking shell scripts.
14491 SHELL=$lt_SHELL
14493 # An echo program that protects backslashes.
14494 ECHO=$lt_ECHO
14496 # The host system.
14497 host_alias=$host_alias
14498 host=$host
14499 host_os=$host_os
14501 # The build system.
14502 build_alias=$build_alias
14503 build=$build
14504 build_os=$build_os
14506 # A sed program that does not truncate output.
14507 SED=$lt_SED
14509 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14510 Xsed="\$SED -e 1s/^X//"
14512 # A grep program that handles long lines.
14513 GREP=$lt_GREP
14515 # An ERE matcher.
14516 EGREP=$lt_EGREP
14518 # A literal string matcher.
14519 FGREP=$lt_FGREP
14521 # A BSD- or MS-compatible name lister.
14522 NM=$lt_NM
14524 # Whether we need soft or hard links.
14525 LN_S=$lt_LN_S
14527 # What is the maximum length of a command?
14528 max_cmd_len=$max_cmd_len
14530 # Object file suffix (normally "o").
14531 objext=$ac_objext
14533 # Executable file suffix (normally "").
14534 exeext=$exeext
14536 # whether the shell understands "unset".
14537 lt_unset=$lt_unset
14539 # turn spaces into newlines.
14540 SP2NL=$lt_lt_SP2NL
14542 # turn newlines into spaces.
14543 NL2SP=$lt_lt_NL2SP
14545 # An object symbol dumper.
14546 OBJDUMP=$lt_OBJDUMP
14548 # Method to check whether dependent libraries are shared objects.
14549 deplibs_check_method=$lt_deplibs_check_method
14551 # Command to use when deplibs_check_method == "file_magic".
14552 file_magic_cmd=$lt_file_magic_cmd
14554 # The archiver.
14555 AR=$lt_AR
14556 AR_FLAGS=$lt_AR_FLAGS
14558 # A symbol stripping program.
14559 STRIP=$lt_STRIP
14561 # Commands used to install an old-style archive.
14562 RANLIB=$lt_RANLIB
14563 old_postinstall_cmds=$lt_old_postinstall_cmds
14564 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14566 # Whether to use a lock for old archive extraction.
14567 lock_old_archive_extraction=$lock_old_archive_extraction
14569 # A C compiler.
14570 LTCC=$lt_CC
14572 # LTCC compiler flags.
14573 LTCFLAGS=$lt_CFLAGS
14575 # Take the output of nm and produce a listing of raw symbols and C names.
14576 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14578 # Transform the output of nm in a proper C declaration.
14579 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14581 # Transform the output of nm in a C name address pair.
14582 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14584 # Transform the output of nm in a C name address pair when lib prefix is needed.
14585 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14587 # The name of the directory that contains temporary libtool files.
14588 objdir=$objdir
14590 # Used to examine libraries when file_magic_cmd begins with "file".
14591 MAGIC_CMD=$MAGIC_CMD
14593 # Must we lock files when doing compilation?
14594 need_locks=$lt_need_locks
14596 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14597 DSYMUTIL=$lt_DSYMUTIL
14599 # Tool to change global to local symbols on Mac OS X.
14600 NMEDIT=$lt_NMEDIT
14602 # Tool to manipulate fat objects and archives on Mac OS X.
14603 LIPO=$lt_LIPO
14605 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14606 OTOOL=$lt_OTOOL
14608 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14609 OTOOL64=$lt_OTOOL64
14611 # Old archive suffix (normally "a").
14612 libext=$libext
14614 # Shared library suffix (normally ".so").
14615 shrext_cmds=$lt_shrext_cmds
14617 # The commands to extract the exported symbol list from a shared archive.
14618 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14620 # Variables whose values should be saved in libtool wrapper scripts and
14621 # restored at link time.
14622 variables_saved_for_relink=$lt_variables_saved_for_relink
14624 # Do we need the "lib" prefix for modules?
14625 need_lib_prefix=$need_lib_prefix
14627 # Do we need a version for libraries?
14628 need_version=$need_version
14630 # Library versioning type.
14631 version_type=$version_type
14633 # Shared library runtime path variable.
14634 runpath_var=$runpath_var
14636 # Shared library path variable.
14637 shlibpath_var=$shlibpath_var
14639 # Is shlibpath searched before the hard-coded library search path?
14640 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14642 # Format of library name prefix.
14643 libname_spec=$lt_libname_spec
14645 # List of archive names. First name is the real one, the rest are links.
14646 # The last name is the one that the linker finds with -lNAME
14647 library_names_spec=$lt_library_names_spec
14649 # The coded name of the library, if different from the real name.
14650 soname_spec=$lt_soname_spec
14652 # Permission mode override for installation of shared libraries.
14653 install_override_mode=$lt_install_override_mode
14655 # Command to use after installation of a shared archive.
14656 postinstall_cmds=$lt_postinstall_cmds
14658 # Command to use after uninstallation of a shared archive.
14659 postuninstall_cmds=$lt_postuninstall_cmds
14661 # Commands used to finish a libtool library installation in a directory.
14662 finish_cmds=$lt_finish_cmds
14664 # As "finish_cmds", except a single script fragment to be evaled but
14665 # not shown.
14666 finish_eval=$lt_finish_eval
14668 # Whether we should hardcode library paths into libraries.
14669 hardcode_into_libs=$hardcode_into_libs
14671 # Compile-time system search path for libraries.
14672 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14674 # Run-time system search path for libraries.
14675 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14677 # Whether dlopen is supported.
14678 dlopen_support=$enable_dlopen
14680 # Whether dlopen of programs is supported.
14681 dlopen_self=$enable_dlopen_self
14683 # Whether dlopen of statically linked programs is supported.
14684 dlopen_self_static=$enable_dlopen_self_static
14686 # Commands to strip libraries.
14687 old_striplib=$lt_old_striplib
14688 striplib=$lt_striplib
14691 # The linker used to build libraries.
14692 LD=$lt_LD
14694 # How to create reloadable object files.
14695 reload_flag=$lt_reload_flag
14696 reload_cmds=$lt_reload_cmds
14698 # Commands used to build an old-style archive.
14699 old_archive_cmds=$lt_old_archive_cmds
14701 # A language specific compiler.
14702 CC=$lt_compiler
14704 # Is the compiler the GNU compiler?
14705 with_gcc=$GCC
14707 # Compiler flag to turn off builtin functions.
14708 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14710 # How to pass a linker flag through the compiler.
14711 wl=$lt_lt_prog_compiler_wl
14713 # Additional compiler flags for building library objects.
14714 pic_flag=$lt_lt_prog_compiler_pic
14716 # Compiler flag to prevent dynamic linking.
14717 link_static_flag=$lt_lt_prog_compiler_static
14719 # Does compiler simultaneously support -c and -o options?
14720 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14722 # Whether or not to add -lc for building shared libraries.
14723 build_libtool_need_lc=$archive_cmds_need_lc
14725 # Whether or not to disallow shared libs when runtime libs are static.
14726 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14728 # Compiler flag to allow reflexive dlopens.
14729 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14731 # Compiler flag to generate shared objects directly from archives.
14732 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14734 # Whether the compiler copes with passing no objects directly.
14735 compiler_needs_object=$lt_compiler_needs_object
14737 # Create an old-style archive from a shared archive.
14738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14740 # Create a temporary old-style archive to link instead of a shared archive.
14741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14743 # Commands used to build a shared archive.
14744 archive_cmds=$lt_archive_cmds
14745 archive_expsym_cmds=$lt_archive_expsym_cmds
14747 # Commands used to build a loadable module if different from building
14748 # a shared archive.
14749 module_cmds=$lt_module_cmds
14750 module_expsym_cmds=$lt_module_expsym_cmds
14752 # Whether we are building with GNU ld or not.
14753 with_gnu_ld=$lt_with_gnu_ld
14755 # Flag that allows shared libraries with undefined symbols to be built.
14756 allow_undefined_flag=$lt_allow_undefined_flag
14758 # Flag that enforces no undefined symbols.
14759 no_undefined_flag=$lt_no_undefined_flag
14761 # Flag to hardcode \$libdir into a binary during linking.
14762 # This must work even if \$libdir does not exist
14763 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14765 # If ld is used when linking, flag to hardcode \$libdir into a binary
14766 # during linking. This must work even if \$libdir does not exist.
14767 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14769 # Whether we need a single "-rpath" flag with a separated argument.
14770 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14772 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14773 # DIR into the resulting binary.
14774 hardcode_direct=$hardcode_direct
14776 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14777 # DIR into the resulting binary and the resulting library dependency is
14778 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14779 # library is relocated.
14780 hardcode_direct_absolute=$hardcode_direct_absolute
14782 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14783 # into the resulting binary.
14784 hardcode_minus_L=$hardcode_minus_L
14786 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14787 # into the resulting binary.
14788 hardcode_shlibpath_var=$hardcode_shlibpath_var
14790 # Set to "yes" if building a shared library automatically hardcodes DIR
14791 # into the library and all subsequent libraries and executables linked
14792 # against it.
14793 hardcode_automatic=$hardcode_automatic
14795 # Set to yes if linker adds runtime paths of dependent libraries
14796 # to runtime path list.
14797 inherit_rpath=$inherit_rpath
14799 # Whether libtool must link a program against all its dependency libraries.
14800 link_all_deplibs=$link_all_deplibs
14802 # Fix the shell variable \$srcfile for the compiler.
14803 fix_srcfile_path=$lt_fix_srcfile_path
14805 # Set to "yes" if exported symbols are required.
14806 always_export_symbols=$always_export_symbols
14808 # The commands to list exported symbols.
14809 export_symbols_cmds=$lt_export_symbols_cmds
14811 # Symbols that should not be listed in the preloaded symbols.
14812 exclude_expsyms=$lt_exclude_expsyms
14814 # Symbols that must always be exported.
14815 include_expsyms=$lt_include_expsyms
14817 # Commands necessary for linking programs (against libraries) with templates.
14818 prelink_cmds=$lt_prelink_cmds
14820 # Specify filename containing input files.
14821 file_list_spec=$lt_file_list_spec
14823 # How to hardcode a shared library path into an executable.
14824 hardcode_action=$hardcode_action
14826 # ### END LIBTOOL CONFIG
14828 _LT_EOF
14830 case $host_os in
14831 aix3*)
14832 cat <<\_LT_EOF >> "$cfgfile"
14833 # AIX sometimes has problems with the GCC collect2 program. For some
14834 # reason, if we set the COLLECT_NAMES environment variable, the problems
14835 # vanish in a puff of smoke.
14836 if test "X${COLLECT_NAMES+set}" != Xset; then
14837 COLLECT_NAMES=
14838 export COLLECT_NAMES
14840 _LT_EOF
14842 esac
14845 ltmain="$ac_aux_dir/ltmain.sh"
14848 # We use sed instead of cat because bash on DJGPP gets confused if
14849 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14850 # text mode, it properly converts lines to CR/LF. This bash problem
14851 # is reportedly fixed, but why not run on old versions too?
14852 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14853 || (rm -f "$cfgfile"; exit 1)
14855 case $xsi_shell in
14856 yes)
14857 cat << \_LT_EOF >> "$cfgfile"
14859 # func_dirname file append nondir_replacement
14860 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14861 # otherwise set result to NONDIR_REPLACEMENT.
14862 func_dirname ()
14864 case ${1} in
14865 */*) func_dirname_result="${1%/*}${2}" ;;
14866 * ) func_dirname_result="${3}" ;;
14867 esac
14870 # func_basename file
14871 func_basename ()
14873 func_basename_result="${1##*/}"
14876 # func_dirname_and_basename file append nondir_replacement
14877 # perform func_basename and func_dirname in a single function
14878 # call:
14879 # dirname: Compute the dirname of FILE. If nonempty,
14880 # add APPEND to the result, otherwise set result
14881 # to NONDIR_REPLACEMENT.
14882 # value returned in "$func_dirname_result"
14883 # basename: Compute filename of FILE.
14884 # value retuned in "$func_basename_result"
14885 # Implementation must be kept synchronized with func_dirname
14886 # and func_basename. For efficiency, we do not delegate to
14887 # those functions but instead duplicate the functionality here.
14888 func_dirname_and_basename ()
14890 case ${1} in
14891 */*) func_dirname_result="${1%/*}${2}" ;;
14892 * ) func_dirname_result="${3}" ;;
14893 esac
14894 func_basename_result="${1##*/}"
14897 # func_stripname prefix suffix name
14898 # strip PREFIX and SUFFIX off of NAME.
14899 # PREFIX and SUFFIX must not contain globbing or regex special
14900 # characters, hashes, percent signs, but SUFFIX may contain a leading
14901 # dot (in which case that matches only a dot).
14902 func_stripname ()
14904 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14905 # positional parameters, so assign one to ordinary parameter first.
14906 func_stripname_result=${3}
14907 func_stripname_result=${func_stripname_result#"${1}"}
14908 func_stripname_result=${func_stripname_result%"${2}"}
14911 # func_opt_split
14912 func_opt_split ()
14914 func_opt_split_opt=${1%%=*}
14915 func_opt_split_arg=${1#*=}
14918 # func_lo2o object
14919 func_lo2o ()
14921 case ${1} in
14922 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14923 *) func_lo2o_result=${1} ;;
14924 esac
14927 # func_xform libobj-or-source
14928 func_xform ()
14930 func_xform_result=${1%.*}.lo
14933 # func_arith arithmetic-term...
14934 func_arith ()
14936 func_arith_result=$(( $* ))
14939 # func_len string
14940 # STRING may not start with a hyphen.
14941 func_len ()
14943 func_len_result=${#1}
14946 _LT_EOF
14948 *) # Bourne compatible functions.
14949 cat << \_LT_EOF >> "$cfgfile"
14951 # func_dirname file append nondir_replacement
14952 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14953 # otherwise set result to NONDIR_REPLACEMENT.
14954 func_dirname ()
14956 # Extract subdirectory from the argument.
14957 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14958 if test "X$func_dirname_result" = "X${1}"; then
14959 func_dirname_result="${3}"
14960 else
14961 func_dirname_result="$func_dirname_result${2}"
14965 # func_basename file
14966 func_basename ()
14968 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14972 # func_stripname prefix suffix name
14973 # strip PREFIX and SUFFIX off of NAME.
14974 # PREFIX and SUFFIX must not contain globbing or regex special
14975 # characters, hashes, percent signs, but SUFFIX may contain a leading
14976 # dot (in which case that matches only a dot).
14977 # func_strip_suffix prefix name
14978 func_stripname ()
14980 case ${2} in
14981 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14982 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14983 esac
14986 # sed scripts:
14987 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14988 my_sed_long_arg='1s/^-[^=]*=//'
14990 # func_opt_split
14991 func_opt_split ()
14993 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14994 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14997 # func_lo2o object
14998 func_lo2o ()
15000 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15003 # func_xform libobj-or-source
15004 func_xform ()
15006 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15009 # func_arith arithmetic-term...
15010 func_arith ()
15012 func_arith_result=`expr "$@"`
15015 # func_len string
15016 # STRING may not start with a hyphen.
15017 func_len ()
15019 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15022 _LT_EOF
15023 esac
15025 case $lt_shell_append in
15026 yes)
15027 cat << \_LT_EOF >> "$cfgfile"
15029 # func_append var value
15030 # Append VALUE to the end of shell variable VAR.
15031 func_append ()
15033 eval "$1+=\$2"
15035 _LT_EOF
15038 cat << \_LT_EOF >> "$cfgfile"
15040 # func_append var value
15041 # Append VALUE to the end of shell variable VAR.
15042 func_append ()
15044 eval "$1=\$$1\$2"
15047 _LT_EOF
15049 esac
15052 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15053 || (rm -f "$cfgfile"; exit 1)
15055 mv -f "$cfgfile" "$ofile" ||
15056 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15057 chmod +x "$ofile"
15060 "gstdint.h":C)
15061 if test "$GCC" = yes; then
15062 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
15063 else
15064 echo "/* generated for $CC */" > tmp-stdint.h
15067 sed 's/^ *//' >> tmp-stdint.h <<EOF
15069 #ifndef GCC_GENERATED_STDINT_H
15070 #define GCC_GENERATED_STDINT_H 1
15072 #include <sys/types.h>
15075 if test "$acx_cv_header_stdint" != stdint.h; then
15076 echo "#include <stddef.h>" >> tmp-stdint.h
15078 if test "$acx_cv_header_stdint" != stddef.h; then
15079 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
15082 sed 's/^ *//' >> tmp-stdint.h <<EOF
15083 /* glibc uses these symbols as guards to prevent redefinitions. */
15084 #ifdef __int8_t_defined
15085 #define _INT8_T
15086 #define _INT16_T
15087 #define _INT32_T
15088 #endif
15089 #ifdef __uint32_t_defined
15090 #define _UINT32_T
15091 #endif
15095 # ----------------- done header, emit basic int types -------------
15096 if test "$acx_cv_header_stdint" = stddef.h; then
15097 sed 's/^ *//' >> tmp-stdint.h <<EOF
15099 #ifndef _UINT8_T
15100 #define _UINT8_T
15101 #ifndef __uint8_t_defined
15102 #define __uint8_t_defined
15103 #ifndef uint8_t
15104 typedef unsigned $acx_cv_type_int8_t uint8_t;
15105 #endif
15106 #endif
15107 #endif
15109 #ifndef _UINT16_T
15110 #define _UINT16_T
15111 #ifndef __uint16_t_defined
15112 #define __uint16_t_defined
15113 #ifndef uint16_t
15114 typedef unsigned $acx_cv_type_int16_t uint16_t;
15115 #endif
15116 #endif
15117 #endif
15119 #ifndef _UINT32_T
15120 #define _UINT32_T
15121 #ifndef __uint32_t_defined
15122 #define __uint32_t_defined
15123 #ifndef uint32_t
15124 typedef unsigned $acx_cv_type_int32_t uint32_t;
15125 #endif
15126 #endif
15127 #endif
15129 #ifndef _INT8_T
15130 #define _INT8_T
15131 #ifndef __int8_t_defined
15132 #define __int8_t_defined
15133 #ifndef int8_t
15134 typedef $acx_cv_type_int8_t int8_t;
15135 #endif
15136 #endif
15137 #endif
15139 #ifndef _INT16_T
15140 #define _INT16_T
15141 #ifndef __int16_t_defined
15142 #define __int16_t_defined
15143 #ifndef int16_t
15144 typedef $acx_cv_type_int16_t int16_t;
15145 #endif
15146 #endif
15147 #endif
15149 #ifndef _INT32_T
15150 #define _INT32_T
15151 #ifndef __int32_t_defined
15152 #define __int32_t_defined
15153 #ifndef int32_t
15154 typedef $acx_cv_type_int32_t int32_t;
15155 #endif
15156 #endif
15157 #endif
15159 elif test "$ac_cv_type_u_int32_t" = yes; then
15160 sed 's/^ *//' >> tmp-stdint.h <<EOF
15162 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
15163 #ifndef _INT8_T
15164 #define _INT8_T
15165 #endif
15166 #ifndef _INT16_T
15167 #define _INT16_T
15168 #endif
15169 #ifndef _INT32_T
15170 #define _INT32_T
15171 #endif
15173 #ifndef _UINT8_T
15174 #define _UINT8_T
15175 #ifndef __uint8_t_defined
15176 #define __uint8_t_defined
15177 #ifndef uint8_t
15178 typedef u_int8_t uint8_t;
15179 #endif
15180 #endif
15181 #endif
15183 #ifndef _UINT16_T
15184 #define _UINT16_T
15185 #ifndef __uint16_t_defined
15186 #define __uint16_t_defined
15187 #ifndef uint16_t
15188 typedef u_int16_t uint16_t;
15189 #endif
15190 #endif
15191 #endif
15193 #ifndef _UINT32_T
15194 #define _UINT32_T
15195 #ifndef __uint32_t_defined
15196 #define __uint32_t_defined
15197 #ifndef uint32_t
15198 typedef u_int32_t uint32_t;
15199 #endif
15200 #endif
15201 #endif
15203 else
15204 sed 's/^ *//' >> tmp-stdint.h <<EOF
15206 /* Some systems have guard macros to prevent redefinitions, define them. */
15207 #ifndef _INT8_T
15208 #define _INT8_T
15209 #endif
15210 #ifndef _INT16_T
15211 #define _INT16_T
15212 #endif
15213 #ifndef _INT32_T
15214 #define _INT32_T
15215 #endif
15216 #ifndef _UINT8_T
15217 #define _UINT8_T
15218 #endif
15219 #ifndef _UINT16_T
15220 #define _UINT16_T
15221 #endif
15222 #ifndef _UINT32_T
15223 #define _UINT32_T
15224 #endif
15228 # ------------- done basic int types, emit int64_t types ------------
15229 if test "$ac_cv_type_uint64_t" = yes; then
15230 sed 's/^ *//' >> tmp-stdint.h <<EOF
15232 /* system headers have good uint64_t and int64_t */
15233 #ifndef _INT64_T
15234 #define _INT64_T
15235 #endif
15236 #ifndef _UINT64_T
15237 #define _UINT64_T
15238 #endif
15240 elif test "$ac_cv_type_u_int64_t" = yes; then
15241 sed 's/^ *//' >> tmp-stdint.h <<EOF
15243 /* system headers have an u_int64_t (and int64_t) */
15244 #ifndef _INT64_T
15245 #define _INT64_T
15246 #endif
15247 #ifndef _UINT64_T
15248 #define _UINT64_T
15249 #ifndef __uint64_t_defined
15250 #define __uint64_t_defined
15251 #ifndef uint64_t
15252 typedef u_int64_t uint64_t;
15253 #endif
15254 #endif
15255 #endif
15257 elif test -n "$acx_cv_type_int64_t"; then
15258 sed 's/^ *//' >> tmp-stdint.h <<EOF
15260 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
15261 #ifndef _INT64_T
15262 #define _INT64_T
15263 #ifndef int64_t
15264 typedef $acx_cv_type_int64_t int64_t;
15265 #endif
15266 #endif
15267 #ifndef _UINT64_T
15268 #define _UINT64_T
15269 #ifndef __uint64_t_defined
15270 #define __uint64_t_defined
15271 #ifndef uint64_t
15272 typedef unsigned $acx_cv_type_int64_t uint64_t;
15273 #endif
15274 #endif
15275 #endif
15277 else
15278 sed 's/^ *//' >> tmp-stdint.h <<EOF
15280 /* some common heuristics for int64_t, using compiler-specific tests */
15281 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
15282 #ifndef _INT64_T
15283 #define _INT64_T
15284 #ifndef __int64_t_defined
15285 #ifndef int64_t
15286 typedef long long int64_t;
15287 #endif
15288 #endif
15289 #endif
15290 #ifndef _UINT64_T
15291 #define _UINT64_T
15292 #ifndef uint64_t
15293 typedef unsigned long long uint64_t;
15294 #endif
15295 #endif
15297 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
15298 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
15299 does not implement __extension__. But that compiler doesn't define
15300 __GNUC_MINOR__. */
15301 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
15302 # define __extension__
15303 # endif
15305 # ifndef _INT64_T
15306 # define _INT64_T
15307 # ifndef int64_t
15308 __extension__ typedef long long int64_t;
15309 # endif
15310 # endif
15311 # ifndef _UINT64_T
15312 # define _UINT64_T
15313 # ifndef uint64_t
15314 __extension__ typedef unsigned long long uint64_t;
15315 # endif
15316 # endif
15318 #elif !defined __STRICT_ANSI__
15319 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
15321 # ifndef _INT64_T
15322 # define _INT64_T
15323 # ifndef int64_t
15324 typedef __int64 int64_t;
15325 # endif
15326 # endif
15327 # ifndef _UINT64_T
15328 # define _UINT64_T
15329 # ifndef uint64_t
15330 typedef unsigned __int64 uint64_t;
15331 # endif
15332 # endif
15333 # endif /* compiler */
15335 #endif /* ANSI version */
15339 # ------------- done int64_t types, emit intptr types ------------
15340 if test "$ac_cv_type_uintptr_t" != yes; then
15341 sed 's/^ *//' >> tmp-stdint.h <<EOF
15343 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
15344 #ifndef __uintptr_t_defined
15345 #ifndef uintptr_t
15346 typedef u$acx_cv_type_intptr_t uintptr_t;
15347 #endif
15348 #endif
15349 #ifndef __intptr_t_defined
15350 #ifndef intptr_t
15351 typedef $acx_cv_type_intptr_t intptr_t;
15352 #endif
15353 #endif
15357 # ------------- done intptr types, emit int_least types ------------
15358 if test "$ac_cv_type_int_least32_t" != yes; then
15359 sed 's/^ *//' >> tmp-stdint.h <<EOF
15361 /* Define int_least types */
15362 typedef int8_t int_least8_t;
15363 typedef int16_t int_least16_t;
15364 typedef int32_t int_least32_t;
15365 #ifdef _INT64_T
15366 typedef int64_t int_least64_t;
15367 #endif
15369 typedef uint8_t uint_least8_t;
15370 typedef uint16_t uint_least16_t;
15371 typedef uint32_t uint_least32_t;
15372 #ifdef _UINT64_T
15373 typedef uint64_t uint_least64_t;
15374 #endif
15378 # ------------- done intptr types, emit int_fast types ------------
15379 if test "$ac_cv_type_int_fast32_t" != yes; then
15380 sed 's/^ *//' >> tmp-stdint.h <<EOF
15382 /* Define int_fast types. short is often slow */
15383 typedef int8_t int_fast8_t;
15384 typedef int int_fast16_t;
15385 typedef int32_t int_fast32_t;
15386 #ifdef _INT64_T
15387 typedef int64_t int_fast64_t;
15388 #endif
15390 typedef uint8_t uint_fast8_t;
15391 typedef unsigned int uint_fast16_t;
15392 typedef uint32_t uint_fast32_t;
15393 #ifdef _UINT64_T
15394 typedef uint64_t uint_fast64_t;
15395 #endif
15399 if test "$ac_cv_type_uintmax_t" != yes; then
15400 sed 's/^ *//' >> tmp-stdint.h <<EOF
15402 /* Define intmax based on what we found */
15403 #ifndef intmax_t
15404 #ifdef _INT64_T
15405 typedef int64_t intmax_t;
15406 #else
15407 typedef long intmax_t;
15408 #endif
15409 #endif
15410 #ifndef uintmax_t
15411 #ifdef _UINT64_T
15412 typedef uint64_t uintmax_t;
15413 #else
15414 typedef unsigned long uintmax_t;
15415 #endif
15416 #endif
15420 sed 's/^ *//' >> tmp-stdint.h <<EOF
15422 #endif /* GCC_GENERATED_STDINT_H */
15425 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
15426 rm -f tmp-stdint.h
15427 else
15428 mv -f tmp-stdint.h gstdint.h
15432 "default":C) if test -n "$CONFIG_FILES"; then
15433 if test -n "${with_target_subdir}"; then
15434 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
15435 # that multilib installs will end up installed in the correct place.
15436 # The testsuite needs it for multilib-aware ABI baseline files.
15437 # To work around this not being passed down from config-ml.in ->
15438 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
15439 # append it here. Only modify Makefiles that have just been created.
15441 # Also, get rid of this simulated-VPATH thing that automake does.
15442 cat > vpsed << \_EOF
15443 s!`test -f '$<' || echo '$(srcdir)/'`!!
15444 _EOF
15445 for i in $SUBDIRS; do
15446 case $CONFIG_FILES in
15447 *${i}/Makefile*)
15448 #echo "Adding MULTISUBDIR to $i/Makefile"
15449 sed -f vpsed $i/Makefile > tmp
15450 grep '^MULTISUBDIR =' Makefile >> tmp
15451 mv tmp $i/Makefile
15453 esac
15454 done
15455 rm vpsed
15460 esac
15461 done # for ac_tag
15464 as_fn_exit 0
15465 _ACEOF
15466 ac_clean_files=$ac_clean_files_save
15468 test $ac_write_fail = 0 ||
15469 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15472 # configure is writing to config.log, and then calls config.status.
15473 # config.status does its own redirection, appending to config.log.
15474 # Unfortunately, on DOS this fails, as config.log is still kept open
15475 # by configure, so config.status won't be able to write to it; its
15476 # output is simply discarded. So we exec the FD to /dev/null,
15477 # effectively closing config.log, so it can be properly (re)opened and
15478 # appended to by config.status. When coming back to configure, we
15479 # need to make the FD available again.
15480 if test "$no_create" != yes; then
15481 ac_cs_success=:
15482 ac_config_status_args=
15483 test "$silent" = yes &&
15484 ac_config_status_args="$ac_config_status_args --quiet"
15485 exec 5>/dev/null
15486 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15487 exec 5>>config.log
15488 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15489 # would make configure fail if this is the last instruction.
15490 $ac_cs_success || as_fn_exit $?
15492 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15494 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}