libiconv update 1.14
[tomato/tomato-dir865l.git] / release / src / router / libiconv / preload / configure
blob4f4f01e0116a952db19b2ae67f504b2f009360e0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186 else
187 as_have_required=no
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191 else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196 IFS=$as_save_IFS
197 test -z "$as_dir" && as_dir=.
198 as_found=:
199 case $as_dir in #(
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 break 2
211 done;;
212 esac
213 as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 case $- in # ((((
232 *v*x* | *x*v* ) as_opts=-vx ;;
233 *v* ) as_opts=-v ;;
234 *x* ) as_opts=-x ;;
235 * ) as_opts= ;;
236 esac
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246 else
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
252 exit 1
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
270 { eval $1=; unset $1;}
272 as_unset=as_fn_unset
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
279 return $1
280 } # as_fn_set_status
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
287 set +e
288 as_fn_set_status $1
289 exit $1
290 } # as_fn_exit
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
298 case $as_dir in #(
299 -*) as_dir=./$as_dir;;
300 esac
301 test -d "$as_dir" || eval $as_mkdir_p || {
302 as_dirs=
303 while :; do
304 case $as_dir in #(
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 *) as_qdir=$as_dir;;
307 esac
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 s//\1/
319 /^X\(\/\/\)[^/].*/{
320 s//\1/
323 /^X\(\/\/\)$/{
324 s//\1/
327 /^X\(\/\).*/{
328 s//\1/
331 s/.*/./; q'`
332 test -d "$as_dir" && break
333 done
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
348 eval $1+=\$2
350 else
351 as_fn_append ()
353 eval $1=\$$1\$2
355 fi # as_fn_append
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
365 as_val=$(( $* ))
367 else
368 as_fn_arith ()
370 as_val=`expr "$@" || test $? -eq 1`
372 fi # as_fn_arith
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
382 as_status=$1; test $as_status -eq 0 && as_status=1
383 if test "$4"; then
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
389 } # as_fn_error
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394 else
395 as_expr=false
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400 else
401 as_basename=false
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406 else
407 as_dirname=false
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 s//\1/
419 /^X\/\(\/\/\)$/{
420 s//\1/
423 /^X\/\(\/\).*/{
424 s//\1/
427 s/.*/./; q'`
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
450 :lineno
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 xy) ECHO_C='\c';;
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475 ECHO_T=' ';;
476 esac;;
478 ECHO_N='-n';;
479 esac
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484 else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s='ln -s'
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496 as_ln_s='cp -p'
497 elif ln conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s=ln
499 else
500 as_ln_s='cp -p'
502 else
503 as_ln_s='cp -p'
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
515 if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517 else
518 if ls -dL / >/dev/null 2>&1; then
519 as_ls_L_option=L
520 else
521 as_ls_L_option=
523 as_test_x='
524 eval sh -c '\''
525 if test -d "$1"; then
526 test -d "$1/.";
527 else
528 case $1 in #(
529 -*)set "./$1";;
530 esac;
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
533 '\'' sh
536 as_executable_p=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
556 # Initializations.
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
567 # Identity of this package.
568 PACKAGE_NAME=
569 PACKAGE_TARNAME=
570 PACKAGE_VERSION=
571 PACKAGE_STRING=
572 PACKAGE_BUGREPORT=
573 PACKAGE_URL=
575 ac_unique_file="configure.ac"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 # include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 # include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
612 ac_subst_vars='LTLIBOBJS
613 PLUGLIB
614 HAVE_VISIBILITY
615 CFLAG_VISIBILITY
616 OTOOL64
617 OTOOL
618 LIPO
619 NMEDIT
620 DSYMUTIL
621 MANIFEST_TOOL
623 RANLIB
624 STRIP
625 ac_ct_AR
628 ac_ct_DUMPBIN
629 DUMPBIN
631 FGREP
633 LIBTOOL
634 OBJDUMP
635 DLLTOOL
637 EGREP
638 GREP
639 LN_S
640 LIBOBJS
641 RELOCATABLE
642 host_os
643 host_vendor
644 host_cpu
645 host
646 build_os
647 build_vendor
648 build_cpu
649 build
650 INSTALL_DATA
651 INSTALL_SCRIPT
652 INSTALL_PROGRAM
654 OBJEXT
655 EXEEXT
656 ac_ct_CC
657 CPPFLAGS
658 LDFLAGS
659 CFLAGS
661 VERSION
662 PACKAGE
663 SET_MAKE
664 target_alias
665 host_alias
666 build_alias
667 LIBS
668 ECHO_T
669 ECHO_N
670 ECHO_C
671 DEFS
672 mandir
673 localedir
674 libdir
675 psdir
676 pdfdir
677 dvidir
678 htmldir
679 infodir
680 docdir
681 oldincludedir
682 includedir
683 localstatedir
684 sharedstatedir
685 sysconfdir
686 datadir
687 datarootdir
688 libexecdir
689 sbindir
690 bindir
691 program_transform_name
692 prefix
693 exec_prefix
694 PACKAGE_URL
695 PACKAGE_BUGREPORT
696 PACKAGE_STRING
697 PACKAGE_VERSION
698 PACKAGE_TARNAME
699 PACKAGE_NAME
700 PATH_SEPARATOR
701 SHELL'
702 ac_subst_files=''
703 ac_user_opts='
704 enable_option_checking
705 enable_relocatable
706 enable_shared
707 enable_static
708 with_pic
709 enable_fast_install
710 with_gnu_ld
711 with_sysroot
712 enable_libtool_lock
714 ac_precious_vars='build_alias
715 host_alias
716 target_alias
718 CFLAGS
719 LDFLAGS
720 LIBS
721 CPPFLAGS
723 CPPFLAGS'
726 # Initialize some variables set by options.
727 ac_init_help=
728 ac_init_version=false
729 ac_unrecognized_opts=
730 ac_unrecognized_sep=
731 # The variables have the same names as the options, with
732 # dashes changed to underlines.
733 cache_file=/dev/null
734 exec_prefix=NONE
735 no_create=
736 no_recursion=
737 prefix=NONE
738 program_prefix=NONE
739 program_suffix=NONE
740 program_transform_name=s,x,x,
741 silent=
742 site=
743 srcdir=
744 verbose=
745 x_includes=NONE
746 x_libraries=NONE
748 # Installation directory options.
749 # These are left unexpanded so users can "make install exec_prefix=/foo"
750 # and all the variables that are supposed to be based on exec_prefix
751 # by default will actually change.
752 # Use braces instead of parens because sh, perl, etc. also accept them.
753 # (The list follows the same order as the GNU Coding Standards.)
754 bindir='${exec_prefix}/bin'
755 sbindir='${exec_prefix}/sbin'
756 libexecdir='${exec_prefix}/libexec'
757 datarootdir='${prefix}/share'
758 datadir='${datarootdir}'
759 sysconfdir='${prefix}/etc'
760 sharedstatedir='${prefix}/com'
761 localstatedir='${prefix}/var'
762 includedir='${prefix}/include'
763 oldincludedir='/usr/include'
764 docdir='${datarootdir}/doc/${PACKAGE}'
765 infodir='${datarootdir}/info'
766 htmldir='${docdir}'
767 dvidir='${docdir}'
768 pdfdir='${docdir}'
769 psdir='${docdir}'
770 libdir='${exec_prefix}/lib'
771 localedir='${datarootdir}/locale'
772 mandir='${datarootdir}/man'
774 ac_prev=
775 ac_dashdash=
776 for ac_option
778 # If the previous option needs an argument, assign it.
779 if test -n "$ac_prev"; then
780 eval $ac_prev=\$ac_option
781 ac_prev=
782 continue
785 case $ac_option in
786 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
787 *=) ac_optarg= ;;
788 *) ac_optarg=yes ;;
789 esac
791 # Accept the important Cygnus configure options, so we can diagnose typos.
793 case $ac_dashdash$ac_option in
795 ac_dashdash=yes ;;
797 -bindir | --bindir | --bindi | --bind | --bin | --bi)
798 ac_prev=bindir ;;
799 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
800 bindir=$ac_optarg ;;
802 -build | --build | --buil | --bui | --bu)
803 ac_prev=build_alias ;;
804 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
805 build_alias=$ac_optarg ;;
807 -cache-file | --cache-file | --cache-fil | --cache-fi \
808 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
809 ac_prev=cache_file ;;
810 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
811 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
812 cache_file=$ac_optarg ;;
814 --config-cache | -C)
815 cache_file=config.cache ;;
817 -datadir | --datadir | --datadi | --datad)
818 ac_prev=datadir ;;
819 -datadir=* | --datadir=* | --datadi=* | --datad=*)
820 datadir=$ac_optarg ;;
822 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
823 | --dataroo | --dataro | --datar)
824 ac_prev=datarootdir ;;
825 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
826 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
827 datarootdir=$ac_optarg ;;
829 -disable-* | --disable-*)
830 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
831 # Reject names that are not valid shell variable names.
832 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
833 as_fn_error $? "invalid feature name: $ac_useropt"
834 ac_useropt_orig=$ac_useropt
835 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
836 case $ac_user_opts in
838 "enable_$ac_useropt"
839 "*) ;;
840 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
841 ac_unrecognized_sep=', ';;
842 esac
843 eval enable_$ac_useropt=no ;;
845 -docdir | --docdir | --docdi | --doc | --do)
846 ac_prev=docdir ;;
847 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
848 docdir=$ac_optarg ;;
850 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
851 ac_prev=dvidir ;;
852 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
853 dvidir=$ac_optarg ;;
855 -enable-* | --enable-*)
856 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859 as_fn_error $? "invalid feature name: $ac_useropt"
860 ac_useropt_orig=$ac_useropt
861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862 case $ac_user_opts in
864 "enable_$ac_useropt"
865 "*) ;;
866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
867 ac_unrecognized_sep=', ';;
868 esac
869 eval enable_$ac_useropt=\$ac_optarg ;;
871 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
872 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
873 | --exec | --exe | --ex)
874 ac_prev=exec_prefix ;;
875 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
876 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
877 | --exec=* | --exe=* | --ex=*)
878 exec_prefix=$ac_optarg ;;
880 -gas | --gas | --ga | --g)
881 # Obsolete; use --with-gas.
882 with_gas=yes ;;
884 -help | --help | --hel | --he | -h)
885 ac_init_help=long ;;
886 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
887 ac_init_help=recursive ;;
888 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
889 ac_init_help=short ;;
891 -host | --host | --hos | --ho)
892 ac_prev=host_alias ;;
893 -host=* | --host=* | --hos=* | --ho=*)
894 host_alias=$ac_optarg ;;
896 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
897 ac_prev=htmldir ;;
898 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
899 | --ht=*)
900 htmldir=$ac_optarg ;;
902 -includedir | --includedir | --includedi | --included | --include \
903 | --includ | --inclu | --incl | --inc)
904 ac_prev=includedir ;;
905 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
906 | --includ=* | --inclu=* | --incl=* | --inc=*)
907 includedir=$ac_optarg ;;
909 -infodir | --infodir | --infodi | --infod | --info | --inf)
910 ac_prev=infodir ;;
911 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
912 infodir=$ac_optarg ;;
914 -libdir | --libdir | --libdi | --libd)
915 ac_prev=libdir ;;
916 -libdir=* | --libdir=* | --libdi=* | --libd=*)
917 libdir=$ac_optarg ;;
919 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
920 | --libexe | --libex | --libe)
921 ac_prev=libexecdir ;;
922 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
923 | --libexe=* | --libex=* | --libe=*)
924 libexecdir=$ac_optarg ;;
926 -localedir | --localedir | --localedi | --localed | --locale)
927 ac_prev=localedir ;;
928 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
929 localedir=$ac_optarg ;;
931 -localstatedir | --localstatedir | --localstatedi | --localstated \
932 | --localstate | --localstat | --localsta | --localst | --locals)
933 ac_prev=localstatedir ;;
934 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
935 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
936 localstatedir=$ac_optarg ;;
938 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
939 ac_prev=mandir ;;
940 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
941 mandir=$ac_optarg ;;
943 -nfp | --nfp | --nf)
944 # Obsolete; use --without-fp.
945 with_fp=no ;;
947 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
948 | --no-cr | --no-c | -n)
949 no_create=yes ;;
951 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
952 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
953 no_recursion=yes ;;
955 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
956 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
957 | --oldin | --oldi | --old | --ol | --o)
958 ac_prev=oldincludedir ;;
959 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
960 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
961 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
962 oldincludedir=$ac_optarg ;;
964 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
965 ac_prev=prefix ;;
966 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
967 prefix=$ac_optarg ;;
969 -program-prefix | --program-prefix | --program-prefi | --program-pref \
970 | --program-pre | --program-pr | --program-p)
971 ac_prev=program_prefix ;;
972 -program-prefix=* | --program-prefix=* | --program-prefi=* \
973 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
974 program_prefix=$ac_optarg ;;
976 -program-suffix | --program-suffix | --program-suffi | --program-suff \
977 | --program-suf | --program-su | --program-s)
978 ac_prev=program_suffix ;;
979 -program-suffix=* | --program-suffix=* | --program-suffi=* \
980 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
981 program_suffix=$ac_optarg ;;
983 -program-transform-name | --program-transform-name \
984 | --program-transform-nam | --program-transform-na \
985 | --program-transform-n | --program-transform- \
986 | --program-transform | --program-transfor \
987 | --program-transfo | --program-transf \
988 | --program-trans | --program-tran \
989 | --progr-tra | --program-tr | --program-t)
990 ac_prev=program_transform_name ;;
991 -program-transform-name=* | --program-transform-name=* \
992 | --program-transform-nam=* | --program-transform-na=* \
993 | --program-transform-n=* | --program-transform-=* \
994 | --program-transform=* | --program-transfor=* \
995 | --program-transfo=* | --program-transf=* \
996 | --program-trans=* | --program-tran=* \
997 | --progr-tra=* | --program-tr=* | --program-t=*)
998 program_transform_name=$ac_optarg ;;
1000 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1001 ac_prev=pdfdir ;;
1002 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1003 pdfdir=$ac_optarg ;;
1005 -psdir | --psdir | --psdi | --psd | --ps)
1006 ac_prev=psdir ;;
1007 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1008 psdir=$ac_optarg ;;
1010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1011 | -silent | --silent | --silen | --sile | --sil)
1012 silent=yes ;;
1014 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1015 ac_prev=sbindir ;;
1016 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1017 | --sbi=* | --sb=*)
1018 sbindir=$ac_optarg ;;
1020 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1021 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1022 | --sharedst | --shareds | --shared | --share | --shar \
1023 | --sha | --sh)
1024 ac_prev=sharedstatedir ;;
1025 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1026 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1027 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1028 | --sha=* | --sh=*)
1029 sharedstatedir=$ac_optarg ;;
1031 -site | --site | --sit)
1032 ac_prev=site ;;
1033 -site=* | --site=* | --sit=*)
1034 site=$ac_optarg ;;
1036 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1037 ac_prev=srcdir ;;
1038 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1039 srcdir=$ac_optarg ;;
1041 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1042 | --syscon | --sysco | --sysc | --sys | --sy)
1043 ac_prev=sysconfdir ;;
1044 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1045 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1046 sysconfdir=$ac_optarg ;;
1048 -target | --target | --targe | --targ | --tar | --ta | --t)
1049 ac_prev=target_alias ;;
1050 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1051 target_alias=$ac_optarg ;;
1053 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1054 verbose=yes ;;
1056 -version | --version | --versio | --versi | --vers | -V)
1057 ac_init_version=: ;;
1059 -with-* | --with-*)
1060 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 as_fn_error $? "invalid package name: $ac_useropt"
1064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1068 "with_$ac_useropt"
1069 "*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
1072 esac
1073 eval with_$ac_useropt=\$ac_optarg ;;
1075 -without-* | --without-*)
1076 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error $? "invalid package name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1084 "with_$ac_useropt"
1085 "*) ;;
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1088 esac
1089 eval with_$ac_useropt=no ;;
1091 --x)
1092 # Obsolete; use --with-x.
1093 with_x=yes ;;
1095 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1096 | --x-incl | --x-inc | --x-in | --x-i)
1097 ac_prev=x_includes ;;
1098 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1099 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1100 x_includes=$ac_optarg ;;
1102 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1103 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1104 ac_prev=x_libraries ;;
1105 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1106 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1107 x_libraries=$ac_optarg ;;
1109 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1110 Try \`$0 --help' for more information"
1113 *=*)
1114 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1115 # Reject names that are not valid shell variable names.
1116 case $ac_envvar in #(
1117 '' | [0-9]* | *[!_$as_cr_alnum]* )
1118 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1119 esac
1120 eval $ac_envvar=\$ac_optarg
1121 export $ac_envvar ;;
1124 # FIXME: should be removed in autoconf 3.0.
1125 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1126 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1127 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1128 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1131 esac
1132 done
1134 if test -n "$ac_prev"; then
1135 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1136 as_fn_error $? "missing argument to $ac_option"
1139 if test -n "$ac_unrecognized_opts"; then
1140 case $enable_option_checking in
1141 no) ;;
1142 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1143 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1144 esac
1147 # Check all directory arguments for consistency.
1148 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1149 datadir sysconfdir sharedstatedir localstatedir includedir \
1150 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1151 libdir localedir mandir
1153 eval ac_val=\$$ac_var
1154 # Remove trailing slashes.
1155 case $ac_val in
1156 */ )
1157 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1158 eval $ac_var=\$ac_val;;
1159 esac
1160 # Be sure to have absolute directory names.
1161 case $ac_val in
1162 [\\/$]* | ?:[\\/]* ) continue;;
1163 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1164 esac
1165 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1166 done
1168 # There might be people who depend on the old broken behavior: `$host'
1169 # used to hold the argument of --host etc.
1170 # FIXME: To remove some day.
1171 build=$build_alias
1172 host=$host_alias
1173 target=$target_alias
1175 # FIXME: To remove some day.
1176 if test "x$host_alias" != x; then
1177 if test "x$build_alias" = x; then
1178 cross_compiling=maybe
1179 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1180 If a cross compiler is detected then cross compile mode will be used" >&2
1181 elif test "x$build_alias" != "x$host_alias"; then
1182 cross_compiling=yes
1186 ac_tool_prefix=
1187 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1189 test "$silent" = yes && exec 6>/dev/null
1192 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1193 ac_ls_di=`ls -di .` &&
1194 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1195 as_fn_error $? "working directory cannot be determined"
1196 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1197 as_fn_error $? "pwd does not report name of working directory"
1200 # Find the source files, if location was not specified.
1201 if test -z "$srcdir"; then
1202 ac_srcdir_defaulted=yes
1203 # Try the directory containing this script, then the parent directory.
1204 ac_confdir=`$as_dirname -- "$as_myself" ||
1205 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1206 X"$as_myself" : 'X\(//\)[^/]' \| \
1207 X"$as_myself" : 'X\(//\)$' \| \
1208 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1209 $as_echo X"$as_myself" |
1210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1211 s//\1/
1214 /^X\(\/\/\)[^/].*/{
1215 s//\1/
1218 /^X\(\/\/\)$/{
1219 s//\1/
1222 /^X\(\/\).*/{
1223 s//\1/
1226 s/.*/./; q'`
1227 srcdir=$ac_confdir
1228 if test ! -r "$srcdir/$ac_unique_file"; then
1229 srcdir=..
1231 else
1232 ac_srcdir_defaulted=no
1234 if test ! -r "$srcdir/$ac_unique_file"; then
1235 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1236 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1238 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1239 ac_abs_confdir=`(
1240 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1241 pwd)`
1242 # When building in place, set srcdir=.
1243 if test "$ac_abs_confdir" = "$ac_pwd"; then
1244 srcdir=.
1246 # Remove unnecessary trailing slashes from srcdir.
1247 # Double slashes in file names in object file debugging info
1248 # mess up M-x gdb in Emacs.
1249 case $srcdir in
1250 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1251 esac
1252 for ac_var in $ac_precious_vars; do
1253 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1254 eval ac_env_${ac_var}_value=\$${ac_var}
1255 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1256 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1257 done
1260 # Report the --help message.
1262 if test "$ac_init_help" = "long"; then
1263 # Omit some internal or obsolete options to make the list less imposing.
1264 # This message is too long to be a string in the A/UX 3.1 sh.
1265 cat <<_ACEOF
1266 \`configure' configures this package to adapt to many kinds of systems.
1268 Usage: $0 [OPTION]... [VAR=VALUE]...
1270 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1271 VAR=VALUE. See below for descriptions of some of the useful variables.
1273 Defaults for the options are specified in brackets.
1275 Configuration:
1276 -h, --help display this help and exit
1277 --help=short display options specific to this package
1278 --help=recursive display the short help of all the included packages
1279 -V, --version display version information and exit
1280 -q, --quiet, --silent do not print \`checking ...' messages
1281 --cache-file=FILE cache test results in FILE [disabled]
1282 -C, --config-cache alias for \`--cache-file=config.cache'
1283 -n, --no-create do not create output files
1284 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1286 Installation directories:
1287 --prefix=PREFIX install architecture-independent files in PREFIX
1288 [$ac_default_prefix]
1289 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1290 [PREFIX]
1292 By default, \`make install' will install all the files in
1293 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1294 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1295 for instance \`--prefix=\$HOME'.
1297 For better control, use the options below.
1299 Fine tuning of the installation directories:
1300 --bindir=DIR user executables [EPREFIX/bin]
1301 --sbindir=DIR system admin executables [EPREFIX/sbin]
1302 --libexecdir=DIR program executables [EPREFIX/libexec]
1303 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1304 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1305 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1306 --libdir=DIR object code libraries [EPREFIX/lib]
1307 --includedir=DIR C header files [PREFIX/include]
1308 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1309 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1310 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1311 --infodir=DIR info documentation [DATAROOTDIR/info]
1312 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1313 --mandir=DIR man documentation [DATAROOTDIR/man]
1314 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1315 --htmldir=DIR html documentation [DOCDIR]
1316 --dvidir=DIR dvi documentation [DOCDIR]
1317 --pdfdir=DIR pdf documentation [DOCDIR]
1318 --psdir=DIR ps documentation [DOCDIR]
1319 _ACEOF
1321 cat <<\_ACEOF
1323 System types:
1324 --build=BUILD configure for building on BUILD [guessed]
1325 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1326 _ACEOF
1329 if test -n "$ac_init_help"; then
1331 cat <<\_ACEOF
1333 Optional Features:
1334 --disable-option-checking ignore unrecognized --enable/--with options
1335 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1336 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1337 --enable-relocatable install a package that can be moved in the file
1338 system
1339 --enable-shared[=PKGS] build shared libraries [default=yes]
1340 --enable-static[=PKGS] build static libraries [default=yes]
1341 --enable-fast-install[=PKGS]
1342 optimize for fast installation [default=yes]
1343 --disable-libtool-lock avoid locking (might break parallel builds)
1345 Optional Packages:
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --with-pic try to use only PIC/non-PIC objects [default=use
1349 both]
1350 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1351 --with-sysroot=DIR Search for dependent libraries within DIR
1352 (or the compiler's sysroot if not specified).
1354 Some influential environment variables:
1355 CC C compiler command
1356 CFLAGS C compiler flags
1357 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1358 nonstandard directory <lib dir>
1359 LIBS libraries to pass to the linker, e.g. -l<library>
1360 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1361 you have headers in a nonstandard directory <include dir>
1362 CPP C preprocessor
1364 Use these variables to override the choices made by `configure' or to help
1365 it to find libraries and programs with nonstandard names/locations.
1367 Report bugs to the package provider.
1368 _ACEOF
1369 ac_status=$?
1372 if test "$ac_init_help" = "recursive"; then
1373 # If there are subdirs, report their specific --help.
1374 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1375 test -d "$ac_dir" ||
1376 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1377 continue
1378 ac_builddir=.
1380 case "$ac_dir" in
1381 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1384 # A ".." for each directory in $ac_dir_suffix.
1385 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1386 case $ac_top_builddir_sub in
1387 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1389 esac ;;
1390 esac
1391 ac_abs_top_builddir=$ac_pwd
1392 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1393 # for backward compatibility:
1394 ac_top_builddir=$ac_top_build_prefix
1396 case $srcdir in
1397 .) # We are building in place.
1398 ac_srcdir=.
1399 ac_top_srcdir=$ac_top_builddir_sub
1400 ac_abs_top_srcdir=$ac_pwd ;;
1401 [\\/]* | ?:[\\/]* ) # Absolute name.
1402 ac_srcdir=$srcdir$ac_dir_suffix;
1403 ac_top_srcdir=$srcdir
1404 ac_abs_top_srcdir=$srcdir ;;
1405 *) # Relative name.
1406 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1407 ac_top_srcdir=$ac_top_build_prefix$srcdir
1408 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1409 esac
1410 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1412 cd "$ac_dir" || { ac_status=$?; continue; }
1413 # Check for guested configure.
1414 if test -f "$ac_srcdir/configure.gnu"; then
1415 echo &&
1416 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1417 elif test -f "$ac_srcdir/configure"; then
1418 echo &&
1419 $SHELL "$ac_srcdir/configure" --help=recursive
1420 else
1421 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1422 fi || ac_status=$?
1423 cd "$ac_pwd" || { ac_status=$?; break; }
1424 done
1427 test -n "$ac_init_help" && exit $ac_status
1428 if $ac_init_version; then
1429 cat <<\_ACEOF
1430 configure
1431 generated by GNU Autoconf 2.68
1433 Copyright (C) 2010 Free Software Foundation, Inc.
1434 This configure script is free software; the Free Software Foundation
1435 gives unlimited permission to copy, distribute and modify it.
1436 _ACEOF
1437 exit
1440 ## ------------------------ ##
1441 ## Autoconf initialization. ##
1442 ## ------------------------ ##
1444 # ac_fn_c_try_compile LINENO
1445 # --------------------------
1446 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1447 ac_fn_c_try_compile ()
1449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1450 rm -f conftest.$ac_objext
1451 if { { ac_try="$ac_compile"
1452 case "(($ac_try" in
1453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1454 *) ac_try_echo=$ac_try;;
1455 esac
1456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1457 $as_echo "$ac_try_echo"; } >&5
1458 (eval "$ac_compile") 2>conftest.err
1459 ac_status=$?
1460 if test -s conftest.err; then
1461 grep -v '^ *+' conftest.err >conftest.er1
1462 cat conftest.er1 >&5
1463 mv -f conftest.er1 conftest.err
1465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1466 test $ac_status = 0; } && {
1467 test -z "$ac_c_werror_flag" ||
1468 test ! -s conftest.err
1469 } && test -s conftest.$ac_objext; then :
1470 ac_retval=0
1471 else
1472 $as_echo "$as_me: failed program was:" >&5
1473 sed 's/^/| /' conftest.$ac_ext >&5
1475 ac_retval=1
1477 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1478 as_fn_set_status $ac_retval
1480 } # ac_fn_c_try_compile
1482 # ac_fn_c_try_cpp LINENO
1483 # ----------------------
1484 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1485 ac_fn_c_try_cpp ()
1487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1488 if { { ac_try="$ac_cpp conftest.$ac_ext"
1489 case "(($ac_try" in
1490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1491 *) ac_try_echo=$ac_try;;
1492 esac
1493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1494 $as_echo "$ac_try_echo"; } >&5
1495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1496 ac_status=$?
1497 if test -s conftest.err; then
1498 grep -v '^ *+' conftest.err >conftest.er1
1499 cat conftest.er1 >&5
1500 mv -f conftest.er1 conftest.err
1502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1503 test $ac_status = 0; } > conftest.i && {
1504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1505 test ! -s conftest.err
1506 }; then :
1507 ac_retval=0
1508 else
1509 $as_echo "$as_me: failed program was:" >&5
1510 sed 's/^/| /' conftest.$ac_ext >&5
1512 ac_retval=1
1514 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1515 as_fn_set_status $ac_retval
1517 } # ac_fn_c_try_cpp
1519 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1520 # -------------------------------------------------------
1521 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1522 # the include files in INCLUDES and setting the cache variable VAR
1523 # accordingly.
1524 ac_fn_c_check_header_mongrel ()
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 if eval \${$3+:} false; then :
1528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1529 $as_echo_n "checking for $2... " >&6; }
1530 if eval \${$3+:} false; then :
1531 $as_echo_n "(cached) " >&6
1533 eval ac_res=\$$3
1534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1535 $as_echo "$ac_res" >&6; }
1536 else
1537 # Is the header compilable?
1538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1539 $as_echo_n "checking $2 usability... " >&6; }
1540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1541 /* end confdefs.h. */
1543 #include <$2>
1544 _ACEOF
1545 if ac_fn_c_try_compile "$LINENO"; then :
1546 ac_header_compiler=yes
1547 else
1548 ac_header_compiler=no
1550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1552 $as_echo "$ac_header_compiler" >&6; }
1554 # Is the header present?
1555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1556 $as_echo_n "checking $2 presence... " >&6; }
1557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1558 /* end confdefs.h. */
1559 #include <$2>
1560 _ACEOF
1561 if ac_fn_c_try_cpp "$LINENO"; then :
1562 ac_header_preproc=yes
1563 else
1564 ac_header_preproc=no
1566 rm -f conftest.err conftest.i conftest.$ac_ext
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1568 $as_echo "$ac_header_preproc" >&6; }
1570 # So? What about this header?
1571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1572 yes:no: )
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1574 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1576 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1578 no:yes:* )
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1580 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1582 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1584 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1586 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1588 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1590 esac
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1592 $as_echo_n "checking for $2... " >&6; }
1593 if eval \${$3+:} false; then :
1594 $as_echo_n "(cached) " >&6
1595 else
1596 eval "$3=\$ac_header_compiler"
1598 eval ac_res=\$$3
1599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1600 $as_echo "$ac_res" >&6; }
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604 } # ac_fn_c_check_header_mongrel
1606 # ac_fn_c_try_run LINENO
1607 # ----------------------
1608 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1609 # that executables *can* be run.
1610 ac_fn_c_try_run ()
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 if { { ac_try="$ac_link"
1614 case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617 esac
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_link") 2>&5
1621 ac_status=$?
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1624 { { case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1627 esac
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_try") 2>&5
1631 ac_status=$?
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; }; }; then :
1634 ac_retval=0
1635 else
1636 $as_echo "$as_me: program exited with status $ac_status" >&5
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1640 ac_retval=$ac_status
1642 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1646 } # ac_fn_c_try_run
1648 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649 # -------------------------------------------------------
1650 # Tests whether HEADER exists and can be compiled using the include files in
1651 # INCLUDES, setting the cache variable VAR accordingly.
1652 ac_fn_c_check_header_compile ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if eval \${$3+:} false; then :
1658 $as_echo_n "(cached) " >&6
1659 else
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"; then :
1666 eval "$3=yes"
1667 else
1668 eval "$3=no"
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1672 eval ac_res=\$$3
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677 } # ac_fn_c_check_header_compile
1679 # ac_fn_c_try_link LINENO
1680 # -----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_link ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext conftest$ac_exeext
1686 if { { ac_try="$ac_link"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest$ac_exeext && {
1705 test "$cross_compiling" = yes ||
1706 $as_test_x conftest$ac_exeext
1707 }; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1713 ac_retval=1
1715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1717 # interfere with the next link command; also delete a directory that is
1718 # left behind by Apple's compiler. We do this before executing the actions.
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1723 } # ac_fn_c_try_link
1725 # ac_fn_c_check_func LINENO FUNC VAR
1726 # ----------------------------------
1727 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1728 ac_fn_c_check_func ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if eval \${$3+:} false; then :
1734 $as_echo_n "(cached) " >&6
1735 else
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1738 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1740 #define $2 innocuous_$2
1742 /* System header to define __stub macros and hopefully few prototypes,
1743 which can conflict with char $2 (); below.
1744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1745 <limits.h> exists even on freestanding compilers. */
1747 #ifdef __STDC__
1748 # include <limits.h>
1749 #else
1750 # include <assert.h>
1751 #endif
1753 #undef $2
1755 /* Override any GCC internal prototype to avoid an error.
1756 Use char because int might match the return type of a GCC
1757 builtin and then its argument prototype would still apply. */
1758 #ifdef __cplusplus
1759 extern "C"
1760 #endif
1761 char $2 ();
1762 /* The GNU C library defines this for functions which it implements
1763 to always fail with ENOSYS. Some functions are actually named
1764 something starting with __ and the normal name is an alias. */
1765 #if defined __stub_$2 || defined __stub___$2
1766 choke me
1767 #endif
1770 main ()
1772 return $2 ();
1774 return 0;
1776 _ACEOF
1777 if ac_fn_c_try_link "$LINENO"; then :
1778 eval "$3=yes"
1779 else
1780 eval "$3=no"
1782 rm -f core conftest.err conftest.$ac_objext \
1783 conftest$ac_exeext conftest.$ac_ext
1785 eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 } # ac_fn_c_check_func
1791 cat >config.log <<_ACEOF
1792 This file contains any messages produced by compilers while
1793 running configure, to aid debugging if configure makes a mistake.
1795 It was created by $as_me, which was
1796 generated by GNU Autoconf 2.68. Invocation command line was
1798 $ $0 $@
1800 _ACEOF
1801 exec 5>>config.log
1803 cat <<_ASUNAME
1804 ## --------- ##
1805 ## Platform. ##
1806 ## --------- ##
1808 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1809 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1810 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1811 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1812 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1814 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1815 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1817 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1818 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1819 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1820 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1821 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1822 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1823 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1825 _ASUNAME
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1828 for as_dir in $PATH
1830 IFS=$as_save_IFS
1831 test -z "$as_dir" && as_dir=.
1832 $as_echo "PATH: $as_dir"
1833 done
1834 IFS=$as_save_IFS
1836 } >&5
1838 cat >&5 <<_ACEOF
1841 ## ----------- ##
1842 ## Core tests. ##
1843 ## ----------- ##
1845 _ACEOF
1848 # Keep a trace of the command line.
1849 # Strip out --no-create and --no-recursion so they do not pile up.
1850 # Strip out --silent because we don't want to record it for future runs.
1851 # Also quote any args containing shell meta-characters.
1852 # Make two passes to allow for proper duplicate-argument suppression.
1853 ac_configure_args=
1854 ac_configure_args0=
1855 ac_configure_args1=
1856 ac_must_keep_next=false
1857 for ac_pass in 1 2
1859 for ac_arg
1861 case $ac_arg in
1862 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1863 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1864 | -silent | --silent | --silen | --sile | --sil)
1865 continue ;;
1866 *\'*)
1867 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1868 esac
1869 case $ac_pass in
1870 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1872 as_fn_append ac_configure_args1 " '$ac_arg'"
1873 if test $ac_must_keep_next = true; then
1874 ac_must_keep_next=false # Got value, back to normal.
1875 else
1876 case $ac_arg in
1877 *=* | --config-cache | -C | -disable-* | --disable-* \
1878 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1879 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1880 | -with-* | --with-* | -without-* | --without-* | --x)
1881 case "$ac_configure_args0 " in
1882 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1883 esac
1885 -* ) ac_must_keep_next=true ;;
1886 esac
1888 as_fn_append ac_configure_args " '$ac_arg'"
1890 esac
1891 done
1892 done
1893 { ac_configure_args0=; unset ac_configure_args0;}
1894 { ac_configure_args1=; unset ac_configure_args1;}
1896 # When interrupted or exit'd, cleanup temporary files, and complete
1897 # config.log. We remove comments because anyway the quotes in there
1898 # would cause problems or look ugly.
1899 # WARNING: Use '\'' to represent an apostrophe within the trap.
1900 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1901 trap 'exit_status=$?
1902 # Save into config.log some information that might help in debugging.
1904 echo
1906 $as_echo "## ---------------- ##
1907 ## Cache variables. ##
1908 ## ---------------- ##"
1909 echo
1910 # The following way of writing the cache mishandles newlines in values,
1912 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1913 eval ac_val=\$$ac_var
1914 case $ac_val in #(
1915 *${as_nl}*)
1916 case $ac_var in #(
1917 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1918 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1919 esac
1920 case $ac_var in #(
1921 _ | IFS | as_nl) ;; #(
1922 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1923 *) { eval $ac_var=; unset $ac_var;} ;;
1924 esac ;;
1925 esac
1926 done
1927 (set) 2>&1 |
1928 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1929 *${as_nl}ac_space=\ *)
1930 sed -n \
1931 "s/'\''/'\''\\\\'\'''\''/g;
1932 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1933 ;; #(
1935 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1937 esac |
1938 sort
1940 echo
1942 $as_echo "## ----------------- ##
1943 ## Output variables. ##
1944 ## ----------------- ##"
1945 echo
1946 for ac_var in $ac_subst_vars
1948 eval ac_val=\$$ac_var
1949 case $ac_val in
1950 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1951 esac
1952 $as_echo "$ac_var='\''$ac_val'\''"
1953 done | sort
1954 echo
1956 if test -n "$ac_subst_files"; then
1957 $as_echo "## ------------------- ##
1958 ## File substitutions. ##
1959 ## ------------------- ##"
1960 echo
1961 for ac_var in $ac_subst_files
1963 eval ac_val=\$$ac_var
1964 case $ac_val in
1965 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966 esac
1967 $as_echo "$ac_var='\''$ac_val'\''"
1968 done | sort
1969 echo
1972 if test -s confdefs.h; then
1973 $as_echo "## ----------- ##
1974 ## confdefs.h. ##
1975 ## ----------- ##"
1976 echo
1977 cat confdefs.h
1978 echo
1980 test "$ac_signal" != 0 &&
1981 $as_echo "$as_me: caught signal $ac_signal"
1982 $as_echo "$as_me: exit $exit_status"
1983 } >&5
1984 rm -f core *.core core.conftest.* &&
1985 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1986 exit $exit_status
1988 for ac_signal in 1 2 13 15; do
1989 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1990 done
1991 ac_signal=0
1993 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1994 rm -f -r conftest* confdefs.h
1996 $as_echo "/* confdefs.h */" > confdefs.h
1998 # Predefined preprocessor variables.
2000 cat >>confdefs.h <<_ACEOF
2001 #define PACKAGE_NAME "$PACKAGE_NAME"
2002 _ACEOF
2004 cat >>confdefs.h <<_ACEOF
2005 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2006 _ACEOF
2008 cat >>confdefs.h <<_ACEOF
2009 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2010 _ACEOF
2012 cat >>confdefs.h <<_ACEOF
2013 #define PACKAGE_STRING "$PACKAGE_STRING"
2014 _ACEOF
2016 cat >>confdefs.h <<_ACEOF
2017 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2018 _ACEOF
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_URL "$PACKAGE_URL"
2022 _ACEOF
2025 # Let the site file select an alternate cache file if it wants to.
2026 # Prefer an explicitly selected file to automatically selected ones.
2027 ac_site_file1=NONE
2028 ac_site_file2=NONE
2029 if test -n "$CONFIG_SITE"; then
2030 # We do not want a PATH search for config.site.
2031 case $CONFIG_SITE in #((
2032 -*) ac_site_file1=./$CONFIG_SITE;;
2033 */*) ac_site_file1=$CONFIG_SITE;;
2034 *) ac_site_file1=./$CONFIG_SITE;;
2035 esac
2036 elif test "x$prefix" != xNONE; then
2037 ac_site_file1=$prefix/share/config.site
2038 ac_site_file2=$prefix/etc/config.site
2039 else
2040 ac_site_file1=$ac_default_prefix/share/config.site
2041 ac_site_file2=$ac_default_prefix/etc/config.site
2043 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2045 test "x$ac_site_file" = xNONE && continue
2046 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2048 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2049 sed 's/^/| /' "$ac_site_file" >&5
2050 . "$ac_site_file" \
2051 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2053 as_fn_error $? "failed to load site script $ac_site_file
2054 See \`config.log' for more details" "$LINENO" 5; }
2056 done
2058 if test -r "$cache_file"; then
2059 # Some versions of bash will fail to source /dev/null (special files
2060 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2061 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2063 $as_echo "$as_me: loading cache $cache_file" >&6;}
2064 case $cache_file in
2065 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2066 *) . "./$cache_file";;
2067 esac
2069 else
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2071 $as_echo "$as_me: creating cache $cache_file" >&6;}
2072 >$cache_file
2075 # Check that the precious variables saved in the cache have kept the same
2076 # value.
2077 ac_cache_corrupted=false
2078 for ac_var in $ac_precious_vars; do
2079 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2080 eval ac_new_set=\$ac_env_${ac_var}_set
2081 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2082 eval ac_new_val=\$ac_env_${ac_var}_value
2083 case $ac_old_set,$ac_new_set in
2084 set,)
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2086 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2087 ac_cache_corrupted=: ;;
2088 ,set)
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2090 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2091 ac_cache_corrupted=: ;;
2092 ,);;
2094 if test "x$ac_old_val" != "x$ac_new_val"; then
2095 # differences in whitespace do not lead to failure.
2096 ac_old_val_w=`echo x $ac_old_val`
2097 ac_new_val_w=`echo x $ac_new_val`
2098 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2100 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2101 ac_cache_corrupted=:
2102 else
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2104 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2105 eval $ac_var=\$ac_old_val
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2108 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2110 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2111 fi;;
2112 esac
2113 # Pass precious variables to config.status.
2114 if test "$ac_new_set" = set; then
2115 case $ac_new_val in
2116 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2117 *) ac_arg=$ac_var=$ac_new_val ;;
2118 esac
2119 case " $ac_configure_args " in
2120 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2121 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2122 esac
2124 done
2125 if $ac_cache_corrupted; then
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2129 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2130 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2132 ## -------------------- ##
2133 ## Main body of script. ##
2134 ## -------------------- ##
2136 ac_ext=c
2137 ac_cpp='$CPP $CPPFLAGS'
2138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2143 ac_aux_dir=
2144 for ac_dir in ../build-aux "$srcdir"/../build-aux; do
2145 if test -f "$ac_dir/install-sh"; then
2146 ac_aux_dir=$ac_dir
2147 ac_install_sh="$ac_aux_dir/install-sh -c"
2148 break
2149 elif test -f "$ac_dir/install.sh"; then
2150 ac_aux_dir=$ac_dir
2151 ac_install_sh="$ac_aux_dir/install.sh -c"
2152 break
2153 elif test -f "$ac_dir/shtool"; then
2154 ac_aux_dir=$ac_dir
2155 ac_install_sh="$ac_aux_dir/shtool install -c"
2156 break
2158 done
2159 if test -z "$ac_aux_dir"; then
2160 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../build-aux \"$srcdir\"/../build-aux" "$LINENO" 5
2163 # These three variables are undocumented and unsupported,
2164 # and are intended to be withdrawn in a future Autoconf release.
2165 # They can cause serious problems if a builder's source tree is in a directory
2166 # whose full name contains unusual characters.
2167 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2168 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2169 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2173 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2174 set x ${MAKE-make}
2175 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2176 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2177 $as_echo_n "(cached) " >&6
2178 else
2179 cat >conftest.make <<\_ACEOF
2180 SHELL = /bin/sh
2181 all:
2182 @echo '@@@%%%=$(MAKE)=@@@%%%'
2183 _ACEOF
2184 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2185 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2186 *@@@%%%=?*=@@@%%%*)
2187 eval ac_cv_prog_make_${ac_make}_set=yes;;
2189 eval ac_cv_prog_make_${ac_make}_set=no;;
2190 esac
2191 rm -f conftest.make
2193 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2195 $as_echo "yes" >&6; }
2196 SET_MAKE=
2197 else
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2199 $as_echo "no" >&6; }
2200 SET_MAKE="MAKE=${MAKE-make}"
2207 ac_ext=c
2208 ac_cpp='$CPP $CPPFLAGS'
2209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2212 if test -n "$ac_tool_prefix"; then
2213 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2214 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2216 $as_echo_n "checking for $ac_word... " >&6; }
2217 if ${ac_cv_prog_CC+:} false; then :
2218 $as_echo_n "(cached) " >&6
2219 else
2220 if test -n "$CC"; then
2221 ac_cv_prog_CC="$CC" # Let the user override the test.
2222 else
2223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 for as_dir in $PATH
2226 IFS=$as_save_IFS
2227 test -z "$as_dir" && as_dir=.
2228 for ac_exec_ext in '' $ac_executable_extensions; do
2229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2230 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2232 break 2
2234 done
2235 done
2236 IFS=$as_save_IFS
2240 CC=$ac_cv_prog_CC
2241 if test -n "$CC"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2243 $as_echo "$CC" >&6; }
2244 else
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2246 $as_echo "no" >&6; }
2251 if test -z "$ac_cv_prog_CC"; then
2252 ac_ct_CC=$CC
2253 # Extract the first word of "gcc", so it can be a program name with args.
2254 set dummy gcc; ac_word=$2
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2256 $as_echo_n "checking for $ac_word... " >&6; }
2257 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2258 $as_echo_n "(cached) " >&6
2259 else
2260 if test -n "$ac_ct_CC"; then
2261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2262 else
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 for as_dir in $PATH
2266 IFS=$as_save_IFS
2267 test -z "$as_dir" && as_dir=.
2268 for ac_exec_ext in '' $ac_executable_extensions; do
2269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2270 ac_cv_prog_ac_ct_CC="gcc"
2271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2272 break 2
2274 done
2275 done
2276 IFS=$as_save_IFS
2280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2281 if test -n "$ac_ct_CC"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2283 $as_echo "$ac_ct_CC" >&6; }
2284 else
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2286 $as_echo "no" >&6; }
2289 if test "x$ac_ct_CC" = x; then
2290 CC=""
2291 else
2292 case $cross_compiling:$ac_tool_warned in
2293 yes:)
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2296 ac_tool_warned=yes ;;
2297 esac
2298 CC=$ac_ct_CC
2300 else
2301 CC="$ac_cv_prog_CC"
2304 if test -z "$CC"; then
2305 if test -n "$ac_tool_prefix"; then
2306 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2307 set dummy ${ac_tool_prefix}cc; ac_word=$2
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2309 $as_echo_n "checking for $ac_word... " >&6; }
2310 if ${ac_cv_prog_CC+:} false; then :
2311 $as_echo_n "(cached) " >&6
2312 else
2313 if test -n "$CC"; then
2314 ac_cv_prog_CC="$CC" # Let the user override the test.
2315 else
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 for as_dir in $PATH
2319 IFS=$as_save_IFS
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323 ac_cv_prog_CC="${ac_tool_prefix}cc"
2324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2325 break 2
2327 done
2328 done
2329 IFS=$as_save_IFS
2333 CC=$ac_cv_prog_CC
2334 if test -n "$CC"; then
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2336 $as_echo "$CC" >&6; }
2337 else
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2339 $as_echo "no" >&6; }
2345 if test -z "$CC"; then
2346 # Extract the first word of "cc", so it can be a program name with args.
2347 set dummy cc; ac_word=$2
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2349 $as_echo_n "checking for $ac_word... " >&6; }
2350 if ${ac_cv_prog_CC+:} false; then :
2351 $as_echo_n "(cached) " >&6
2352 else
2353 if test -n "$CC"; then
2354 ac_cv_prog_CC="$CC" # Let the user override the test.
2355 else
2356 ac_prog_rejected=no
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2365 ac_prog_rejected=yes
2366 continue
2368 ac_cv_prog_CC="cc"
2369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 break 2
2372 done
2373 done
2374 IFS=$as_save_IFS
2376 if test $ac_prog_rejected = yes; then
2377 # We found a bogon in the path, so make sure we never use it.
2378 set dummy $ac_cv_prog_CC
2379 shift
2380 if test $# != 0; then
2381 # We chose a different compiler from the bogus one.
2382 # However, it has the same basename, so the bogon will be chosen
2383 # first if we set CC to just the basename; use the full file name.
2384 shift
2385 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2390 CC=$ac_cv_prog_CC
2391 if test -n "$CC"; then
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2393 $as_echo "$CC" >&6; }
2394 else
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2396 $as_echo "no" >&6; }
2401 if test -z "$CC"; then
2402 if test -n "$ac_tool_prefix"; then
2403 for ac_prog in cl.exe
2405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2406 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2408 $as_echo_n "checking for $ac_word... " >&6; }
2409 if ${ac_cv_prog_CC+:} false; then :
2410 $as_echo_n "(cached) " >&6
2411 else
2412 if test -n "$CC"; then
2413 ac_cv_prog_CC="$CC" # Let the user override the test.
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2418 IFS=$as_save_IFS
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2422 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 break 2
2426 done
2427 done
2428 IFS=$as_save_IFS
2432 CC=$ac_cv_prog_CC
2433 if test -n "$CC"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2435 $as_echo "$CC" >&6; }
2436 else
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2438 $as_echo "no" >&6; }
2442 test -n "$CC" && break
2443 done
2445 if test -z "$CC"; then
2446 ac_ct_CC=$CC
2447 for ac_prog in cl.exe
2449 # Extract the first word of "$ac_prog", so it can be a program name with args.
2450 set dummy $ac_prog; ac_word=$2
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2452 $as_echo_n "checking for $ac_word... " >&6; }
2453 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2454 $as_echo_n "(cached) " >&6
2455 else
2456 if test -n "$ac_ct_CC"; then
2457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2458 else
2459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 for as_dir in $PATH
2462 IFS=$as_save_IFS
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
2465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2466 ac_cv_prog_ac_ct_CC="$ac_prog"
2467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 break 2
2470 done
2471 done
2472 IFS=$as_save_IFS
2476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2477 if test -n "$ac_ct_CC"; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2479 $as_echo "$ac_ct_CC" >&6; }
2480 else
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2482 $as_echo "no" >&6; }
2486 test -n "$ac_ct_CC" && break
2487 done
2489 if test "x$ac_ct_CC" = x; then
2490 CC=""
2491 else
2492 case $cross_compiling:$ac_tool_warned in
2493 yes:)
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2496 ac_tool_warned=yes ;;
2497 esac
2498 CC=$ac_ct_CC
2505 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2507 as_fn_error $? "no acceptable C compiler found in \$PATH
2508 See \`config.log' for more details" "$LINENO" 5; }
2510 # Provide some information about the compiler.
2511 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2512 set X $ac_compile
2513 ac_compiler=$2
2514 for ac_option in --version -v -V -qversion; do
2515 { { ac_try="$ac_compiler $ac_option >&5"
2516 case "(($ac_try" in
2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518 *) ac_try_echo=$ac_try;;
2519 esac
2520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2521 $as_echo "$ac_try_echo"; } >&5
2522 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2523 ac_status=$?
2524 if test -s conftest.err; then
2525 sed '10a\
2526 ... rest of stderr output deleted ...
2527 10q' conftest.err >conftest.er1
2528 cat conftest.er1 >&5
2530 rm -f conftest.er1 conftest.err
2531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2532 test $ac_status = 0; }
2533 done
2535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2536 /* end confdefs.h. */
2539 main ()
2543 return 0;
2545 _ACEOF
2546 ac_clean_files_save=$ac_clean_files
2547 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2548 # Try to create an executable without -o first, disregard a.out.
2549 # It will help us diagnose broken compilers, and finding out an intuition
2550 # of exeext.
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2552 $as_echo_n "checking whether the C compiler works... " >&6; }
2553 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2555 # The possible output files:
2556 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2558 ac_rmfiles=
2559 for ac_file in $ac_files
2561 case $ac_file in
2562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2563 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2564 esac
2565 done
2566 rm -f $ac_rmfiles
2568 if { { ac_try="$ac_link_default"
2569 case "(($ac_try" in
2570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571 *) ac_try_echo=$ac_try;;
2572 esac
2573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2574 $as_echo "$ac_try_echo"; } >&5
2575 (eval "$ac_link_default") 2>&5
2576 ac_status=$?
2577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2578 test $ac_status = 0; }; then :
2579 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2580 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2581 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2582 # so that the user can short-circuit this test for compilers unknown to
2583 # Autoconf.
2584 for ac_file in $ac_files ''
2586 test -f "$ac_file" || continue
2587 case $ac_file in
2588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2590 [ab].out )
2591 # We found the default executable, but exeext='' is most
2592 # certainly right.
2593 break;;
2594 *.* )
2595 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2596 then :; else
2597 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2599 # We set ac_cv_exeext here because the later test for it is not
2600 # safe: cross compilers may not add the suffix if given an `-o'
2601 # argument, so we may need to know it at that point already.
2602 # Even if this section looks crufty: it has the advantage of
2603 # actually working.
2604 break;;
2606 break;;
2607 esac
2608 done
2609 test "$ac_cv_exeext" = no && ac_cv_exeext=
2611 else
2612 ac_file=''
2614 if test -z "$ac_file"; then :
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616 $as_echo "no" >&6; }
2617 $as_echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2622 as_fn_error 77 "C compiler cannot create executables
2623 See \`config.log' for more details" "$LINENO" 5; }
2624 else
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2626 $as_echo "yes" >&6; }
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2629 $as_echo_n "checking for C compiler default output file name... " >&6; }
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2631 $as_echo "$ac_file" >&6; }
2632 ac_exeext=$ac_cv_exeext
2634 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2635 ac_clean_files=$ac_clean_files_save
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2637 $as_echo_n "checking for suffix of executables... " >&6; }
2638 if { { ac_try="$ac_link"
2639 case "(($ac_try" in
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2642 esac
2643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2644 $as_echo "$ac_try_echo"; } >&5
2645 (eval "$ac_link") 2>&5
2646 ac_status=$?
2647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2648 test $ac_status = 0; }; then :
2649 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2650 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2651 # work properly (i.e., refer to `conftest.exe'), while it won't with
2652 # `rm'.
2653 for ac_file in conftest.exe conftest conftest.*; do
2654 test -f "$ac_file" || continue
2655 case $ac_file in
2656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2657 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2658 break;;
2659 * ) break;;
2660 esac
2661 done
2662 else
2663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2665 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2666 See \`config.log' for more details" "$LINENO" 5; }
2668 rm -f conftest conftest$ac_cv_exeext
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2670 $as_echo "$ac_cv_exeext" >&6; }
2672 rm -f conftest.$ac_ext
2673 EXEEXT=$ac_cv_exeext
2674 ac_exeext=$EXEEXT
2675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2676 /* end confdefs.h. */
2677 #include <stdio.h>
2679 main ()
2681 FILE *f = fopen ("conftest.out", "w");
2682 return ferror (f) || fclose (f) != 0;
2685 return 0;
2687 _ACEOF
2688 ac_clean_files="$ac_clean_files conftest.out"
2689 # Check that the compiler produces executables we can run. If not, either
2690 # the compiler is broken, or we cross compile.
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2692 $as_echo_n "checking whether we are cross compiling... " >&6; }
2693 if test "$cross_compiling" != yes; then
2694 { { ac_try="$ac_link"
2695 case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698 esac
2699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2700 $as_echo "$ac_try_echo"; } >&5
2701 (eval "$ac_link") 2>&5
2702 ac_status=$?
2703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2704 test $ac_status = 0; }
2705 if { ac_try='./conftest$ac_cv_exeext'
2706 { { case "(($ac_try" in
2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708 *) ac_try_echo=$ac_try;;
2709 esac
2710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2711 $as_echo "$ac_try_echo"; } >&5
2712 (eval "$ac_try") 2>&5
2713 ac_status=$?
2714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2715 test $ac_status = 0; }; }; then
2716 cross_compiling=no
2717 else
2718 if test "$cross_compiling" = maybe; then
2719 cross_compiling=yes
2720 else
2721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2723 as_fn_error $? "cannot run C compiled programs.
2724 If you meant to cross compile, use \`--host'.
2725 See \`config.log' for more details" "$LINENO" 5; }
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2730 $as_echo "$cross_compiling" >&6; }
2732 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2733 ac_clean_files=$ac_clean_files_save
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2735 $as_echo_n "checking for suffix of object files... " >&6; }
2736 if ${ac_cv_objext+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740 /* end confdefs.h. */
2743 main ()
2747 return 0;
2749 _ACEOF
2750 rm -f conftest.o conftest.obj
2751 if { { ac_try="$ac_compile"
2752 case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2755 esac
2756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2757 $as_echo "$ac_try_echo"; } >&5
2758 (eval "$ac_compile") 2>&5
2759 ac_status=$?
2760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2761 test $ac_status = 0; }; then :
2762 for ac_file in conftest.o conftest.obj conftest.*; do
2763 test -f "$ac_file" || continue;
2764 case $ac_file in
2765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2766 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2767 break;;
2768 esac
2769 done
2770 else
2771 $as_echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2776 as_fn_error $? "cannot compute suffix of object files: cannot compile
2777 See \`config.log' for more details" "$LINENO" 5; }
2779 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2782 $as_echo "$ac_cv_objext" >&6; }
2783 OBJEXT=$ac_cv_objext
2784 ac_objext=$OBJEXT
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2786 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2787 if ${ac_cv_c_compiler_gnu+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2791 /* end confdefs.h. */
2794 main ()
2796 #ifndef __GNUC__
2797 choke me
2798 #endif
2801 return 0;
2803 _ACEOF
2804 if ac_fn_c_try_compile "$LINENO"; then :
2805 ac_compiler_gnu=yes
2806 else
2807 ac_compiler_gnu=no
2809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2810 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2814 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2815 if test $ac_compiler_gnu = yes; then
2816 GCC=yes
2817 else
2818 GCC=
2820 ac_test_CFLAGS=${CFLAGS+set}
2821 ac_save_CFLAGS=$CFLAGS
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2823 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2824 if ${ac_cv_prog_cc_g+:} false; then :
2825 $as_echo_n "(cached) " >&6
2826 else
2827 ac_save_c_werror_flag=$ac_c_werror_flag
2828 ac_c_werror_flag=yes
2829 ac_cv_prog_cc_g=no
2830 CFLAGS="-g"
2831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832 /* end confdefs.h. */
2835 main ()
2839 return 0;
2841 _ACEOF
2842 if ac_fn_c_try_compile "$LINENO"; then :
2843 ac_cv_prog_cc_g=yes
2844 else
2845 CFLAGS=""
2846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2847 /* end confdefs.h. */
2850 main ()
2854 return 0;
2856 _ACEOF
2857 if ac_fn_c_try_compile "$LINENO"; then :
2859 else
2860 ac_c_werror_flag=$ac_save_c_werror_flag
2861 CFLAGS="-g"
2862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863 /* end confdefs.h. */
2866 main ()
2870 return 0;
2872 _ACEOF
2873 if ac_fn_c_try_compile "$LINENO"; then :
2874 ac_cv_prog_cc_g=yes
2876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2881 ac_c_werror_flag=$ac_save_c_werror_flag
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2884 $as_echo "$ac_cv_prog_cc_g" >&6; }
2885 if test "$ac_test_CFLAGS" = set; then
2886 CFLAGS=$ac_save_CFLAGS
2887 elif test $ac_cv_prog_cc_g = yes; then
2888 if test "$GCC" = yes; then
2889 CFLAGS="-g -O2"
2890 else
2891 CFLAGS="-g"
2893 else
2894 if test "$GCC" = yes; then
2895 CFLAGS="-O2"
2896 else
2897 CFLAGS=
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2901 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2902 if ${ac_cv_prog_cc_c89+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904 else
2905 ac_cv_prog_cc_c89=no
2906 ac_save_CC=$CC
2907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2908 /* end confdefs.h. */
2909 #include <stdarg.h>
2910 #include <stdio.h>
2911 #include <sys/types.h>
2912 #include <sys/stat.h>
2913 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2914 struct buf { int x; };
2915 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2916 static char *e (p, i)
2917 char **p;
2918 int i;
2920 return p[i];
2922 static char *f (char * (*g) (char **, int), char **p, ...)
2924 char *s;
2925 va_list v;
2926 va_start (v,p);
2927 s = g (p, va_arg (v,int));
2928 va_end (v);
2929 return s;
2932 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2933 function prototypes and stuff, but not '\xHH' hex character constants.
2934 These don't provoke an error unfortunately, instead are silently treated
2935 as 'x'. The following induces an error, until -std is added to get
2936 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2937 array size at least. It's necessary to write '\x00'==0 to get something
2938 that's true only with -std. */
2939 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2941 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2942 inside strings and character constants. */
2943 #define FOO(x) 'x'
2944 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2946 int test (int i, double x);
2947 struct s1 {int (*f) (int a);};
2948 struct s2 {int (*f) (double a);};
2949 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2950 int argc;
2951 char **argv;
2953 main ()
2955 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2957 return 0;
2959 _ACEOF
2960 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2961 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2963 CC="$ac_save_CC $ac_arg"
2964 if ac_fn_c_try_compile "$LINENO"; then :
2965 ac_cv_prog_cc_c89=$ac_arg
2967 rm -f core conftest.err conftest.$ac_objext
2968 test "x$ac_cv_prog_cc_c89" != "xno" && break
2969 done
2970 rm -f conftest.$ac_ext
2971 CC=$ac_save_CC
2974 # AC_CACHE_VAL
2975 case "x$ac_cv_prog_cc_c89" in
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2978 $as_echo "none needed" >&6; } ;;
2979 xno)
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2981 $as_echo "unsupported" >&6; } ;;
2983 CC="$CC $ac_cv_prog_cc_c89"
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2985 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2986 esac
2987 if test "x$ac_cv_prog_cc_c89" != xno; then :
2991 ac_ext=c
2992 ac_cpp='$CPP $CPPFLAGS'
2993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2997 ac_ext=c
2998 ac_cpp='$CPP $CPPFLAGS'
2999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3003 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3004 # On Suns, sometimes $CPP names a directory.
3005 if test -n "$CPP" && test -d "$CPP"; then
3006 CPP=
3008 if test -z "$CPP"; then
3009 if ${ac_cv_prog_CPP+:} false; then :
3010 $as_echo_n "(cached) " >&6
3011 else
3012 # Double quotes because CPP needs to be expanded
3013 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3015 ac_preproc_ok=false
3016 for ac_c_preproc_warn_flag in '' yes
3018 # Use a header file that comes with gcc, so configuring glibc
3019 # with a fresh cross-compiler works.
3020 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3021 # <limits.h> exists even on freestanding compilers.
3022 # On the NeXT, cc -E runs the code through the compiler's parser,
3023 # not just through cpp. "Syntax error" is here to catch this case.
3024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3025 /* end confdefs.h. */
3026 #ifdef __STDC__
3027 # include <limits.h>
3028 #else
3029 # include <assert.h>
3030 #endif
3031 Syntax error
3032 _ACEOF
3033 if ac_fn_c_try_cpp "$LINENO"; then :
3035 else
3036 # Broken: fails on valid input.
3037 continue
3039 rm -f conftest.err conftest.i conftest.$ac_ext
3041 # OK, works on sane cases. Now check whether nonexistent headers
3042 # can be detected and how.
3043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3044 /* end confdefs.h. */
3045 #include <ac_nonexistent.h>
3046 _ACEOF
3047 if ac_fn_c_try_cpp "$LINENO"; then :
3048 # Broken: success on invalid input.
3049 continue
3050 else
3051 # Passes both tests.
3052 ac_preproc_ok=:
3053 break
3055 rm -f conftest.err conftest.i conftest.$ac_ext
3057 done
3058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3059 rm -f conftest.i conftest.err conftest.$ac_ext
3060 if $ac_preproc_ok; then :
3061 break
3064 done
3065 ac_cv_prog_CPP=$CPP
3068 CPP=$ac_cv_prog_CPP
3069 else
3070 ac_cv_prog_CPP=$CPP
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3073 $as_echo "$CPP" >&6; }
3074 ac_preproc_ok=false
3075 for ac_c_preproc_warn_flag in '' yes
3077 # Use a header file that comes with gcc, so configuring glibc
3078 # with a fresh cross-compiler works.
3079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3080 # <limits.h> exists even on freestanding compilers.
3081 # On the NeXT, cc -E runs the code through the compiler's parser,
3082 # not just through cpp. "Syntax error" is here to catch this case.
3083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3084 /* end confdefs.h. */
3085 #ifdef __STDC__
3086 # include <limits.h>
3087 #else
3088 # include <assert.h>
3089 #endif
3090 Syntax error
3091 _ACEOF
3092 if ac_fn_c_try_cpp "$LINENO"; then :
3094 else
3095 # Broken: fails on valid input.
3096 continue
3098 rm -f conftest.err conftest.i conftest.$ac_ext
3100 # OK, works on sane cases. Now check whether nonexistent headers
3101 # can be detected and how.
3102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103 /* end confdefs.h. */
3104 #include <ac_nonexistent.h>
3105 _ACEOF
3106 if ac_fn_c_try_cpp "$LINENO"; then :
3107 # Broken: success on invalid input.
3108 continue
3109 else
3110 # Passes both tests.
3111 ac_preproc_ok=:
3112 break
3114 rm -f conftest.err conftest.i conftest.$ac_ext
3116 done
3117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3118 rm -f conftest.i conftest.err conftest.$ac_ext
3119 if $ac_preproc_ok; then :
3121 else
3122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3125 See \`config.log' for more details" "$LINENO" 5; }
3128 ac_ext=c
3129 ac_cpp='$CPP $CPPFLAGS'
3130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3134 # Find a good install program. We prefer a C program (faster),
3135 # so one script is as good as another. But avoid the broken or
3136 # incompatible versions:
3137 # SysV /etc/install, /usr/sbin/install
3138 # SunOS /usr/etc/install
3139 # IRIX /sbin/install
3140 # AIX /bin/install
3141 # AmigaOS /C/install, which installs bootblocks on floppy discs
3142 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3143 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3144 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3145 # OS/2's system install, which has a completely different semantic
3146 # ./install, which can be erroneously created by make from ./install.sh.
3147 # Reject install programs that cannot install multiple files.
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3149 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3150 if test -z "$INSTALL"; then
3151 if ${ac_cv_path_install+:} false; then :
3152 $as_echo_n "(cached) " >&6
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 # Account for people who put trailing slashes in PATH elements.
3160 case $as_dir/ in #((
3161 ./ | .// | /[cC]/* | \
3162 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3163 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3164 /usr/ucb/* ) ;;
3166 # OSF1 and SCO ODT 3.0 have their own names for install.
3167 # Don't use installbsd from OSF since it installs stuff as root
3168 # by default.
3169 for ac_prog in ginstall scoinst install; do
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3172 if test $ac_prog = install &&
3173 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3174 # AIX install. It has an incompatible calling convention.
3176 elif test $ac_prog = install &&
3177 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3178 # program-specific install script used by HP pwplus--don't use.
3180 else
3181 rm -rf conftest.one conftest.two conftest.dir
3182 echo one > conftest.one
3183 echo two > conftest.two
3184 mkdir conftest.dir
3185 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3186 test -s conftest.one && test -s conftest.two &&
3187 test -s conftest.dir/conftest.one &&
3188 test -s conftest.dir/conftest.two
3189 then
3190 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3191 break 3
3195 done
3196 done
3198 esac
3200 done
3201 IFS=$as_save_IFS
3203 rm -rf conftest.one conftest.two conftest.dir
3206 if test "${ac_cv_path_install+set}" = set; then
3207 INSTALL=$ac_cv_path_install
3208 else
3209 # As a last resort, use the slow shell script. Don't cache a
3210 # value for INSTALL within a source directory, because that will
3211 # break other packages using the cache if that directory is
3212 # removed, or if the value is a relative name.
3213 INSTALL=$ac_install_sh
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3217 $as_echo "$INSTALL" >&6; }
3219 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3220 # It thinks the first close brace ends the variable substitution.
3221 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3223 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3225 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3229 # Make sure we can run config.sub.
3230 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3231 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3234 $as_echo_n "checking build system type... " >&6; }
3235 if ${ac_cv_build+:} false; then :
3236 $as_echo_n "(cached) " >&6
3237 else
3238 ac_build_alias=$build_alias
3239 test "x$ac_build_alias" = x &&
3240 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3241 test "x$ac_build_alias" = x &&
3242 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3243 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3244 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3248 $as_echo "$ac_cv_build" >&6; }
3249 case $ac_cv_build in
3250 *-*-*) ;;
3251 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3252 esac
3253 build=$ac_cv_build
3254 ac_save_IFS=$IFS; IFS='-'
3255 set x $ac_cv_build
3256 shift
3257 build_cpu=$1
3258 build_vendor=$2
3259 shift; shift
3260 # Remember, the first character of IFS is used to create $*,
3261 # except with old shells:
3262 build_os=$*
3263 IFS=$ac_save_IFS
3264 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3268 $as_echo_n "checking host system type... " >&6; }
3269 if ${ac_cv_host+:} false; then :
3270 $as_echo_n "(cached) " >&6
3271 else
3272 if test "x$host_alias" = x; then
3273 ac_cv_host=$ac_cv_build
3274 else
3275 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3276 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3281 $as_echo "$ac_cv_host" >&6; }
3282 case $ac_cv_host in
3283 *-*-*) ;;
3284 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3285 esac
3286 host=$ac_cv_host
3287 ac_save_IFS=$IFS; IFS='-'
3288 set x $ac_cv_host
3289 shift
3290 host_cpu=$1
3291 host_vendor=$2
3292 shift; shift
3293 # Remember, the first character of IFS is used to create $*,
3294 # except with old shells:
3295 host_os=$*
3296 IFS=$ac_save_IFS
3297 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
3304 $as_echo_n "checking whether to activate relocatable installation... " >&6; }
3305 # Check whether --enable-relocatable was given.
3306 if test "${enable_relocatable+set}" = set; then :
3307 enableval=$enable_relocatable; if test "$enableval" != no; then
3308 RELOCATABLE=yes
3309 else
3310 RELOCATABLE=no
3313 else
3314 RELOCATABLE=no
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
3319 $as_echo "$RELOCATABLE" >&6; }
3323 if test "X$prefix" = "XNONE"; then
3324 reloc_final_prefix="$ac_default_prefix"
3325 else
3326 reloc_final_prefix="$prefix"
3329 cat >>confdefs.h <<_ACEOF
3330 #define INSTALLPREFIX "${reloc_final_prefix}"
3331 _ACEOF
3333 if test $RELOCATABLE = yes; then
3335 $as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
3341 if test $RELOCATABLE = yes; then
3342 case " $LIBOBJS " in
3343 *" relocatable.$ac_objext "* ) ;;
3344 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
3346 esac
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3353 $as_echo_n "checking whether ln -s works... " >&6; }
3354 LN_S=$as_ln_s
3355 if test "$LN_S" = "ln -s"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3357 $as_echo "yes" >&6; }
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3360 $as_echo "no, using $LN_S" >&6; }
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3368 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3369 if ${ac_cv_path_GREP+:} false; then :
3370 $as_echo_n "(cached) " >&6
3371 else
3372 if test -z "$GREP"; then
3373 ac_path_GREP_found=false
3374 # Loop through the user's path and test for each of PROGNAME-LIST
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3378 IFS=$as_save_IFS
3379 test -z "$as_dir" && as_dir=.
3380 for ac_prog in grep ggrep; do
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3383 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3384 # Check for GNU ac_path_GREP and select it if it is found.
3385 # Check for GNU $ac_path_GREP
3386 case `"$ac_path_GREP" --version 2>&1` in
3387 *GNU*)
3388 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3390 ac_count=0
3391 $as_echo_n 0123456789 >"conftest.in"
3392 while :
3394 cat "conftest.in" "conftest.in" >"conftest.tmp"
3395 mv "conftest.tmp" "conftest.in"
3396 cp "conftest.in" "conftest.nl"
3397 $as_echo 'GREP' >> "conftest.nl"
3398 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3399 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3400 as_fn_arith $ac_count + 1 && ac_count=$as_val
3401 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3402 # Best one so far, save it but keep looking for a better one
3403 ac_cv_path_GREP="$ac_path_GREP"
3404 ac_path_GREP_max=$ac_count
3406 # 10*(2^10) chars as input seems more than enough
3407 test $ac_count -gt 10 && break
3408 done
3409 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3410 esac
3412 $ac_path_GREP_found && break 3
3413 done
3414 done
3415 done
3416 IFS=$as_save_IFS
3417 if test -z "$ac_cv_path_GREP"; then
3418 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3420 else
3421 ac_cv_path_GREP=$GREP
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3426 $as_echo "$ac_cv_path_GREP" >&6; }
3427 GREP="$ac_cv_path_GREP"
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3431 $as_echo_n "checking for egrep... " >&6; }
3432 if ${ac_cv_path_EGREP+:} false; then :
3433 $as_echo_n "(cached) " >&6
3434 else
3435 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3436 then ac_cv_path_EGREP="$GREP -E"
3437 else
3438 if test -z "$EGREP"; then
3439 ac_path_EGREP_found=false
3440 # Loop through the user's path and test for each of PROGNAME-LIST
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_prog in egrep; do
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3449 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3450 # Check for GNU ac_path_EGREP and select it if it is found.
3451 # Check for GNU $ac_path_EGREP
3452 case `"$ac_path_EGREP" --version 2>&1` in
3453 *GNU*)
3454 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3456 ac_count=0
3457 $as_echo_n 0123456789 >"conftest.in"
3458 while :
3460 cat "conftest.in" "conftest.in" >"conftest.tmp"
3461 mv "conftest.tmp" "conftest.in"
3462 cp "conftest.in" "conftest.nl"
3463 $as_echo 'EGREP' >> "conftest.nl"
3464 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3466 as_fn_arith $ac_count + 1 && ac_count=$as_val
3467 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3468 # Best one so far, save it but keep looking for a better one
3469 ac_cv_path_EGREP="$ac_path_EGREP"
3470 ac_path_EGREP_max=$ac_count
3472 # 10*(2^10) chars as input seems more than enough
3473 test $ac_count -gt 10 && break
3474 done
3475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3476 esac
3478 $ac_path_EGREP_found && break 3
3479 done
3480 done
3481 done
3482 IFS=$as_save_IFS
3483 if test -z "$ac_cv_path_EGREP"; then
3484 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3486 else
3487 ac_cv_path_EGREP=$EGREP
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3493 $as_echo "$ac_cv_path_EGREP" >&6; }
3494 EGREP="$ac_cv_path_EGREP"
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3498 $as_echo_n "checking for ANSI C header files... " >&6; }
3499 if ${ac_cv_header_stdc+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504 #include <stdlib.h>
3505 #include <stdarg.h>
3506 #include <string.h>
3507 #include <float.h>
3510 main ()
3514 return 0;
3516 _ACEOF
3517 if ac_fn_c_try_compile "$LINENO"; then :
3518 ac_cv_header_stdc=yes
3519 else
3520 ac_cv_header_stdc=no
3522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 if test $ac_cv_header_stdc = yes; then
3525 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3528 #include <string.h>
3530 _ACEOF
3531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3532 $EGREP "memchr" >/dev/null 2>&1; then :
3534 else
3535 ac_cv_header_stdc=no
3537 rm -f conftest*
3541 if test $ac_cv_header_stdc = yes; then
3542 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545 #include <stdlib.h>
3547 _ACEOF
3548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3549 $EGREP "free" >/dev/null 2>&1; then :
3551 else
3552 ac_cv_header_stdc=no
3554 rm -f conftest*
3558 if test $ac_cv_header_stdc = yes; then
3559 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3560 if test "$cross_compiling" = yes; then :
3562 else
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3565 #include <ctype.h>
3566 #include <stdlib.h>
3567 #if ((' ' & 0x0FF) == 0x020)
3568 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3569 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3570 #else
3571 # define ISLOWER(c) \
3572 (('a' <= (c) && (c) <= 'i') \
3573 || ('j' <= (c) && (c) <= 'r') \
3574 || ('s' <= (c) && (c) <= 'z'))
3575 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3576 #endif
3578 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3580 main ()
3582 int i;
3583 for (i = 0; i < 256; i++)
3584 if (XOR (islower (i), ISLOWER (i))
3585 || toupper (i) != TOUPPER (i))
3586 return 2;
3587 return 0;
3589 _ACEOF
3590 if ac_fn_c_try_run "$LINENO"; then :
3592 else
3593 ac_cv_header_stdc=no
3595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3596 conftest.$ac_objext conftest.beam conftest.$ac_ext
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3602 $as_echo "$ac_cv_header_stdc" >&6; }
3603 if test $ac_cv_header_stdc = yes; then
3605 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3609 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3610 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3611 inttypes.h stdint.h unistd.h
3612 do :
3613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3614 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3616 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3617 cat >>confdefs.h <<_ACEOF
3618 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3619 _ACEOF
3623 done
3629 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3630 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3631 MINIX=yes
3632 else
3633 MINIX=
3637 if test "$MINIX" = yes; then
3639 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3642 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3645 $as_echo "#define _MINIX 1" >>confdefs.h
3649 case "$host_os" in
3650 hpux*)
3652 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
3655 esac
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3659 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3660 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3666 # define __EXTENSIONS__ 1
3667 $ac_includes_default
3669 main ()
3673 return 0;
3675 _ACEOF
3676 if ac_fn_c_try_compile "$LINENO"; then :
3677 ac_cv_safe_to_define___extensions__=yes
3678 else
3679 ac_cv_safe_to_define___extensions__=no
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3684 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3685 test $ac_cv_safe_to_define___extensions__ = yes &&
3686 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3688 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3690 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3692 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3694 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3703 enable_shared=yes
3704 enable_static=no
3705 case `pwd` in
3706 *\ * | *\ *)
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3708 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3709 esac
3713 macro_version='2.4'
3714 macro_revision='1.3293'
3728 ltmain="$ac_aux_dir/ltmain.sh"
3730 # Backslashify metacharacters that are still active within
3731 # double-quoted strings.
3732 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3734 # Same as above, but do not quote variable references.
3735 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3737 # Sed substitution to delay expansion of an escaped shell variable in a
3738 # double_quote_subst'ed string.
3739 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3741 # Sed substitution to delay expansion of an escaped single quote.
3742 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3744 # Sed substitution to avoid accidental globbing in evaled expressions
3745 no_glob_subst='s/\*/\\\*/g'
3747 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3748 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3749 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3752 $as_echo_n "checking how to print strings... " >&6; }
3753 # Test print first, because it will be a builtin if present.
3754 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3755 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3756 ECHO='print -r --'
3757 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3758 ECHO='printf %s\n'
3759 else
3760 # Use this function as a fallback that always works.
3761 func_fallback_echo ()
3763 eval 'cat <<_LTECHO_EOF
3765 _LTECHO_EOF'
3767 ECHO='func_fallback_echo'
3770 # func_echo_all arg...
3771 # Invoke $ECHO with all args, space-separated.
3772 func_echo_all ()
3774 $ECHO ""
3777 case "$ECHO" in
3778 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3779 $as_echo "printf" >&6; } ;;
3780 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3781 $as_echo "print -r" >&6; } ;;
3782 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3783 $as_echo "cat" >&6; } ;;
3784 esac
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3800 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3801 if ${ac_cv_path_SED+:} false; then :
3802 $as_echo_n "(cached) " >&6
3803 else
3804 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3805 for ac_i in 1 2 3 4 5 6 7; do
3806 ac_script="$ac_script$as_nl$ac_script"
3807 done
3808 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3809 { ac_script=; unset ac_script;}
3810 if test -z "$SED"; then
3811 ac_path_SED_found=false
3812 # Loop through the user's path and test for each of PROGNAME-LIST
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 for as_dir in $PATH
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for ac_prog in sed gsed; do
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3821 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3822 # Check for GNU ac_path_SED and select it if it is found.
3823 # Check for GNU $ac_path_SED
3824 case `"$ac_path_SED" --version 2>&1` in
3825 *GNU*)
3826 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3828 ac_count=0
3829 $as_echo_n 0123456789 >"conftest.in"
3830 while :
3832 cat "conftest.in" "conftest.in" >"conftest.tmp"
3833 mv "conftest.tmp" "conftest.in"
3834 cp "conftest.in" "conftest.nl"
3835 $as_echo '' >> "conftest.nl"
3836 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3838 as_fn_arith $ac_count + 1 && ac_count=$as_val
3839 if test $ac_count -gt ${ac_path_SED_max-0}; then
3840 # Best one so far, save it but keep looking for a better one
3841 ac_cv_path_SED="$ac_path_SED"
3842 ac_path_SED_max=$ac_count
3844 # 10*(2^10) chars as input seems more than enough
3845 test $ac_count -gt 10 && break
3846 done
3847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3848 esac
3850 $ac_path_SED_found && break 3
3851 done
3852 done
3853 done
3854 IFS=$as_save_IFS
3855 if test -z "$ac_cv_path_SED"; then
3856 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3858 else
3859 ac_cv_path_SED=$SED
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3864 $as_echo "$ac_cv_path_SED" >&6; }
3865 SED="$ac_cv_path_SED"
3866 rm -f conftest.sed
3868 test -z "$SED" && SED=sed
3869 Xsed="$SED -e 1s/^X//"
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3882 $as_echo_n "checking for fgrep... " >&6; }
3883 if ${ac_cv_path_FGREP+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3887 then ac_cv_path_FGREP="$GREP -F"
3888 else
3889 if test -z "$FGREP"; then
3890 ac_path_FGREP_found=false
3891 # Loop through the user's path and test for each of PROGNAME-LIST
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_prog in fgrep; do
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3900 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3901 # Check for GNU ac_path_FGREP and select it if it is found.
3902 # Check for GNU $ac_path_FGREP
3903 case `"$ac_path_FGREP" --version 2>&1` in
3904 *GNU*)
3905 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3907 ac_count=0
3908 $as_echo_n 0123456789 >"conftest.in"
3909 while :
3911 cat "conftest.in" "conftest.in" >"conftest.tmp"
3912 mv "conftest.tmp" "conftest.in"
3913 cp "conftest.in" "conftest.nl"
3914 $as_echo 'FGREP' >> "conftest.nl"
3915 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3917 as_fn_arith $ac_count + 1 && ac_count=$as_val
3918 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3919 # Best one so far, save it but keep looking for a better one
3920 ac_cv_path_FGREP="$ac_path_FGREP"
3921 ac_path_FGREP_max=$ac_count
3923 # 10*(2^10) chars as input seems more than enough
3924 test $ac_count -gt 10 && break
3925 done
3926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3927 esac
3929 $ac_path_FGREP_found && break 3
3930 done
3931 done
3932 done
3933 IFS=$as_save_IFS
3934 if test -z "$ac_cv_path_FGREP"; then
3935 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3937 else
3938 ac_cv_path_FGREP=$FGREP
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3944 $as_echo "$ac_cv_path_FGREP" >&6; }
3945 FGREP="$ac_cv_path_FGREP"
3948 test -z "$GREP" && GREP=grep
3968 # Check whether --with-gnu-ld was given.
3969 if test "${with_gnu_ld+set}" = set; then :
3970 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3971 else
3972 with_gnu_ld=no
3975 ac_prog=ld
3976 if test "$GCC" = yes; then
3977 # Check if gcc -print-prog-name=ld gives a path.
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3979 $as_echo_n "checking for ld used by $CC... " >&6; }
3980 case $host in
3981 *-*-mingw*)
3982 # gcc leaves a trailing carriage return which upsets mingw
3983 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3985 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3986 esac
3987 case $ac_prog in
3988 # Accept absolute paths.
3989 [\\/]* | ?:[\\/]*)
3990 re_direlt='/[^/][^/]*/\.\./'
3991 # Canonicalize the pathname of ld
3992 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3993 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3994 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3995 done
3996 test -z "$LD" && LD="$ac_prog"
3999 # If it fails, then pretend we aren't using GCC.
4000 ac_prog=ld
4003 # If it is relative, then search for the first ld in PATH.
4004 with_gnu_ld=unknown
4006 esac
4007 elif test "$with_gnu_ld" = yes; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4009 $as_echo_n "checking for GNU ld... " >&6; }
4010 else
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4012 $as_echo_n "checking for non-GNU ld... " >&6; }
4014 if ${lt_cv_path_LD+:} false; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 if test -z "$LD"; then
4018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4019 for ac_dir in $PATH; do
4020 IFS="$lt_save_ifs"
4021 test -z "$ac_dir" && ac_dir=.
4022 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4023 lt_cv_path_LD="$ac_dir/$ac_prog"
4024 # Check to see if the program is GNU ld. I'd rather use --version,
4025 # but apparently some variants of GNU ld only accept -v.
4026 # Break only if it was the GNU/non-GNU ld that we prefer.
4027 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4028 *GNU* | *'with BFD'*)
4029 test "$with_gnu_ld" != no && break
4032 test "$with_gnu_ld" != yes && break
4034 esac
4036 done
4037 IFS="$lt_save_ifs"
4038 else
4039 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4043 LD="$lt_cv_path_LD"
4044 if test -n "$LD"; then
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4046 $as_echo "$LD" >&6; }
4047 else
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049 $as_echo "no" >&6; }
4051 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4053 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4054 if ${lt_cv_prog_gnu_ld+:} false; then :
4055 $as_echo_n "(cached) " >&6
4056 else
4057 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4058 case `$LD -v 2>&1 </dev/null` in
4059 *GNU* | *'with BFD'*)
4060 lt_cv_prog_gnu_ld=yes
4063 lt_cv_prog_gnu_ld=no
4065 esac
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4068 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4069 with_gnu_ld=$lt_cv_prog_gnu_ld
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4080 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4081 if ${lt_cv_path_NM+:} false; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 if test -n "$NM"; then
4085 # Let the user override the test.
4086 lt_cv_path_NM="$NM"
4087 else
4088 lt_nm_to_check="${ac_tool_prefix}nm"
4089 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4090 lt_nm_to_check="$lt_nm_to_check nm"
4092 for lt_tmp_nm in $lt_nm_to_check; do
4093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4094 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4095 IFS="$lt_save_ifs"
4096 test -z "$ac_dir" && ac_dir=.
4097 tmp_nm="$ac_dir/$lt_tmp_nm"
4098 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4099 # Check to see if the nm accepts a BSD-compat flag.
4100 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4101 # nm: unknown option "B" ignored
4102 # Tru64's nm complains that /dev/null is an invalid object file
4103 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4104 */dev/null* | *'Invalid file or object type'*)
4105 lt_cv_path_NM="$tmp_nm -B"
4106 break
4109 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4110 */dev/null*)
4111 lt_cv_path_NM="$tmp_nm -p"
4112 break
4115 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4116 continue # so that we can try to find one that supports BSD flags
4118 esac
4120 esac
4122 done
4123 IFS="$lt_save_ifs"
4124 done
4125 : ${lt_cv_path_NM=no}
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4129 $as_echo "$lt_cv_path_NM" >&6; }
4130 if test "$lt_cv_path_NM" != "no"; then
4131 NM="$lt_cv_path_NM"
4132 else
4133 # Didn't find any BSD compatible name lister, look for dumpbin.
4134 if test -n "$DUMPBIN"; then :
4135 # Let the user override the test.
4136 else
4137 if test -n "$ac_tool_prefix"; then
4138 for ac_prog in dumpbin "link -dump"
4140 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4141 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if ${ac_cv_prog_DUMPBIN+:} false; then :
4145 $as_echo_n "(cached) " >&6
4146 else
4147 if test -n "$DUMPBIN"; then
4148 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4149 else
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4157 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4161 done
4162 done
4163 IFS=$as_save_IFS
4167 DUMPBIN=$ac_cv_prog_DUMPBIN
4168 if test -n "$DUMPBIN"; then
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4170 $as_echo "$DUMPBIN" >&6; }
4171 else
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4177 test -n "$DUMPBIN" && break
4178 done
4180 if test -z "$DUMPBIN"; then
4181 ac_ct_DUMPBIN=$DUMPBIN
4182 for ac_prog in dumpbin "link -dump"
4184 # Extract the first word of "$ac_prog", so it can be a program name with args.
4185 set dummy $ac_prog; ac_word=$2
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4187 $as_echo_n "checking for $ac_word... " >&6; }
4188 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4189 $as_echo_n "(cached) " >&6
4190 else
4191 if test -n "$ac_ct_DUMPBIN"; then
4192 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4193 else
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4201 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 break 2
4205 done
4206 done
4207 IFS=$as_save_IFS
4211 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4212 if test -n "$ac_ct_DUMPBIN"; then
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4214 $as_echo "$ac_ct_DUMPBIN" >&6; }
4215 else
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217 $as_echo "no" >&6; }
4221 test -n "$ac_ct_DUMPBIN" && break
4222 done
4224 if test "x$ac_ct_DUMPBIN" = x; then
4225 DUMPBIN=":"
4226 else
4227 case $cross_compiling:$ac_tool_warned in
4228 yes:)
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4231 ac_tool_warned=yes ;;
4232 esac
4233 DUMPBIN=$ac_ct_DUMPBIN
4237 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4238 *COFF*)
4239 DUMPBIN="$DUMPBIN -symbols"
4242 DUMPBIN=:
4244 esac
4247 if test "$DUMPBIN" != ":"; then
4248 NM="$DUMPBIN"
4251 test -z "$NM" && NM=nm
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4259 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4260 if ${lt_cv_nm_interface+:} false; then :
4261 $as_echo_n "(cached) " >&6
4262 else
4263 lt_cv_nm_interface="BSD nm"
4264 echo "int some_variable = 0;" > conftest.$ac_ext
4265 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4266 (eval "$ac_compile" 2>conftest.err)
4267 cat conftest.err >&5
4268 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4269 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4270 cat conftest.err >&5
4271 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4272 cat conftest.out >&5
4273 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4274 lt_cv_nm_interface="MS dumpbin"
4276 rm -f conftest*
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4279 $as_echo "$lt_cv_nm_interface" >&6; }
4281 # find the maximum length of command line arguments
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4283 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4284 if ${lt_cv_sys_max_cmd_len+:} false; then :
4285 $as_echo_n "(cached) " >&6
4286 else
4288 teststring="ABCD"
4290 case $build_os in
4291 msdosdjgpp*)
4292 # On DJGPP, this test can blow up pretty badly due to problems in libc
4293 # (any single argument exceeding 2000 bytes causes a buffer overrun
4294 # during glob expansion). Even if it were fixed, the result of this
4295 # check would be larger than it should be.
4296 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4299 gnu*)
4300 # Under GNU Hurd, this test is not required because there is
4301 # no limit to the length of command line arguments.
4302 # Libtool will interpret -1 as no limit whatsoever
4303 lt_cv_sys_max_cmd_len=-1;
4306 cygwin* | mingw* | cegcc*)
4307 # On Win9x/ME, this test blows up -- it succeeds, but takes
4308 # about 5 minutes as the teststring grows exponentially.
4309 # Worse, since 9x/ME are not pre-emptively multitasking,
4310 # you end up with a "frozen" computer, even though with patience
4311 # the test eventually succeeds (with a max line length of 256k).
4312 # Instead, let's just punt: use the minimum linelength reported by
4313 # all of the supported platforms: 8192 (on NT/2K/XP).
4314 lt_cv_sys_max_cmd_len=8192;
4317 mint*)
4318 # On MiNT this can take a long time and run out of memory.
4319 lt_cv_sys_max_cmd_len=8192;
4322 amigaos*)
4323 # On AmigaOS with pdksh, this test takes hours, literally.
4324 # So we just punt and use a minimum line length of 8192.
4325 lt_cv_sys_max_cmd_len=8192;
4328 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4329 # This has been around since 386BSD, at least. Likely further.
4330 if test -x /sbin/sysctl; then
4331 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4332 elif test -x /usr/sbin/sysctl; then
4333 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4334 else
4335 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4337 # And add a safety zone
4338 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4342 interix*)
4343 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4344 lt_cv_sys_max_cmd_len=196608
4347 osf*)
4348 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4349 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4350 # nice to cause kernel panics so lets avoid the loop below.
4351 # First set a reasonable default.
4352 lt_cv_sys_max_cmd_len=16384
4354 if test -x /sbin/sysconfig; then
4355 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4356 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4357 esac
4360 sco3.2v5*)
4361 lt_cv_sys_max_cmd_len=102400
4363 sysv5* | sco5v6* | sysv4.2uw2*)
4364 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4365 if test -n "$kargmax"; then
4366 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4367 else
4368 lt_cv_sys_max_cmd_len=32768
4372 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4373 if test -n "$lt_cv_sys_max_cmd_len"; then
4374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4376 else
4377 # Make teststring a little bigger before we do anything with it.
4378 # a 1K string should be a reasonable start.
4379 for i in 1 2 3 4 5 6 7 8 ; do
4380 teststring=$teststring$teststring
4381 done
4382 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4383 # If test is not a shell built-in, we'll probably end up computing a
4384 # maximum length that is only half of the actual maximum length, but
4385 # we can't tell.
4386 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4387 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4388 test $i != 17 # 1/2 MB should be enough
4390 i=`expr $i + 1`
4391 teststring=$teststring$teststring
4392 done
4393 # Only check the string length outside the loop.
4394 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4395 teststring=
4396 # Add a significant safety factor because C++ compilers can tack on
4397 # massive amounts of additional arguments before passing them to the
4398 # linker. It appears as though 1/2 is a usable value.
4399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4402 esac
4406 if test -n $lt_cv_sys_max_cmd_len ; then
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4408 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4409 else
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4411 $as_echo "none" >&6; }
4413 max_cmd_len=$lt_cv_sys_max_cmd_len
4420 : ${CP="cp -f"}
4421 : ${MV="mv -f"}
4422 : ${RM="rm -f"}
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4425 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4426 # Try some XSI features
4427 xsi_shell=no
4428 ( _lt_dummy="a/b/c"
4429 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4430 = c,a/b,b/c, \
4431 && eval 'test $(( 1 + 1 )) -eq 2 \
4432 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4433 && xsi_shell=yes
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4435 $as_echo "$xsi_shell" >&6; }
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4439 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4440 lt_shell_append=no
4441 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4442 >/dev/null 2>&1 \
4443 && lt_shell_append=yes
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4445 $as_echo "$lt_shell_append" >&6; }
4448 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4449 lt_unset=unset
4450 else
4451 lt_unset=false
4458 # test EBCDIC or ASCII
4459 case `echo X|tr X '\101'` in
4460 A) # ASCII based system
4461 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4462 lt_SP2NL='tr \040 \012'
4463 lt_NL2SP='tr \015\012 \040\040'
4465 *) # EBCDIC based system
4466 lt_SP2NL='tr \100 \n'
4467 lt_NL2SP='tr \r\n \100\100'
4469 esac
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4480 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4481 if ${lt_cv_to_host_file_cmd+:} false; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 case $host in
4485 *-*-mingw* )
4486 case $build in
4487 *-*-mingw* ) # actually msys
4488 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4490 *-*-cygwin* )
4491 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4493 * ) # otherwise, assume *nix
4494 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4496 esac
4498 *-*-cygwin* )
4499 case $build in
4500 *-*-mingw* ) # actually msys
4501 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4503 *-*-cygwin* )
4504 lt_cv_to_host_file_cmd=func_convert_file_noop
4506 * ) # otherwise, assume *nix
4507 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4509 esac
4511 * ) # unhandled hosts (and "normal" native builds)
4512 lt_cv_to_host_file_cmd=func_convert_file_noop
4514 esac
4518 to_host_file_cmd=$lt_cv_to_host_file_cmd
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4520 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4527 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4528 if ${lt_cv_to_tool_file_cmd+:} false; then :
4529 $as_echo_n "(cached) " >&6
4530 else
4531 #assume ordinary cross tools, or native build.
4532 lt_cv_to_tool_file_cmd=func_convert_file_noop
4533 case $host in
4534 *-*-mingw* )
4535 case $build in
4536 *-*-mingw* ) # actually msys
4537 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4539 esac
4541 esac
4545 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4547 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4554 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4555 if ${lt_cv_ld_reload_flag+:} false; then :
4556 $as_echo_n "(cached) " >&6
4557 else
4558 lt_cv_ld_reload_flag='-r'
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4561 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4562 reload_flag=$lt_cv_ld_reload_flag
4563 case $reload_flag in
4564 "" | " "*) ;;
4565 *) reload_flag=" $reload_flag" ;;
4566 esac
4567 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4568 case $host_os in
4569 cygwin* | mingw* | pw32* | cegcc*)
4570 if test "$GCC" != yes; then
4571 reload_cmds=false
4574 darwin*)
4575 if test "$GCC" = yes; then
4576 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4577 else
4578 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4581 esac
4591 if test -n "$ac_tool_prefix"; then
4592 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4593 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if ${ac_cv_prog_OBJDUMP+:} false; then :
4597 $as_echo_n "(cached) " >&6
4598 else
4599 if test -n "$OBJDUMP"; then
4600 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4601 else
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4609 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
4613 done
4614 done
4615 IFS=$as_save_IFS
4619 OBJDUMP=$ac_cv_prog_OBJDUMP
4620 if test -n "$OBJDUMP"; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4622 $as_echo "$OBJDUMP" >&6; }
4623 else
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 $as_echo "no" >&6; }
4630 if test -z "$ac_cv_prog_OBJDUMP"; then
4631 ac_ct_OBJDUMP=$OBJDUMP
4632 # Extract the first word of "objdump", so it can be a program name with args.
4633 set dummy objdump; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if test -n "$ac_ct_OBJDUMP"; then
4640 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4653 done
4654 done
4655 IFS=$as_save_IFS
4659 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4660 if test -n "$ac_ct_OBJDUMP"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4662 $as_echo "$ac_ct_OBJDUMP" >&6; }
4663 else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4668 if test "x$ac_ct_OBJDUMP" = x; then
4669 OBJDUMP="false"
4670 else
4671 case $cross_compiling:$ac_tool_warned in
4672 yes:)
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4675 ac_tool_warned=yes ;;
4676 esac
4677 OBJDUMP=$ac_ct_OBJDUMP
4679 else
4680 OBJDUMP="$ac_cv_prog_OBJDUMP"
4683 test -z "$OBJDUMP" && OBJDUMP=objdump
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4691 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4692 if ${lt_cv_deplibs_check_method+:} false; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 lt_cv_file_magic_cmd='$MAGIC_CMD'
4696 lt_cv_file_magic_test_file=
4697 lt_cv_deplibs_check_method='unknown'
4698 # Need to set the preceding variable on all platforms that support
4699 # interlibrary dependencies.
4700 # 'none' -- dependencies not supported.
4701 # `unknown' -- same as none, but documents that we really don't know.
4702 # 'pass_all' -- all dependencies passed with no checks.
4703 # 'test_compile' -- check by making test program.
4704 # 'file_magic [[regex]]' -- check by looking for files in library path
4705 # which responds to the $file_magic_cmd with a given extended regex.
4706 # If you have `file' or equivalent on your system and you're not sure
4707 # whether `pass_all' will *always* work, you probably want this one.
4709 case $host_os in
4710 aix[4-9]*)
4711 lt_cv_deplibs_check_method=pass_all
4714 beos*)
4715 lt_cv_deplibs_check_method=pass_all
4718 bsdi[45]*)
4719 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4720 lt_cv_file_magic_cmd='/usr/bin/file -L'
4721 lt_cv_file_magic_test_file=/shlib/libc.so
4724 cygwin*)
4725 # func_win32_libid is a shell function defined in ltmain.sh
4726 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4727 lt_cv_file_magic_cmd='func_win32_libid'
4730 mingw* | pw32*)
4731 # Base MSYS/MinGW do not provide the 'file' command needed by
4732 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4733 # unless we find 'file', for example because we are cross-compiling.
4734 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4735 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4736 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4737 lt_cv_file_magic_cmd='func_win32_libid'
4738 else
4739 # Keep this pattern in sync with the one in func_win32_libid.
4740 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4741 lt_cv_file_magic_cmd='$OBJDUMP -f'
4745 cegcc*)
4746 # use the weaker test based on 'objdump'. See mingw*.
4747 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4748 lt_cv_file_magic_cmd='$OBJDUMP -f'
4751 darwin* | rhapsody*)
4752 lt_cv_deplibs_check_method=pass_all
4755 freebsd* | dragonfly*)
4756 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4757 case $host_cpu in
4758 i*86 )
4759 # Not sure whether the presence of OpenBSD here was a mistake.
4760 # Let's accept both of them until this is cleared up.
4761 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4762 lt_cv_file_magic_cmd=/usr/bin/file
4763 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4765 esac
4766 else
4767 lt_cv_deplibs_check_method=pass_all
4771 gnu*)
4772 lt_cv_deplibs_check_method=pass_all
4775 haiku*)
4776 lt_cv_deplibs_check_method=pass_all
4779 hpux10.20* | hpux11*)
4780 lt_cv_file_magic_cmd=/usr/bin/file
4781 case $host_cpu in
4782 ia64*)
4783 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4784 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4786 hppa*64*)
4787 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]'
4788 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4791 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4792 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4794 esac
4797 interix[3-9]*)
4798 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4802 irix5* | irix6* | nonstopux*)
4803 case $LD in
4804 *-32|*"-32 ") libmagic=32-bit;;
4805 *-n32|*"-n32 ") libmagic=N32;;
4806 *-64|*"-64 ") libmagic=64-bit;;
4807 *) libmagic=never-match;;
4808 esac
4809 lt_cv_deplibs_check_method=pass_all
4812 # This must be Linux ELF.
4813 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4814 lt_cv_deplibs_check_method=pass_all
4817 netbsd*)
4818 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4819 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4820 else
4821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4825 newos6*)
4826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4827 lt_cv_file_magic_cmd=/usr/bin/file
4828 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4831 *nto* | *qnx*)
4832 lt_cv_deplibs_check_method=pass_all
4835 openbsd*)
4836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4838 else
4839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4843 osf3* | osf4* | osf5*)
4844 lt_cv_deplibs_check_method=pass_all
4847 rdos*)
4848 lt_cv_deplibs_check_method=pass_all
4851 solaris*)
4852 lt_cv_deplibs_check_method=pass_all
4855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4856 lt_cv_deplibs_check_method=pass_all
4859 sysv4 | sysv4.3*)
4860 case $host_vendor in
4861 motorola)
4862 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]'
4863 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4865 ncr)
4866 lt_cv_deplibs_check_method=pass_all
4868 sequent)
4869 lt_cv_file_magic_cmd='/bin/file'
4870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4872 sni)
4873 lt_cv_file_magic_cmd='/bin/file'
4874 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4875 lt_cv_file_magic_test_file=/lib/libc.so
4877 siemens)
4878 lt_cv_deplibs_check_method=pass_all
4881 lt_cv_deplibs_check_method=pass_all
4883 esac
4886 tpf*)
4887 lt_cv_deplibs_check_method=pass_all
4889 esac
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4893 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4895 file_magic_glob=
4896 want_nocaseglob=no
4897 if test "$build" = "$host"; then
4898 case $host_os in
4899 mingw* | pw32*)
4900 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4901 want_nocaseglob=yes
4902 else
4903 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4906 esac
4909 file_magic_cmd=$lt_cv_file_magic_cmd
4910 deplibs_check_method=$lt_cv_deplibs_check_method
4911 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4934 if test -n "$ac_tool_prefix"; then
4935 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4936 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938 $as_echo_n "checking for $ac_word... " >&6; }
4939 if ${ac_cv_prog_DLLTOOL+:} false; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 if test -n "$DLLTOOL"; then
4943 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4944 else
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4948 IFS=$as_save_IFS
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 break 2
4956 done
4957 done
4958 IFS=$as_save_IFS
4962 DLLTOOL=$ac_cv_prog_DLLTOOL
4963 if test -n "$DLLTOOL"; then
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4965 $as_echo "$DLLTOOL" >&6; }
4966 else
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 $as_echo "no" >&6; }
4973 if test -z "$ac_cv_prog_DLLTOOL"; then
4974 ac_ct_DLLTOOL=$DLLTOOL
4975 # Extract the first word of "dlltool", so it can be a program name with args.
4976 set dummy dlltool; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 if test -n "$ac_ct_DLLTOOL"; then
4983 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4996 done
4997 done
4998 IFS=$as_save_IFS
5002 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5003 if test -n "$ac_ct_DLLTOOL"; then
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5005 $as_echo "$ac_ct_DLLTOOL" >&6; }
5006 else
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5011 if test "x$ac_ct_DLLTOOL" = x; then
5012 DLLTOOL="false"
5013 else
5014 case $cross_compiling:$ac_tool_warned in
5015 yes:)
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5018 ac_tool_warned=yes ;;
5019 esac
5020 DLLTOOL=$ac_ct_DLLTOOL
5022 else
5023 DLLTOOL="$ac_cv_prog_DLLTOOL"
5026 test -z "$DLLTOOL" && DLLTOOL=dlltool
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5035 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5036 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 lt_cv_sharedlib_from_linklib_cmd='unknown'
5041 case $host_os in
5042 cygwin* | mingw* | pw32* | cegcc*)
5043 # two different shell functions defined in ltmain.sh
5044 # decide which to use based on capabilities of $DLLTOOL
5045 case `$DLLTOOL --help 2>&1` in
5046 *--identify-strict*)
5047 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5050 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5052 esac
5055 # fallback: assume linklib IS sharedlib
5056 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5058 esac
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5062 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5063 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5064 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5072 if test -n "$ac_tool_prefix"; then
5073 for ac_prog in ar
5075 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5076 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078 $as_echo_n "checking for $ac_word... " >&6; }
5079 if ${ac_cv_prog_AR+:} false; then :
5080 $as_echo_n "(cached) " >&6
5081 else
5082 if test -n "$AR"; then
5083 ac_cv_prog_AR="$AR" # Let the user override the test.
5084 else
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH
5088 IFS=$as_save_IFS
5089 test -z "$as_dir" && as_dir=.
5090 for ac_exec_ext in '' $ac_executable_extensions; do
5091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5092 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 break 2
5096 done
5097 done
5098 IFS=$as_save_IFS
5102 AR=$ac_cv_prog_AR
5103 if test -n "$AR"; then
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5105 $as_echo "$AR" >&6; }
5106 else
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5112 test -n "$AR" && break
5113 done
5115 if test -z "$AR"; then
5116 ac_ct_AR=$AR
5117 for ac_prog in ar
5119 # Extract the first word of "$ac_prog", so it can be a program name with args.
5120 set dummy $ac_prog; ac_word=$2
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122 $as_echo_n "checking for $ac_word... " >&6; }
5123 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5124 $as_echo_n "(cached) " >&6
5125 else
5126 if test -n "$ac_ct_AR"; then
5127 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5132 IFS=$as_save_IFS
5133 test -z "$as_dir" && as_dir=.
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136 ac_cv_prog_ac_ct_AR="$ac_prog"
5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 break 2
5140 done
5141 done
5142 IFS=$as_save_IFS
5146 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5147 if test -n "$ac_ct_AR"; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5149 $as_echo "$ac_ct_AR" >&6; }
5150 else
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152 $as_echo "no" >&6; }
5156 test -n "$ac_ct_AR" && break
5157 done
5159 if test "x$ac_ct_AR" = x; then
5160 AR="false"
5161 else
5162 case $cross_compiling:$ac_tool_warned in
5163 yes:)
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5166 ac_tool_warned=yes ;;
5167 esac
5168 AR=$ac_ct_AR
5172 : ${AR=ar}
5173 : ${AR_FLAGS=cru}
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5186 $as_echo_n "checking for archiver @FILE support... " >&6; }
5187 if ${lt_cv_ar_at_file+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 lt_cv_ar_at_file=no
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5195 main ()
5199 return 0;
5201 _ACEOF
5202 if ac_fn_c_try_compile "$LINENO"; then :
5203 echo conftest.$ac_objext > conftest.lst
5204 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5206 (eval $lt_ar_try) 2>&5
5207 ac_status=$?
5208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5209 test $ac_status = 0; }
5210 if test "$ac_status" -eq 0; then
5211 # Ensure the archiver fails upon bogus file names.
5212 rm -f conftest.$ac_objext libconftest.a
5213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5214 (eval $lt_ar_try) 2>&5
5215 ac_status=$?
5216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5217 test $ac_status = 0; }
5218 if test "$ac_status" -ne 0; then
5219 lt_cv_ar_at_file=@
5222 rm -f conftest.* libconftest.a
5225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5229 $as_echo "$lt_cv_ar_at_file" >&6; }
5231 if test "x$lt_cv_ar_at_file" = xno; then
5232 archiver_list_spec=
5233 else
5234 archiver_list_spec=$lt_cv_ar_at_file
5243 if test -n "$ac_tool_prefix"; then
5244 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5245 set dummy ${ac_tool_prefix}strip; ac_word=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if ${ac_cv_prog_STRIP+:} false; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 if test -n "$STRIP"; then
5252 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5253 else
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5265 done
5266 done
5267 IFS=$as_save_IFS
5271 STRIP=$ac_cv_prog_STRIP
5272 if test -n "$STRIP"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5274 $as_echo "$STRIP" >&6; }
5275 else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5282 if test -z "$ac_cv_prog_STRIP"; then
5283 ac_ct_STRIP=$STRIP
5284 # Extract the first word of "strip", so it can be a program name with args.
5285 set dummy strip; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 if test -n "$ac_ct_STRIP"; then
5292 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5293 else
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301 ac_cv_prog_ac_ct_STRIP="strip"
5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5305 done
5306 done
5307 IFS=$as_save_IFS
5311 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5312 if test -n "$ac_ct_STRIP"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5314 $as_echo "$ac_ct_STRIP" >&6; }
5315 else
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5320 if test "x$ac_ct_STRIP" = x; then
5321 STRIP=":"
5322 else
5323 case $cross_compiling:$ac_tool_warned in
5324 yes:)
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5327 ac_tool_warned=yes ;;
5328 esac
5329 STRIP=$ac_ct_STRIP
5331 else
5332 STRIP="$ac_cv_prog_STRIP"
5335 test -z "$STRIP" && STRIP=:
5342 if test -n "$ac_tool_prefix"; then
5343 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5344 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_prog_RANLIB+:} false; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 if test -n "$RANLIB"; then
5351 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5352 else
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5364 done
5365 done
5366 IFS=$as_save_IFS
5370 RANLIB=$ac_cv_prog_RANLIB
5371 if test -n "$RANLIB"; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5373 $as_echo "$RANLIB" >&6; }
5374 else
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5381 if test -z "$ac_cv_prog_RANLIB"; then
5382 ac_ct_RANLIB=$RANLIB
5383 # Extract the first word of "ranlib", so it can be a program name with args.
5384 set dummy ranlib; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5390 if test -n "$ac_ct_RANLIB"; then
5391 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5392 else
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5400 ac_cv_prog_ac_ct_RANLIB="ranlib"
5401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 break 2
5404 done
5405 done
5406 IFS=$as_save_IFS
5410 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5411 if test -n "$ac_ct_RANLIB"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5413 $as_echo "$ac_ct_RANLIB" >&6; }
5414 else
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416 $as_echo "no" >&6; }
5419 if test "x$ac_ct_RANLIB" = x; then
5420 RANLIB=":"
5421 else
5422 case $cross_compiling:$ac_tool_warned in
5423 yes:)
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5426 ac_tool_warned=yes ;;
5427 esac
5428 RANLIB=$ac_ct_RANLIB
5430 else
5431 RANLIB="$ac_cv_prog_RANLIB"
5434 test -z "$RANLIB" && RANLIB=:
5441 # Determine commands to create old-style static archives.
5442 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5443 old_postinstall_cmds='chmod 644 $oldlib'
5444 old_postuninstall_cmds=
5446 if test -n "$RANLIB"; then
5447 case $host_os in
5448 openbsd*)
5449 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5452 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5454 esac
5455 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5458 case $host_os in
5459 darwin*)
5460 lock_old_archive_extraction=yes ;;
5462 lock_old_archive_extraction=no ;;
5463 esac
5485 for ac_prog in gawk mawk nawk awk
5487 # Extract the first word of "$ac_prog", so it can be a program name with args.
5488 set dummy $ac_prog; ac_word=$2
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490 $as_echo_n "checking for $ac_word... " >&6; }
5491 if ${ac_cv_prog_AWK+:} false; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 if test -n "$AWK"; then
5495 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5496 else
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504 ac_cv_prog_AWK="$ac_prog"
5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5508 done
5509 done
5510 IFS=$as_save_IFS
5514 AWK=$ac_cv_prog_AWK
5515 if test -n "$AWK"; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5517 $as_echo "$AWK" >&6; }
5518 else
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5524 test -n "$AWK" && break
5525 done
5545 # If no C compiler was specified, use CC.
5546 LTCC=${LTCC-"$CC"}
5548 # If no C compiler flags were specified, use CFLAGS.
5549 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5551 # Allow CC to be a program name with arguments.
5552 compiler=$CC
5555 # Check for command to grab the raw symbol name followed by C symbol from nm.
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5557 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5558 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5562 # These are sane defaults that work on at least a few old systems.
5563 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5565 # Character class describing NM global symbol codes.
5566 symcode='[BCDEGRST]'
5568 # Regexp to match symbols that can be accessed directly from C.
5569 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5571 # Define system-specific variables.
5572 case $host_os in
5573 aix*)
5574 symcode='[BCDT]'
5576 cygwin* | mingw* | pw32* | cegcc*)
5577 symcode='[ABCDGISTW]'
5579 hpux*)
5580 if test "$host_cpu" = ia64; then
5581 symcode='[ABCDEGRST]'
5584 irix* | nonstopux*)
5585 symcode='[BCDEGRST]'
5587 osf*)
5588 symcode='[BCDEGQRST]'
5590 solaris*)
5591 symcode='[BDRT]'
5593 sco3.2v5*)
5594 symcode='[DT]'
5596 sysv4.2uw2*)
5597 symcode='[DT]'
5599 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5600 symcode='[ABDT]'
5602 sysv4)
5603 symcode='[DFNSTU]'
5605 esac
5607 # If we're using GNU nm, then use its standard symbol codes.
5608 case `$NM -V 2>&1` in
5609 *GNU* | *'with BFD'*)
5610 symcode='[ABCDGIRSTW]' ;;
5611 esac
5613 # Transform an extracted symbol line into a proper C declaration.
5614 # Some systems (esp. on ia64) link data and code symbols differently,
5615 # so use this general approach.
5616 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5618 # Transform an extracted symbol line into symbol name and symbol address
5619 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5620 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'"
5622 # Handle CRLF in mingw tool chain
5623 opt_cr=
5624 case $build_os in
5625 mingw*)
5626 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5628 esac
5630 # Try without a prefix underscore, then with it.
5631 for ac_symprfx in "" "_"; do
5633 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5634 symxfrm="\\1 $ac_symprfx\\2 \\2"
5636 # Write the raw and C identifiers.
5637 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5638 # Fake it for dumpbin and say T for any non-static function
5639 # and D for any global variable.
5640 # Also find C++ and __fastcall symbols from MSVC++,
5641 # which start with @ or ?.
5642 lt_cv_sys_global_symbol_pipe="$AWK '"\
5643 " {last_section=section; section=\$ 3};"\
5644 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5645 " \$ 0!~/External *\|/{next};"\
5646 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5647 " {if(hide[section]) next};"\
5648 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5649 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5650 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5651 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5652 " ' prfx=^$ac_symprfx"
5653 else
5654 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5656 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5658 # Check to see that the pipe works correctly.
5659 pipe_works=no
5661 rm -f conftest*
5662 cat > conftest.$ac_ext <<_LT_EOF
5663 #ifdef __cplusplus
5664 extern "C" {
5665 #endif
5666 char nm_test_var;
5667 void nm_test_func(void);
5668 void nm_test_func(void){}
5669 #ifdef __cplusplus
5671 #endif
5672 int main(){nm_test_var='a';nm_test_func();return(0);}
5673 _LT_EOF
5675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5676 (eval $ac_compile) 2>&5
5677 ac_status=$?
5678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5679 test $ac_status = 0; }; then
5680 # Now try to grab the symbols.
5681 nlist=conftest.nm
5682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5683 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5684 ac_status=$?
5685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5686 test $ac_status = 0; } && test -s "$nlist"; then
5687 # Try sorting and uniquifying the output.
5688 if sort "$nlist" | uniq > "$nlist"T; then
5689 mv -f "$nlist"T "$nlist"
5690 else
5691 rm -f "$nlist"T
5694 # Make sure that we snagged all the symbols we need.
5695 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5696 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5697 cat <<_LT_EOF > conftest.$ac_ext
5698 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5699 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5700 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5701 relocations are performed -- see ld's documentation on pseudo-relocs. */
5702 # define LT_DLSYM_CONST
5703 #elif defined(__osf__)
5704 /* This system does not cope well with relocations in const data. */
5705 # define LT_DLSYM_CONST
5706 #else
5707 # define LT_DLSYM_CONST const
5708 #endif
5710 #ifdef __cplusplus
5711 extern "C" {
5712 #endif
5714 _LT_EOF
5715 # Now generate the symbol file.
5716 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5718 cat <<_LT_EOF >> conftest.$ac_ext
5720 /* The mapping between symbol names and symbols. */
5721 LT_DLSYM_CONST struct {
5722 const char *name;
5723 void *address;
5725 lt__PROGRAM__LTX_preloaded_symbols[] =
5727 { "@PROGRAM@", (void *) 0 },
5728 _LT_EOF
5729 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5730 cat <<\_LT_EOF >> conftest.$ac_ext
5731 {0, (void *) 0}
5734 /* This works around a problem in FreeBSD linker */
5735 #ifdef FREEBSD_WORKAROUND
5736 static const void *lt_preloaded_setup() {
5737 return lt__PROGRAM__LTX_preloaded_symbols;
5739 #endif
5741 #ifdef __cplusplus
5743 #endif
5744 _LT_EOF
5745 # Now try linking the two files.
5746 mv conftest.$ac_objext conftstm.$ac_objext
5747 lt_globsym_save_LIBS=$LIBS
5748 lt_globsym_save_CFLAGS=$CFLAGS
5749 LIBS="conftstm.$ac_objext"
5750 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5752 (eval $ac_link) 2>&5
5753 ac_status=$?
5754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5755 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5756 pipe_works=yes
5758 LIBS=$lt_globsym_save_LIBS
5759 CFLAGS=$lt_globsym_save_CFLAGS
5760 else
5761 echo "cannot find nm_test_func in $nlist" >&5
5763 else
5764 echo "cannot find nm_test_var in $nlist" >&5
5766 else
5767 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5769 else
5770 echo "$progname: failed program was:" >&5
5771 cat conftest.$ac_ext >&5
5773 rm -rf conftest* conftst*
5775 # Do not use the global_symbol_pipe unless it works.
5776 if test "$pipe_works" = yes; then
5777 break
5778 else
5779 lt_cv_sys_global_symbol_pipe=
5781 done
5785 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5786 lt_cv_sys_global_symbol_to_cdecl=
5788 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5790 $as_echo "failed" >&6; }
5791 else
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5793 $as_echo "ok" >&6; }
5796 # Response file support.
5797 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5798 nm_file_list_spec='@'
5799 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5800 nm_file_list_spec='@'
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5830 $as_echo_n "checking for sysroot... " >&6; }
5832 # Check whether --with-sysroot was given.
5833 if test "${with_sysroot+set}" = set; then :
5834 withval=$with_sysroot;
5835 else
5836 with_sysroot=no
5840 lt_sysroot=
5841 case ${with_sysroot} in #(
5842 yes)
5843 if test "$GCC" = yes; then
5844 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5846 ;; #(
5848 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5849 ;; #(
5850 no|'')
5851 ;; #(
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5854 $as_echo "${with_sysroot}" >&6; }
5855 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5857 esac
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5860 $as_echo "${lt_sysroot:-no}" >&6; }
5866 # Check whether --enable-libtool-lock was given.
5867 if test "${enable_libtool_lock+set}" = set; then :
5868 enableval=$enable_libtool_lock;
5871 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5873 # Some flags need to be propagated to the compiler or linker for good
5874 # libtool support.
5875 case $host in
5876 ia64-*-hpux*)
5877 # Find out which ABI we are using.
5878 echo 'int i;' > conftest.$ac_ext
5879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5880 (eval $ac_compile) 2>&5
5881 ac_status=$?
5882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5883 test $ac_status = 0; }; then
5884 case `/usr/bin/file conftest.$ac_objext` in
5885 *ELF-32*)
5886 HPUX_IA64_MODE="32"
5888 *ELF-64*)
5889 HPUX_IA64_MODE="64"
5891 esac
5893 rm -rf conftest*
5895 *-*-irix6*)
5896 # Find out which ABI we are using.
5897 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5899 (eval $ac_compile) 2>&5
5900 ac_status=$?
5901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5902 test $ac_status = 0; }; then
5903 if test "$lt_cv_prog_gnu_ld" = yes; then
5904 case `/usr/bin/file conftest.$ac_objext` in
5905 *32-bit*)
5906 LD="${LD-ld} -melf32bsmip"
5908 *N32*)
5909 LD="${LD-ld} -melf32bmipn32"
5911 *64-bit*)
5912 LD="${LD-ld} -melf64bmip"
5914 esac
5915 else
5916 case `/usr/bin/file conftest.$ac_objext` in
5917 *32-bit*)
5918 LD="${LD-ld} -32"
5920 *N32*)
5921 LD="${LD-ld} -n32"
5923 *64-bit*)
5924 LD="${LD-ld} -64"
5926 esac
5929 rm -rf conftest*
5932 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5933 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5934 # Find out which ABI we are using.
5935 echo 'int i;' > conftest.$ac_ext
5936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5937 (eval $ac_compile) 2>&5
5938 ac_status=$?
5939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5940 test $ac_status = 0; }; then
5941 case `/usr/bin/file conftest.o` in
5942 *32-bit*)
5943 case $host in
5944 x86_64-*kfreebsd*-gnu)
5945 LD="${LD-ld} -m elf_i386_fbsd"
5947 x86_64-*linux*)
5948 LD="${LD-ld} -m elf_i386"
5950 ppc64-*linux*|powerpc64-*linux*)
5951 LD="${LD-ld} -m elf32ppclinux"
5953 s390x-*linux*)
5954 LD="${LD-ld} -m elf_s390"
5956 sparc64-*linux*)
5957 LD="${LD-ld} -m elf32_sparc"
5959 esac
5961 *64-bit*)
5962 case $host in
5963 x86_64-*kfreebsd*-gnu)
5964 LD="${LD-ld} -m elf_x86_64_fbsd"
5966 x86_64-*linux*)
5967 LD="${LD-ld} -m elf_x86_64"
5969 ppc*-*linux*|powerpc*-*linux*)
5970 LD="${LD-ld} -m elf64ppc"
5972 s390*-*linux*|s390*-*tpf*)
5973 LD="${LD-ld} -m elf64_s390"
5975 sparc*-*linux*)
5976 LD="${LD-ld} -m elf64_sparc"
5978 esac
5980 esac
5982 rm -rf conftest*
5985 *-*-sco3.2v5*)
5986 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5987 SAVE_CFLAGS="$CFLAGS"
5988 CFLAGS="$CFLAGS -belf"
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5990 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5991 if ${lt_cv_cc_needs_belf+:} false; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 ac_ext=c
5995 ac_cpp='$CPP $CPPFLAGS'
5996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6004 main ()
6008 return 0;
6010 _ACEOF
6011 if ac_fn_c_try_link "$LINENO"; then :
6012 lt_cv_cc_needs_belf=yes
6013 else
6014 lt_cv_cc_needs_belf=no
6016 rm -f core conftest.err conftest.$ac_objext \
6017 conftest$ac_exeext conftest.$ac_ext
6018 ac_ext=c
6019 ac_cpp='$CPP $CPPFLAGS'
6020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6026 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6027 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6028 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6029 CFLAGS="$SAVE_CFLAGS"
6032 sparc*-*solaris*)
6033 # Find out which ABI we are using.
6034 echo 'int i;' > conftest.$ac_ext
6035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6036 (eval $ac_compile) 2>&5
6037 ac_status=$?
6038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6039 test $ac_status = 0; }; then
6040 case `/usr/bin/file conftest.o` in
6041 *64-bit*)
6042 case $lt_cv_prog_gnu_ld in
6043 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6045 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6046 LD="${LD-ld} -64"
6049 esac
6051 esac
6053 rm -rf conftest*
6055 esac
6057 need_locks="$enable_libtool_lock"
6059 if test -n "$ac_tool_prefix"; then
6060 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6061 set dummy ${ac_tool_prefix}mt; ac_word=$2
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063 $as_echo_n "checking for $ac_word... " >&6; }
6064 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6065 $as_echo_n "(cached) " >&6
6066 else
6067 if test -n "$MANIFEST_TOOL"; then
6068 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6069 else
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH
6073 IFS=$as_save_IFS
6074 test -z "$as_dir" && as_dir=.
6075 for ac_exec_ext in '' $ac_executable_extensions; do
6076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6077 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 break 2
6081 done
6082 done
6083 IFS=$as_save_IFS
6087 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6088 if test -n "$MANIFEST_TOOL"; then
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6090 $as_echo "$MANIFEST_TOOL" >&6; }
6091 else
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6098 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6099 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6100 # Extract the first word of "mt", so it can be a program name with args.
6101 set dummy mt; ac_word=$2
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103 $as_echo_n "checking for $ac_word... " >&6; }
6104 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6105 $as_echo_n "(cached) " >&6
6106 else
6107 if test -n "$ac_ct_MANIFEST_TOOL"; then
6108 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6109 else
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 for as_dir in $PATH
6113 IFS=$as_save_IFS
6114 test -z "$as_dir" && as_dir=.
6115 for ac_exec_ext in '' $ac_executable_extensions; do
6116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6117 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6119 break 2
6121 done
6122 done
6123 IFS=$as_save_IFS
6127 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6128 if test -n "$ac_ct_MANIFEST_TOOL"; then
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6130 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6131 else
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6136 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6137 MANIFEST_TOOL=":"
6138 else
6139 case $cross_compiling:$ac_tool_warned in
6140 yes:)
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6143 ac_tool_warned=yes ;;
6144 esac
6145 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6147 else
6148 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6151 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6153 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6154 if ${lt_cv_path_mainfest_tool+:} false; then :
6155 $as_echo_n "(cached) " >&6
6156 else
6157 lt_cv_path_mainfest_tool=no
6158 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6159 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6160 cat conftest.err >&5
6161 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6162 lt_cv_path_mainfest_tool=yes
6164 rm -f conftest*
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6167 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6168 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6169 MANIFEST_TOOL=:
6177 case $host_os in
6178 rhapsody* | darwin*)
6179 if test -n "$ac_tool_prefix"; then
6180 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6181 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6183 $as_echo_n "checking for $ac_word... " >&6; }
6184 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6185 $as_echo_n "(cached) " >&6
6186 else
6187 if test -n "$DSYMUTIL"; then
6188 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6189 else
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6197 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 break 2
6201 done
6202 done
6203 IFS=$as_save_IFS
6207 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6208 if test -n "$DSYMUTIL"; then
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6210 $as_echo "$DSYMUTIL" >&6; }
6211 else
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213 $as_echo "no" >&6; }
6218 if test -z "$ac_cv_prog_DSYMUTIL"; then
6219 ac_ct_DSYMUTIL=$DSYMUTIL
6220 # Extract the first word of "dsymutil", so it can be a program name with args.
6221 set dummy dsymutil; ac_word=$2
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6223 $as_echo_n "checking for $ac_word... " >&6; }
6224 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6225 $as_echo_n "(cached) " >&6
6226 else
6227 if test -n "$ac_ct_DSYMUTIL"; then
6228 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6229 else
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6233 IFS=$as_save_IFS
6234 test -z "$as_dir" && as_dir=.
6235 for ac_exec_ext in '' $ac_executable_extensions; do
6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6237 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 break 2
6241 done
6242 done
6243 IFS=$as_save_IFS
6247 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6248 if test -n "$ac_ct_DSYMUTIL"; then
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6250 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6251 else
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6253 $as_echo "no" >&6; }
6256 if test "x$ac_ct_DSYMUTIL" = x; then
6257 DSYMUTIL=":"
6258 else
6259 case $cross_compiling:$ac_tool_warned in
6260 yes:)
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6263 ac_tool_warned=yes ;;
6264 esac
6265 DSYMUTIL=$ac_ct_DSYMUTIL
6267 else
6268 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6271 if test -n "$ac_tool_prefix"; then
6272 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6273 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if ${ac_cv_prog_NMEDIT+:} false; then :
6277 $as_echo_n "(cached) " >&6
6278 else
6279 if test -n "$NMEDIT"; then
6280 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 break 2
6293 done
6294 done
6295 IFS=$as_save_IFS
6299 NMEDIT=$ac_cv_prog_NMEDIT
6300 if test -n "$NMEDIT"; then
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6302 $as_echo "$NMEDIT" >&6; }
6303 else
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 $as_echo "no" >&6; }
6310 if test -z "$ac_cv_prog_NMEDIT"; then
6311 ac_ct_NMEDIT=$NMEDIT
6312 # Extract the first word of "nmedit", so it can be a program name with args.
6313 set dummy nmedit; ac_word=$2
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6315 $as_echo_n "checking for $ac_word... " >&6; }
6316 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6317 $as_echo_n "(cached) " >&6
6318 else
6319 if test -n "$ac_ct_NMEDIT"; then
6320 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331 break 2
6333 done
6334 done
6335 IFS=$as_save_IFS
6339 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6340 if test -n "$ac_ct_NMEDIT"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6342 $as_echo "$ac_ct_NMEDIT" >&6; }
6343 else
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6348 if test "x$ac_ct_NMEDIT" = x; then
6349 NMEDIT=":"
6350 else
6351 case $cross_compiling:$ac_tool_warned in
6352 yes:)
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6355 ac_tool_warned=yes ;;
6356 esac
6357 NMEDIT=$ac_ct_NMEDIT
6359 else
6360 NMEDIT="$ac_cv_prog_NMEDIT"
6363 if test -n "$ac_tool_prefix"; then
6364 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6365 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6367 $as_echo_n "checking for $ac_word... " >&6; }
6368 if ${ac_cv_prog_LIPO+:} false; then :
6369 $as_echo_n "(cached) " >&6
6370 else
6371 if test -n "$LIPO"; then
6372 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6373 else
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6375 for as_dir in $PATH
6377 IFS=$as_save_IFS
6378 test -z "$as_dir" && as_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6381 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 break 2
6385 done
6386 done
6387 IFS=$as_save_IFS
6391 LIPO=$ac_cv_prog_LIPO
6392 if test -n "$LIPO"; then
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6394 $as_echo "$LIPO" >&6; }
6395 else
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397 $as_echo "no" >&6; }
6402 if test -z "$ac_cv_prog_LIPO"; then
6403 ac_ct_LIPO=$LIPO
6404 # Extract the first word of "lipo", so it can be a program name with args.
6405 set dummy lipo; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 if test -n "$ac_ct_LIPO"; then
6412 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421 ac_cv_prog_ac_ct_LIPO="lipo"
6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6425 done
6426 done
6427 IFS=$as_save_IFS
6431 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6432 if test -n "$ac_ct_LIPO"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6434 $as_echo "$ac_ct_LIPO" >&6; }
6435 else
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 $as_echo "no" >&6; }
6440 if test "x$ac_ct_LIPO" = x; then
6441 LIPO=":"
6442 else
6443 case $cross_compiling:$ac_tool_warned in
6444 yes:)
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6447 ac_tool_warned=yes ;;
6448 esac
6449 LIPO=$ac_ct_LIPO
6451 else
6452 LIPO="$ac_cv_prog_LIPO"
6455 if test -n "$ac_tool_prefix"; then
6456 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6457 set dummy ${ac_tool_prefix}otool; ac_word=$2
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if ${ac_cv_prog_OTOOL+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 if test -n "$OTOOL"; then
6464 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 break 2
6477 done
6478 done
6479 IFS=$as_save_IFS
6483 OTOOL=$ac_cv_prog_OTOOL
6484 if test -n "$OTOOL"; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6486 $as_echo "$OTOOL" >&6; }
6487 else
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 $as_echo "no" >&6; }
6494 if test -z "$ac_cv_prog_OTOOL"; then
6495 ac_ct_OTOOL=$OTOOL
6496 # Extract the first word of "otool", so it can be a program name with args.
6497 set dummy otool; ac_word=$2
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 if test -n "$ac_ct_OTOOL"; then
6504 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6505 else
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH
6509 IFS=$as_save_IFS
6510 test -z "$as_dir" && as_dir=.
6511 for ac_exec_ext in '' $ac_executable_extensions; do
6512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513 ac_cv_prog_ac_ct_OTOOL="otool"
6514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 break 2
6517 done
6518 done
6519 IFS=$as_save_IFS
6523 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6524 if test -n "$ac_ct_OTOOL"; then
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6526 $as_echo "$ac_ct_OTOOL" >&6; }
6527 else
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529 $as_echo "no" >&6; }
6532 if test "x$ac_ct_OTOOL" = x; then
6533 OTOOL=":"
6534 else
6535 case $cross_compiling:$ac_tool_warned in
6536 yes:)
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6539 ac_tool_warned=yes ;;
6540 esac
6541 OTOOL=$ac_ct_OTOOL
6543 else
6544 OTOOL="$ac_cv_prog_OTOOL"
6547 if test -n "$ac_tool_prefix"; then
6548 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6549 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6551 $as_echo_n "checking for $ac_word... " >&6; }
6552 if ${ac_cv_prog_OTOOL64+:} false; then :
6553 $as_echo_n "(cached) " >&6
6554 else
6555 if test -n "$OTOOL64"; then
6556 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6557 else
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6561 IFS=$as_save_IFS
6562 test -z "$as_dir" && as_dir=.
6563 for ac_exec_ext in '' $ac_executable_extensions; do
6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6565 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6567 break 2
6569 done
6570 done
6571 IFS=$as_save_IFS
6575 OTOOL64=$ac_cv_prog_OTOOL64
6576 if test -n "$OTOOL64"; then
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6578 $as_echo "$OTOOL64" >&6; }
6579 else
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581 $as_echo "no" >&6; }
6586 if test -z "$ac_cv_prog_OTOOL64"; then
6587 ac_ct_OTOOL64=$OTOOL64
6588 # Extract the first word of "otool64", so it can be a program name with args.
6589 set dummy otool64; ac_word=$2
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595 if test -n "$ac_ct_OTOOL64"; then
6596 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6597 else
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605 ac_cv_prog_ac_ct_OTOOL64="otool64"
6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6609 done
6610 done
6611 IFS=$as_save_IFS
6615 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6616 if test -n "$ac_ct_OTOOL64"; then
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6618 $as_echo "$ac_ct_OTOOL64" >&6; }
6619 else
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 $as_echo "no" >&6; }
6624 if test "x$ac_ct_OTOOL64" = x; then
6625 OTOOL64=":"
6626 else
6627 case $cross_compiling:$ac_tool_warned in
6628 yes:)
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6631 ac_tool_warned=yes ;;
6632 esac
6633 OTOOL64=$ac_ct_OTOOL64
6635 else
6636 OTOOL64="$ac_cv_prog_OTOOL64"
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6666 $as_echo_n "checking for -single_module linker flag... " >&6; }
6667 if ${lt_cv_apple_cc_single_mod+:} false; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 lt_cv_apple_cc_single_mod=no
6671 if test -z "${LT_MULTI_MODULE}"; then
6672 # By default we will add the -single_module flag. You can override
6673 # by either setting the environment variable LT_MULTI_MODULE
6674 # non-empty at configure time, or by adding -multi_module to the
6675 # link flags.
6676 rm -rf libconftest.dylib*
6677 echo "int foo(void){return 1;}" > conftest.c
6678 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6679 -dynamiclib -Wl,-single_module conftest.c" >&5
6680 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6681 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6682 _lt_result=$?
6683 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6684 lt_cv_apple_cc_single_mod=yes
6685 else
6686 cat conftest.err >&5
6688 rm -rf libconftest.dylib*
6689 rm -f conftest.*
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6693 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6695 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6696 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 lt_cv_ld_exported_symbols_list=no
6700 save_LDFLAGS=$LDFLAGS
6701 echo "_main" > conftest.sym
6702 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6707 main ()
6711 return 0;
6713 _ACEOF
6714 if ac_fn_c_try_link "$LINENO"; then :
6715 lt_cv_ld_exported_symbols_list=yes
6716 else
6717 lt_cv_ld_exported_symbols_list=no
6719 rm -f core conftest.err conftest.$ac_objext \
6720 conftest$ac_exeext conftest.$ac_ext
6721 LDFLAGS="$save_LDFLAGS"
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6725 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6727 $as_echo_n "checking for -force_load linker flag... " >&6; }
6728 if ${lt_cv_ld_force_load+:} false; then :
6729 $as_echo_n "(cached) " >&6
6730 else
6731 lt_cv_ld_force_load=no
6732 cat > conftest.c << _LT_EOF
6733 int forced_loaded() { return 2;}
6734 _LT_EOF
6735 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6736 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6737 echo "$AR cru libconftest.a conftest.o" >&5
6738 $AR cru libconftest.a conftest.o 2>&5
6739 echo "$RANLIB libconftest.a" >&5
6740 $RANLIB libconftest.a 2>&5
6741 cat > conftest.c << _LT_EOF
6742 int main() { return 0;}
6743 _LT_EOF
6744 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6745 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6746 _lt_result=$?
6747 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6748 lt_cv_ld_force_load=yes
6749 else
6750 cat conftest.err >&5
6752 rm -f conftest.err libconftest.a conftest conftest.c
6753 rm -rf conftest.dSYM
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6757 $as_echo "$lt_cv_ld_force_load" >&6; }
6758 case $host_os in
6759 rhapsody* | darwin1.[012])
6760 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6761 darwin1.*)
6762 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6763 darwin*) # darwin 5.x on
6764 # if running on 10.5 or later, the deployment target defaults
6765 # to the OS version, if on x86, and 10.4, the deployment
6766 # target defaults to 10.4. Don't you love it?
6767 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6768 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6769 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6770 10.[012]*)
6771 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6772 10.*)
6773 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6774 esac
6776 esac
6777 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6778 _lt_dar_single_mod='$single_module'
6780 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6781 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6782 else
6783 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6785 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6786 _lt_dsymutil='~$DSYMUTIL $lib || :'
6787 else
6788 _lt_dsymutil=
6791 esac
6793 for ac_header in dlfcn.h
6794 do :
6795 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6797 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6798 cat >>confdefs.h <<_ACEOF
6799 #define HAVE_DLFCN_H 1
6800 _ACEOF
6804 done
6810 # Set options
6811 enable_win32_dll=yes
6813 case $host in
6814 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6815 if test -n "$ac_tool_prefix"; then
6816 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6817 set dummy ${ac_tool_prefix}as; ac_word=$2
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819 $as_echo_n "checking for $ac_word... " >&6; }
6820 if ${ac_cv_prog_AS+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 if test -n "$AS"; then
6824 ac_cv_prog_AS="$AS" # Let the user override the test.
6825 else
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833 ac_cv_prog_AS="${ac_tool_prefix}as"
6834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6837 done
6838 done
6839 IFS=$as_save_IFS
6843 AS=$ac_cv_prog_AS
6844 if test -n "$AS"; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6846 $as_echo "$AS" >&6; }
6847 else
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849 $as_echo "no" >&6; }
6854 if test -z "$ac_cv_prog_AS"; then
6855 ac_ct_AS=$AS
6856 # Extract the first word of "as", so it can be a program name with args.
6857 set dummy as; ac_word=$2
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 $as_echo_n "checking for $ac_word... " >&6; }
6860 if ${ac_cv_prog_ac_ct_AS+:} false; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 if test -n "$ac_ct_AS"; then
6864 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_prog_ac_ct_AS="as"
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6877 done
6878 done
6879 IFS=$as_save_IFS
6883 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6884 if test -n "$ac_ct_AS"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6886 $as_echo "$ac_ct_AS" >&6; }
6887 else
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6892 if test "x$ac_ct_AS" = x; then
6893 AS="false"
6894 else
6895 case $cross_compiling:$ac_tool_warned in
6896 yes:)
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6899 ac_tool_warned=yes ;;
6900 esac
6901 AS=$ac_ct_AS
6903 else
6904 AS="$ac_cv_prog_AS"
6907 if test -n "$ac_tool_prefix"; then
6908 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6909 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6911 $as_echo_n "checking for $ac_word... " >&6; }
6912 if ${ac_cv_prog_DLLTOOL+:} false; then :
6913 $as_echo_n "(cached) " >&6
6914 else
6915 if test -n "$DLLTOOL"; then
6916 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6917 else
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6919 for as_dir in $PATH
6921 IFS=$as_save_IFS
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 break 2
6929 done
6930 done
6931 IFS=$as_save_IFS
6935 DLLTOOL=$ac_cv_prog_DLLTOOL
6936 if test -n "$DLLTOOL"; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6938 $as_echo "$DLLTOOL" >&6; }
6939 else
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 $as_echo "no" >&6; }
6946 if test -z "$ac_cv_prog_DLLTOOL"; then
6947 ac_ct_DLLTOOL=$DLLTOOL
6948 # Extract the first word of "dlltool", so it can be a program name with args.
6949 set dummy dlltool; ac_word=$2
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6951 $as_echo_n "checking for $ac_word... " >&6; }
6952 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 if test -n "$ac_ct_DLLTOOL"; then
6956 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6957 else
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959 for as_dir in $PATH
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 break 2
6969 done
6970 done
6971 IFS=$as_save_IFS
6975 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6976 if test -n "$ac_ct_DLLTOOL"; then
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6978 $as_echo "$ac_ct_DLLTOOL" >&6; }
6979 else
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981 $as_echo "no" >&6; }
6984 if test "x$ac_ct_DLLTOOL" = x; then
6985 DLLTOOL="false"
6986 else
6987 case $cross_compiling:$ac_tool_warned in
6988 yes:)
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6991 ac_tool_warned=yes ;;
6992 esac
6993 DLLTOOL=$ac_ct_DLLTOOL
6995 else
6996 DLLTOOL="$ac_cv_prog_DLLTOOL"
6999 if test -n "$ac_tool_prefix"; then
7000 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7001 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if ${ac_cv_prog_OBJDUMP+:} false; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 if test -n "$OBJDUMP"; then
7008 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7009 else
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7017 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7021 done
7022 done
7023 IFS=$as_save_IFS
7027 OBJDUMP=$ac_cv_prog_OBJDUMP
7028 if test -n "$OBJDUMP"; then
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7030 $as_echo "$OBJDUMP" >&6; }
7031 else
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033 $as_echo "no" >&6; }
7038 if test -z "$ac_cv_prog_OBJDUMP"; then
7039 ac_ct_OBJDUMP=$OBJDUMP
7040 # Extract the first word of "objdump", so it can be a program name with args.
7041 set dummy objdump; ac_word=$2
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043 $as_echo_n "checking for $ac_word... " >&6; }
7044 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7045 $as_echo_n "(cached) " >&6
7046 else
7047 if test -n "$ac_ct_OBJDUMP"; then
7048 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7049 else
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 for as_dir in $PATH
7053 IFS=$as_save_IFS
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7057 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059 break 2
7061 done
7062 done
7063 IFS=$as_save_IFS
7067 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7068 if test -n "$ac_ct_OBJDUMP"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7070 $as_echo "$ac_ct_OBJDUMP" >&6; }
7071 else
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 $as_echo "no" >&6; }
7076 if test "x$ac_ct_OBJDUMP" = x; then
7077 OBJDUMP="false"
7078 else
7079 case $cross_compiling:$ac_tool_warned in
7080 yes:)
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7083 ac_tool_warned=yes ;;
7084 esac
7085 OBJDUMP=$ac_ct_OBJDUMP
7087 else
7088 OBJDUMP="$ac_cv_prog_OBJDUMP"
7092 esac
7094 test -z "$AS" && AS=as
7100 test -z "$DLLTOOL" && DLLTOOL=dlltool
7106 test -z "$OBJDUMP" && OBJDUMP=objdump
7114 enable_dlopen=no
7118 # Check whether --enable-shared was given.
7119 if test "${enable_shared+set}" = set; then :
7120 enableval=$enable_shared; p=${PACKAGE-default}
7121 case $enableval in
7122 yes) enable_shared=yes ;;
7123 no) enable_shared=no ;;
7125 enable_shared=no
7126 # Look at the argument we got. We use all the common list separators.
7127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7128 for pkg in $enableval; do
7129 IFS="$lt_save_ifs"
7130 if test "X$pkg" = "X$p"; then
7131 enable_shared=yes
7133 done
7134 IFS="$lt_save_ifs"
7136 esac
7137 else
7138 enable_shared=yes
7149 # Check whether --enable-static was given.
7150 if test "${enable_static+set}" = set; then :
7151 enableval=$enable_static; p=${PACKAGE-default}
7152 case $enableval in
7153 yes) enable_static=yes ;;
7154 no) enable_static=no ;;
7156 enable_static=no
7157 # Look at the argument we got. We use all the common list separators.
7158 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7159 for pkg in $enableval; do
7160 IFS="$lt_save_ifs"
7161 if test "X$pkg" = "X$p"; then
7162 enable_static=yes
7164 done
7165 IFS="$lt_save_ifs"
7167 esac
7168 else
7169 enable_static=yes
7181 # Check whether --with-pic was given.
7182 if test "${with_pic+set}" = set; then :
7183 withval=$with_pic; pic_mode="$withval"
7184 else
7185 pic_mode=default
7189 test -z "$pic_mode" && pic_mode=default
7197 # Check whether --enable-fast-install was given.
7198 if test "${enable_fast_install+set}" = set; then :
7199 enableval=$enable_fast_install; p=${PACKAGE-default}
7200 case $enableval in
7201 yes) enable_fast_install=yes ;;
7202 no) enable_fast_install=no ;;
7204 enable_fast_install=no
7205 # Look at the argument we got. We use all the common list separators.
7206 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7207 for pkg in $enableval; do
7208 IFS="$lt_save_ifs"
7209 if test "X$pkg" = "X$p"; then
7210 enable_fast_install=yes
7212 done
7213 IFS="$lt_save_ifs"
7215 esac
7216 else
7217 enable_fast_install=yes
7230 # This can be used to rebuild libtool when needed
7231 LIBTOOL_DEPS="$ltmain"
7233 # Always use our own libtool.
7234 LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
7261 test -z "$LN_S" && LN_S="ln -s"
7276 if test -n "${ZSH_VERSION+set}" ; then
7277 setopt NO_GLOB_SUBST
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7281 $as_echo_n "checking for objdir... " >&6; }
7282 if ${lt_cv_objdir+:} false; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 rm -f .libs 2>/dev/null
7286 mkdir .libs 2>/dev/null
7287 if test -d .libs; then
7288 lt_cv_objdir=.libs
7289 else
7290 # MS-DOS does not allow filenames that begin with a dot.
7291 lt_cv_objdir=_libs
7293 rmdir .libs 2>/dev/null
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7296 $as_echo "$lt_cv_objdir" >&6; }
7297 objdir=$lt_cv_objdir
7303 cat >>confdefs.h <<_ACEOF
7304 #define LT_OBJDIR "$lt_cv_objdir/"
7305 _ACEOF
7310 case $host_os in
7311 aix3*)
7312 # AIX sometimes has problems with the GCC collect2 program. For some
7313 # reason, if we set the COLLECT_NAMES environment variable, the problems
7314 # vanish in a puff of smoke.
7315 if test "X${COLLECT_NAMES+set}" != Xset; then
7316 COLLECT_NAMES=
7317 export COLLECT_NAMES
7320 esac
7322 # Global variables:
7323 ofile=libtool
7324 can_build_shared=yes
7326 # All known linkers require a `.a' archive for static linking (except MSVC,
7327 # which needs '.lib').
7328 libext=a
7330 with_gnu_ld="$lt_cv_prog_gnu_ld"
7332 old_CC="$CC"
7333 old_CFLAGS="$CFLAGS"
7335 # Set sane defaults for various variables
7336 test -z "$CC" && CC=cc
7337 test -z "$LTCC" && LTCC=$CC
7338 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7339 test -z "$LD" && LD=ld
7340 test -z "$ac_objext" && ac_objext=o
7342 for cc_temp in $compiler""; do
7343 case $cc_temp in
7344 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7345 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7346 \-*) ;;
7347 *) break;;
7348 esac
7349 done
7350 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7353 # Only perform the check for file, if the check method requires it
7354 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7355 case $deplibs_check_method in
7356 file_magic*)
7357 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7359 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7360 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7361 $as_echo_n "(cached) " >&6
7362 else
7363 case $MAGIC_CMD in
7364 [\\/*] | ?:[\\/]*)
7365 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7368 lt_save_MAGIC_CMD="$MAGIC_CMD"
7369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7370 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7371 for ac_dir in $ac_dummy; do
7372 IFS="$lt_save_ifs"
7373 test -z "$ac_dir" && ac_dir=.
7374 if test -f $ac_dir/${ac_tool_prefix}file; then
7375 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7376 if test -n "$file_magic_test_file"; then
7377 case $deplibs_check_method in
7378 "file_magic "*)
7379 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7380 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7381 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7382 $EGREP "$file_magic_regex" > /dev/null; then
7384 else
7385 cat <<_LT_EOF 1>&2
7387 *** Warning: the command libtool uses to detect shared libraries,
7388 *** $file_magic_cmd, produces output that libtool cannot recognize.
7389 *** The result is that libtool may fail to recognize shared libraries
7390 *** as such. This will affect the creation of libtool libraries that
7391 *** depend on shared libraries, but programs linked with such libtool
7392 *** libraries will work regardless of this problem. Nevertheless, you
7393 *** may want to report the problem to your system manager and/or to
7394 *** bug-libtool@gnu.org
7396 _LT_EOF
7397 fi ;;
7398 esac
7400 break
7402 done
7403 IFS="$lt_save_ifs"
7404 MAGIC_CMD="$lt_save_MAGIC_CMD"
7406 esac
7409 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7410 if test -n "$MAGIC_CMD"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7412 $as_echo "$MAGIC_CMD" >&6; }
7413 else
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7422 if test -z "$lt_cv_path_MAGIC_CMD"; then
7423 if test -n "$ac_tool_prefix"; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7425 $as_echo_n "checking for file... " >&6; }
7426 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7427 $as_echo_n "(cached) " >&6
7428 else
7429 case $MAGIC_CMD in
7430 [\\/*] | ?:[\\/]*)
7431 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7434 lt_save_MAGIC_CMD="$MAGIC_CMD"
7435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7436 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7437 for ac_dir in $ac_dummy; do
7438 IFS="$lt_save_ifs"
7439 test -z "$ac_dir" && ac_dir=.
7440 if test -f $ac_dir/file; then
7441 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7442 if test -n "$file_magic_test_file"; then
7443 case $deplibs_check_method in
7444 "file_magic "*)
7445 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7446 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7447 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7448 $EGREP "$file_magic_regex" > /dev/null; then
7450 else
7451 cat <<_LT_EOF 1>&2
7453 *** Warning: the command libtool uses to detect shared libraries,
7454 *** $file_magic_cmd, produces output that libtool cannot recognize.
7455 *** The result is that libtool may fail to recognize shared libraries
7456 *** as such. This will affect the creation of libtool libraries that
7457 *** depend on shared libraries, but programs linked with such libtool
7458 *** libraries will work regardless of this problem. Nevertheless, you
7459 *** may want to report the problem to your system manager and/or to
7460 *** bug-libtool@gnu.org
7462 _LT_EOF
7463 fi ;;
7464 esac
7466 break
7468 done
7469 IFS="$lt_save_ifs"
7470 MAGIC_CMD="$lt_save_MAGIC_CMD"
7472 esac
7475 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7476 if test -n "$MAGIC_CMD"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7478 $as_echo "$MAGIC_CMD" >&6; }
7479 else
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }
7485 else
7486 MAGIC_CMD=:
7492 esac
7494 # Use C for the default configuration in the libtool script
7496 lt_save_CC="$CC"
7497 ac_ext=c
7498 ac_cpp='$CPP $CPPFLAGS'
7499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7504 # Source file extension for C test sources.
7505 ac_ext=c
7507 # Object file extension for compiled C test sources.
7508 objext=o
7509 objext=$objext
7511 # Code to be used in simple compile tests
7512 lt_simple_compile_test_code="int some_variable = 0;"
7514 # Code to be used in simple link tests
7515 lt_simple_link_test_code='int main(){return(0);}'
7523 # If no C compiler was specified, use CC.
7524 LTCC=${LTCC-"$CC"}
7526 # If no C compiler flags were specified, use CFLAGS.
7527 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7529 # Allow CC to be a program name with arguments.
7530 compiler=$CC
7532 # Save the default compiler, since it gets overwritten when the other
7533 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7534 compiler_DEFAULT=$CC
7536 # save warnings/boilerplate of simple test code
7537 ac_outfile=conftest.$ac_objext
7538 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7539 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7540 _lt_compiler_boilerplate=`cat conftest.err`
7541 $RM conftest*
7543 ac_outfile=conftest.$ac_objext
7544 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7545 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7546 _lt_linker_boilerplate=`cat conftest.err`
7547 $RM -r conftest*
7550 ## CAVEAT EMPTOR:
7551 ## There is no encapsulation within the following macros, do not change
7552 ## the running order or otherwise move them around unless you know exactly
7553 ## what you are doing...
7554 if test -n "$compiler"; then
7556 lt_prog_compiler_no_builtin_flag=
7558 if test "$GCC" = yes; then
7559 case $cc_basename in
7560 nvcc*)
7561 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7563 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7564 esac
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7567 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7568 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571 lt_cv_prog_compiler_rtti_exceptions=no
7572 ac_outfile=conftest.$ac_objext
7573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7574 lt_compiler_flag="-fno-rtti -fno-exceptions"
7575 # Insert the option either (1) after the last *FLAGS variable, or
7576 # (2) before a word containing "conftest.", or (3) at the end.
7577 # Note that $ac_compile itself does not contain backslashes and begins
7578 # with a dollar sign (not a hyphen), so the echo should work correctly.
7579 # The option is referenced via a variable to avoid confusing sed.
7580 lt_compile=`echo "$ac_compile" | $SED \
7581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7583 -e 's:$: $lt_compiler_flag:'`
7584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7585 (eval "$lt_compile" 2>conftest.err)
7586 ac_status=$?
7587 cat conftest.err >&5
7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 if (exit $ac_status) && test -s "$ac_outfile"; then
7590 # The compiler can only warn and ignore the option if not recognized
7591 # So say no if there are warnings other than the usual output.
7592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7595 lt_cv_prog_compiler_rtti_exceptions=yes
7598 $RM conftest*
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7602 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7604 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7605 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7606 else
7617 lt_prog_compiler_wl=
7618 lt_prog_compiler_pic=
7619 lt_prog_compiler_static=
7622 if test "$GCC" = yes; then
7623 lt_prog_compiler_wl='-Wl,'
7624 lt_prog_compiler_static='-static'
7626 case $host_os in
7627 aix*)
7628 # All AIX code is PIC.
7629 if test "$host_cpu" = ia64; then
7630 # AIX 5 now supports IA64 processor
7631 lt_prog_compiler_static='-Bstatic'
7635 amigaos*)
7636 case $host_cpu in
7637 powerpc)
7638 # see comment about AmigaOS4 .so support
7639 lt_prog_compiler_pic='-fPIC'
7641 m68k)
7642 # FIXME: we need at least 68020 code to build shared libraries, but
7643 # adding the `-m68020' flag to GCC prevents building anything better,
7644 # like `-m68040'.
7645 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7647 esac
7650 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7651 # PIC is the default for these OSes.
7654 mingw* | cygwin* | pw32* | os2* | cegcc*)
7655 # This hack is so that the source file can tell whether it is being
7656 # built for inclusion in a dll (and should export symbols for example).
7657 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7658 # (--disable-auto-import) libraries
7659 lt_prog_compiler_pic='-DDLL_EXPORT'
7662 darwin* | rhapsody*)
7663 # PIC is the default on this platform
7664 # Common symbols not allowed in MH_DYLIB files
7665 lt_prog_compiler_pic='-fno-common'
7668 haiku*)
7669 # PIC is the default for Haiku.
7670 # The "-static" flag exists, but is broken.
7671 lt_prog_compiler_static=
7674 hpux*)
7675 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7676 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7677 # sets the default TLS model and affects inlining.
7678 case $host_cpu in
7679 hppa*64*)
7680 # +Z the default
7683 lt_prog_compiler_pic='-fPIC'
7685 esac
7688 interix[3-9]*)
7689 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7690 # Instead, we relocate shared libraries at runtime.
7693 msdosdjgpp*)
7694 # Just because we use GCC doesn't mean we suddenly get shared libraries
7695 # on systems that don't support them.
7696 lt_prog_compiler_can_build_shared=no
7697 enable_shared=no
7700 *nto* | *qnx*)
7701 # QNX uses GNU C++, but need to define -shared option too, otherwise
7702 # it will coredump.
7703 lt_prog_compiler_pic='-fPIC -shared'
7706 sysv4*MP*)
7707 if test -d /usr/nec; then
7708 lt_prog_compiler_pic=-Kconform_pic
7713 lt_prog_compiler_pic='-fPIC'
7715 esac
7717 case $cc_basename in
7718 nvcc*) # Cuda Compiler Driver 2.2
7719 lt_prog_compiler_wl='-Xlinker '
7720 lt_prog_compiler_pic='-Xcompiler -fPIC'
7722 esac
7723 else
7724 # PORTME Check for flag to pass linker flags through the system compiler.
7725 case $host_os in
7726 aix*)
7727 lt_prog_compiler_wl='-Wl,'
7728 if test "$host_cpu" = ia64; then
7729 # AIX 5 now supports IA64 processor
7730 lt_prog_compiler_static='-Bstatic'
7731 else
7732 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7736 mingw* | cygwin* | pw32* | os2* | cegcc*)
7737 # This hack is so that the source file can tell whether it is being
7738 # built for inclusion in a dll (and should export symbols for example).
7739 lt_prog_compiler_pic='-DDLL_EXPORT'
7742 hpux9* | hpux10* | hpux11*)
7743 lt_prog_compiler_wl='-Wl,'
7744 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7745 # not for PA HP-UX.
7746 case $host_cpu in
7747 hppa*64*|ia64*)
7748 # +Z the default
7751 lt_prog_compiler_pic='+Z'
7753 esac
7754 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7755 lt_prog_compiler_static='${wl}-a ${wl}archive'
7758 irix5* | irix6* | nonstopux*)
7759 lt_prog_compiler_wl='-Wl,'
7760 # PIC (with -KPIC) is the default.
7761 lt_prog_compiler_static='-non_shared'
7764 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7765 case $cc_basename in
7766 # old Intel for x86_64 which still supported -KPIC.
7767 ecc*)
7768 lt_prog_compiler_wl='-Wl,'
7769 lt_prog_compiler_pic='-KPIC'
7770 lt_prog_compiler_static='-static'
7772 # icc used to be incompatible with GCC.
7773 # ICC 10 doesn't accept -KPIC any more.
7774 icc* | ifort*)
7775 lt_prog_compiler_wl='-Wl,'
7776 lt_prog_compiler_pic='-fPIC'
7777 lt_prog_compiler_static='-static'
7779 # Lahey Fortran 8.1.
7780 lf95*)
7781 lt_prog_compiler_wl='-Wl,'
7782 lt_prog_compiler_pic='--shared'
7783 lt_prog_compiler_static='--static'
7785 nagfor*)
7786 # NAG Fortran compiler
7787 lt_prog_compiler_wl='-Wl,-Wl,,'
7788 lt_prog_compiler_pic='-PIC'
7789 lt_prog_compiler_static='-Bstatic'
7791 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7792 # Portland Group compilers (*not* the Pentium gcc compiler,
7793 # which looks to be a dead project)
7794 lt_prog_compiler_wl='-Wl,'
7795 lt_prog_compiler_pic='-fpic'
7796 lt_prog_compiler_static='-Bstatic'
7798 ccc*)
7799 lt_prog_compiler_wl='-Wl,'
7800 # All Alpha code is PIC.
7801 lt_prog_compiler_static='-non_shared'
7803 xl* | bgxl* | bgf* | mpixl*)
7804 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7805 lt_prog_compiler_wl='-Wl,'
7806 lt_prog_compiler_pic='-qpic'
7807 lt_prog_compiler_static='-qstaticlink'
7810 case `$CC -V 2>&1 | sed 5q` in
7811 *Sun\ F* | *Sun*Fortran*)
7812 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7813 lt_prog_compiler_pic='-KPIC'
7814 lt_prog_compiler_static='-Bstatic'
7815 lt_prog_compiler_wl=''
7817 *Sun\ C*)
7818 # Sun C 5.9
7819 lt_prog_compiler_pic='-KPIC'
7820 lt_prog_compiler_static='-Bstatic'
7821 lt_prog_compiler_wl='-Wl,'
7823 esac
7825 esac
7828 newsos6)
7829 lt_prog_compiler_pic='-KPIC'
7830 lt_prog_compiler_static='-Bstatic'
7833 *nto* | *qnx*)
7834 # QNX uses GNU C++, but need to define -shared option too, otherwise
7835 # it will coredump.
7836 lt_prog_compiler_pic='-fPIC -shared'
7839 osf3* | osf4* | osf5*)
7840 lt_prog_compiler_wl='-Wl,'
7841 # All OSF/1 code is PIC.
7842 lt_prog_compiler_static='-non_shared'
7845 rdos*)
7846 lt_prog_compiler_static='-non_shared'
7849 solaris*)
7850 lt_prog_compiler_pic='-KPIC'
7851 lt_prog_compiler_static='-Bstatic'
7852 case $cc_basename in
7853 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7854 lt_prog_compiler_wl='-Qoption ld ';;
7856 lt_prog_compiler_wl='-Wl,';;
7857 esac
7860 sunos4*)
7861 lt_prog_compiler_wl='-Qoption ld '
7862 lt_prog_compiler_pic='-PIC'
7863 lt_prog_compiler_static='-Bstatic'
7866 sysv4 | sysv4.2uw2* | sysv4.3*)
7867 lt_prog_compiler_wl='-Wl,'
7868 lt_prog_compiler_pic='-KPIC'
7869 lt_prog_compiler_static='-Bstatic'
7872 sysv4*MP*)
7873 if test -d /usr/nec ;then
7874 lt_prog_compiler_pic='-Kconform_pic'
7875 lt_prog_compiler_static='-Bstatic'
7879 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7880 lt_prog_compiler_wl='-Wl,'
7881 lt_prog_compiler_pic='-KPIC'
7882 lt_prog_compiler_static='-Bstatic'
7885 unicos*)
7886 lt_prog_compiler_wl='-Wl,'
7887 lt_prog_compiler_can_build_shared=no
7890 uts4*)
7891 lt_prog_compiler_pic='-pic'
7892 lt_prog_compiler_static='-Bstatic'
7896 lt_prog_compiler_can_build_shared=no
7898 esac
7901 case $host_os in
7902 # For platforms which do not support PIC, -DPIC is meaningless:
7903 *djgpp*)
7904 lt_prog_compiler_pic=
7907 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7909 esac
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7912 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7913 if ${lt_cv_prog_compiler_pic+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7919 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
7920 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7923 # Check to make sure the PIC flag actually works.
7925 if test -n "$lt_prog_compiler_pic"; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7927 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7928 if ${lt_cv_prog_compiler_pic_works+:} false; then :
7929 $as_echo_n "(cached) " >&6
7930 else
7931 lt_cv_prog_compiler_pic_works=no
7932 ac_outfile=conftest.$ac_objext
7933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7934 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7935 # Insert the option either (1) after the last *FLAGS variable, or
7936 # (2) before a word containing "conftest.", or (3) at the end.
7937 # Note that $ac_compile itself does not contain backslashes and begins
7938 # with a dollar sign (not a hyphen), so the echo should work correctly.
7939 # The option is referenced via a variable to avoid confusing sed.
7940 lt_compile=`echo "$ac_compile" | $SED \
7941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7943 -e 's:$: $lt_compiler_flag:'`
7944 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7945 (eval "$lt_compile" 2>conftest.err)
7946 ac_status=$?
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 if (exit $ac_status) && test -s "$ac_outfile"; then
7950 # The compiler can only warn and ignore the option if not recognized
7951 # So say no if there are warnings other than the usual output.
7952 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7954 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7955 lt_cv_prog_compiler_pic_works=yes
7958 $RM conftest*
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7962 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7964 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7965 case $lt_prog_compiler_pic in
7966 "" | " "*) ;;
7967 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7968 esac
7969 else
7970 lt_prog_compiler_pic=
7971 lt_prog_compiler_can_build_shared=no
7987 # Check to make sure the static flag actually works.
7989 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7991 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7992 if ${lt_cv_prog_compiler_static_works+:} false; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 lt_cv_prog_compiler_static_works=no
7996 save_LDFLAGS="$LDFLAGS"
7997 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7998 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7999 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8000 # The linker can only warn and ignore the option if not recognized
8001 # So say no if there are warnings
8002 if test -s conftest.err; then
8003 # Append any errors to the config.log.
8004 cat conftest.err 1>&5
8005 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8007 if diff conftest.exp conftest.er2 >/dev/null; then
8008 lt_cv_prog_compiler_static_works=yes
8010 else
8011 lt_cv_prog_compiler_static_works=yes
8014 $RM -r conftest*
8015 LDFLAGS="$save_LDFLAGS"
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8019 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8021 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8023 else
8024 lt_prog_compiler_static=
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8034 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8035 if ${lt_cv_prog_compiler_c_o+:} false; then :
8036 $as_echo_n "(cached) " >&6
8037 else
8038 lt_cv_prog_compiler_c_o=no
8039 $RM -r conftest 2>/dev/null
8040 mkdir conftest
8041 cd conftest
8042 mkdir out
8043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8045 lt_compiler_flag="-o out/conftest2.$ac_objext"
8046 # Insert the option either (1) after the last *FLAGS variable, or
8047 # (2) before a word containing "conftest.", or (3) at the end.
8048 # Note that $ac_compile itself does not contain backslashes and begins
8049 # with a dollar sign (not a hyphen), so the echo should work correctly.
8050 lt_compile=`echo "$ac_compile" | $SED \
8051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8053 -e 's:$: $lt_compiler_flag:'`
8054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8055 (eval "$lt_compile" 2>out/conftest.err)
8056 ac_status=$?
8057 cat out/conftest.err >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8060 then
8061 # The compiler can only warn and ignore the option if not recognized
8062 # So say no if there are warnings
8063 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8064 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8065 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8066 lt_cv_prog_compiler_c_o=yes
8069 chmod u+w . 2>&5
8070 $RM conftest*
8071 # SGI C++ compiler will create directory out/ii_files/ for
8072 # template instantiation
8073 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8074 $RM out/* && rmdir out
8075 cd ..
8076 $RM -r conftest
8077 $RM conftest*
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8081 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8089 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8090 if ${lt_cv_prog_compiler_c_o+:} false; then :
8091 $as_echo_n "(cached) " >&6
8092 else
8093 lt_cv_prog_compiler_c_o=no
8094 $RM -r conftest 2>/dev/null
8095 mkdir conftest
8096 cd conftest
8097 mkdir out
8098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8100 lt_compiler_flag="-o out/conftest2.$ac_objext"
8101 # Insert the option either (1) after the last *FLAGS variable, or
8102 # (2) before a word containing "conftest.", or (3) at the end.
8103 # Note that $ac_compile itself does not contain backslashes and begins
8104 # with a dollar sign (not a hyphen), so the echo should work correctly.
8105 lt_compile=`echo "$ac_compile" | $SED \
8106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8108 -e 's:$: $lt_compiler_flag:'`
8109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8110 (eval "$lt_compile" 2>out/conftest.err)
8111 ac_status=$?
8112 cat out/conftest.err >&5
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8115 then
8116 # The compiler can only warn and ignore the option if not recognized
8117 # So say no if there are warnings
8118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8119 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8120 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8121 lt_cv_prog_compiler_c_o=yes
8124 chmod u+w . 2>&5
8125 $RM conftest*
8126 # SGI C++ compiler will create directory out/ii_files/ for
8127 # template instantiation
8128 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8129 $RM out/* && rmdir out
8130 cd ..
8131 $RM -r conftest
8132 $RM conftest*
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8136 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8141 hard_links="nottested"
8142 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8143 # do not overwrite the value of need_locks provided by the user
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8145 $as_echo_n "checking if we can lock with hard links... " >&6; }
8146 hard_links=yes
8147 $RM conftest*
8148 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8149 touch conftest.a
8150 ln conftest.a conftest.b 2>&5 || hard_links=no
8151 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8153 $as_echo "$hard_links" >&6; }
8154 if test "$hard_links" = no; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8156 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8157 need_locks=warn
8159 else
8160 need_locks=no
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8169 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8171 runpath_var=
8172 allow_undefined_flag=
8173 always_export_symbols=no
8174 archive_cmds=
8175 archive_expsym_cmds=
8176 compiler_needs_object=no
8177 enable_shared_with_static_runtimes=no
8178 export_dynamic_flag_spec=
8179 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8180 hardcode_automatic=no
8181 hardcode_direct=no
8182 hardcode_direct_absolute=no
8183 hardcode_libdir_flag_spec=
8184 hardcode_libdir_flag_spec_ld=
8185 hardcode_libdir_separator=
8186 hardcode_minus_L=no
8187 hardcode_shlibpath_var=unsupported
8188 inherit_rpath=no
8189 link_all_deplibs=unknown
8190 module_cmds=
8191 module_expsym_cmds=
8192 old_archive_from_new_cmds=
8193 old_archive_from_expsyms_cmds=
8194 thread_safe_flag_spec=
8195 whole_archive_flag_spec=
8196 # include_expsyms should be a list of space-separated symbols to be *always*
8197 # included in the symbol list
8198 include_expsyms=
8199 # exclude_expsyms can be an extended regexp of symbols to exclude
8200 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8201 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8202 # as well as any symbol that contains `d'.
8203 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8204 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8205 # platforms (ab)use it in PIC code, but their linkers get confused if
8206 # the symbol is explicitly referenced. Since portable code cannot
8207 # rely on this symbol name, it's probably fine to never include it in
8208 # preloaded symbol tables.
8209 # Exclude shared library initialization/finalization symbols.
8210 extract_expsyms_cmds=
8212 case $host_os in
8213 cygwin* | mingw* | pw32* | cegcc*)
8214 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8215 # When not using gcc, we currently assume that we are using
8216 # Microsoft Visual C++.
8217 if test "$GCC" != yes; then
8218 with_gnu_ld=no
8221 interix*)
8222 # we just hope/assume this is gcc and not c89 (= MSVC++)
8223 with_gnu_ld=yes
8225 openbsd*)
8226 with_gnu_ld=no
8228 esac
8230 ld_shlibs=yes
8232 # On some targets, GNU ld is compatible enough with the native linker
8233 # that we're better off using the native interface for both.
8234 lt_use_gnu_ld_interface=no
8235 if test "$with_gnu_ld" = yes; then
8236 case $host_os in
8237 aix*)
8238 # The AIX port of GNU ld has always aspired to compatibility
8239 # with the native linker. However, as the warning in the GNU ld
8240 # block says, versions before 2.19.5* couldn't really create working
8241 # shared libraries, regardless of the interface used.
8242 case `$LD -v 2>&1` in
8243 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8244 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8245 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8247 lt_use_gnu_ld_interface=yes
8249 esac
8252 lt_use_gnu_ld_interface=yes
8254 esac
8257 if test "$lt_use_gnu_ld_interface" = yes; then
8258 # If archive_cmds runs LD, not CC, wlarc should be empty
8259 wlarc='${wl}'
8261 # Set some defaults for GNU ld with shared library support. These
8262 # are reset later if shared libraries are not supported. Putting them
8263 # here allows them to be overridden if necessary.
8264 runpath_var=LD_RUN_PATH
8265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8266 export_dynamic_flag_spec='${wl}--export-dynamic'
8267 # ancient GNU ld didn't support --whole-archive et. al.
8268 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8269 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8270 else
8271 whole_archive_flag_spec=
8273 supports_anon_versioning=no
8274 case `$LD -v 2>&1` in
8275 *GNU\ gold*) supports_anon_versioning=yes ;;
8276 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8277 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8278 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8279 *\ 2.11.*) ;; # other 2.11 versions
8280 *) supports_anon_versioning=yes ;;
8281 esac
8283 # See if GNU ld supports shared libraries.
8284 case $host_os in
8285 aix[3-9]*)
8286 # On AIX/PPC, the GNU linker is very broken
8287 if test "$host_cpu" != ia64; then
8288 ld_shlibs=no
8289 cat <<_LT_EOF 1>&2
8291 *** Warning: the GNU linker, at least up to release 2.19, is reported
8292 *** to be unable to reliably create shared libraries on AIX.
8293 *** Therefore, libtool is disabling shared libraries support. If you
8294 *** really care for shared libraries, you may want to install binutils
8295 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8296 *** You will then need to restart the configuration process.
8298 _LT_EOF
8302 amigaos*)
8303 case $host_cpu in
8304 powerpc)
8305 # see comment about AmigaOS4 .so support
8306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8307 archive_expsym_cmds=''
8309 m68k)
8310 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)'
8311 hardcode_libdir_flag_spec='-L$libdir'
8312 hardcode_minus_L=yes
8314 esac
8317 beos*)
8318 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8319 allow_undefined_flag=unsupported
8320 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8321 # support --undefined. This deserves some investigation. FIXME
8322 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8323 else
8324 ld_shlibs=no
8328 cygwin* | mingw* | pw32* | cegcc*)
8329 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8330 # as there is no search path for DLLs.
8331 hardcode_libdir_flag_spec='-L$libdir'
8332 export_dynamic_flag_spec='${wl}--export-all-symbols'
8333 allow_undefined_flag=unsupported
8334 always_export_symbols=no
8335 enable_shared_with_static_runtimes=yes
8336 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8337 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8339 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8341 # If the export-symbols file already is a .def file (1st line
8342 # is EXPORTS), use it as is; otherwise, prepend...
8343 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8344 cp $export_symbols $output_objdir/$soname.def;
8345 else
8346 echo EXPORTS > $output_objdir/$soname.def;
8347 cat $export_symbols >> $output_objdir/$soname.def;
8349 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8350 else
8351 ld_shlibs=no
8355 haiku*)
8356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8357 link_all_deplibs=yes
8360 interix[3-9]*)
8361 hardcode_direct=no
8362 hardcode_shlibpath_var=no
8363 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8364 export_dynamic_flag_spec='${wl}-E'
8365 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8366 # Instead, shared libraries are loaded at an image base (0x10000000 by
8367 # default) and relocated if they conflict, which is a slow very memory
8368 # consuming and fragmenting process. To avoid this, we pick a random,
8369 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8370 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8371 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8372 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'
8375 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8376 tmp_diet=no
8377 if test "$host_os" = linux-dietlibc; then
8378 case $cc_basename in
8379 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8380 esac
8382 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8383 && test "$tmp_diet" = no
8384 then
8385 tmp_addflag=' $pic_flag'
8386 tmp_sharedflag='-shared'
8387 case $cc_basename,$host_cpu in
8388 pgcc*) # Portland Group C compiler
8389 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'
8390 tmp_addflag=' $pic_flag'
8392 pgf77* | pgf90* | pgf95* | pgfortran*)
8393 # Portland Group f77 and f90 compilers
8394 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'
8395 tmp_addflag=' $pic_flag -Mnomain' ;;
8396 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8397 tmp_addflag=' -i_dynamic' ;;
8398 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8399 tmp_addflag=' -i_dynamic -nofor_main' ;;
8400 ifc* | ifort*) # Intel Fortran compiler
8401 tmp_addflag=' -nofor_main' ;;
8402 lf95*) # Lahey Fortran 8.1
8403 whole_archive_flag_spec=
8404 tmp_sharedflag='--shared' ;;
8405 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8406 tmp_sharedflag='-qmkshrobj'
8407 tmp_addflag= ;;
8408 nvcc*) # Cuda Compiler Driver 2.2
8409 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'
8410 compiler_needs_object=yes
8412 esac
8413 case `$CC -V 2>&1 | sed 5q` in
8414 *Sun\ C*) # Sun C 5.9
8415 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'
8416 compiler_needs_object=yes
8417 tmp_sharedflag='-G' ;;
8418 *Sun\ F*) # Sun Fortran 8.3
8419 tmp_sharedflag='-G' ;;
8420 esac
8421 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8423 if test "x$supports_anon_versioning" = xyes; then
8424 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8425 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8426 echo "local: *; };" >> $output_objdir/$libname.ver~
8427 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8430 case $cc_basename in
8431 xlf* | bgf* | bgxlf* | mpixlf*)
8432 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8433 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8434 hardcode_libdir_flag_spec=
8435 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8436 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8437 if test "x$supports_anon_versioning" = xyes; then
8438 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8439 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8440 echo "local: *; };" >> $output_objdir/$libname.ver~
8441 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8444 esac
8445 else
8446 ld_shlibs=no
8450 netbsd*)
8451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8452 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8453 wlarc=
8454 else
8455 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8456 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8460 solaris*)
8461 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8462 ld_shlibs=no
8463 cat <<_LT_EOF 1>&2
8465 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8466 *** create shared libraries on Solaris systems. Therefore, libtool
8467 *** is disabling shared libraries support. We urge you to upgrade GNU
8468 *** binutils to release 2.9.1 or newer. Another option is to modify
8469 *** your PATH or compiler configuration so that the native linker is
8470 *** used, and then restart.
8472 _LT_EOF
8473 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8474 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8475 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8476 else
8477 ld_shlibs=no
8481 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8482 case `$LD -v 2>&1` in
8483 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8484 ld_shlibs=no
8485 cat <<_LT_EOF 1>&2
8487 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8488 *** reliably create shared libraries on SCO systems. Therefore, libtool
8489 *** is disabling shared libraries support. We urge you to upgrade GNU
8490 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8491 *** your PATH or compiler configuration so that the native linker is
8492 *** used, and then restart.
8494 _LT_EOF
8497 # For security reasons, it is highly recommended that you always
8498 # use absolute paths for naming shared libraries, and exclude the
8499 # DT_RUNPATH tag from executables and libraries. But doing so
8500 # requires that you compile everything twice, which is a pain.
8501 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8504 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8505 else
8506 ld_shlibs=no
8509 esac
8512 sunos4*)
8513 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8514 wlarc=
8515 hardcode_direct=yes
8516 hardcode_shlibpath_var=no
8520 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8521 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8522 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8523 else
8524 ld_shlibs=no
8527 esac
8529 if test "$ld_shlibs" = no; then
8530 runpath_var=
8531 hardcode_libdir_flag_spec=
8532 export_dynamic_flag_spec=
8533 whole_archive_flag_spec=
8535 else
8536 # PORTME fill in a description of your system's linker (not GNU ld)
8537 case $host_os in
8538 aix3*)
8539 allow_undefined_flag=unsupported
8540 always_export_symbols=yes
8541 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'
8542 # Note: this linker hardcodes the directories in LIBPATH if there
8543 # are no directories specified by -L.
8544 hardcode_minus_L=yes
8545 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8546 # Neither direct hardcoding nor static linking is supported with a
8547 # broken collect2.
8548 hardcode_direct=unsupported
8552 aix[4-9]*)
8553 if test "$host_cpu" = ia64; then
8554 # On IA64, the linker does run time linking by default, so we don't
8555 # have to do anything special.
8556 aix_use_runtimelinking=no
8557 exp_sym_flag='-Bexport'
8558 no_entry_flag=""
8559 else
8560 # If we're using GNU nm, then we don't want the "-C" option.
8561 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8562 # Also, AIX nm treats weak defined symbols like other global
8563 # defined symbols, whereas GNU nm marks them as "W".
8564 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8565 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'
8566 else
8567 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8569 aix_use_runtimelinking=no
8571 # Test if we are trying to use run time linking or normal
8572 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8573 # need to do runtime linking.
8574 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8575 for ld_flag in $LDFLAGS; do
8576 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8577 aix_use_runtimelinking=yes
8578 break
8580 done
8582 esac
8584 exp_sym_flag='-bexport'
8585 no_entry_flag='-bnoentry'
8588 # When large executables or shared objects are built, AIX ld can
8589 # have problems creating the table of contents. If linking a library
8590 # or program results in "error TOC overflow" add -mminimal-toc to
8591 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8592 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8594 archive_cmds=''
8595 hardcode_direct=yes
8596 hardcode_direct_absolute=yes
8597 hardcode_libdir_separator=':'
8598 link_all_deplibs=yes
8599 file_list_spec='${wl}-f,'
8601 if test "$GCC" = yes; then
8602 case $host_os in aix4.[012]|aix4.[012].*)
8603 # We only want to do this on AIX 4.2 and lower, the check
8604 # below for broken collect2 doesn't work under 4.3+
8605 collect2name=`${CC} -print-prog-name=collect2`
8606 if test -f "$collect2name" &&
8607 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8608 then
8609 # We have reworked collect2
8611 else
8612 # We have old collect2
8613 hardcode_direct=unsupported
8614 # It fails to find uninstalled libraries when the uninstalled
8615 # path is not listed in the libpath. Setting hardcode_minus_L
8616 # to unsupported forces relinking
8617 hardcode_minus_L=yes
8618 hardcode_libdir_flag_spec='-L$libdir'
8619 hardcode_libdir_separator=
8622 esac
8623 shared_flag='-shared'
8624 if test "$aix_use_runtimelinking" = yes; then
8625 shared_flag="$shared_flag "'${wl}-G'
8627 else
8628 # not using gcc
8629 if test "$host_cpu" = ia64; then
8630 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8631 # chokes on -Wl,-G. The following line is correct:
8632 shared_flag='-G'
8633 else
8634 if test "$aix_use_runtimelinking" = yes; then
8635 shared_flag='${wl}-G'
8636 else
8637 shared_flag='${wl}-bM:SRE'
8642 export_dynamic_flag_spec='${wl}-bexpall'
8643 # It seems that -bexpall does not export symbols beginning with
8644 # underscore (_), so it is better to generate a list of symbols to export.
8645 always_export_symbols=yes
8646 if test "$aix_use_runtimelinking" = yes; then
8647 # Warning - without using the other runtime loading flags (-brtl),
8648 # -berok will link without error, but may produce a broken library.
8649 allow_undefined_flag='-berok'
8650 # Determine the default libpath from the value encoded in an
8651 # empty executable.
8652 if test "${lt_cv_aix_libpath+set}" = set; then
8653 aix_libpath=$lt_cv_aix_libpath
8654 else
8655 if ${lt_cv_aix_libpath_+:} false; then :
8656 $as_echo_n "(cached) " >&6
8657 else
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8662 main ()
8666 return 0;
8668 _ACEOF
8669 if ac_fn_c_try_link "$LINENO"; then :
8671 lt_aix_libpath_sed='
8672 /Import File Strings/,/^$/ {
8673 /^0/ {
8674 s/^0 *\([^ ]*\) *$/\1/
8678 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8679 # Check for a 64-bit object if we didn't find anything.
8680 if test -z "$lt_cv_aix_libpath_"; then
8681 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8684 rm -f core conftest.err conftest.$ac_objext \
8685 conftest$ac_exeext conftest.$ac_ext
8686 if test -z "$lt_cv_aix_libpath_"; then
8687 lt_cv_aix_libpath_="/usr/lib:/lib"
8692 aix_libpath=$lt_cv_aix_libpath_
8695 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8696 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"
8697 else
8698 if test "$host_cpu" = ia64; then
8699 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8700 allow_undefined_flag="-z nodefs"
8701 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"
8702 else
8703 # Determine the default libpath from the value encoded in an
8704 # empty executable.
8705 if test "${lt_cv_aix_libpath+set}" = set; then
8706 aix_libpath=$lt_cv_aix_libpath
8707 else
8708 if ${lt_cv_aix_libpath_+:} false; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8715 main ()
8719 return 0;
8721 _ACEOF
8722 if ac_fn_c_try_link "$LINENO"; then :
8724 lt_aix_libpath_sed='
8725 /Import File Strings/,/^$/ {
8726 /^0/ {
8727 s/^0 *\([^ ]*\) *$/\1/
8731 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8732 # Check for a 64-bit object if we didn't find anything.
8733 if test -z "$lt_cv_aix_libpath_"; then
8734 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8737 rm -f core conftest.err conftest.$ac_objext \
8738 conftest$ac_exeext conftest.$ac_ext
8739 if test -z "$lt_cv_aix_libpath_"; then
8740 lt_cv_aix_libpath_="/usr/lib:/lib"
8745 aix_libpath=$lt_cv_aix_libpath_
8748 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8749 # Warning - without using the other run time loading flags,
8750 # -berok will link without error, but may produce a broken library.
8751 no_undefined_flag=' ${wl}-bernotok'
8752 allow_undefined_flag=' ${wl}-berok'
8753 if test "$with_gnu_ld" = yes; then
8754 # We only use this code for GNU lds that support --whole-archive.
8755 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8756 else
8757 # Exported symbols can be pulled into shared objects from archives
8758 whole_archive_flag_spec='$convenience'
8760 archive_cmds_need_lc=yes
8761 # This is similar to how AIX traditionally builds its shared libraries.
8762 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'
8767 amigaos*)
8768 case $host_cpu in
8769 powerpc)
8770 # see comment about AmigaOS4 .so support
8771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8772 archive_expsym_cmds=''
8774 m68k)
8775 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)'
8776 hardcode_libdir_flag_spec='-L$libdir'
8777 hardcode_minus_L=yes
8779 esac
8782 bsdi[45]*)
8783 export_dynamic_flag_spec=-rdynamic
8786 cygwin* | mingw* | pw32* | cegcc*)
8787 # When not using gcc, we currently assume that we are using
8788 # Microsoft Visual C++.
8789 # hardcode_libdir_flag_spec is actually meaningless, as there is
8790 # no search path for DLLs.
8791 case $cc_basename in
8792 cl*)
8793 # Native MSVC
8794 hardcode_libdir_flag_spec=' '
8795 allow_undefined_flag=unsupported
8796 always_export_symbols=yes
8797 file_list_spec='@'
8798 # Tell ltmain to make .lib files, not .a files.
8799 libext=lib
8800 # Tell ltmain to make .dll files, not .so files.
8801 shrext_cmds=".dll"
8802 # FIXME: Setting linknames here is a bad hack.
8803 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8804 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8805 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8806 else
8807 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8809 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8810 linknames='
8811 # The linker will not automatically build a static lib if we build a DLL.
8812 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8813 enable_shared_with_static_runtimes=yes
8814 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8815 # Don't use ranlib
8816 old_postinstall_cmds='chmod 644 $oldlib'
8817 postlink_cmds='lt_outputfile="@OUTPUT@"~
8818 lt_tool_outputfile="@TOOL_OUTPUT@"~
8819 case $lt_outputfile in
8820 *.exe|*.EXE) ;;
8822 lt_outputfile="$lt_outputfile.exe"
8823 lt_tool_outputfile="$lt_tool_outputfile.exe"
8825 esac~
8826 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8827 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8828 $RM "$lt_outputfile.manifest";
8832 # Assume MSVC wrapper
8833 hardcode_libdir_flag_spec=' '
8834 allow_undefined_flag=unsupported
8835 # Tell ltmain to make .lib files, not .a files.
8836 libext=lib
8837 # Tell ltmain to make .dll files, not .so files.
8838 shrext_cmds=".dll"
8839 # FIXME: Setting linknames here is a bad hack.
8840 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8841 # The linker will automatically build a .lib file if we build a DLL.
8842 old_archive_from_new_cmds='true'
8843 # FIXME: Should let the user specify the lib program.
8844 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8845 enable_shared_with_static_runtimes=yes
8847 esac
8850 darwin* | rhapsody*)
8853 archive_cmds_need_lc=no
8854 hardcode_direct=no
8855 hardcode_automatic=yes
8856 hardcode_shlibpath_var=unsupported
8857 if test "$lt_cv_ld_force_load" = "yes"; then
8858 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\"`'
8859 else
8860 whole_archive_flag_spec=''
8862 link_all_deplibs=yes
8863 allow_undefined_flag="$_lt_dar_allow_undefined"
8864 case $cc_basename in
8865 ifort*) _lt_dar_can_shared=yes ;;
8866 *) _lt_dar_can_shared=$GCC ;;
8867 esac
8868 if test "$_lt_dar_can_shared" = "yes"; then
8869 output_verbose_link_cmd=func_echo_all
8870 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8871 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8872 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}"
8873 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}"
8875 else
8876 ld_shlibs=no
8881 dgux*)
8882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8883 hardcode_libdir_flag_spec='-L$libdir'
8884 hardcode_shlibpath_var=no
8887 freebsd1*)
8888 ld_shlibs=no
8891 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8892 # support. Future versions do this automatically, but an explicit c++rt0.o
8893 # does not break anything, and helps significantly (at the cost of a little
8894 # extra space).
8895 freebsd2.2*)
8896 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8897 hardcode_libdir_flag_spec='-R$libdir'
8898 hardcode_direct=yes
8899 hardcode_shlibpath_var=no
8902 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8903 freebsd2*)
8904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8905 hardcode_direct=yes
8906 hardcode_minus_L=yes
8907 hardcode_shlibpath_var=no
8910 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8911 freebsd* | dragonfly*)
8912 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8913 hardcode_libdir_flag_spec='-R$libdir'
8914 hardcode_direct=yes
8915 hardcode_shlibpath_var=no
8918 hpux9*)
8919 if test "$GCC" = yes; then
8920 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8921 else
8922 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'
8924 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8925 hardcode_libdir_separator=:
8926 hardcode_direct=yes
8928 # hardcode_minus_L: Not really in the search PATH,
8929 # but as the default location of the library.
8930 hardcode_minus_L=yes
8931 export_dynamic_flag_spec='${wl}-E'
8934 hpux10*)
8935 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8936 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8937 else
8938 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8940 if test "$with_gnu_ld" = no; then
8941 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8942 hardcode_libdir_flag_spec_ld='+b $libdir'
8943 hardcode_libdir_separator=:
8944 hardcode_direct=yes
8945 hardcode_direct_absolute=yes
8946 export_dynamic_flag_spec='${wl}-E'
8947 # hardcode_minus_L: Not really in the search PATH,
8948 # but as the default location of the library.
8949 hardcode_minus_L=yes
8953 hpux11*)
8954 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8955 case $host_cpu in
8956 hppa*64*)
8957 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8959 ia64*)
8960 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8963 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8965 esac
8966 else
8967 case $host_cpu in
8968 hppa*64*)
8969 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8971 ia64*)
8972 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8976 # Older versions of the 11.00 compiler do not understand -b yet
8977 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8979 $as_echo_n "checking if $CC understands -b... " >&6; }
8980 if ${lt_cv_prog_compiler__b+:} false; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983 lt_cv_prog_compiler__b=no
8984 save_LDFLAGS="$LDFLAGS"
8985 LDFLAGS="$LDFLAGS -b"
8986 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8987 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8988 # The linker can only warn and ignore the option if not recognized
8989 # So say no if there are warnings
8990 if test -s conftest.err; then
8991 # Append any errors to the config.log.
8992 cat conftest.err 1>&5
8993 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8995 if diff conftest.exp conftest.er2 >/dev/null; then
8996 lt_cv_prog_compiler__b=yes
8998 else
8999 lt_cv_prog_compiler__b=yes
9002 $RM -r conftest*
9003 LDFLAGS="$save_LDFLAGS"
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9007 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9009 if test x"$lt_cv_prog_compiler__b" = xyes; then
9010 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9011 else
9012 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9016 esac
9018 if test "$with_gnu_ld" = no; then
9019 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9020 hardcode_libdir_separator=:
9022 case $host_cpu in
9023 hppa*64*|ia64*)
9024 hardcode_direct=no
9025 hardcode_shlibpath_var=no
9028 hardcode_direct=yes
9029 hardcode_direct_absolute=yes
9030 export_dynamic_flag_spec='${wl}-E'
9032 # hardcode_minus_L: Not really in the search PATH,
9033 # but as the default location of the library.
9034 hardcode_minus_L=yes
9036 esac
9040 irix5* | irix6* | nonstopux*)
9041 if test "$GCC" = yes; then
9042 archive_cmds='$CC -shared $pic_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'
9043 # Try to use the -exported_symbol ld option, if it does not
9044 # work, assume that -exports_file does not work either and
9045 # implicitly export all symbols.
9046 # This should be the same for all languages, so no per-tag cache variable.
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9048 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9049 if ${lt_cv_irix_exported_symbol+:} false; then :
9050 $as_echo_n "(cached) " >&6
9051 else
9052 save_LDFLAGS="$LDFLAGS"
9053 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9056 int foo (void) { return 0; }
9057 _ACEOF
9058 if ac_fn_c_try_link "$LINENO"; then :
9059 lt_cv_irix_exported_symbol=yes
9060 else
9061 lt_cv_irix_exported_symbol=no
9063 rm -f core conftest.err conftest.$ac_objext \
9064 conftest$ac_exeext conftest.$ac_ext
9065 LDFLAGS="$save_LDFLAGS"
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9068 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9069 if test "$lt_cv_irix_exported_symbol" = yes; then
9070 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
9072 else
9073 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'
9074 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'
9076 archive_cmds_need_lc='no'
9077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9078 hardcode_libdir_separator=:
9079 inherit_rpath=yes
9080 link_all_deplibs=yes
9083 netbsd*)
9084 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9085 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9086 else
9087 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9089 hardcode_libdir_flag_spec='-R$libdir'
9090 hardcode_direct=yes
9091 hardcode_shlibpath_var=no
9094 newsos6)
9095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9096 hardcode_direct=yes
9097 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9098 hardcode_libdir_separator=:
9099 hardcode_shlibpath_var=no
9102 *nto* | *qnx*)
9105 openbsd*)
9106 if test -f /usr/libexec/ld.so; then
9107 hardcode_direct=yes
9108 hardcode_shlibpath_var=no
9109 hardcode_direct_absolute=yes
9110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9111 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9112 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9113 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9114 export_dynamic_flag_spec='${wl}-E'
9115 else
9116 case $host_os in
9117 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9118 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9119 hardcode_libdir_flag_spec='-R$libdir'
9122 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9123 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9125 esac
9127 else
9128 ld_shlibs=no
9132 os2*)
9133 hardcode_libdir_flag_spec='-L$libdir'
9134 hardcode_minus_L=yes
9135 allow_undefined_flag=unsupported
9136 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'
9137 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9140 osf3*)
9141 if test "$GCC" = yes; then
9142 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9143 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'
9144 else
9145 allow_undefined_flag=' -expect_unresolved \*'
9146 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'
9148 archive_cmds_need_lc='no'
9149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9150 hardcode_libdir_separator=:
9153 osf4* | osf5*) # as osf3* with the addition of -msym flag
9154 if test "$GCC" = yes; then
9155 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9156 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
9157 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9158 else
9159 allow_undefined_flag=' -expect_unresolved \*'
9160 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'
9161 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~
9162 $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'
9164 # Both c and cxx compiler support -rpath directly
9165 hardcode_libdir_flag_spec='-rpath $libdir'
9167 archive_cmds_need_lc='no'
9168 hardcode_libdir_separator=:
9171 solaris*)
9172 no_undefined_flag=' -z defs'
9173 if test "$GCC" = yes; then
9174 wlarc='${wl}'
9175 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9176 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9177 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9178 else
9179 case `$CC -V 2>&1` in
9180 *"Compilers 5.0"*)
9181 wlarc=''
9182 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9183 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9184 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9187 wlarc='${wl}'
9188 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9189 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9190 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9192 esac
9194 hardcode_libdir_flag_spec='-R$libdir'
9195 hardcode_shlibpath_var=no
9196 case $host_os in
9197 solaris2.[0-5] | solaris2.[0-5].*) ;;
9199 # The compiler driver will combine and reorder linker options,
9200 # but understands `-z linker_flag'. GCC discards it without `$wl',
9201 # but is careful enough not to reorder.
9202 # Supported since Solaris 2.6 (maybe 2.5.1?)
9203 if test "$GCC" = yes; then
9204 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9205 else
9206 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9209 esac
9210 link_all_deplibs=yes
9213 sunos4*)
9214 if test "x$host_vendor" = xsequent; then
9215 # Use $CC to link under sequent, because it throws in some extra .o
9216 # files that make .init and .fini sections work.
9217 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9218 else
9219 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9221 hardcode_libdir_flag_spec='-L$libdir'
9222 hardcode_direct=yes
9223 hardcode_minus_L=yes
9224 hardcode_shlibpath_var=no
9227 sysv4)
9228 case $host_vendor in
9229 sni)
9230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9231 hardcode_direct=yes # is this really true???
9233 siemens)
9234 ## LD is ld it makes a PLAMLIB
9235 ## CC just makes a GrossModule.
9236 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9237 reload_cmds='$CC -r -o $output$reload_objs'
9238 hardcode_direct=no
9240 motorola)
9241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9242 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9244 esac
9245 runpath_var='LD_RUN_PATH'
9246 hardcode_shlibpath_var=no
9249 sysv4.3*)
9250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9251 hardcode_shlibpath_var=no
9252 export_dynamic_flag_spec='-Bexport'
9255 sysv4*MP*)
9256 if test -d /usr/nec; then
9257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9258 hardcode_shlibpath_var=no
9259 runpath_var=LD_RUN_PATH
9260 hardcode_runpath_var=yes
9261 ld_shlibs=yes
9265 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9266 no_undefined_flag='${wl}-z,text'
9267 archive_cmds_need_lc=no
9268 hardcode_shlibpath_var=no
9269 runpath_var='LD_RUN_PATH'
9271 if test "$GCC" = yes; then
9272 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9273 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9274 else
9275 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9276 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9280 sysv5* | sco3.2v5* | sco5v6*)
9281 # Note: We can NOT use -z defs as we might desire, because we do not
9282 # link with -lc, and that would cause any symbols used from libc to
9283 # always be unresolved, which means just about no library would
9284 # ever link correctly. If we're not using GNU ld we use -z text
9285 # though, which does catch some bad symbols but isn't as heavy-handed
9286 # as -z defs.
9287 no_undefined_flag='${wl}-z,text'
9288 allow_undefined_flag='${wl}-z,nodefs'
9289 archive_cmds_need_lc=no
9290 hardcode_shlibpath_var=no
9291 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9292 hardcode_libdir_separator=':'
9293 link_all_deplibs=yes
9294 export_dynamic_flag_spec='${wl}-Bexport'
9295 runpath_var='LD_RUN_PATH'
9297 if test "$GCC" = yes; then
9298 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9299 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9300 else
9301 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9302 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9306 uts4*)
9307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9308 hardcode_libdir_flag_spec='-L$libdir'
9309 hardcode_shlibpath_var=no
9313 ld_shlibs=no
9315 esac
9317 if test x$host_vendor = xsni; then
9318 case $host in
9319 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9320 export_dynamic_flag_spec='${wl}-Blargedynsym'
9322 esac
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9327 $as_echo "$ld_shlibs" >&6; }
9328 test "$ld_shlibs" = no && can_build_shared=no
9330 with_gnu_ld=$with_gnu_ld
9347 # Do we need to explicitly link libc?
9349 case "x$archive_cmds_need_lc" in
9350 x|xyes)
9351 # Assume -lc should be added
9352 archive_cmds_need_lc=yes
9354 if test "$enable_shared" = yes && test "$GCC" = yes; then
9355 case $archive_cmds in
9356 *'~'*)
9357 # FIXME: we may have to deal with multi-command sequences.
9359 '$CC '*)
9360 # Test whether the compiler implicitly links with -lc since on some
9361 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9362 # to ld, don't add -lc before -lgcc.
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9364 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9365 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9366 $as_echo_n "(cached) " >&6
9367 else
9368 $RM conftest*
9369 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9372 (eval $ac_compile) 2>&5
9373 ac_status=$?
9374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9375 test $ac_status = 0; } 2>conftest.err; then
9376 soname=conftest
9377 lib=conftest
9378 libobjs=conftest.$ac_objext
9379 deplibs=
9380 wl=$lt_prog_compiler_wl
9381 pic_flag=$lt_prog_compiler_pic
9382 compiler_flags=-v
9383 linker_flags=-v
9384 verstring=
9385 output_objdir=.
9386 libname=conftest
9387 lt_save_allow_undefined_flag=$allow_undefined_flag
9388 allow_undefined_flag=
9389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9390 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9391 ac_status=$?
9392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9393 test $ac_status = 0; }
9394 then
9395 lt_cv_archive_cmds_need_lc=no
9396 else
9397 lt_cv_archive_cmds_need_lc=yes
9399 allow_undefined_flag=$lt_save_allow_undefined_flag
9400 else
9401 cat conftest.err 1>&5
9403 $RM conftest*
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9407 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9408 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9410 esac
9413 esac
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9572 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9574 if test "$GCC" = yes; then
9575 case $host_os in
9576 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9577 *) lt_awk_arg="/^libraries:/" ;;
9578 esac
9579 case $host_os in
9580 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9581 *) lt_sed_strip_eq="s,=/,/,g" ;;
9582 esac
9583 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9584 case $lt_search_path_spec in
9585 *\;*)
9586 # if the path contains ";" then we assume it to be the separator
9587 # otherwise default to the standard path separator (i.e. ":") - it is
9588 # assumed that no part of a normal pathname contains ";" but that should
9589 # okay in the real world where ";" in dirpaths is itself problematic.
9590 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9593 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9595 esac
9596 # Ok, now we have the path, separated by spaces, we can step through it
9597 # and add multilib dir if necessary.
9598 lt_tmp_lt_search_path_spec=
9599 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9600 for lt_sys_path in $lt_search_path_spec; do
9601 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9602 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9603 else
9604 test -d "$lt_sys_path" && \
9605 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9607 done
9608 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9609 BEGIN {RS=" "; FS="/|\n";} {
9610 lt_foo="";
9611 lt_count=0;
9612 for (lt_i = NF; lt_i > 0; lt_i--) {
9613 if ($lt_i != "" && $lt_i != ".") {
9614 if ($lt_i == "..") {
9615 lt_count++;
9616 } else {
9617 if (lt_count == 0) {
9618 lt_foo="/" $lt_i lt_foo;
9619 } else {
9620 lt_count--;
9625 if (lt_foo != "") { lt_freq[lt_foo]++; }
9626 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9628 # AWK program above erroneously prepends '/' to C:/dos/paths
9629 # for these hosts.
9630 case $host_os in
9631 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9632 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9633 esac
9634 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9635 else
9636 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9638 library_names_spec=
9639 libname_spec='lib$name'
9640 soname_spec=
9641 shrext_cmds=".so"
9642 postinstall_cmds=
9643 postuninstall_cmds=
9644 finish_cmds=
9645 finish_eval=
9646 shlibpath_var=
9647 shlibpath_overrides_runpath=unknown
9648 version_type=none
9649 dynamic_linker="$host_os ld.so"
9650 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9651 need_lib_prefix=unknown
9652 hardcode_into_libs=no
9654 # when you set need_version to no, make sure it does not cause -set_version
9655 # flags to be left without arguments
9656 need_version=unknown
9658 case $host_os in
9659 aix3*)
9660 version_type=linux
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9662 shlibpath_var=LIBPATH
9664 # AIX 3 has no versioning support, so we append a major version to the name.
9665 soname_spec='${libname}${release}${shared_ext}$major'
9668 aix[4-9]*)
9669 version_type=linux
9670 need_lib_prefix=no
9671 need_version=no
9672 hardcode_into_libs=yes
9673 if test "$host_cpu" = ia64; then
9674 # AIX 5 supports IA64
9675 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9676 shlibpath_var=LD_LIBRARY_PATH
9677 else
9678 # With GCC up to 2.95.x, collect2 would create an import file
9679 # for dependence libraries. The import file would start with
9680 # the line `#! .'. This would cause the generated library to
9681 # depend on `.', always an invalid library. This was fixed in
9682 # development snapshots of GCC prior to 3.0.
9683 case $host_os in
9684 aix4 | aix4.[01] | aix4.[01].*)
9685 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9686 echo ' yes '
9687 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9689 else
9690 can_build_shared=no
9693 esac
9694 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9695 # soname into executable. Probably we can add versioning support to
9696 # collect2, so additional links can be useful in future.
9697 if test "$aix_use_runtimelinking" = yes; then
9698 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9699 # instead of lib<name>.a to let people know that these are not
9700 # typical AIX shared libraries.
9701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9702 else
9703 # We preserve .a as extension for shared libraries through AIX4.2
9704 # and later when we are not doing run time linking.
9705 library_names_spec='${libname}${release}.a $libname.a'
9706 soname_spec='${libname}${release}${shared_ext}$major'
9708 shlibpath_var=LIBPATH
9712 amigaos*)
9713 case $host_cpu in
9714 powerpc)
9715 # Since July 2007 AmigaOS4 officially supports .so libraries.
9716 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9719 m68k)
9720 library_names_spec='$libname.ixlibrary $libname.a'
9721 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9722 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'
9724 esac
9727 beos*)
9728 library_names_spec='${libname}${shared_ext}'
9729 dynamic_linker="$host_os ld.so"
9730 shlibpath_var=LIBRARY_PATH
9733 bsdi[45]*)
9734 version_type=linux
9735 need_version=no
9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9737 soname_spec='${libname}${release}${shared_ext}$major'
9738 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9739 shlibpath_var=LD_LIBRARY_PATH
9740 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9741 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9742 # the default ld.so.conf also contains /usr/contrib/lib and
9743 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9744 # libtool to hard-code these into programs
9747 cygwin* | mingw* | pw32* | cegcc*)
9748 version_type=windows
9749 shrext_cmds=".dll"
9750 need_version=no
9751 need_lib_prefix=no
9753 case $GCC,$cc_basename in
9754 yes,*)
9755 # gcc
9756 library_names_spec='$libname.dll.a'
9757 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9758 postinstall_cmds='base_file=`basename \${file}`~
9759 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9760 dldir=$destdir/`dirname \$dlpath`~
9761 test -d \$dldir || mkdir -p \$dldir~
9762 $install_prog $dir/$dlname \$dldir/$dlname~
9763 chmod a+x \$dldir/$dlname~
9764 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9765 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9767 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9768 dlpath=$dir/\$dldll~
9769 $RM \$dlpath'
9770 shlibpath_overrides_runpath=yes
9772 case $host_os in
9773 cygwin*)
9774 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9775 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9777 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9779 mingw* | cegcc*)
9780 # MinGW DLLs use traditional 'lib' prefix
9781 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9783 pw32*)
9784 # pw32 DLLs use 'pw' prefix rather than 'lib'
9785 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9787 esac
9788 dynamic_linker='Win32 ld.exe'
9791 *,cl*)
9792 # Native MSVC
9793 libname_spec='$name'
9794 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9795 library_names_spec='${libname}.dll.lib'
9797 case $build_os in
9798 mingw*)
9799 sys_lib_search_path_spec=
9800 lt_save_ifs=$IFS
9801 IFS=';'
9802 for lt_path in $LIB
9804 IFS=$lt_save_ifs
9805 # Let DOS variable expansion print the short 8.3 style file name.
9806 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9807 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9808 done
9809 IFS=$lt_save_ifs
9810 # Convert to MSYS style.
9811 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9813 cygwin*)
9814 # Convert to unix form, then to dos form, then back to unix form
9815 # but this time dos style (no spaces!) so that the unix form looks
9816 # like /cygdrive/c/PROGRA~1:/cygdr...
9817 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9818 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9819 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9822 sys_lib_search_path_spec="$LIB"
9823 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9824 # It is most probably a Windows format PATH.
9825 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9826 else
9827 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9829 # FIXME: find the short name or the path components, as spaces are
9830 # common. (e.g. "Program Files" -> "PROGRA~1")
9832 esac
9834 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9835 postinstall_cmds='base_file=`basename \${file}`~
9836 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9837 dldir=$destdir/`dirname \$dlpath`~
9838 test -d \$dldir || mkdir -p \$dldir~
9839 $install_prog $dir/$dlname \$dldir/$dlname'
9840 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9841 dlpath=$dir/\$dldll~
9842 $RM \$dlpath'
9843 shlibpath_overrides_runpath=yes
9844 dynamic_linker='Win32 link.exe'
9848 # Assume MSVC wrapper
9849 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9850 dynamic_linker='Win32 ld.exe'
9852 esac
9853 # FIXME: first we should search . and the directory the executable is in
9854 shlibpath_var=PATH
9857 darwin* | rhapsody*)
9858 dynamic_linker="$host_os dyld"
9859 version_type=darwin
9860 need_lib_prefix=no
9861 need_version=no
9862 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9863 soname_spec='${libname}${release}${major}$shared_ext'
9864 shlibpath_overrides_runpath=yes
9865 shlibpath_var=DYLD_LIBRARY_PATH
9866 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9868 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9869 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9872 dgux*)
9873 version_type=linux
9874 need_lib_prefix=no
9875 need_version=no
9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9877 soname_spec='${libname}${release}${shared_ext}$major'
9878 shlibpath_var=LD_LIBRARY_PATH
9881 freebsd1*)
9882 dynamic_linker=no
9885 freebsd* | dragonfly*)
9886 # DragonFly does not have aout. When/if they implement a new
9887 # versioning mechanism, adjust this.
9888 if test -x /usr/bin/objformat; then
9889 objformat=`/usr/bin/objformat`
9890 else
9891 case $host_os in
9892 freebsd[123]*) objformat=aout ;;
9893 *) objformat=elf ;;
9894 esac
9896 version_type=freebsd-$objformat
9897 case $version_type in
9898 freebsd-elf*)
9899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9900 need_version=no
9901 need_lib_prefix=no
9903 freebsd-*)
9904 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9905 need_version=yes
9907 esac
9908 shlibpath_var=LD_LIBRARY_PATH
9909 case $host_os in
9910 freebsd2*)
9911 shlibpath_overrides_runpath=yes
9913 freebsd3.[01]* | freebsdelf3.[01]*)
9914 shlibpath_overrides_runpath=yes
9915 hardcode_into_libs=yes
9917 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9918 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9919 shlibpath_overrides_runpath=no
9920 hardcode_into_libs=yes
9922 *) # from 4.6 on, and DragonFly
9923 shlibpath_overrides_runpath=yes
9924 hardcode_into_libs=yes
9926 esac
9929 gnu*)
9930 version_type=linux
9931 need_lib_prefix=no
9932 need_version=no
9933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9934 soname_spec='${libname}${release}${shared_ext}$major'
9935 shlibpath_var=LD_LIBRARY_PATH
9936 hardcode_into_libs=yes
9939 haiku*)
9940 version_type=linux
9941 need_lib_prefix=no
9942 need_version=no
9943 dynamic_linker="$host_os runtime_loader"
9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9945 soname_spec='${libname}${release}${shared_ext}$major'
9946 shlibpath_var=LIBRARY_PATH
9947 shlibpath_overrides_runpath=yes
9948 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9949 hardcode_into_libs=yes
9952 hpux9* | hpux10* | hpux11*)
9953 # Give a soname corresponding to the major version so that dld.sl refuses to
9954 # link against other versions.
9955 version_type=sunos
9956 need_lib_prefix=no
9957 need_version=no
9958 case $host_cpu in
9959 ia64*)
9960 shrext_cmds='.so'
9961 hardcode_into_libs=yes
9962 dynamic_linker="$host_os dld.so"
9963 shlibpath_var=LD_LIBRARY_PATH
9964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 if test "X$HPUX_IA64_MODE" = X32; then
9968 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9969 else
9970 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9972 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9974 hppa*64*)
9975 shrext_cmds='.sl'
9976 hardcode_into_libs=yes
9977 dynamic_linker="$host_os dld.sl"
9978 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9979 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981 soname_spec='${libname}${release}${shared_ext}$major'
9982 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9986 shrext_cmds='.sl'
9987 dynamic_linker="$host_os dld.sl"
9988 shlibpath_var=SHLIB_PATH
9989 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9991 soname_spec='${libname}${release}${shared_ext}$major'
9993 esac
9994 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9995 postinstall_cmds='chmod 555 $lib'
9996 # or fails outright, so override atomically:
9997 install_override_mode=555
10000 interix[3-9]*)
10001 version_type=linux
10002 need_lib_prefix=no
10003 need_version=no
10004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10005 soname_spec='${libname}${release}${shared_ext}$major'
10006 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10007 shlibpath_var=LD_LIBRARY_PATH
10008 shlibpath_overrides_runpath=no
10009 hardcode_into_libs=yes
10012 irix5* | irix6* | nonstopux*)
10013 case $host_os in
10014 nonstopux*) version_type=nonstopux ;;
10016 if test "$lt_cv_prog_gnu_ld" = yes; then
10017 version_type=linux
10018 else
10019 version_type=irix
10020 fi ;;
10021 esac
10022 need_lib_prefix=no
10023 need_version=no
10024 soname_spec='${libname}${release}${shared_ext}$major'
10025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10026 case $host_os in
10027 irix5* | nonstopux*)
10028 libsuff= shlibsuff=
10031 case $LD in # libtool.m4 will add one of these switches to LD
10032 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10033 libsuff= shlibsuff= libmagic=32-bit;;
10034 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10035 libsuff=32 shlibsuff=N32 libmagic=N32;;
10036 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10037 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10038 *) libsuff= shlibsuff= libmagic=never-match;;
10039 esac
10041 esac
10042 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10043 shlibpath_overrides_runpath=no
10044 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10045 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10046 hardcode_into_libs=yes
10049 # No shared lib support for Linux oldld, aout, or coff.
10050 linux*oldld* | linux*aout* | linux*coff*)
10051 dynamic_linker=no
10054 # This must be Linux ELF.
10055 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10056 version_type=linux
10057 need_lib_prefix=no
10058 need_version=no
10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10060 soname_spec='${libname}${release}${shared_ext}$major'
10061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10062 shlibpath_var=LD_LIBRARY_PATH
10063 shlibpath_overrides_runpath=no
10065 # Some binutils ld are patched to set DT_RUNPATH
10066 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10067 $as_echo_n "(cached) " >&6
10068 else
10069 lt_cv_shlibpath_overrides_runpath=no
10070 save_LDFLAGS=$LDFLAGS
10071 save_libdir=$libdir
10072 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10073 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10075 /* end confdefs.h. */
10078 main ()
10082 return 0;
10084 _ACEOF
10085 if ac_fn_c_try_link "$LINENO"; then :
10086 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10087 lt_cv_shlibpath_overrides_runpath=yes
10090 rm -f core conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10092 LDFLAGS=$save_LDFLAGS
10093 libdir=$save_libdir
10097 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10099 # This implies no fast_install, which is unacceptable.
10100 # Some rework will be needed to allow for fast_install
10101 # before this can be enabled.
10102 hardcode_into_libs=yes
10104 # Append ld.so.conf contents to the search path
10105 if test -f /etc/ld.so.conf; then
10106 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' ' '`
10107 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10110 # We used to test for /lib/ld.so.1 and disable shared libraries on
10111 # powerpc, because MkLinux only supported shared libraries with the
10112 # GNU dynamic linker. Since this was broken with cross compilers,
10113 # most powerpc-linux boxes support dynamic linking these days and
10114 # people can always --disable-shared, the test was removed, and we
10115 # assume the GNU/Linux dynamic linker is in use.
10116 dynamic_linker='GNU/Linux ld.so'
10119 netbsd*)
10120 version_type=sunos
10121 need_lib_prefix=no
10122 need_version=no
10123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10126 dynamic_linker='NetBSD (a.out) ld.so'
10127 else
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10129 soname_spec='${libname}${release}${shared_ext}$major'
10130 dynamic_linker='NetBSD ld.elf_so'
10132 shlibpath_var=LD_LIBRARY_PATH
10133 shlibpath_overrides_runpath=yes
10134 hardcode_into_libs=yes
10137 newsos6)
10138 version_type=linux
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140 shlibpath_var=LD_LIBRARY_PATH
10141 shlibpath_overrides_runpath=yes
10144 *nto* | *qnx*)
10145 version_type=qnx
10146 need_lib_prefix=no
10147 need_version=no
10148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10149 soname_spec='${libname}${release}${shared_ext}$major'
10150 shlibpath_var=LD_LIBRARY_PATH
10151 shlibpath_overrides_runpath=no
10152 hardcode_into_libs=yes
10153 dynamic_linker='ldqnx.so'
10156 openbsd*)
10157 version_type=sunos
10158 sys_lib_dlsearch_path_spec="/usr/lib"
10159 need_lib_prefix=no
10160 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10161 case $host_os in
10162 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10163 *) need_version=no ;;
10164 esac
10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10167 shlibpath_var=LD_LIBRARY_PATH
10168 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10169 case $host_os in
10170 openbsd2.[89] | openbsd2.[89].*)
10171 shlibpath_overrides_runpath=no
10174 shlibpath_overrides_runpath=yes
10176 esac
10177 else
10178 shlibpath_overrides_runpath=yes
10182 os2*)
10183 libname_spec='$name'
10184 shrext_cmds=".dll"
10185 need_lib_prefix=no
10186 library_names_spec='$libname${shared_ext} $libname.a'
10187 dynamic_linker='OS/2 ld.exe'
10188 shlibpath_var=LIBPATH
10191 osf3* | osf4* | osf5*)
10192 version_type=osf
10193 need_lib_prefix=no
10194 need_version=no
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197 shlibpath_var=LD_LIBRARY_PATH
10198 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10199 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10202 rdos*)
10203 dynamic_linker=no
10206 solaris*)
10207 version_type=linux
10208 need_lib_prefix=no
10209 need_version=no
10210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10211 soname_spec='${libname}${release}${shared_ext}$major'
10212 shlibpath_var=LD_LIBRARY_PATH
10213 shlibpath_overrides_runpath=yes
10214 hardcode_into_libs=yes
10215 # ldd complains unless libraries are executable
10216 postinstall_cmds='chmod +x $lib'
10219 sunos4*)
10220 version_type=sunos
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10222 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10223 shlibpath_var=LD_LIBRARY_PATH
10224 shlibpath_overrides_runpath=yes
10225 if test "$with_gnu_ld" = yes; then
10226 need_lib_prefix=no
10228 need_version=yes
10231 sysv4 | sysv4.3*)
10232 version_type=linux
10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234 soname_spec='${libname}${release}${shared_ext}$major'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 case $host_vendor in
10237 sni)
10238 shlibpath_overrides_runpath=no
10239 need_lib_prefix=no
10240 runpath_var=LD_RUN_PATH
10242 siemens)
10243 need_lib_prefix=no
10245 motorola)
10246 need_lib_prefix=no
10247 need_version=no
10248 shlibpath_overrides_runpath=no
10249 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10251 esac
10254 sysv4*MP*)
10255 if test -d /usr/nec ;then
10256 version_type=linux
10257 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10258 soname_spec='$libname${shared_ext}.$major'
10259 shlibpath_var=LD_LIBRARY_PATH
10263 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10264 version_type=freebsd-elf
10265 need_lib_prefix=no
10266 need_version=no
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10268 soname_spec='${libname}${release}${shared_ext}$major'
10269 shlibpath_var=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath=yes
10271 hardcode_into_libs=yes
10272 if test "$with_gnu_ld" = yes; then
10273 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10274 else
10275 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10276 case $host_os in
10277 sco3.2v5*)
10278 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10280 esac
10282 sys_lib_dlsearch_path_spec='/usr/lib'
10285 tpf*)
10286 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10287 version_type=linux
10288 need_lib_prefix=no
10289 need_version=no
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291 shlibpath_var=LD_LIBRARY_PATH
10292 shlibpath_overrides_runpath=no
10293 hardcode_into_libs=yes
10296 uts4*)
10297 version_type=linux
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 shlibpath_var=LD_LIBRARY_PATH
10304 dynamic_linker=no
10306 esac
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10308 $as_echo "$dynamic_linker" >&6; }
10309 test "$dynamic_linker" = no && can_build_shared=no
10311 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10312 if test "$GCC" = yes; then
10313 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10316 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10317 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10319 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10320 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10415 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10416 hardcode_action=
10417 if test -n "$hardcode_libdir_flag_spec" ||
10418 test -n "$runpath_var" ||
10419 test "X$hardcode_automatic" = "Xyes" ; then
10421 # We can hardcode non-existent directories.
10422 if test "$hardcode_direct" != no &&
10423 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10424 # have to relink, otherwise we might link with an installed library
10425 # when we should be linking with a yet-to-be-installed one
10426 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10427 test "$hardcode_minus_L" != no; then
10428 # Linking always hardcodes the temporary library directory.
10429 hardcode_action=relink
10430 else
10431 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10432 hardcode_action=immediate
10434 else
10435 # We cannot hardcode anything, or else we can only hardcode existing
10436 # directories.
10437 hardcode_action=unsupported
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10440 $as_echo "$hardcode_action" >&6; }
10442 if test "$hardcode_action" = relink ||
10443 test "$inherit_rpath" = yes; then
10444 # Fast installation is not supported
10445 enable_fast_install=no
10446 elif test "$shlibpath_overrides_runpath" = yes ||
10447 test "$enable_shared" = no; then
10448 # Fast installation is not necessary
10449 enable_fast_install=needless
10457 if test "x$enable_dlopen" != xyes; then
10458 enable_dlopen=unknown
10459 enable_dlopen_self=unknown
10460 enable_dlopen_self_static=unknown
10461 else
10462 lt_cv_dlopen=no
10463 lt_cv_dlopen_libs=
10465 case $host_os in
10466 beos*)
10467 lt_cv_dlopen="load_add_on"
10468 lt_cv_dlopen_libs=
10469 lt_cv_dlopen_self=yes
10472 mingw* | pw32* | cegcc*)
10473 lt_cv_dlopen="LoadLibrary"
10474 lt_cv_dlopen_libs=
10477 cygwin*)
10478 lt_cv_dlopen="dlopen"
10479 lt_cv_dlopen_libs=
10482 darwin*)
10483 # if libdl is installed we need to link against it
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10485 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10486 if ${ac_cv_lib_dl_dlopen+:} false; then :
10487 $as_echo_n "(cached) " >&6
10488 else
10489 ac_check_lib_save_LIBS=$LIBS
10490 LIBS="-ldl $LIBS"
10491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10492 /* end confdefs.h. */
10494 /* Override any GCC internal prototype to avoid an error.
10495 Use char because int might match the return type of a GCC
10496 builtin and then its argument prototype would still apply. */
10497 #ifdef __cplusplus
10498 extern "C"
10499 #endif
10500 char dlopen ();
10502 main ()
10504 return dlopen ();
10506 return 0;
10508 _ACEOF
10509 if ac_fn_c_try_link "$LINENO"; then :
10510 ac_cv_lib_dl_dlopen=yes
10511 else
10512 ac_cv_lib_dl_dlopen=no
10514 rm -f core conftest.err conftest.$ac_objext \
10515 conftest$ac_exeext conftest.$ac_ext
10516 LIBS=$ac_check_lib_save_LIBS
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10519 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10520 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10521 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10522 else
10524 lt_cv_dlopen="dyld"
10525 lt_cv_dlopen_libs=
10526 lt_cv_dlopen_self=yes
10533 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10534 if test "x$ac_cv_func_shl_load" = xyes; then :
10535 lt_cv_dlopen="shl_load"
10536 else
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10538 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10539 if ${ac_cv_lib_dld_shl_load+:} false; then :
10540 $as_echo_n "(cached) " >&6
10541 else
10542 ac_check_lib_save_LIBS=$LIBS
10543 LIBS="-ldld $LIBS"
10544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h. */
10547 /* Override any GCC internal prototype to avoid an error.
10548 Use char because int might match the return type of a GCC
10549 builtin and then its argument prototype would still apply. */
10550 #ifdef __cplusplus
10551 extern "C"
10552 #endif
10553 char shl_load ();
10555 main ()
10557 return shl_load ();
10559 return 0;
10561 _ACEOF
10562 if ac_fn_c_try_link "$LINENO"; then :
10563 ac_cv_lib_dld_shl_load=yes
10564 else
10565 ac_cv_lib_dld_shl_load=no
10567 rm -f core conftest.err conftest.$ac_objext \
10568 conftest$ac_exeext conftest.$ac_ext
10569 LIBS=$ac_check_lib_save_LIBS
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10572 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10573 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10574 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10575 else
10576 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10577 if test "x$ac_cv_func_dlopen" = xyes; then :
10578 lt_cv_dlopen="dlopen"
10579 else
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10581 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10582 if ${ac_cv_lib_dl_dlopen+:} false; then :
10583 $as_echo_n "(cached) " >&6
10584 else
10585 ac_check_lib_save_LIBS=$LIBS
10586 LIBS="-ldl $LIBS"
10587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10588 /* end confdefs.h. */
10590 /* Override any GCC internal prototype to avoid an error.
10591 Use char because int might match the return type of a GCC
10592 builtin and then its argument prototype would still apply. */
10593 #ifdef __cplusplus
10594 extern "C"
10595 #endif
10596 char dlopen ();
10598 main ()
10600 return dlopen ();
10602 return 0;
10604 _ACEOF
10605 if ac_fn_c_try_link "$LINENO"; then :
10606 ac_cv_lib_dl_dlopen=yes
10607 else
10608 ac_cv_lib_dl_dlopen=no
10610 rm -f core conftest.err conftest.$ac_objext \
10611 conftest$ac_exeext conftest.$ac_ext
10612 LIBS=$ac_check_lib_save_LIBS
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10615 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10616 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10617 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10618 else
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10620 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10621 if ${ac_cv_lib_svld_dlopen+:} false; then :
10622 $as_echo_n "(cached) " >&6
10623 else
10624 ac_check_lib_save_LIBS=$LIBS
10625 LIBS="-lsvld $LIBS"
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 /* end confdefs.h. */
10629 /* Override any GCC internal prototype to avoid an error.
10630 Use char because int might match the return type of a GCC
10631 builtin and then its argument prototype would still apply. */
10632 #ifdef __cplusplus
10633 extern "C"
10634 #endif
10635 char dlopen ();
10637 main ()
10639 return dlopen ();
10641 return 0;
10643 _ACEOF
10644 if ac_fn_c_try_link "$LINENO"; then :
10645 ac_cv_lib_svld_dlopen=yes
10646 else
10647 ac_cv_lib_svld_dlopen=no
10649 rm -f core conftest.err conftest.$ac_objext \
10650 conftest$ac_exeext conftest.$ac_ext
10651 LIBS=$ac_check_lib_save_LIBS
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10654 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10655 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10656 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10657 else
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10659 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10660 if ${ac_cv_lib_dld_dld_link+:} false; then :
10661 $as_echo_n "(cached) " >&6
10662 else
10663 ac_check_lib_save_LIBS=$LIBS
10664 LIBS="-ldld $LIBS"
10665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h. */
10668 /* Override any GCC internal prototype to avoid an error.
10669 Use char because int might match the return type of a GCC
10670 builtin and then its argument prototype would still apply. */
10671 #ifdef __cplusplus
10672 extern "C"
10673 #endif
10674 char dld_link ();
10676 main ()
10678 return dld_link ();
10680 return 0;
10682 _ACEOF
10683 if ac_fn_c_try_link "$LINENO"; then :
10684 ac_cv_lib_dld_dld_link=yes
10685 else
10686 ac_cv_lib_dld_dld_link=no
10688 rm -f core conftest.err conftest.$ac_objext \
10689 conftest$ac_exeext conftest.$ac_ext
10690 LIBS=$ac_check_lib_save_LIBS
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10693 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10694 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10695 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10714 esac
10716 if test "x$lt_cv_dlopen" != xno; then
10717 enable_dlopen=yes
10718 else
10719 enable_dlopen=no
10722 case $lt_cv_dlopen in
10723 dlopen)
10724 save_CPPFLAGS="$CPPFLAGS"
10725 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10727 save_LDFLAGS="$LDFLAGS"
10728 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10730 save_LIBS="$LIBS"
10731 LIBS="$lt_cv_dlopen_libs $LIBS"
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10734 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10735 if ${lt_cv_dlopen_self+:} false; then :
10736 $as_echo_n "(cached) " >&6
10737 else
10738 if test "$cross_compiling" = yes; then :
10739 lt_cv_dlopen_self=cross
10740 else
10741 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10742 lt_status=$lt_dlunknown
10743 cat > conftest.$ac_ext <<_LT_EOF
10744 #line $LINENO "configure"
10745 #include "confdefs.h"
10747 #if HAVE_DLFCN_H
10748 #include <dlfcn.h>
10749 #endif
10751 #include <stdio.h>
10753 #ifdef RTLD_GLOBAL
10754 # define LT_DLGLOBAL RTLD_GLOBAL
10755 #else
10756 # ifdef DL_GLOBAL
10757 # define LT_DLGLOBAL DL_GLOBAL
10758 # else
10759 # define LT_DLGLOBAL 0
10760 # endif
10761 #endif
10763 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10764 find out it does not work in some platform. */
10765 #ifndef LT_DLLAZY_OR_NOW
10766 # ifdef RTLD_LAZY
10767 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10768 # else
10769 # ifdef DL_LAZY
10770 # define LT_DLLAZY_OR_NOW DL_LAZY
10771 # else
10772 # ifdef RTLD_NOW
10773 # define LT_DLLAZY_OR_NOW RTLD_NOW
10774 # else
10775 # ifdef DL_NOW
10776 # define LT_DLLAZY_OR_NOW DL_NOW
10777 # else
10778 # define LT_DLLAZY_OR_NOW 0
10779 # endif
10780 # endif
10781 # endif
10782 # endif
10783 #endif
10785 /* When -fvisbility=hidden is used, assume the code has been annotated
10786 correspondingly for the symbols needed. */
10787 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10788 int fnord () __attribute__((visibility("default")));
10789 #endif
10791 int fnord () { return 42; }
10792 int main ()
10794 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10795 int status = $lt_dlunknown;
10797 if (self)
10799 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10800 else
10802 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10803 else puts (dlerror ());
10805 /* dlclose (self); */
10807 else
10808 puts (dlerror ());
10810 return status;
10812 _LT_EOF
10813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10814 (eval $ac_link) 2>&5
10815 ac_status=$?
10816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10817 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10818 (./conftest; exit; ) >&5 2>/dev/null
10819 lt_status=$?
10820 case x$lt_status in
10821 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10822 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10823 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10824 esac
10825 else :
10826 # compilation failed
10827 lt_cv_dlopen_self=no
10830 rm -fr conftest*
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10835 $as_echo "$lt_cv_dlopen_self" >&6; }
10837 if test "x$lt_cv_dlopen_self" = xyes; then
10838 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10840 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10841 if ${lt_cv_dlopen_self_static+:} false; then :
10842 $as_echo_n "(cached) " >&6
10843 else
10844 if test "$cross_compiling" = yes; then :
10845 lt_cv_dlopen_self_static=cross
10846 else
10847 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10848 lt_status=$lt_dlunknown
10849 cat > conftest.$ac_ext <<_LT_EOF
10850 #line $LINENO "configure"
10851 #include "confdefs.h"
10853 #if HAVE_DLFCN_H
10854 #include <dlfcn.h>
10855 #endif
10857 #include <stdio.h>
10859 #ifdef RTLD_GLOBAL
10860 # define LT_DLGLOBAL RTLD_GLOBAL
10861 #else
10862 # ifdef DL_GLOBAL
10863 # define LT_DLGLOBAL DL_GLOBAL
10864 # else
10865 # define LT_DLGLOBAL 0
10866 # endif
10867 #endif
10869 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10870 find out it does not work in some platform. */
10871 #ifndef LT_DLLAZY_OR_NOW
10872 # ifdef RTLD_LAZY
10873 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10874 # else
10875 # ifdef DL_LAZY
10876 # define LT_DLLAZY_OR_NOW DL_LAZY
10877 # else
10878 # ifdef RTLD_NOW
10879 # define LT_DLLAZY_OR_NOW RTLD_NOW
10880 # else
10881 # ifdef DL_NOW
10882 # define LT_DLLAZY_OR_NOW DL_NOW
10883 # else
10884 # define LT_DLLAZY_OR_NOW 0
10885 # endif
10886 # endif
10887 # endif
10888 # endif
10889 #endif
10891 /* When -fvisbility=hidden is used, assume the code has been annotated
10892 correspondingly for the symbols needed. */
10893 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10894 int fnord () __attribute__((visibility("default")));
10895 #endif
10897 int fnord () { return 42; }
10898 int main ()
10900 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10901 int status = $lt_dlunknown;
10903 if (self)
10905 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10906 else
10908 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10909 else puts (dlerror ());
10911 /* dlclose (self); */
10913 else
10914 puts (dlerror ());
10916 return status;
10918 _LT_EOF
10919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10920 (eval $ac_link) 2>&5
10921 ac_status=$?
10922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10923 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10924 (./conftest; exit; ) >&5 2>/dev/null
10925 lt_status=$?
10926 case x$lt_status in
10927 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10928 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10929 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10930 esac
10931 else :
10932 # compilation failed
10933 lt_cv_dlopen_self_static=no
10936 rm -fr conftest*
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10941 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10944 CPPFLAGS="$save_CPPFLAGS"
10945 LDFLAGS="$save_LDFLAGS"
10946 LIBS="$save_LIBS"
10948 esac
10950 case $lt_cv_dlopen_self in
10951 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10952 *) enable_dlopen_self=unknown ;;
10953 esac
10955 case $lt_cv_dlopen_self_static in
10956 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10957 *) enable_dlopen_self_static=unknown ;;
10958 esac
10977 striplib=
10978 old_striplib=
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10980 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10981 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10982 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10983 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10985 $as_echo "yes" >&6; }
10986 else
10987 # FIXME - insert some real tests, host_os isn't really good enough
10988 case $host_os in
10989 darwin*)
10990 if test -n "$STRIP" ; then
10991 striplib="$STRIP -x"
10992 old_striplib="$STRIP -S"
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10994 $as_echo "yes" >&6; }
10995 else
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10997 $as_echo "no" >&6; }
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002 $as_echo "no" >&6; }
11004 esac
11018 # Report which library types will actually be built
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11020 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11022 $as_echo "$can_build_shared" >&6; }
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11025 $as_echo_n "checking whether to build shared libraries... " >&6; }
11026 test "$can_build_shared" = "no" && enable_shared=no
11028 # On AIX, shared libraries and static libraries use the same namespace, and
11029 # are all built from PIC.
11030 case $host_os in
11031 aix3*)
11032 test "$enable_shared" = yes && enable_static=no
11033 if test -n "$RANLIB"; then
11034 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11035 postinstall_cmds='$RANLIB $lib'
11039 aix[4-9]*)
11040 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11041 test "$enable_shared" = yes && enable_static=no
11044 esac
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11046 $as_echo "$enable_shared" >&6; }
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11049 $as_echo_n "checking whether to build static libraries... " >&6; }
11050 # Make sure either enable_shared or enable_static is yes.
11051 test "$enable_shared" = yes || enable_static=yes
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11053 $as_echo "$enable_static" >&6; }
11059 ac_ext=c
11060 ac_cpp='$CPP $CPPFLAGS'
11061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11065 CC="$lt_save_CC"
11079 ac_config_commands="$ac_config_commands libtool"
11084 # Only expand once:
11089 CFLAG_VISIBILITY=
11090 HAVE_VISIBILITY=0
11091 if test -n "$GCC"; then
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
11093 $as_echo_n "checking whether the -Werror option is usable... " >&6; }
11094 if ${gl_cv_cc_vis_werror+:} false; then :
11095 $as_echo_n "(cached) " >&6
11096 else
11098 gl_save_CFLAGS="$CFLAGS"
11099 CFLAGS="$CFLAGS -Werror"
11100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101 /* end confdefs.h. */
11104 main ()
11108 return 0;
11110 _ACEOF
11111 if ac_fn_c_try_compile "$LINENO"; then :
11112 gl_cv_cc_vis_werror=yes
11113 else
11114 gl_cv_cc_vis_werror=no
11116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11117 CFLAGS="$gl_save_CFLAGS"
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
11121 $as_echo "$gl_cv_cc_vis_werror" >&6; }
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
11123 $as_echo_n "checking for simple visibility declarations... " >&6; }
11124 if ${gl_cv_cc_visibility+:} false; then :
11125 $as_echo_n "(cached) " >&6
11126 else
11128 gl_save_CFLAGS="$CFLAGS"
11129 CFLAGS="$CFLAGS -fvisibility=hidden"
11130 if test $gl_cv_cc_vis_werror = yes; then
11131 CFLAGS="$CFLAGS -Werror"
11133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11134 /* end confdefs.h. */
11135 extern __attribute__((__visibility__("hidden"))) int hiddenvar;
11136 extern __attribute__((__visibility__("default"))) int exportedvar;
11137 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
11138 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
11139 void dummyfunc (void) {}
11142 main ()
11146 return 0;
11148 _ACEOF
11149 if ac_fn_c_try_compile "$LINENO"; then :
11150 gl_cv_cc_visibility=yes
11151 else
11152 gl_cv_cc_visibility=no
11154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155 CFLAGS="$gl_save_CFLAGS"
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
11159 $as_echo "$gl_cv_cc_visibility" >&6; }
11160 if test $gl_cv_cc_visibility = yes; then
11161 CFLAG_VISIBILITY="-fvisibility=hidden"
11162 HAVE_VISIBILITY=1
11168 cat >>confdefs.h <<_ACEOF
11169 #define HAVE_VISIBILITY $HAVE_VISIBILITY
11170 _ACEOF
11175 case "$host_os" in
11176 linux* | solaris* | osf*)
11177 PLUGLIB="preloadable_libiconv.so" ;;
11179 PLUGLIB=""
11180 esac
11183 ac_config_files="$ac_config_files Makefile"
11185 cat >confcache <<\_ACEOF
11186 # This file is a shell script that caches the results of configure
11187 # tests run on this system so they can be shared between configure
11188 # scripts and configure runs, see configure's option --config-cache.
11189 # It is not useful on other systems. If it contains results you don't
11190 # want to keep, you may remove or edit it.
11192 # config.status only pays attention to the cache file if you give it
11193 # the --recheck option to rerun configure.
11195 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11196 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11197 # following values.
11199 _ACEOF
11201 # The following way of writing the cache mishandles newlines in values,
11202 # but we know of no workaround that is simple, portable, and efficient.
11203 # So, we kill variables containing newlines.
11204 # Ultrix sh set writes to stderr and can't be redirected directly,
11205 # and sets the high bit in the cache file unless we assign to the vars.
11207 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11208 eval ac_val=\$$ac_var
11209 case $ac_val in #(
11210 *${as_nl}*)
11211 case $ac_var in #(
11212 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11213 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11214 esac
11215 case $ac_var in #(
11216 _ | IFS | as_nl) ;; #(
11217 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11218 *) { eval $ac_var=; unset $ac_var;} ;;
11219 esac ;;
11220 esac
11221 done
11223 (set) 2>&1 |
11224 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11225 *${as_nl}ac_space=\ *)
11226 # `set' does not quote correctly, so add quotes: double-quote
11227 # substitution turns \\\\ into \\, and sed turns \\ into \.
11228 sed -n \
11229 "s/'/'\\\\''/g;
11230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11231 ;; #(
11233 # `set' quotes correctly as required by POSIX, so do not add quotes.
11234 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11236 esac |
11237 sort
11239 sed '
11240 /^ac_cv_env_/b end
11241 t clear
11242 :clear
11243 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11244 t end
11245 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11246 :end' >>confcache
11247 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11248 if test -w "$cache_file"; then
11249 if test "x$cache_file" != "x/dev/null"; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11251 $as_echo "$as_me: updating cache $cache_file" >&6;}
11252 if test ! -f "$cache_file" || test -h "$cache_file"; then
11253 cat confcache >"$cache_file"
11254 else
11255 case $cache_file in #(
11256 */* | ?:*)
11257 mv -f confcache "$cache_file"$$ &&
11258 mv -f "$cache_file"$$ "$cache_file" ;; #(
11260 mv -f confcache "$cache_file" ;;
11261 esac
11264 else
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11266 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11269 rm -f confcache
11271 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11272 # Let make expand exec_prefix.
11273 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11275 # Transform confdefs.h into DEFS.
11276 # Protect against shell expansion while executing Makefile rules.
11277 # Protect against Makefile macro expansion.
11279 # If the first sed substitution is executed (which looks for macros that
11280 # take arguments), then branch to the quote section. Otherwise,
11281 # look for a macro that doesn't take arguments.
11282 ac_script='
11283 :mline
11284 /\\$/{
11286 s,\\\n,,
11287 b mline
11289 t clear
11290 :clear
11291 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11292 t quote
11293 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11294 t quote
11295 b any
11296 :quote
11297 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11298 s/\[/\\&/g
11299 s/\]/\\&/g
11300 s/\$/$$/g
11302 :any
11305 s/^\n//
11306 s/\n/ /g
11310 DEFS=`sed -n "$ac_script" confdefs.h`
11313 ac_libobjs=
11314 ac_ltlibobjs=
11316 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11317 # 1. Remove the extension, and $U if already installed.
11318 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11319 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11320 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11321 # will be set to the directory where LIBOBJS objects are built.
11322 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11323 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11324 done
11325 LIBOBJS=$ac_libobjs
11327 LTLIBOBJS=$ac_ltlibobjs
11331 : "${CONFIG_STATUS=./config.status}"
11332 ac_write_fail=0
11333 ac_clean_files_save=$ac_clean_files
11334 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11336 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11337 as_write_fail=0
11338 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11339 #! $SHELL
11340 # Generated by $as_me.
11341 # Run this file to recreate the current configuration.
11342 # Compiler output produced by configure, useful for debugging
11343 # configure, is in config.log if it exists.
11345 debug=false
11346 ac_cs_recheck=false
11347 ac_cs_silent=false
11349 SHELL=\${CONFIG_SHELL-$SHELL}
11350 export SHELL
11351 _ASEOF
11352 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11353 ## -------------------- ##
11354 ## M4sh Initialization. ##
11355 ## -------------------- ##
11357 # Be more Bourne compatible
11358 DUALCASE=1; export DUALCASE # for MKS sh
11359 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11360 emulate sh
11361 NULLCMD=:
11362 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11363 # is contrary to our usage. Disable this feature.
11364 alias -g '${1+"$@"}'='"$@"'
11365 setopt NO_GLOB_SUBST
11366 else
11367 case `(set -o) 2>/dev/null` in #(
11368 *posix*) :
11369 set -o posix ;; #(
11370 *) :
11372 esac
11376 as_nl='
11378 export as_nl
11379 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11380 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11381 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11382 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11383 # Prefer a ksh shell builtin over an external printf program on Solaris,
11384 # but without wasting forks for bash or zsh.
11385 if test -z "$BASH_VERSION$ZSH_VERSION" \
11386 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11387 as_echo='print -r --'
11388 as_echo_n='print -rn --'
11389 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11390 as_echo='printf %s\n'
11391 as_echo_n='printf %s'
11392 else
11393 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11394 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11395 as_echo_n='/usr/ucb/echo -n'
11396 else
11397 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11398 as_echo_n_body='eval
11399 arg=$1;
11400 case $arg in #(
11401 *"$as_nl"*)
11402 expr "X$arg" : "X\\(.*\\)$as_nl";
11403 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11404 esac;
11405 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11407 export as_echo_n_body
11408 as_echo_n='sh -c $as_echo_n_body as_echo'
11410 export as_echo_body
11411 as_echo='sh -c $as_echo_body as_echo'
11414 # The user is always right.
11415 if test "${PATH_SEPARATOR+set}" != set; then
11416 PATH_SEPARATOR=:
11417 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11418 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11419 PATH_SEPARATOR=';'
11424 # IFS
11425 # We need space, tab and new line, in precisely that order. Quoting is
11426 # there to prevent editors from complaining about space-tab.
11427 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11428 # splitting by setting IFS to empty value.)
11429 IFS=" "" $as_nl"
11431 # Find who we are. Look in the path if we contain no directory separator.
11432 as_myself=
11433 case $0 in #((
11434 *[\\/]* ) as_myself=$0 ;;
11435 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436 for as_dir in $PATH
11438 IFS=$as_save_IFS
11439 test -z "$as_dir" && as_dir=.
11440 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11441 done
11442 IFS=$as_save_IFS
11445 esac
11446 # We did not find ourselves, most probably we were run as `sh COMMAND'
11447 # in which case we are not to be found in the path.
11448 if test "x$as_myself" = x; then
11449 as_myself=$0
11451 if test ! -f "$as_myself"; then
11452 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11453 exit 1
11456 # Unset variables that we do not need and which cause bugs (e.g. in
11457 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11458 # suppresses any "Segmentation fault" message there. '((' could
11459 # trigger a bug in pdksh 5.2.14.
11460 for as_var in BASH_ENV ENV MAIL MAILPATH
11461 do eval test x\${$as_var+set} = xset \
11462 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11463 done
11464 PS1='$ '
11465 PS2='> '
11466 PS4='+ '
11468 # NLS nuisances.
11469 LC_ALL=C
11470 export LC_ALL
11471 LANGUAGE=C
11472 export LANGUAGE
11474 # CDPATH.
11475 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11478 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11479 # ----------------------------------------
11480 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11481 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11482 # script with STATUS, using 1 if that was 0.
11483 as_fn_error ()
11485 as_status=$1; test $as_status -eq 0 && as_status=1
11486 if test "$4"; then
11487 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11488 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11490 $as_echo "$as_me: error: $2" >&2
11491 as_fn_exit $as_status
11492 } # as_fn_error
11495 # as_fn_set_status STATUS
11496 # -----------------------
11497 # Set $? to STATUS, without forking.
11498 as_fn_set_status ()
11500 return $1
11501 } # as_fn_set_status
11503 # as_fn_exit STATUS
11504 # -----------------
11505 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11506 as_fn_exit ()
11508 set +e
11509 as_fn_set_status $1
11510 exit $1
11511 } # as_fn_exit
11513 # as_fn_unset VAR
11514 # ---------------
11515 # Portably unset VAR.
11516 as_fn_unset ()
11518 { eval $1=; unset $1;}
11520 as_unset=as_fn_unset
11521 # as_fn_append VAR VALUE
11522 # ----------------------
11523 # Append the text in VALUE to the end of the definition contained in VAR. Take
11524 # advantage of any shell optimizations that allow amortized linear growth over
11525 # repeated appends, instead of the typical quadratic growth present in naive
11526 # implementations.
11527 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11528 eval 'as_fn_append ()
11530 eval $1+=\$2
11532 else
11533 as_fn_append ()
11535 eval $1=\$$1\$2
11537 fi # as_fn_append
11539 # as_fn_arith ARG...
11540 # ------------------
11541 # Perform arithmetic evaluation on the ARGs, and store the result in the
11542 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11543 # must be portable across $(()) and expr.
11544 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11545 eval 'as_fn_arith ()
11547 as_val=$(( $* ))
11549 else
11550 as_fn_arith ()
11552 as_val=`expr "$@" || test $? -eq 1`
11554 fi # as_fn_arith
11557 if expr a : '\(a\)' >/dev/null 2>&1 &&
11558 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11559 as_expr=expr
11560 else
11561 as_expr=false
11564 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11565 as_basename=basename
11566 else
11567 as_basename=false
11570 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11571 as_dirname=dirname
11572 else
11573 as_dirname=false
11576 as_me=`$as_basename -- "$0" ||
11577 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11578 X"$0" : 'X\(//\)$' \| \
11579 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11580 $as_echo X/"$0" |
11581 sed '/^.*\/\([^/][^/]*\)\/*$/{
11582 s//\1/
11585 /^X\/\(\/\/\)$/{
11586 s//\1/
11589 /^X\/\(\/\).*/{
11590 s//\1/
11593 s/.*/./; q'`
11595 # Avoid depending upon Character Ranges.
11596 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11597 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11598 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11599 as_cr_digits='0123456789'
11600 as_cr_alnum=$as_cr_Letters$as_cr_digits
11602 ECHO_C= ECHO_N= ECHO_T=
11603 case `echo -n x` in #(((((
11604 -n*)
11605 case `echo 'xy\c'` in
11606 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11607 xy) ECHO_C='\c';;
11608 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11609 ECHO_T=' ';;
11610 esac;;
11612 ECHO_N='-n';;
11613 esac
11615 rm -f conf$$ conf$$.exe conf$$.file
11616 if test -d conf$$.dir; then
11617 rm -f conf$$.dir/conf$$.file
11618 else
11619 rm -f conf$$.dir
11620 mkdir conf$$.dir 2>/dev/null
11622 if (echo >conf$$.file) 2>/dev/null; then
11623 if ln -s conf$$.file conf$$ 2>/dev/null; then
11624 as_ln_s='ln -s'
11625 # ... but there are two gotchas:
11626 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11627 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11628 # In both cases, we have to default to `cp -p'.
11629 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11630 as_ln_s='cp -p'
11631 elif ln conf$$.file conf$$ 2>/dev/null; then
11632 as_ln_s=ln
11633 else
11634 as_ln_s='cp -p'
11636 else
11637 as_ln_s='cp -p'
11639 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11640 rmdir conf$$.dir 2>/dev/null
11643 # as_fn_mkdir_p
11644 # -------------
11645 # Create "$as_dir" as a directory, including parents if necessary.
11646 as_fn_mkdir_p ()
11649 case $as_dir in #(
11650 -*) as_dir=./$as_dir;;
11651 esac
11652 test -d "$as_dir" || eval $as_mkdir_p || {
11653 as_dirs=
11654 while :; do
11655 case $as_dir in #(
11656 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11657 *) as_qdir=$as_dir;;
11658 esac
11659 as_dirs="'$as_qdir' $as_dirs"
11660 as_dir=`$as_dirname -- "$as_dir" ||
11661 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11662 X"$as_dir" : 'X\(//\)[^/]' \| \
11663 X"$as_dir" : 'X\(//\)$' \| \
11664 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11665 $as_echo X"$as_dir" |
11666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11667 s//\1/
11670 /^X\(\/\/\)[^/].*/{
11671 s//\1/
11674 /^X\(\/\/\)$/{
11675 s//\1/
11678 /^X\(\/\).*/{
11679 s//\1/
11682 s/.*/./; q'`
11683 test -d "$as_dir" && break
11684 done
11685 test -z "$as_dirs" || eval "mkdir $as_dirs"
11686 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11689 } # as_fn_mkdir_p
11690 if mkdir -p . 2>/dev/null; then
11691 as_mkdir_p='mkdir -p "$as_dir"'
11692 else
11693 test -d ./-p && rmdir ./-p
11694 as_mkdir_p=false
11697 if test -x / >/dev/null 2>&1; then
11698 as_test_x='test -x'
11699 else
11700 if ls -dL / >/dev/null 2>&1; then
11701 as_ls_L_option=L
11702 else
11703 as_ls_L_option=
11705 as_test_x='
11706 eval sh -c '\''
11707 if test -d "$1"; then
11708 test -d "$1/.";
11709 else
11710 case $1 in #(
11711 -*)set "./$1";;
11712 esac;
11713 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11714 ???[sx]*):;;*)false;;esac;fi
11715 '\'' sh
11718 as_executable_p=$as_test_x
11720 # Sed expression to map a string onto a valid CPP name.
11721 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11723 # Sed expression to map a string onto a valid variable name.
11724 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11727 exec 6>&1
11728 ## ----------------------------------- ##
11729 ## Main body of $CONFIG_STATUS script. ##
11730 ## ----------------------------------- ##
11731 _ASEOF
11732 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11735 # Save the log message, to keep $0 and so on meaningful, and to
11736 # report actual input values of CONFIG_FILES etc. instead of their
11737 # values after options handling.
11738 ac_log="
11739 This file was extended by $as_me, which was
11740 generated by GNU Autoconf 2.68. Invocation command line was
11742 CONFIG_FILES = $CONFIG_FILES
11743 CONFIG_HEADERS = $CONFIG_HEADERS
11744 CONFIG_LINKS = $CONFIG_LINKS
11745 CONFIG_COMMANDS = $CONFIG_COMMANDS
11746 $ $0 $@
11748 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11751 _ACEOF
11753 case $ac_config_files in *"
11754 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11755 esac
11759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11760 # Files that config.status was made for.
11761 config_files="$ac_config_files"
11762 config_commands="$ac_config_commands"
11764 _ACEOF
11766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11767 ac_cs_usage="\
11768 \`$as_me' instantiates files and other configuration actions
11769 from templates according to the current configuration. Unless the files
11770 and actions are specified as TAGs, all are instantiated by default.
11772 Usage: $0 [OPTION]... [TAG]...
11774 -h, --help print this help, then exit
11775 -V, --version print version number and configuration settings, then exit
11776 --config print configuration, then exit
11777 -q, --quiet, --silent
11778 do not print progress messages
11779 -d, --debug don't remove temporary files
11780 --recheck update $as_me by reconfiguring in the same conditions
11781 --file=FILE[:TEMPLATE]
11782 instantiate the configuration file FILE
11784 Configuration files:
11785 $config_files
11787 Configuration commands:
11788 $config_commands
11790 Report bugs to the package provider."
11792 _ACEOF
11793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11794 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11795 ac_cs_version="\\
11796 config.status
11797 configured by $0, generated by GNU Autoconf 2.68,
11798 with options \\"\$ac_cs_config\\"
11800 Copyright (C) 2010 Free Software Foundation, Inc.
11801 This config.status script is free software; the Free Software Foundation
11802 gives unlimited permission to copy, distribute and modify it."
11804 ac_pwd='$ac_pwd'
11805 srcdir='$srcdir'
11806 INSTALL='$INSTALL'
11807 AWK='$AWK'
11808 test -n "\$AWK" || AWK=awk
11809 _ACEOF
11811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11812 # The default lists apply if the user does not specify any file.
11813 ac_need_defaults=:
11814 while test $# != 0
11816 case $1 in
11817 --*=?*)
11818 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11819 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11820 ac_shift=:
11822 --*=)
11823 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11824 ac_optarg=
11825 ac_shift=:
11828 ac_option=$1
11829 ac_optarg=$2
11830 ac_shift=shift
11832 esac
11834 case $ac_option in
11835 # Handling of the options.
11836 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11837 ac_cs_recheck=: ;;
11838 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11839 $as_echo "$ac_cs_version"; exit ;;
11840 --config | --confi | --conf | --con | --co | --c )
11841 $as_echo "$ac_cs_config"; exit ;;
11842 --debug | --debu | --deb | --de | --d | -d )
11843 debug=: ;;
11844 --file | --fil | --fi | --f )
11845 $ac_shift
11846 case $ac_optarg in
11847 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11848 '') as_fn_error $? "missing file argument" ;;
11849 esac
11850 as_fn_append CONFIG_FILES " '$ac_optarg'"
11851 ac_need_defaults=false;;
11852 --he | --h | --help | --hel | -h )
11853 $as_echo "$ac_cs_usage"; exit ;;
11854 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11855 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11856 ac_cs_silent=: ;;
11858 # This is an error.
11859 -*) as_fn_error $? "unrecognized option: \`$1'
11860 Try \`$0 --help' for more information." ;;
11862 *) as_fn_append ac_config_targets " $1"
11863 ac_need_defaults=false ;;
11865 esac
11866 shift
11867 done
11869 ac_configure_extra_args=
11871 if $ac_cs_silent; then
11872 exec 6>/dev/null
11873 ac_configure_extra_args="$ac_configure_extra_args --silent"
11876 _ACEOF
11877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11878 if \$ac_cs_recheck; then
11879 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11880 shift
11881 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11882 CONFIG_SHELL='$SHELL'
11883 export CONFIG_SHELL
11884 exec "\$@"
11887 _ACEOF
11888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11889 exec 5>>config.log
11891 echo
11892 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11893 ## Running $as_me. ##
11894 _ASBOX
11895 $as_echo "$ac_log"
11896 } >&5
11898 _ACEOF
11899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11901 # INIT-COMMANDS
11905 # The HP-UX ksh and POSIX shell print the target directory to stdout
11906 # if CDPATH is set.
11907 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11909 sed_quote_subst='$sed_quote_subst'
11910 double_quote_subst='$double_quote_subst'
11911 delay_variable_subst='$delay_variable_subst'
11912 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11913 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11914 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
11915 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
11916 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11917 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11918 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11919 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11920 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11921 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11922 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11923 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11924 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11925 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11926 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11927 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11928 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11929 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11930 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11931 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11932 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11933 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11934 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11935 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11936 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11937 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11938 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11939 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11940 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11941 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11942 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11943 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
11944 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
11945 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11946 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11947 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11948 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11949 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
11950 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
11951 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
11952 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11953 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11954 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
11955 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11956 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11957 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11958 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11959 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11960 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11961 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11962 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11963 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11964 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11965 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11966 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11967 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11968 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"`'
11969 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
11970 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
11971 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11972 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11973 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11974 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11975 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11976 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11977 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11978 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11979 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
11980 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11981 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11982 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11983 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11984 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11985 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11986 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11987 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11988 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11989 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11990 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11991 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11992 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11993 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11994 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11995 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11996 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11997 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11998 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11999 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12000 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12001 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12002 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12003 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12004 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12005 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12006 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12007 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12008 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12009 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12010 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12011 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12012 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12013 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12014 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12015 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12016 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12017 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12018 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12019 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12020 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12021 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12022 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12023 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12024 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12025 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12026 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12027 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12028 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12029 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12030 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12031 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12032 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12033 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12034 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12035 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12036 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12037 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12038 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12039 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12040 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12041 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12042 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12044 LTCC='$LTCC'
12045 LTCFLAGS='$LTCFLAGS'
12046 compiler='$compiler_DEFAULT'
12048 # A function that is used when there is no print builtin or printf.
12049 func_fallback_echo ()
12051 eval 'cat <<_LTECHO_EOF
12053 _LTECHO_EOF'
12056 # Quote evaled strings.
12057 for var in AS \
12058 DLLTOOL \
12059 OBJDUMP \
12060 SHELL \
12061 ECHO \
12062 SED \
12063 GREP \
12064 EGREP \
12065 FGREP \
12066 LD \
12067 NM \
12068 LN_S \
12069 lt_SP2NL \
12070 lt_NL2SP \
12071 reload_flag \
12072 deplibs_check_method \
12073 file_magic_cmd \
12074 file_magic_glob \
12075 want_nocaseglob \
12076 sharedlib_from_linklib_cmd \
12077 AR \
12078 AR_FLAGS \
12079 archiver_list_spec \
12080 STRIP \
12081 RANLIB \
12082 CC \
12083 CFLAGS \
12084 compiler \
12085 lt_cv_sys_global_symbol_pipe \
12086 lt_cv_sys_global_symbol_to_cdecl \
12087 lt_cv_sys_global_symbol_to_c_name_address \
12088 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12089 nm_file_list_spec \
12090 lt_prog_compiler_no_builtin_flag \
12091 lt_prog_compiler_pic \
12092 lt_prog_compiler_wl \
12093 lt_prog_compiler_static \
12094 lt_cv_prog_compiler_c_o \
12095 need_locks \
12096 MANIFEST_TOOL \
12097 DSYMUTIL \
12098 NMEDIT \
12099 LIPO \
12100 OTOOL \
12101 OTOOL64 \
12102 shrext_cmds \
12103 export_dynamic_flag_spec \
12104 whole_archive_flag_spec \
12105 compiler_needs_object \
12106 with_gnu_ld \
12107 allow_undefined_flag \
12108 no_undefined_flag \
12109 hardcode_libdir_flag_spec \
12110 hardcode_libdir_flag_spec_ld \
12111 hardcode_libdir_separator \
12112 exclude_expsyms \
12113 include_expsyms \
12114 file_list_spec \
12115 variables_saved_for_relink \
12116 libname_spec \
12117 library_names_spec \
12118 soname_spec \
12119 install_override_mode \
12120 finish_eval \
12121 old_striplib \
12122 striplib; do
12123 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12124 *[\\\\\\\`\\"\\\$]*)
12125 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12128 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12130 esac
12131 done
12133 # Double-quote double-evaled strings.
12134 for var in reload_cmds \
12135 old_postinstall_cmds \
12136 old_postuninstall_cmds \
12137 old_archive_cmds \
12138 extract_expsyms_cmds \
12139 old_archive_from_new_cmds \
12140 old_archive_from_expsyms_cmds \
12141 archive_cmds \
12142 archive_expsym_cmds \
12143 module_cmds \
12144 module_expsym_cmds \
12145 export_symbols_cmds \
12146 prelink_cmds \
12147 postlink_cmds \
12148 postinstall_cmds \
12149 postuninstall_cmds \
12150 finish_cmds \
12151 sys_lib_search_path_spec \
12152 sys_lib_dlsearch_path_spec; do
12153 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12154 *[\\\\\\\`\\"\\\$]*)
12155 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12158 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12160 esac
12161 done
12163 ac_aux_dir='$ac_aux_dir'
12164 xsi_shell='$xsi_shell'
12165 lt_shell_append='$lt_shell_append'
12167 # See if we are running on zsh, and set the options which allow our
12168 # commands through without removal of \ escapes INIT.
12169 if test -n "\${ZSH_VERSION+set}" ; then
12170 setopt NO_GLOB_SUBST
12174 PACKAGE='$PACKAGE'
12175 VERSION='$VERSION'
12176 TIMESTAMP='$TIMESTAMP'
12177 RM='$RM'
12178 ofile='$ofile'
12183 _ACEOF
12185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12187 # Handling of arguments.
12188 for ac_config_target in $ac_config_targets
12190 case $ac_config_target in
12191 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12192 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12194 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12195 esac
12196 done
12199 # If the user did not use the arguments to specify the items to instantiate,
12200 # then the envvar interface is used. Set only those that are not.
12201 # We use the long form for the default assignment because of an extremely
12202 # bizarre bug on SunOS 4.1.3.
12203 if $ac_need_defaults; then
12204 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12205 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12208 # Have a temporary directory for convenience. Make it in the build tree
12209 # simply because there is no reason against having it here, and in addition,
12210 # creating and moving files from /tmp can sometimes cause problems.
12211 # Hook for its removal unless debugging.
12212 # Note that there is a small window in which the directory will not be cleaned:
12213 # after its creation but before its name has been assigned to `$tmp'.
12214 $debug ||
12216 tmp= ac_tmp=
12217 trap 'exit_status=$?
12218 : "${ac_tmp:=$tmp}"
12219 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12221 trap 'as_fn_exit 1' 1 2 13 15
12223 # Create a (secure) tmp directory for tmp files.
12226 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12227 test -d "$tmp"
12228 } ||
12230 tmp=./conf$$-$RANDOM
12231 (umask 077 && mkdir "$tmp")
12232 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12233 ac_tmp=$tmp
12235 # Set up the scripts for CONFIG_FILES section.
12236 # No need to generate them if there are no CONFIG_FILES.
12237 # This happens for instance with `./config.status config.h'.
12238 if test -n "$CONFIG_FILES"; then
12241 ac_cr=`echo X | tr X '\015'`
12242 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12243 # But we know of no other shell where ac_cr would be empty at this
12244 # point, so we can use a bashism as a fallback.
12245 if test "x$ac_cr" = x; then
12246 eval ac_cr=\$\'\\r\'
12248 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12249 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12250 ac_cs_awk_cr='\\r'
12251 else
12252 ac_cs_awk_cr=$ac_cr
12255 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12256 _ACEOF
12260 echo "cat >conf$$subs.awk <<_ACEOF" &&
12261 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12262 echo "_ACEOF"
12263 } >conf$$subs.sh ||
12264 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12265 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12266 ac_delim='%!_!# '
12267 for ac_last_try in false false false false false :; do
12268 . ./conf$$subs.sh ||
12269 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12271 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12272 if test $ac_delim_n = $ac_delim_num; then
12273 break
12274 elif $ac_last_try; then
12275 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12276 else
12277 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12279 done
12280 rm -f conf$$subs.sh
12282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12283 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12284 _ACEOF
12285 sed -n '
12287 s/^/S["/; s/!.*/"]=/
12290 s/^[^!]*!//
12291 :repl
12292 t repl
12293 s/'"$ac_delim"'$//
12294 t delim
12297 s/\(.\{148\}\)..*/\1/
12298 t more1
12299 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12302 b repl
12303 :more1
12304 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12307 s/.\{148\}//
12308 t nl
12309 :delim
12311 s/\(.\{148\}\)..*/\1/
12312 t more2
12313 s/["\\]/\\&/g; s/^/"/; s/$/"/
12316 :more2
12317 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12320 s/.\{148\}//
12321 t delim
12322 ' <conf$$subs.awk | sed '
12323 /^[^""]/{
12325 s/\n//
12327 ' >>$CONFIG_STATUS || ac_write_fail=1
12328 rm -f conf$$subs.awk
12329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12330 _ACAWK
12331 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12332 for (key in S) S_is_set[key] = 1
12333 FS = "\a"
12337 line = $ 0
12338 nfields = split(line, field, "@")
12339 substed = 0
12340 len = length(field[1])
12341 for (i = 2; i < nfields; i++) {
12342 key = field[i]
12343 keylen = length(key)
12344 if (S_is_set[key]) {
12345 value = S[key]
12346 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12347 len += length(value) + length(field[++i])
12348 substed = 1
12349 } else
12350 len += 1 + keylen
12353 print line
12356 _ACAWK
12357 _ACEOF
12358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12359 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12360 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12361 else
12363 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12364 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12365 _ACEOF
12367 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12368 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12369 # trailing colons and then remove the whole line if VPATH becomes empty
12370 # (actually we leave an empty line to preserve line numbers).
12371 if test "x$srcdir" = x.; then
12372 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12374 s///
12375 s/^/:/
12376 s/[ ]*$/:/
12377 s/:\$(srcdir):/:/g
12378 s/:\${srcdir}:/:/g
12379 s/:@srcdir@:/:/g
12380 s/^:*//
12381 s/:*$//
12383 s/\(=[ ]*\).*/\1/
12385 s/\n//
12386 s/^[^=]*=[ ]*$//
12390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12391 fi # test -n "$CONFIG_FILES"
12394 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12395 shift
12396 for ac_tag
12398 case $ac_tag in
12399 :[FHLC]) ac_mode=$ac_tag; continue;;
12400 esac
12401 case $ac_mode$ac_tag in
12402 :[FHL]*:*);;
12403 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12404 :[FH]-) ac_tag=-:-;;
12405 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12406 esac
12407 ac_save_IFS=$IFS
12408 IFS=:
12409 set x $ac_tag
12410 IFS=$ac_save_IFS
12411 shift
12412 ac_file=$1
12413 shift
12415 case $ac_mode in
12416 :L) ac_source=$1;;
12417 :[FH])
12418 ac_file_inputs=
12419 for ac_f
12421 case $ac_f in
12422 -) ac_f="$ac_tmp/stdin";;
12423 *) # Look for the file first in the build tree, then in the source tree
12424 # (if the path is not absolute). The absolute path cannot be DOS-style,
12425 # because $ac_f cannot contain `:'.
12426 test -f "$ac_f" ||
12427 case $ac_f in
12428 [\\/$]*) false;;
12429 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12430 esac ||
12431 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12432 esac
12433 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12434 as_fn_append ac_file_inputs " '$ac_f'"
12435 done
12437 # Let's still pretend it is `configure' which instantiates (i.e., don't
12438 # use $as_me), people would be surprised to read:
12439 # /* config.h. Generated by config.status. */
12440 configure_input='Generated from '`
12441 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12442 `' by configure.'
12443 if test x"$ac_file" != x-; then
12444 configure_input="$ac_file. $configure_input"
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12446 $as_echo "$as_me: creating $ac_file" >&6;}
12448 # Neutralize special characters interpreted by sed in replacement strings.
12449 case $configure_input in #(
12450 *\&* | *\|* | *\\* )
12451 ac_sed_conf_input=`$as_echo "$configure_input" |
12452 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12453 *) ac_sed_conf_input=$configure_input;;
12454 esac
12456 case $ac_tag in
12457 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12458 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12459 esac
12461 esac
12463 ac_dir=`$as_dirname -- "$ac_file" ||
12464 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12465 X"$ac_file" : 'X\(//\)[^/]' \| \
12466 X"$ac_file" : 'X\(//\)$' \| \
12467 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12468 $as_echo X"$ac_file" |
12469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12470 s//\1/
12473 /^X\(\/\/\)[^/].*/{
12474 s//\1/
12477 /^X\(\/\/\)$/{
12478 s//\1/
12481 /^X\(\/\).*/{
12482 s//\1/
12485 s/.*/./; q'`
12486 as_dir="$ac_dir"; as_fn_mkdir_p
12487 ac_builddir=.
12489 case "$ac_dir" in
12490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12492 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12493 # A ".." for each directory in $ac_dir_suffix.
12494 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12495 case $ac_top_builddir_sub in
12496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12498 esac ;;
12499 esac
12500 ac_abs_top_builddir=$ac_pwd
12501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12502 # for backward compatibility:
12503 ac_top_builddir=$ac_top_build_prefix
12505 case $srcdir in
12506 .) # We are building in place.
12507 ac_srcdir=.
12508 ac_top_srcdir=$ac_top_builddir_sub
12509 ac_abs_top_srcdir=$ac_pwd ;;
12510 [\\/]* | ?:[\\/]* ) # Absolute name.
12511 ac_srcdir=$srcdir$ac_dir_suffix;
12512 ac_top_srcdir=$srcdir
12513 ac_abs_top_srcdir=$srcdir ;;
12514 *) # Relative name.
12515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12516 ac_top_srcdir=$ac_top_build_prefix$srcdir
12517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12518 esac
12519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12522 case $ac_mode in
12525 # CONFIG_FILE
12528 case $INSTALL in
12529 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12530 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12531 esac
12532 _ACEOF
12534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12535 # If the template does not know about datarootdir, expand it.
12536 # FIXME: This hack should be removed a few years after 2.60.
12537 ac_datarootdir_hack=; ac_datarootdir_seen=
12538 ac_sed_dataroot='
12539 /datarootdir/ {
12543 /@datadir@/p
12544 /@docdir@/p
12545 /@infodir@/p
12546 /@localedir@/p
12547 /@mandir@/p'
12548 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12549 *datarootdir*) ac_datarootdir_seen=yes;;
12550 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12552 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12553 _ACEOF
12554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12555 ac_datarootdir_hack='
12556 s&@datadir@&$datadir&g
12557 s&@docdir@&$docdir&g
12558 s&@infodir@&$infodir&g
12559 s&@localedir@&$localedir&g
12560 s&@mandir@&$mandir&g
12561 s&\\\${datarootdir}&$datarootdir&g' ;;
12562 esac
12563 _ACEOF
12565 # Neutralize VPATH when `$srcdir' = `.'.
12566 # Shell code in configure.ac might set extrasub.
12567 # FIXME: do we really want to maintain this feature?
12568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12569 ac_sed_extra="$ac_vpsub
12570 $extrasub
12571 _ACEOF
12572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12574 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12575 s|@configure_input@|$ac_sed_conf_input|;t t
12576 s&@top_builddir@&$ac_top_builddir_sub&;t t
12577 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12578 s&@srcdir@&$ac_srcdir&;t t
12579 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12580 s&@top_srcdir@&$ac_top_srcdir&;t t
12581 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12582 s&@builddir@&$ac_builddir&;t t
12583 s&@abs_builddir@&$ac_abs_builddir&;t t
12584 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12585 s&@INSTALL@&$ac_INSTALL&;t t
12586 $ac_datarootdir_hack
12588 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12589 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12591 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12592 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12593 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12594 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12596 which seems to be undefined. Please make sure it is defined" >&5
12597 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12598 which seems to be undefined. Please make sure it is defined" >&2;}
12600 rm -f "$ac_tmp/stdin"
12601 case $ac_file in
12602 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12603 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12604 esac \
12605 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12609 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12610 $as_echo "$as_me: executing $ac_file commands" >&6;}
12612 esac
12615 case $ac_file$ac_mode in
12616 "libtool":C)
12618 # See if we are running on zsh, and set the options which allow our
12619 # commands through without removal of \ escapes.
12620 if test -n "${ZSH_VERSION+set}" ; then
12621 setopt NO_GLOB_SUBST
12624 cfgfile="${ofile}T"
12625 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12626 $RM "$cfgfile"
12628 cat <<_LT_EOF >> "$cfgfile"
12629 #! $SHELL
12631 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12632 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12633 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12634 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12636 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12637 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
12638 # Inc.
12639 # Written by Gordon Matzigkeit, 1996
12641 # This file is part of GNU Libtool.
12643 # GNU Libtool is free software; you can redistribute it and/or
12644 # modify it under the terms of the GNU General Public License as
12645 # published by the Free Software Foundation; either version 2 of
12646 # the License, or (at your option) any later version.
12648 # As a special exception to the GNU General Public License,
12649 # if you distribute this file as part of a program or library that
12650 # is built using GNU Libtool, you may include this file under the
12651 # same distribution terms that you use for the rest of that program.
12653 # GNU Libtool is distributed in the hope that it will be useful,
12654 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12655 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12656 # GNU General Public License for more details.
12658 # You should have received a copy of the GNU General Public License
12659 # along with GNU Libtool; see the file COPYING. If not, a copy
12660 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12661 # obtained by writing to the Free Software Foundation, Inc.,
12662 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12665 # The names of the tagged configurations supported by this script.
12666 available_tags=""
12668 # ### BEGIN LIBTOOL CONFIG
12670 # Which release of libtool.m4 was used?
12671 macro_version=$macro_version
12672 macro_revision=$macro_revision
12674 # Assembler program.
12675 AS=$lt_AS
12677 # DLL creation program.
12678 DLLTOOL=$lt_DLLTOOL
12680 # Object dumper program.
12681 OBJDUMP=$lt_OBJDUMP
12683 # Whether or not to build shared libraries.
12684 build_libtool_libs=$enable_shared
12686 # Whether or not to build static libraries.
12687 build_old_libs=$enable_static
12689 # What type of objects to build.
12690 pic_mode=$pic_mode
12692 # Whether or not to optimize for fast installation.
12693 fast_install=$enable_fast_install
12695 # Shell to use when invoking shell scripts.
12696 SHELL=$lt_SHELL
12698 # An echo program that protects backslashes.
12699 ECHO=$lt_ECHO
12701 # The host system.
12702 host_alias=$host_alias
12703 host=$host
12704 host_os=$host_os
12706 # The build system.
12707 build_alias=$build_alias
12708 build=$build
12709 build_os=$build_os
12711 # A sed program that does not truncate output.
12712 SED=$lt_SED
12714 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12715 Xsed="\$SED -e 1s/^X//"
12717 # A grep program that handles long lines.
12718 GREP=$lt_GREP
12720 # An ERE matcher.
12721 EGREP=$lt_EGREP
12723 # A literal string matcher.
12724 FGREP=$lt_FGREP
12726 # A BSD- or MS-compatible name lister.
12727 NM=$lt_NM
12729 # Whether we need soft or hard links.
12730 LN_S=$lt_LN_S
12732 # What is the maximum length of a command?
12733 max_cmd_len=$max_cmd_len
12735 # Object file suffix (normally "o").
12736 objext=$ac_objext
12738 # Executable file suffix (normally "").
12739 exeext=$exeext
12741 # whether the shell understands "unset".
12742 lt_unset=$lt_unset
12744 # turn spaces into newlines.
12745 SP2NL=$lt_lt_SP2NL
12747 # turn newlines into spaces.
12748 NL2SP=$lt_lt_NL2SP
12750 # convert \$build file names to \$host format.
12751 to_host_file_cmd=$lt_cv_to_host_file_cmd
12753 # convert \$build files to toolchain format.
12754 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12756 # Method to check whether dependent libraries are shared objects.
12757 deplibs_check_method=$lt_deplibs_check_method
12759 # Command to use when deplibs_check_method = "file_magic".
12760 file_magic_cmd=$lt_file_magic_cmd
12762 # How to find potential files when deplibs_check_method = "file_magic".
12763 file_magic_glob=$lt_file_magic_glob
12765 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
12766 want_nocaseglob=$lt_want_nocaseglob
12768 # Command to associate shared and link libraries.
12769 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
12771 # The archiver.
12772 AR=$lt_AR
12774 # Flags to create an archive.
12775 AR_FLAGS=$lt_AR_FLAGS
12777 # How to feed a file listing to the archiver.
12778 archiver_list_spec=$lt_archiver_list_spec
12780 # A symbol stripping program.
12781 STRIP=$lt_STRIP
12783 # Commands used to install an old-style archive.
12784 RANLIB=$lt_RANLIB
12785 old_postinstall_cmds=$lt_old_postinstall_cmds
12786 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12788 # Whether to use a lock for old archive extraction.
12789 lock_old_archive_extraction=$lock_old_archive_extraction
12791 # A C compiler.
12792 LTCC=$lt_CC
12794 # LTCC compiler flags.
12795 LTCFLAGS=$lt_CFLAGS
12797 # Take the output of nm and produce a listing of raw symbols and C names.
12798 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12800 # Transform the output of nm in a proper C declaration.
12801 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12803 # Transform the output of nm in a C name address pair.
12804 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12806 # Transform the output of nm in a C name address pair when lib prefix is needed.
12807 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12809 # Specify filename containing input files for \$NM.
12810 nm_file_list_spec=$lt_nm_file_list_spec
12812 # The root where to search for dependent libraries,and in which our libraries should be installed.
12813 lt_sysroot=$lt_sysroot
12815 # The name of the directory that contains temporary libtool files.
12816 objdir=$objdir
12818 # Used to examine libraries when file_magic_cmd begins with "file".
12819 MAGIC_CMD=$MAGIC_CMD
12821 # Must we lock files when doing compilation?
12822 need_locks=$lt_need_locks
12824 # Manifest tool.
12825 MANIFEST_TOOL=$lt_MANIFEST_TOOL
12827 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12828 DSYMUTIL=$lt_DSYMUTIL
12830 # Tool to change global to local symbols on Mac OS X.
12831 NMEDIT=$lt_NMEDIT
12833 # Tool to manipulate fat objects and archives on Mac OS X.
12834 LIPO=$lt_LIPO
12836 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12837 OTOOL=$lt_OTOOL
12839 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12840 OTOOL64=$lt_OTOOL64
12842 # Old archive suffix (normally "a").
12843 libext=$libext
12845 # Shared library suffix (normally ".so").
12846 shrext_cmds=$lt_shrext_cmds
12848 # The commands to extract the exported symbol list from a shared archive.
12849 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12851 # Variables whose values should be saved in libtool wrapper scripts and
12852 # restored at link time.
12853 variables_saved_for_relink=$lt_variables_saved_for_relink
12855 # Do we need the "lib" prefix for modules?
12856 need_lib_prefix=$need_lib_prefix
12858 # Do we need a version for libraries?
12859 need_version=$need_version
12861 # Library versioning type.
12862 version_type=$version_type
12864 # Shared library runtime path variable.
12865 runpath_var=$runpath_var
12867 # Shared library path variable.
12868 shlibpath_var=$shlibpath_var
12870 # Is shlibpath searched before the hard-coded library search path?
12871 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12873 # Format of library name prefix.
12874 libname_spec=$lt_libname_spec
12876 # List of archive names. First name is the real one, the rest are links.
12877 # The last name is the one that the linker finds with -lNAME
12878 library_names_spec=$lt_library_names_spec
12880 # The coded name of the library, if different from the real name.
12881 soname_spec=$lt_soname_spec
12883 # Permission mode override for installation of shared libraries.
12884 install_override_mode=$lt_install_override_mode
12886 # Command to use after installation of a shared archive.
12887 postinstall_cmds=$lt_postinstall_cmds
12889 # Command to use after uninstallation of a shared archive.
12890 postuninstall_cmds=$lt_postuninstall_cmds
12892 # Commands used to finish a libtool library installation in a directory.
12893 finish_cmds=$lt_finish_cmds
12895 # As "finish_cmds", except a single script fragment to be evaled but
12896 # not shown.
12897 finish_eval=$lt_finish_eval
12899 # Whether we should hardcode library paths into libraries.
12900 hardcode_into_libs=$hardcode_into_libs
12902 # Compile-time system search path for libraries.
12903 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12905 # Run-time system search path for libraries.
12906 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12908 # Whether dlopen is supported.
12909 dlopen_support=$enable_dlopen
12911 # Whether dlopen of programs is supported.
12912 dlopen_self=$enable_dlopen_self
12914 # Whether dlopen of statically linked programs is supported.
12915 dlopen_self_static=$enable_dlopen_self_static
12917 # Commands to strip libraries.
12918 old_striplib=$lt_old_striplib
12919 striplib=$lt_striplib
12922 # The linker used to build libraries.
12923 LD=$lt_LD
12925 # How to create reloadable object files.
12926 reload_flag=$lt_reload_flag
12927 reload_cmds=$lt_reload_cmds
12929 # Commands used to build an old-style archive.
12930 old_archive_cmds=$lt_old_archive_cmds
12932 # A language specific compiler.
12933 CC=$lt_compiler
12935 # Is the compiler the GNU compiler?
12936 with_gcc=$GCC
12938 # Compiler flag to turn off builtin functions.
12939 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12941 # Additional compiler flags for building library objects.
12942 pic_flag=$lt_lt_prog_compiler_pic
12944 # How to pass a linker flag through the compiler.
12945 wl=$lt_lt_prog_compiler_wl
12947 # Compiler flag to prevent dynamic linking.
12948 link_static_flag=$lt_lt_prog_compiler_static
12950 # Does compiler simultaneously support -c and -o options?
12951 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12953 # Whether or not to add -lc for building shared libraries.
12954 build_libtool_need_lc=$archive_cmds_need_lc
12956 # Whether or not to disallow shared libs when runtime libs are static.
12957 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12959 # Compiler flag to allow reflexive dlopens.
12960 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12962 # Compiler flag to generate shared objects directly from archives.
12963 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12965 # Whether the compiler copes with passing no objects directly.
12966 compiler_needs_object=$lt_compiler_needs_object
12968 # Create an old-style archive from a shared archive.
12969 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12971 # Create a temporary old-style archive to link instead of a shared archive.
12972 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12974 # Commands used to build a shared archive.
12975 archive_cmds=$lt_archive_cmds
12976 archive_expsym_cmds=$lt_archive_expsym_cmds
12978 # Commands used to build a loadable module if different from building
12979 # a shared archive.
12980 module_cmds=$lt_module_cmds
12981 module_expsym_cmds=$lt_module_expsym_cmds
12983 # Whether we are building with GNU ld or not.
12984 with_gnu_ld=$lt_with_gnu_ld
12986 # Flag that allows shared libraries with undefined symbols to be built.
12987 allow_undefined_flag=$lt_allow_undefined_flag
12989 # Flag that enforces no undefined symbols.
12990 no_undefined_flag=$lt_no_undefined_flag
12992 # Flag to hardcode \$libdir into a binary during linking.
12993 # This must work even if \$libdir does not exist
12994 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12996 # If ld is used when linking, flag to hardcode \$libdir into a binary
12997 # during linking. This must work even if \$libdir does not exist.
12998 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13000 # Whether we need a single "-rpath" flag with a separated argument.
13001 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13003 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13004 # DIR into the resulting binary.
13005 hardcode_direct=$hardcode_direct
13007 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13008 # DIR into the resulting binary and the resulting library dependency is
13009 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13010 # library is relocated.
13011 hardcode_direct_absolute=$hardcode_direct_absolute
13013 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13014 # into the resulting binary.
13015 hardcode_minus_L=$hardcode_minus_L
13017 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13018 # into the resulting binary.
13019 hardcode_shlibpath_var=$hardcode_shlibpath_var
13021 # Set to "yes" if building a shared library automatically hardcodes DIR
13022 # into the library and all subsequent libraries and executables linked
13023 # against it.
13024 hardcode_automatic=$hardcode_automatic
13026 # Set to yes if linker adds runtime paths of dependent libraries
13027 # to runtime path list.
13028 inherit_rpath=$inherit_rpath
13030 # Whether libtool must link a program against all its dependency libraries.
13031 link_all_deplibs=$link_all_deplibs
13033 # Set to "yes" if exported symbols are required.
13034 always_export_symbols=$always_export_symbols
13036 # The commands to list exported symbols.
13037 export_symbols_cmds=$lt_export_symbols_cmds
13039 # Symbols that should not be listed in the preloaded symbols.
13040 exclude_expsyms=$lt_exclude_expsyms
13042 # Symbols that must always be exported.
13043 include_expsyms=$lt_include_expsyms
13045 # Commands necessary for linking programs (against libraries) with templates.
13046 prelink_cmds=$lt_prelink_cmds
13048 # Commands necessary for finishing linking programs.
13049 postlink_cmds=$lt_postlink_cmds
13051 # Specify filename containing input files.
13052 file_list_spec=$lt_file_list_spec
13054 # How to hardcode a shared library path into an executable.
13055 hardcode_action=$hardcode_action
13057 # ### END LIBTOOL CONFIG
13059 _LT_EOF
13061 case $host_os in
13062 aix3*)
13063 cat <<\_LT_EOF >> "$cfgfile"
13064 # AIX sometimes has problems with the GCC collect2 program. For some
13065 # reason, if we set the COLLECT_NAMES environment variable, the problems
13066 # vanish in a puff of smoke.
13067 if test "X${COLLECT_NAMES+set}" != Xset; then
13068 COLLECT_NAMES=
13069 export COLLECT_NAMES
13071 _LT_EOF
13073 esac
13076 ltmain="$ac_aux_dir/ltmain.sh"
13079 # We use sed instead of cat because bash on DJGPP gets confused if
13080 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13081 # text mode, it properly converts lines to CR/LF. This bash problem
13082 # is reportedly fixed, but why not run on old versions too?
13083 sed '$q' "$ltmain" >> "$cfgfile" \
13084 || (rm -f "$cfgfile"; exit 1)
13086 if test x"$xsi_shell" = xyes; then
13087 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13088 func_dirname ()\
13090 \ case ${1} in\
13091 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13092 \ * ) func_dirname_result="${3}" ;;\
13093 \ esac\
13094 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13095 && mv -f "$cfgfile.tmp" "$cfgfile" \
13096 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13097 test 0 -eq $? || _lt_function_replace_fail=:
13100 sed -e '/^func_basename ()$/,/^} # func_basename /c\
13101 func_basename ()\
13103 \ func_basename_result="${1##*/}"\
13104 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13105 && mv -f "$cfgfile.tmp" "$cfgfile" \
13106 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13107 test 0 -eq $? || _lt_function_replace_fail=:
13110 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13111 func_dirname_and_basename ()\
13113 \ case ${1} in\
13114 \ */*) func_dirname_result="${1%/*}${2}" ;;\
13115 \ * ) func_dirname_result="${3}" ;;\
13116 \ esac\
13117 \ func_basename_result="${1##*/}"\
13118 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13119 && mv -f "$cfgfile.tmp" "$cfgfile" \
13120 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13121 test 0 -eq $? || _lt_function_replace_fail=:
13124 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13125 func_stripname ()\
13127 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13128 \ # positional parameters, so assign one to ordinary parameter first.\
13129 \ func_stripname_result=${3}\
13130 \ func_stripname_result=${func_stripname_result#"${1}"}\
13131 \ func_stripname_result=${func_stripname_result%"${2}"}\
13132 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13133 && mv -f "$cfgfile.tmp" "$cfgfile" \
13134 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13135 test 0 -eq $? || _lt_function_replace_fail=:
13138 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13139 func_split_long_opt ()\
13141 \ func_split_long_opt_name=${1%%=*}\
13142 \ func_split_long_opt_arg=${1#*=}\
13143 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13144 && mv -f "$cfgfile.tmp" "$cfgfile" \
13145 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13146 test 0 -eq $? || _lt_function_replace_fail=:
13149 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13150 func_split_short_opt ()\
13152 \ func_split_short_opt_arg=${1#??}\
13153 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13154 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13155 && mv -f "$cfgfile.tmp" "$cfgfile" \
13156 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13157 test 0 -eq $? || _lt_function_replace_fail=:
13160 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13161 func_lo2o ()\
13163 \ case ${1} in\
13164 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13165 \ *) func_lo2o_result=${1} ;;\
13166 \ esac\
13167 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13168 && mv -f "$cfgfile.tmp" "$cfgfile" \
13169 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13170 test 0 -eq $? || _lt_function_replace_fail=:
13173 sed -e '/^func_xform ()$/,/^} # func_xform /c\
13174 func_xform ()\
13176 func_xform_result=${1%.*}.lo\
13177 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13178 && mv -f "$cfgfile.tmp" "$cfgfile" \
13179 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13180 test 0 -eq $? || _lt_function_replace_fail=:
13183 sed -e '/^func_arith ()$/,/^} # func_arith /c\
13184 func_arith ()\
13186 func_arith_result=$(( $* ))\
13187 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13188 && mv -f "$cfgfile.tmp" "$cfgfile" \
13189 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13190 test 0 -eq $? || _lt_function_replace_fail=:
13193 sed -e '/^func_len ()$/,/^} # func_len /c\
13194 func_len ()\
13196 func_len_result=${#1}\
13197 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13198 && mv -f "$cfgfile.tmp" "$cfgfile" \
13199 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13200 test 0 -eq $? || _lt_function_replace_fail=:
13204 if test x"$lt_shell_append" = xyes; then
13205 sed -e '/^func_append ()$/,/^} # func_append /c\
13206 func_append ()\
13208 eval "${1}+=\\${2}"\
13209 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13210 && mv -f "$cfgfile.tmp" "$cfgfile" \
13211 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13212 test 0 -eq $? || _lt_function_replace_fail=:
13215 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13216 func_append_quoted ()\
13218 \ func_quote_for_eval "${2}"\
13219 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13220 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13221 && mv -f "$cfgfile.tmp" "$cfgfile" \
13222 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13223 test 0 -eq $? || _lt_function_replace_fail=:
13226 # Save a `func_append' function call where possible by direct use of '+='
13227 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13228 && mv -f "$cfgfile.tmp" "$cfgfile" \
13229 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13230 test 0 -eq $? || _lt_function_replace_fail=:
13231 else
13232 # Save a `func_append' function call even when '+=' is not available
13233 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13234 && mv -f "$cfgfile.tmp" "$cfgfile" \
13235 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13236 test 0 -eq $? || _lt_function_replace_fail=:
13239 if test x"$_lt_function_replace_fail" = x":"; then
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13241 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13245 mv -f "$cfgfile" "$ofile" ||
13246 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13247 chmod +x "$ofile"
13251 esac
13252 done # for ac_tag
13255 as_fn_exit 0
13256 _ACEOF
13257 ac_clean_files=$ac_clean_files_save
13259 test $ac_write_fail = 0 ||
13260 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13263 # configure is writing to config.log, and then calls config.status.
13264 # config.status does its own redirection, appending to config.log.
13265 # Unfortunately, on DOS this fails, as config.log is still kept open
13266 # by configure, so config.status won't be able to write to it; its
13267 # output is simply discarded. So we exec the FD to /dev/null,
13268 # effectively closing config.log, so it can be properly (re)opened and
13269 # appended to by config.status. When coming back to configure, we
13270 # need to make the FD available again.
13271 if test "$no_create" != yes; then
13272 ac_cs_success=:
13273 ac_config_status_args=
13274 test "$silent" = yes &&
13275 ac_config_status_args="$ac_config_status_args --quiet"
13276 exec 5>/dev/null
13277 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13278 exec 5>>config.log
13279 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13280 # would make configure fail if this is the last instruction.
13281 $ac_cs_success || as_fn_exit 1
13283 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13285 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}