Fix dot dump bug
[official-gcc.git] / zlib / configure
blob32e33e7a6fac8d868626987477a52c0ec8807e0b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
564 ac_unique_file="zlib.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 PICFLAG
606 TARGET_LIBRARY_FALSE
607 TARGET_LIBRARY_TRUE
608 toolexeclibdir
609 toolexecdir
610 target_all
612 OTOOL64
613 OTOOL
614 LIPO
615 NMEDIT
616 DSYMUTIL
617 RANLIB
619 OBJDUMP
620 LN_S
622 ac_ct_DUMPBIN
623 DUMPBIN
625 FGREP
626 EGREP
627 GREP
629 LIBTOOL
630 am__fastdepCC_FALSE
631 am__fastdepCC_TRUE
632 CCDEPMODE
633 AMDEPBACKSLASH
634 AMDEP_FALSE
635 AMDEP_TRUE
636 am__quote
637 am__include
638 DEPDIR
639 OBJEXT
640 EXEEXT
641 ac_ct_CC
642 CPPFLAGS
643 LDFLAGS
644 CFLAGS
646 COMPPATH
647 MAINT
648 MAINTAINER_MODE_FALSE
649 MAINTAINER_MODE_TRUE
650 am__untar
651 am__tar
652 AMTAR
653 am__leading_dot
654 SET_MAKE
656 mkdir_p
657 MKDIR_P
658 INSTALL_STRIP_PROGRAM
659 STRIP
660 install_sh
661 MAKEINFO
662 AUTOHEADER
663 AUTOMAKE
664 AUTOCONF
665 ACLOCAL
666 VERSION
667 PACKAGE
668 CYGPATH_W
669 am__isrc
670 INSTALL_DATA
671 INSTALL_SCRIPT
672 INSTALL_PROGRAM
673 mkinstalldirs
674 target_os
675 target_vendor
676 target_cpu
677 target
678 host_os
679 host_vendor
680 host_cpu
681 host
682 build_os
683 build_vendor
684 build_cpu
685 build
686 multi_basedir
687 target_alias
688 host_alias
689 build_alias
690 LIBS
691 ECHO_T
692 ECHO_N
693 ECHO_C
694 DEFS
695 mandir
696 localedir
697 libdir
698 psdir
699 pdfdir
700 dvidir
701 htmldir
702 infodir
703 docdir
704 oldincludedir
705 includedir
706 localstatedir
707 sharedstatedir
708 sysconfdir
709 datadir
710 datarootdir
711 libexecdir
712 sbindir
713 bindir
714 program_transform_name
715 prefix
716 exec_prefix
717 PACKAGE_URL
718 PACKAGE_BUGREPORT
719 PACKAGE_STRING
720 PACKAGE_VERSION
721 PACKAGE_TARNAME
722 PACKAGE_NAME
723 PATH_SEPARATOR
724 SHELL'
725 ac_subst_files=''
726 ac_user_opts='
727 enable_option_checking
728 enable_multilib
729 enable_maintainer_mode
730 with_target_subdir
731 with_cross_host
732 with_system_zlib
733 enable_dependency_tracking
734 enable_shared
735 enable_static
736 with_pic
737 enable_fast_install
738 with_gnu_ld
739 enable_libtool_lock
740 enable_host_shared
742 ac_precious_vars='build_alias
743 host_alias
744 target_alias
746 CPPFLAGS'
749 # Initialize some variables set by options.
750 ac_init_help=
751 ac_init_version=false
752 ac_unrecognized_opts=
753 ac_unrecognized_sep=
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
797 ac_prev=
798 ac_dashdash=
799 for ac_option
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
817 ac_dashdash=yes ;;
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
836 --config-cache | -C)
837 cache_file=config.cache ;;
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
851 -disable-* | --disable-*)
852 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
855 as_fn_error "invalid feature name: $ac_useropt"
856 ac_useropt_orig=$ac_useropt
857 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858 case $ac_user_opts in
860 "enable_$ac_useropt"
861 "*) ;;
862 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
863 ac_unrecognized_sep=', ';;
864 esac
865 eval enable_$ac_useropt=no ;;
867 -docdir | --docdir | --docdi | --doc | --do)
868 ac_prev=docdir ;;
869 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
870 docdir=$ac_optarg ;;
872 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
873 ac_prev=dvidir ;;
874 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
875 dvidir=$ac_optarg ;;
877 -enable-* | --enable-*)
878 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
879 # Reject names that are not valid shell variable names.
880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
881 as_fn_error "invalid feature name: $ac_useropt"
882 ac_useropt_orig=$ac_useropt
883 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
884 case $ac_user_opts in
886 "enable_$ac_useropt"
887 "*) ;;
888 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
889 ac_unrecognized_sep=', ';;
890 esac
891 eval enable_$ac_useropt=\$ac_optarg ;;
893 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
894 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
895 | --exec | --exe | --ex)
896 ac_prev=exec_prefix ;;
897 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
898 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
899 | --exec=* | --exe=* | --ex=*)
900 exec_prefix=$ac_optarg ;;
902 -gas | --gas | --ga | --g)
903 # Obsolete; use --with-gas.
904 with_gas=yes ;;
906 -help | --help | --hel | --he | -h)
907 ac_init_help=long ;;
908 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
909 ac_init_help=recursive ;;
910 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
911 ac_init_help=short ;;
913 -host | --host | --hos | --ho)
914 ac_prev=host_alias ;;
915 -host=* | --host=* | --hos=* | --ho=*)
916 host_alias=$ac_optarg ;;
918 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
919 ac_prev=htmldir ;;
920 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
921 | --ht=*)
922 htmldir=$ac_optarg ;;
924 -includedir | --includedir | --includedi | --included | --include \
925 | --includ | --inclu | --incl | --inc)
926 ac_prev=includedir ;;
927 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
928 | --includ=* | --inclu=* | --incl=* | --inc=*)
929 includedir=$ac_optarg ;;
931 -infodir | --infodir | --infodi | --infod | --info | --inf)
932 ac_prev=infodir ;;
933 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
934 infodir=$ac_optarg ;;
936 -libdir | --libdir | --libdi | --libd)
937 ac_prev=libdir ;;
938 -libdir=* | --libdir=* | --libdi=* | --libd=*)
939 libdir=$ac_optarg ;;
941 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
942 | --libexe | --libex | --libe)
943 ac_prev=libexecdir ;;
944 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
945 | --libexe=* | --libex=* | --libe=*)
946 libexecdir=$ac_optarg ;;
948 -localedir | --localedir | --localedi | --localed | --locale)
949 ac_prev=localedir ;;
950 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
951 localedir=$ac_optarg ;;
953 -localstatedir | --localstatedir | --localstatedi | --localstated \
954 | --localstate | --localstat | --localsta | --localst | --locals)
955 ac_prev=localstatedir ;;
956 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
957 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
958 localstatedir=$ac_optarg ;;
960 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
961 ac_prev=mandir ;;
962 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
963 mandir=$ac_optarg ;;
965 -nfp | --nfp | --nf)
966 # Obsolete; use --without-fp.
967 with_fp=no ;;
969 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
970 | --no-cr | --no-c | -n)
971 no_create=yes ;;
973 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
974 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
975 no_recursion=yes ;;
977 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
978 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
979 | --oldin | --oldi | --old | --ol | --o)
980 ac_prev=oldincludedir ;;
981 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
982 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
983 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
984 oldincludedir=$ac_optarg ;;
986 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
987 ac_prev=prefix ;;
988 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
989 prefix=$ac_optarg ;;
991 -program-prefix | --program-prefix | --program-prefi | --program-pref \
992 | --program-pre | --program-pr | --program-p)
993 ac_prev=program_prefix ;;
994 -program-prefix=* | --program-prefix=* | --program-prefi=* \
995 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
996 program_prefix=$ac_optarg ;;
998 -program-suffix | --program-suffix | --program-suffi | --program-suff \
999 | --program-suf | --program-su | --program-s)
1000 ac_prev=program_suffix ;;
1001 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1002 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1003 program_suffix=$ac_optarg ;;
1005 -program-transform-name | --program-transform-name \
1006 | --program-transform-nam | --program-transform-na \
1007 | --program-transform-n | --program-transform- \
1008 | --program-transform | --program-transfor \
1009 | --program-transfo | --program-transf \
1010 | --program-trans | --program-tran \
1011 | --progr-tra | --program-tr | --program-t)
1012 ac_prev=program_transform_name ;;
1013 -program-transform-name=* | --program-transform-name=* \
1014 | --program-transform-nam=* | --program-transform-na=* \
1015 | --program-transform-n=* | --program-transform-=* \
1016 | --program-transform=* | --program-transfor=* \
1017 | --program-transfo=* | --program-transf=* \
1018 | --program-trans=* | --program-tran=* \
1019 | --progr-tra=* | --program-tr=* | --program-t=*)
1020 program_transform_name=$ac_optarg ;;
1022 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1023 ac_prev=pdfdir ;;
1024 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1025 pdfdir=$ac_optarg ;;
1027 -psdir | --psdir | --psdi | --psd | --ps)
1028 ac_prev=psdir ;;
1029 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1030 psdir=$ac_optarg ;;
1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033 | -silent | --silent | --silen | --sile | --sil)
1034 silent=yes ;;
1036 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1037 ac_prev=sbindir ;;
1038 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1039 | --sbi=* | --sb=*)
1040 sbindir=$ac_optarg ;;
1042 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1043 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1044 | --sharedst | --shareds | --shared | --share | --shar \
1045 | --sha | --sh)
1046 ac_prev=sharedstatedir ;;
1047 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1048 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1049 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1050 | --sha=* | --sh=*)
1051 sharedstatedir=$ac_optarg ;;
1053 -site | --site | --sit)
1054 ac_prev=site ;;
1055 -site=* | --site=* | --sit=*)
1056 site=$ac_optarg ;;
1058 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1059 ac_prev=srcdir ;;
1060 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1061 srcdir=$ac_optarg ;;
1063 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1064 | --syscon | --sysco | --sysc | --sys | --sy)
1065 ac_prev=sysconfdir ;;
1066 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1067 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1068 sysconfdir=$ac_optarg ;;
1070 -target | --target | --targe | --targ | --tar | --ta | --t)
1071 ac_prev=target_alias ;;
1072 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1073 target_alias=$ac_optarg ;;
1075 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1076 verbose=yes ;;
1078 -version | --version | --versio | --versi | --vers | -V)
1079 ac_init_version=: ;;
1081 -with-* | --with-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error "invalid package name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "with_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval with_$ac_useropt=\$ac_optarg ;;
1097 -without-* | --without-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error "invalid package name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1106 "with_$ac_useropt"
1107 "*) ;;
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1110 esac
1111 eval with_$ac_useropt=no ;;
1113 --x)
1114 # Obsolete; use --with-x.
1115 with_x=yes ;;
1117 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1118 | --x-incl | --x-inc | --x-in | --x-i)
1119 ac_prev=x_includes ;;
1120 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1121 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1122 x_includes=$ac_optarg ;;
1124 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1125 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1126 ac_prev=x_libraries ;;
1127 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1128 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1129 x_libraries=$ac_optarg ;;
1131 -*) as_fn_error "unrecognized option: \`$ac_option'
1132 Try \`$0 --help' for more information."
1135 *=*)
1136 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1137 # Reject names that are not valid shell variable names.
1138 case $ac_envvar in #(
1139 '' | [0-9]* | *[!_$as_cr_alnum]* )
1140 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1141 esac
1142 eval $ac_envvar=\$ac_optarg
1143 export $ac_envvar ;;
1146 # FIXME: should be removed in autoconf 3.0.
1147 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1148 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1149 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1150 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1153 esac
1154 done
1156 if test -n "$ac_prev"; then
1157 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1158 as_fn_error "missing argument to $ac_option"
1161 if test -n "$ac_unrecognized_opts"; then
1162 case $enable_option_checking in
1163 no) ;;
1164 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1165 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1166 esac
1169 # Check all directory arguments for consistency.
1170 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1171 datadir sysconfdir sharedstatedir localstatedir includedir \
1172 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1173 libdir localedir mandir
1175 eval ac_val=\$$ac_var
1176 # Remove trailing slashes.
1177 case $ac_val in
1178 */ )
1179 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1180 eval $ac_var=\$ac_val;;
1181 esac
1182 # Be sure to have absolute directory names.
1183 case $ac_val in
1184 [\\/$]* | ?:[\\/]* ) continue;;
1185 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1186 esac
1187 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1188 done
1190 # There might be people who depend on the old broken behavior: `$host'
1191 # used to hold the argument of --host etc.
1192 # FIXME: To remove some day.
1193 build=$build_alias
1194 host=$host_alias
1195 target=$target_alias
1197 # FIXME: To remove some day.
1198 if test "x$host_alias" != x; then
1199 if test "x$build_alias" = x; then
1200 cross_compiling=maybe
1201 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1202 If a cross compiler is detected then cross compile mode will be used." >&2
1203 elif test "x$build_alias" != "x$host_alias"; then
1204 cross_compiling=yes
1208 ac_tool_prefix=
1209 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211 test "$silent" = yes && exec 6>/dev/null
1214 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di=`ls -di .` &&
1216 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217 as_fn_error "working directory cannot be determined"
1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219 as_fn_error "pwd does not report name of working directory"
1222 # Find the source files, if location was not specified.
1223 if test -z "$srcdir"; then
1224 ac_srcdir_defaulted=yes
1225 # Try the directory containing this script, then the parent directory.
1226 ac_confdir=`$as_dirname -- "$as_myself" ||
1227 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228 X"$as_myself" : 'X\(//\)[^/]' \| \
1229 X"$as_myself" : 'X\(//\)$' \| \
1230 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1231 $as_echo X"$as_myself" |
1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1233 s//\1/
1236 /^X\(\/\/\)[^/].*/{
1237 s//\1/
1240 /^X\(\/\/\)$/{
1241 s//\1/
1244 /^X\(\/\).*/{
1245 s//\1/
1248 s/.*/./; q'`
1249 srcdir=$ac_confdir
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1251 srcdir=..
1253 else
1254 ac_srcdir_defaulted=no
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1258 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1260 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1261 ac_abs_confdir=`(
1262 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1263 pwd)`
1264 # When building in place, set srcdir=.
1265 if test "$ac_abs_confdir" = "$ac_pwd"; then
1266 srcdir=.
1268 # Remove unnecessary trailing slashes from srcdir.
1269 # Double slashes in file names in object file debugging info
1270 # mess up M-x gdb in Emacs.
1271 case $srcdir in
1272 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1273 esac
1274 for ac_var in $ac_precious_vars; do
1275 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1276 eval ac_env_${ac_var}_value=\$${ac_var}
1277 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1279 done
1282 # Report the --help message.
1284 if test "$ac_init_help" = "long"; then
1285 # Omit some internal or obsolete options to make the list less imposing.
1286 # This message is too long to be a string in the A/UX 3.1 sh.
1287 cat <<_ACEOF
1288 \`configure' configures this package to adapt to many kinds of systems.
1290 Usage: $0 [OPTION]... [VAR=VALUE]...
1292 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1293 VAR=VALUE. See below for descriptions of some of the useful variables.
1295 Defaults for the options are specified in brackets.
1297 Configuration:
1298 -h, --help display this help and exit
1299 --help=short display options specific to this package
1300 --help=recursive display the short help of all the included packages
1301 -V, --version display version information and exit
1302 -q, --quiet, --silent do not print \`checking...' messages
1303 --cache-file=FILE cache test results in FILE [disabled]
1304 -C, --config-cache alias for \`--cache-file=config.cache'
1305 -n, --no-create do not create output files
1306 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1308 Installation directories:
1309 --prefix=PREFIX install architecture-independent files in PREFIX
1310 [$ac_default_prefix]
1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1312 [PREFIX]
1314 By default, \`make install' will install all the files in
1315 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1316 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1317 for instance \`--prefix=\$HOME'.
1319 For better control, use the options below.
1321 Fine tuning of the installation directories:
1322 --bindir=DIR user executables [EPREFIX/bin]
1323 --sbindir=DIR system admin executables [EPREFIX/sbin]
1324 --libexecdir=DIR program executables [EPREFIX/libexec]
1325 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1326 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1327 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1328 --libdir=DIR object code libraries [EPREFIX/lib]
1329 --includedir=DIR C header files [PREFIX/include]
1330 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1333 --infodir=DIR info documentation [DATAROOTDIR/info]
1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1335 --mandir=DIR man documentation [DATAROOTDIR/man]
1336 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1337 --htmldir=DIR html documentation [DOCDIR]
1338 --dvidir=DIR dvi documentation [DOCDIR]
1339 --pdfdir=DIR pdf documentation [DOCDIR]
1340 --psdir=DIR ps documentation [DOCDIR]
1341 _ACEOF
1343 cat <<\_ACEOF
1345 Program names:
1346 --program-prefix=PREFIX prepend PREFIX to installed program names
1347 --program-suffix=SUFFIX append SUFFIX to installed program names
1348 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1350 System types:
1351 --build=BUILD configure for building on BUILD [guessed]
1352 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1353 --target=TARGET configure for building compilers for TARGET [HOST]
1354 _ACEOF
1357 if test -n "$ac_init_help"; then
1359 cat <<\_ACEOF
1361 Optional Features:
1362 --disable-option-checking ignore unrecognized --enable/--with options
1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1365 --enable-multilib build many library versions (default)
1366 --enable-maintainer-mode enable make rules and dependencies not useful
1367 (and sometimes confusing) to the casual installer
1368 --disable-dependency-tracking speeds up one-time build
1369 --enable-dependency-tracking do not reject slow dependency extractors
1370 --enable-shared[=PKGS] build shared libraries [default=yes]
1371 --enable-static[=PKGS] build static libraries [default=yes]
1372 --enable-fast-install[=PKGS]
1373 optimize for fast installation [default=yes]
1374 --disable-libtool-lock avoid locking (might break parallel builds)
1375 --enable-host-shared build host code as shared libraries
1377 Optional Packages:
1378 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1379 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1380 --with-target-subdir=SUBDIR
1381 configuring in a subdirectory
1382 --with-cross-host=HOST configuring with a cross compiler
1383 --with-system-zlib use installed libz
1384 --with-pic try to use only PIC/non-PIC objects [default=use
1385 both]
1386 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1388 Some influential environment variables:
1389 CC C compiler command
1390 CFLAGS C compiler flags
1391 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1392 nonstandard directory <lib dir>
1393 LIBS libraries to pass to the linker, e.g. -l<library>
1394 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1395 you have headers in a nonstandard directory <include dir>
1396 CPP C preprocessor
1398 Use these variables to override the choices made by `configure' or to help
1399 it to find libraries and programs with nonstandard names/locations.
1401 Report bugs to the package provider.
1402 _ACEOF
1403 ac_status=$?
1406 if test "$ac_init_help" = "recursive"; then
1407 # If there are subdirs, report their specific --help.
1408 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1409 test -d "$ac_dir" ||
1410 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1411 continue
1412 ac_builddir=.
1414 case "$ac_dir" in
1415 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1418 # A ".." for each directory in $ac_dir_suffix.
1419 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1420 case $ac_top_builddir_sub in
1421 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1423 esac ;;
1424 esac
1425 ac_abs_top_builddir=$ac_pwd
1426 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1427 # for backward compatibility:
1428 ac_top_builddir=$ac_top_build_prefix
1430 case $srcdir in
1431 .) # We are building in place.
1432 ac_srcdir=.
1433 ac_top_srcdir=$ac_top_builddir_sub
1434 ac_abs_top_srcdir=$ac_pwd ;;
1435 [\\/]* | ?:[\\/]* ) # Absolute name.
1436 ac_srcdir=$srcdir$ac_dir_suffix;
1437 ac_top_srcdir=$srcdir
1438 ac_abs_top_srcdir=$srcdir ;;
1439 *) # Relative name.
1440 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1441 ac_top_srcdir=$ac_top_build_prefix$srcdir
1442 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1443 esac
1444 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1446 cd "$ac_dir" || { ac_status=$?; continue; }
1447 # Check for guested configure.
1448 if test -f "$ac_srcdir/configure.gnu"; then
1449 echo &&
1450 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1451 elif test -f "$ac_srcdir/configure"; then
1452 echo &&
1453 $SHELL "$ac_srcdir/configure" --help=recursive
1454 else
1455 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1456 fi || ac_status=$?
1457 cd "$ac_pwd" || { ac_status=$?; break; }
1458 done
1461 test -n "$ac_init_help" && exit $ac_status
1462 if $ac_init_version; then
1463 cat <<\_ACEOF
1464 configure
1465 generated by GNU Autoconf 2.64
1467 Copyright (C) 2009 Free Software Foundation, Inc.
1468 This configure script is free software; the Free Software Foundation
1469 gives unlimited permission to copy, distribute and modify it.
1470 _ACEOF
1471 exit
1474 ## ------------------------ ##
1475 ## Autoconf initialization. ##
1476 ## ------------------------ ##
1478 # ac_fn_c_try_compile LINENO
1479 # --------------------------
1480 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1481 ac_fn_c_try_compile ()
1483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1484 rm -f conftest.$ac_objext
1485 if { { ac_try="$ac_compile"
1486 case "(($ac_try" in
1487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1488 *) ac_try_echo=$ac_try;;
1489 esac
1490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491 $as_echo "$ac_try_echo"; } >&5
1492 (eval "$ac_compile") 2>conftest.err
1493 ac_status=$?
1494 if test -s conftest.err; then
1495 grep -v '^ *+' conftest.err >conftest.er1
1496 cat conftest.er1 >&5
1497 mv -f conftest.er1 conftest.err
1499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500 test $ac_status = 0; } && {
1501 test -z "$ac_c_werror_flag" ||
1502 test ! -s conftest.err
1503 } && test -s conftest.$ac_objext; then :
1504 ac_retval=0
1505 else
1506 $as_echo "$as_me: failed program was:" >&5
1507 sed 's/^/| /' conftest.$ac_ext >&5
1509 ac_retval=1
1511 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1512 return $ac_retval
1514 } # ac_fn_c_try_compile
1516 # ac_fn_c_try_link LINENO
1517 # -----------------------
1518 # Try to link conftest.$ac_ext, and return whether this succeeded.
1519 ac_fn_c_try_link ()
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 rm -f conftest.$ac_objext conftest$ac_exeext
1523 if { { ac_try="$ac_link"
1524 case "(($ac_try" in
1525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526 *) ac_try_echo=$ac_try;;
1527 esac
1528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529 $as_echo "$ac_try_echo"; } >&5
1530 (eval "$ac_link") 2>conftest.err
1531 ac_status=$?
1532 if test -s conftest.err; then
1533 grep -v '^ *+' conftest.err >conftest.er1
1534 cat conftest.er1 >&5
1535 mv -f conftest.er1 conftest.err
1537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538 test $ac_status = 0; } && {
1539 test -z "$ac_c_werror_flag" ||
1540 test ! -s conftest.err
1541 } && test -s conftest$ac_exeext && {
1542 test "$cross_compiling" = yes ||
1543 $as_test_x conftest$ac_exeext
1544 }; then :
1545 ac_retval=0
1546 else
1547 $as_echo "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.$ac_ext >&5
1550 ac_retval=1
1552 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1553 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1554 # interfere with the next link command; also delete a directory that is
1555 # left behind by Apple's compiler. We do this before executing the actions.
1556 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1557 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1558 return $ac_retval
1560 } # ac_fn_c_try_link
1562 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1563 # -------------------------------------------------------
1564 # Tests whether HEADER exists and can be compiled using the include files in
1565 # INCLUDES, setting the cache variable VAR accordingly.
1566 ac_fn_c_check_header_compile ()
1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1570 $as_echo_n "checking for $2... " >&6; }
1571 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1572 $as_echo_n "(cached) " >&6
1573 else
1574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1575 /* end confdefs.h. */
1577 #include <$2>
1578 _ACEOF
1579 if ac_fn_c_try_compile "$LINENO"; then :
1580 eval "$3=yes"
1581 else
1582 eval "$3=no"
1584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1586 eval ac_res=\$$3
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1588 $as_echo "$ac_res" >&6; }
1589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591 } # ac_fn_c_check_header_compile
1593 # ac_fn_c_try_cpp LINENO
1594 # ----------------------
1595 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1596 ac_fn_c_try_cpp ()
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 if { { ac_try="$ac_cpp conftest.$ac_ext"
1600 case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } >/dev/null && {
1615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1616 test ! -s conftest.err
1617 }; then :
1618 ac_retval=0
1619 else
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1623 ac_retval=1
1625 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1626 return $ac_retval
1628 } # ac_fn_c_try_cpp
1630 # ac_fn_c_try_run LINENO
1631 # ----------------------
1632 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1633 # that executables *can* be run.
1634 ac_fn_c_try_run ()
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 if { { ac_try="$ac_link"
1638 case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_link") 2>&5
1645 ac_status=$?
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1648 { { case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651 esac
1652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653 $as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_try") 2>&5
1655 ac_status=$?
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; }; }; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: program exited with status $ac_status" >&5
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1664 ac_retval=$ac_status
1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1668 return $ac_retval
1670 } # ac_fn_c_try_run
1672 # ac_fn_c_check_func LINENO FUNC VAR
1673 # ----------------------------------
1674 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1675 ac_fn_c_check_func ()
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1679 $as_echo_n "checking for $2... " >&6; }
1680 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1681 $as_echo_n "(cached) " >&6
1682 else
1683 if test x$gcc_no_link = xyes; then
1684 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1688 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1690 #define $2 innocuous_$2
1692 /* System header to define __stub macros and hopefully few prototypes,
1693 which can conflict with char $2 (); below.
1694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1695 <limits.h> exists even on freestanding compilers. */
1697 #ifdef __STDC__
1698 # include <limits.h>
1699 #else
1700 # include <assert.h>
1701 #endif
1703 #undef $2
1705 /* Override any GCC internal prototype to avoid an error.
1706 Use char because int might match the return type of a GCC
1707 builtin and then its argument prototype would still apply. */
1708 #ifdef __cplusplus
1709 extern "C"
1710 #endif
1711 char $2 ();
1712 /* The GNU C library defines this for functions which it implements
1713 to always fail with ENOSYS. Some functions are actually named
1714 something starting with __ and the normal name is an alias. */
1715 #if defined __stub_$2 || defined __stub___$2
1716 choke me
1717 #endif
1720 main ()
1722 return $2 ();
1724 return 0;
1726 _ACEOF
1727 if ac_fn_c_try_link "$LINENO"; then :
1728 eval "$3=yes"
1729 else
1730 eval "$3=no"
1732 rm -f core conftest.err conftest.$ac_objext \
1733 conftest$ac_exeext conftest.$ac_ext
1735 eval ac_res=\$$3
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1737 $as_echo "$ac_res" >&6; }
1738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740 } # ac_fn_c_check_func
1742 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1743 # -------------------------------------------------------
1744 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1745 # the include files in INCLUDES and setting the cache variable VAR
1746 # accordingly.
1747 ac_fn_c_check_header_mongrel ()
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752 $as_echo_n "checking for $2... " >&6; }
1753 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1754 $as_echo_n "(cached) " >&6
1756 eval ac_res=\$$3
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1759 else
1760 # Is the header compilable?
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1762 $as_echo_n "checking $2 usability... " >&6; }
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1766 #include <$2>
1767 _ACEOF
1768 if ac_fn_c_try_compile "$LINENO"; then :
1769 ac_header_compiler=yes
1770 else
1771 ac_header_compiler=no
1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1775 $as_echo "$ac_header_compiler" >&6; }
1777 # Is the header present?
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1779 $as_echo_n "checking $2 presence... " >&6; }
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 #include <$2>
1783 _ACEOF
1784 if ac_fn_c_try_cpp "$LINENO"; then :
1785 ac_header_preproc=yes
1786 else
1787 ac_header_preproc=no
1789 rm -f conftest.err conftest.$ac_ext
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1791 $as_echo "$ac_header_preproc" >&6; }
1793 # So? What about this header?
1794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1795 yes:no: )
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1797 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1799 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1801 no:yes:* )
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1803 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1805 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1807 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1809 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1811 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1813 esac
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1817 $as_echo_n "(cached) " >&6
1818 else
1819 eval "$3=\$ac_header_compiler"
1821 eval ac_res=\$$3
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1825 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827 } # ac_fn_c_check_header_mongrel
1828 cat >config.log <<_ACEOF
1829 This file contains any messages produced by compilers while
1830 running configure, to aid debugging if configure makes a mistake.
1832 It was created by $as_me, which was
1833 generated by GNU Autoconf 2.64. Invocation command line was
1835 $ $0 $@
1837 _ACEOF
1838 exec 5>>config.log
1840 cat <<_ASUNAME
1841 ## --------- ##
1842 ## Platform. ##
1843 ## --------- ##
1845 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1846 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1847 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1848 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1849 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1851 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1852 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1854 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1855 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1856 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1857 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1858 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1859 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1860 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1862 _ASUNAME
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 for as_dir in $PATH
1867 IFS=$as_save_IFS
1868 test -z "$as_dir" && as_dir=.
1869 $as_echo "PATH: $as_dir"
1870 done
1871 IFS=$as_save_IFS
1873 } >&5
1875 cat >&5 <<_ACEOF
1878 ## ----------- ##
1879 ## Core tests. ##
1880 ## ----------- ##
1882 _ACEOF
1885 # Keep a trace of the command line.
1886 # Strip out --no-create and --no-recursion so they do not pile up.
1887 # Strip out --silent because we don't want to record it for future runs.
1888 # Also quote any args containing shell meta-characters.
1889 # Make two passes to allow for proper duplicate-argument suppression.
1890 ac_configure_args=
1891 ac_configure_args0=
1892 ac_configure_args1=
1893 ac_must_keep_next=false
1894 for ac_pass in 1 2
1896 for ac_arg
1898 case $ac_arg in
1899 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1900 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1901 | -silent | --silent | --silen | --sile | --sil)
1902 continue ;;
1903 *\'*)
1904 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1905 esac
1906 case $ac_pass in
1907 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1909 as_fn_append ac_configure_args1 " '$ac_arg'"
1910 if test $ac_must_keep_next = true; then
1911 ac_must_keep_next=false # Got value, back to normal.
1912 else
1913 case $ac_arg in
1914 *=* | --config-cache | -C | -disable-* | --disable-* \
1915 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1916 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1917 | -with-* | --with-* | -without-* | --without-* | --x)
1918 case "$ac_configure_args0 " in
1919 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1920 esac
1922 -* ) ac_must_keep_next=true ;;
1923 esac
1925 as_fn_append ac_configure_args " '$ac_arg'"
1927 esac
1928 done
1929 done
1930 { ac_configure_args0=; unset ac_configure_args0;}
1931 { ac_configure_args1=; unset ac_configure_args1;}
1933 # When interrupted or exit'd, cleanup temporary files, and complete
1934 # config.log. We remove comments because anyway the quotes in there
1935 # would cause problems or look ugly.
1936 # WARNING: Use '\'' to represent an apostrophe within the trap.
1937 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1938 trap 'exit_status=$?
1939 # Save into config.log some information that might help in debugging.
1941 echo
1943 cat <<\_ASBOX
1944 ## ---------------- ##
1945 ## Cache variables. ##
1946 ## ---------------- ##
1947 _ASBOX
1948 echo
1949 # The following way of writing the cache mishandles newlines in values,
1951 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1952 eval ac_val=\$$ac_var
1953 case $ac_val in #(
1954 *${as_nl}*)
1955 case $ac_var in #(
1956 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1957 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1958 esac
1959 case $ac_var in #(
1960 _ | IFS | as_nl) ;; #(
1961 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1962 *) { eval $ac_var=; unset $ac_var;} ;;
1963 esac ;;
1964 esac
1965 done
1966 (set) 2>&1 |
1967 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1968 *${as_nl}ac_space=\ *)
1969 sed -n \
1970 "s/'\''/'\''\\\\'\'''\''/g;
1971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1972 ;; #(
1974 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1976 esac |
1977 sort
1979 echo
1981 cat <<\_ASBOX
1982 ## ----------------- ##
1983 ## Output variables. ##
1984 ## ----------------- ##
1985 _ASBOX
1986 echo
1987 for ac_var in $ac_subst_vars
1989 eval ac_val=\$$ac_var
1990 case $ac_val in
1991 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1992 esac
1993 $as_echo "$ac_var='\''$ac_val'\''"
1994 done | sort
1995 echo
1997 if test -n "$ac_subst_files"; then
1998 cat <<\_ASBOX
1999 ## ------------------- ##
2000 ## File substitutions. ##
2001 ## ------------------- ##
2002 _ASBOX
2003 echo
2004 for ac_var in $ac_subst_files
2006 eval ac_val=\$$ac_var
2007 case $ac_val in
2008 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2009 esac
2010 $as_echo "$ac_var='\''$ac_val'\''"
2011 done | sort
2012 echo
2015 if test -s confdefs.h; then
2016 cat <<\_ASBOX
2017 ## ----------- ##
2018 ## confdefs.h. ##
2019 ## ----------- ##
2020 _ASBOX
2021 echo
2022 cat confdefs.h
2023 echo
2025 test "$ac_signal" != 0 &&
2026 $as_echo "$as_me: caught signal $ac_signal"
2027 $as_echo "$as_me: exit $exit_status"
2028 } >&5
2029 rm -f core *.core core.conftest.* &&
2030 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2031 exit $exit_status
2033 for ac_signal in 1 2 13 15; do
2034 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2035 done
2036 ac_signal=0
2038 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2039 rm -f -r conftest* confdefs.h
2041 $as_echo "/* confdefs.h */" > confdefs.h
2043 # Predefined preprocessor variables.
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_NAME "$PACKAGE_NAME"
2047 _ACEOF
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2051 _ACEOF
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2055 _ACEOF
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_STRING "$PACKAGE_STRING"
2059 _ACEOF
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2063 _ACEOF
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_URL "$PACKAGE_URL"
2067 _ACEOF
2070 # Let the site file select an alternate cache file if it wants to.
2071 # Prefer an explicitly selected file to automatically selected ones.
2072 ac_site_file1=NONE
2073 ac_site_file2=NONE
2074 if test -n "$CONFIG_SITE"; then
2075 ac_site_file1=$CONFIG_SITE
2076 elif test "x$prefix" != xNONE; then
2077 ac_site_file1=$prefix/share/config.site
2078 ac_site_file2=$prefix/etc/config.site
2079 else
2080 ac_site_file1=$ac_default_prefix/share/config.site
2081 ac_site_file2=$ac_default_prefix/etc/config.site
2083 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2085 test "x$ac_site_file" = xNONE && continue
2086 if test -r "$ac_site_file"; then
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2088 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2089 sed 's/^/| /' "$ac_site_file" >&5
2090 . "$ac_site_file"
2092 done
2094 if test -r "$cache_file"; then
2095 # Some versions of bash will fail to source /dev/null (special
2096 # files actually), so we avoid doing that.
2097 if test -f "$cache_file"; then
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2099 $as_echo "$as_me: loading cache $cache_file" >&6;}
2100 case $cache_file in
2101 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2102 *) . "./$cache_file";;
2103 esac
2105 else
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2107 $as_echo "$as_me: creating cache $cache_file" >&6;}
2108 >$cache_file
2111 # Check that the precious variables saved in the cache have kept the same
2112 # value.
2113 ac_cache_corrupted=false
2114 for ac_var in $ac_precious_vars; do
2115 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2116 eval ac_new_set=\$ac_env_${ac_var}_set
2117 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2118 eval ac_new_val=\$ac_env_${ac_var}_value
2119 case $ac_old_set,$ac_new_set in
2120 set,)
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2122 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2123 ac_cache_corrupted=: ;;
2124 ,set)
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2126 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2127 ac_cache_corrupted=: ;;
2128 ,);;
2130 if test "x$ac_old_val" != "x$ac_new_val"; then
2131 # differences in whitespace do not lead to failure.
2132 ac_old_val_w=`echo x $ac_old_val`
2133 ac_new_val_w=`echo x $ac_new_val`
2134 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2136 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2137 ac_cache_corrupted=:
2138 else
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2140 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2141 eval $ac_var=\$ac_old_val
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2144 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2146 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2147 fi;;
2148 esac
2149 # Pass precious variables to config.status.
2150 if test "$ac_new_set" = set; then
2151 case $ac_new_val in
2152 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2153 *) ac_arg=$ac_var=$ac_new_val ;;
2154 esac
2155 case " $ac_configure_args " in
2156 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2157 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2158 esac
2160 done
2161 if $ac_cache_corrupted; then
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2165 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2166 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2168 ## -------------------- ##
2169 ## Main body of script. ##
2170 ## -------------------- ##
2172 ac_ext=c
2173 ac_cpp='$CPP $CPPFLAGS'
2174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2184 # Default to --enable-multilib
2185 # Check whether --enable-multilib was given.
2186 if test "${enable_multilib+set}" = set; then :
2187 enableval=$enable_multilib; case "$enableval" in
2188 yes) multilib=yes ;;
2189 no) multilib=no ;;
2190 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2191 esac
2192 else
2193 multilib=yes
2197 # We may get other options which we leave undocumented:
2198 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2199 # See config-ml.in if you want the gory details.
2201 if test "$srcdir" = "."; then
2202 if test "$with_target_subdir" != "."; then
2203 multi_basedir="$srcdir/$with_multisrctop../.."
2204 else
2205 multi_basedir="$srcdir/$with_multisrctop.."
2207 else
2208 multi_basedir="$srcdir/.."
2212 # Even if the default multilib is not a cross compilation,
2213 # it may be that some of the other multilibs are.
2214 if test $cross_compiling = no && test $multilib = yes \
2215 && test "x${with_multisubdir}" != x ; then
2216 cross_compiling=maybe
2219 ac_config_commands="$ac_config_commands default-1"
2222 ac_aux_dir=
2223 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2224 for ac_t in install-sh install.sh shtool; do
2225 if test -f "$ac_dir/$ac_t"; then
2226 ac_aux_dir=$ac_dir
2227 ac_install_sh="$ac_aux_dir/$ac_t -c"
2228 break 2
2230 done
2231 done
2232 if test -z "$ac_aux_dir"; then
2233 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2236 # These three variables are undocumented and unsupported,
2237 # and are intended to be withdrawn in a future Autoconf release.
2238 # They can cause serious problems if a builder's source tree is in a directory
2239 # whose full name contains unusual characters.
2240 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2241 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2242 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2245 # Make sure we can run config.sub.
2246 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2247 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2250 $as_echo_n "checking build system type... " >&6; }
2251 if test "${ac_cv_build+set}" = set; then :
2252 $as_echo_n "(cached) " >&6
2253 else
2254 ac_build_alias=$build_alias
2255 test "x$ac_build_alias" = x &&
2256 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2257 test "x$ac_build_alias" = x &&
2258 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2259 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2260 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2264 $as_echo "$ac_cv_build" >&6; }
2265 case $ac_cv_build in
2266 *-*-*) ;;
2267 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2268 esac
2269 build=$ac_cv_build
2270 ac_save_IFS=$IFS; IFS='-'
2271 set x $ac_cv_build
2272 shift
2273 build_cpu=$1
2274 build_vendor=$2
2275 shift; shift
2276 # Remember, the first character of IFS is used to create $*,
2277 # except with old shells:
2278 build_os=$*
2279 IFS=$ac_save_IFS
2280 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2284 $as_echo_n "checking host system type... " >&6; }
2285 if test "${ac_cv_host+set}" = set; then :
2286 $as_echo_n "(cached) " >&6
2287 else
2288 if test "x$host_alias" = x; then
2289 ac_cv_host=$ac_cv_build
2290 else
2291 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2292 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2297 $as_echo "$ac_cv_host" >&6; }
2298 case $ac_cv_host in
2299 *-*-*) ;;
2300 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2301 esac
2302 host=$ac_cv_host
2303 ac_save_IFS=$IFS; IFS='-'
2304 set x $ac_cv_host
2305 shift
2306 host_cpu=$1
2307 host_vendor=$2
2308 shift; shift
2309 # Remember, the first character of IFS is used to create $*,
2310 # except with old shells:
2311 host_os=$*
2312 IFS=$ac_save_IFS
2313 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2317 $as_echo_n "checking target system type... " >&6; }
2318 if test "${ac_cv_target+set}" = set; then :
2319 $as_echo_n "(cached) " >&6
2320 else
2321 if test "x$target_alias" = x; then
2322 ac_cv_target=$ac_cv_host
2323 else
2324 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2325 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2330 $as_echo "$ac_cv_target" >&6; }
2331 case $ac_cv_target in
2332 *-*-*) ;;
2333 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2334 esac
2335 target=$ac_cv_target
2336 ac_save_IFS=$IFS; IFS='-'
2337 set x $ac_cv_target
2338 shift
2339 target_cpu=$1
2340 target_vendor=$2
2341 shift; shift
2342 # Remember, the first character of IFS is used to create $*,
2343 # except with old shells:
2344 target_os=$*
2345 IFS=$ac_save_IFS
2346 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2349 # The aliases save the names the user supplied, while $host etc.
2350 # will get canonicalized.
2351 test -n "$target_alias" &&
2352 test "$program_prefix$program_suffix$program_transform_name" = \
2353 NONENONEs,x,x, &&
2354 program_prefix=${target_alias}-
2357 # This works around an automake problem.
2358 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
2361 am__api_version='1.11'
2363 # Find a good install program. We prefer a C program (faster),
2364 # so one script is as good as another. But avoid the broken or
2365 # incompatible versions:
2366 # SysV /etc/install, /usr/sbin/install
2367 # SunOS /usr/etc/install
2368 # IRIX /sbin/install
2369 # AIX /bin/install
2370 # AmigaOS /C/install, which installs bootblocks on floppy discs
2371 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2372 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2373 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2374 # OS/2's system install, which has a completely different semantic
2375 # ./install, which can be erroneously created by make from ./install.sh.
2376 # Reject install programs that cannot install multiple files.
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2378 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2379 if test -z "$INSTALL"; then
2380 if test "${ac_cv_path_install+set}" = set; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 # Account for people who put trailing slashes in PATH elements.
2389 case $as_dir/ in #((
2390 ./ | .// | /[cC]/* | \
2391 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2392 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2393 /usr/ucb/* ) ;;
2395 # OSF1 and SCO ODT 3.0 have their own names for install.
2396 # Don't use installbsd from OSF since it installs stuff as root
2397 # by default.
2398 for ac_prog in ginstall scoinst install; do
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2401 if test $ac_prog = install &&
2402 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2403 # AIX install. It has an incompatible calling convention.
2405 elif test $ac_prog = install &&
2406 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2407 # program-specific install script used by HP pwplus--don't use.
2409 else
2410 rm -rf conftest.one conftest.two conftest.dir
2411 echo one > conftest.one
2412 echo two > conftest.two
2413 mkdir conftest.dir
2414 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2415 test -s conftest.one && test -s conftest.two &&
2416 test -s conftest.dir/conftest.one &&
2417 test -s conftest.dir/conftest.two
2418 then
2419 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2420 break 3
2424 done
2425 done
2427 esac
2429 done
2430 IFS=$as_save_IFS
2432 rm -rf conftest.one conftest.two conftest.dir
2435 if test "${ac_cv_path_install+set}" = set; then
2436 INSTALL=$ac_cv_path_install
2437 else
2438 # As a last resort, use the slow shell script. Don't cache a
2439 # value for INSTALL within a source directory, because that will
2440 # break other packages using the cache if that directory is
2441 # removed, or if the value is a relative name.
2442 INSTALL=$ac_install_sh
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2446 $as_echo "$INSTALL" >&6; }
2448 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2449 # It thinks the first close brace ends the variable substitution.
2450 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2452 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2454 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2457 $as_echo_n "checking whether build environment is sane... " >&6; }
2458 # Just in case
2459 sleep 1
2460 echo timestamp > conftest.file
2461 # Reject unsafe characters in $srcdir or the absolute working directory
2462 # name. Accept space and tab only in the latter.
2463 am_lf='
2465 case `pwd` in
2466 *[\\\"\#\$\&\'\`$am_lf]*)
2467 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2468 esac
2469 case $srcdir in
2470 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2471 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2472 esac
2474 # Do `set' in a subshell so we don't clobber the current shell's
2475 # arguments. Must try -L first in case configure is actually a
2476 # symlink; some systems play weird games with the mod time of symlinks
2477 # (eg FreeBSD returns the mod time of the symlink's containing
2478 # directory).
2479 if (
2480 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2481 if test "$*" = "X"; then
2482 # -L didn't work.
2483 set X `ls -t "$srcdir/configure" conftest.file`
2485 rm -f conftest.file
2486 if test "$*" != "X $srcdir/configure conftest.file" \
2487 && test "$*" != "X conftest.file $srcdir/configure"; then
2489 # If neither matched, then we have a broken ls. This can happen
2490 # if, for instance, CONFIG_SHELL is bash and it inherits a
2491 # broken ls alias from the environment. This has actually
2492 # happened. Such a system could not be considered "sane".
2493 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2494 alias in your environment" "$LINENO" 5
2497 test "$2" = conftest.file
2499 then
2500 # Ok.
2502 else
2503 as_fn_error "newly created file is older than distributed files!
2504 Check your system clock" "$LINENO" 5
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2507 $as_echo "yes" >&6; }
2508 test "$program_prefix" != NONE &&
2509 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2510 # Use a double $ so make ignores it.
2511 test "$program_suffix" != NONE &&
2512 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2513 # Double any \ or $.
2514 # By default was `s,x,x', remove it if useless.
2515 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2516 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2518 # expand $ac_aux_dir to an absolute path
2519 am_aux_dir=`cd $ac_aux_dir && pwd`
2521 if test x"${MISSING+set}" != xset; then
2522 case $am_aux_dir in
2523 *\ * | *\ *)
2524 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2526 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2527 esac
2529 # Use eval to expand $SHELL
2530 if eval "$MISSING --run true"; then
2531 am_missing_run="$MISSING --run "
2532 else
2533 am_missing_run=
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2535 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2538 if test x"${install_sh}" != xset; then
2539 case $am_aux_dir in
2540 *\ * | *\ *)
2541 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2543 install_sh="\${SHELL} $am_aux_dir/install-sh"
2544 esac
2547 # Installed binaries are usually stripped using `strip' when the user
2548 # run `make install-strip'. However `strip' might not be the right
2549 # tool to use in cross-compilation environments, therefore Automake
2550 # will honor the `STRIP' environment variable to overrule this program.
2551 if test "$cross_compiling" != no; then
2552 if test -n "$ac_tool_prefix"; then
2553 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2554 set dummy ${ac_tool_prefix}strip; ac_word=$2
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556 $as_echo_n "checking for $ac_word... " >&6; }
2557 if test "${ac_cv_prog_STRIP+set}" = set; then :
2558 $as_echo_n "(cached) " >&6
2559 else
2560 if test -n "$STRIP"; then
2561 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2566 IFS=$as_save_IFS
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2572 break 2
2574 done
2575 done
2576 IFS=$as_save_IFS
2580 STRIP=$ac_cv_prog_STRIP
2581 if test -n "$STRIP"; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2583 $as_echo "$STRIP" >&6; }
2584 else
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586 $as_echo "no" >&6; }
2591 if test -z "$ac_cv_prog_STRIP"; then
2592 ac_ct_STRIP=$STRIP
2593 # Extract the first word of "strip", so it can be a program name with args.
2594 set dummy strip; ac_word=$2
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2596 $as_echo_n "checking for $ac_word... " >&6; }
2597 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2598 $as_echo_n "(cached) " >&6
2599 else
2600 if test -n "$ac_ct_STRIP"; then
2601 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610 ac_cv_prog_ac_ct_STRIP="strip"
2611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 break 2
2614 done
2615 done
2616 IFS=$as_save_IFS
2620 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2621 if test -n "$ac_ct_STRIP"; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2623 $as_echo "$ac_ct_STRIP" >&6; }
2624 else
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2626 $as_echo "no" >&6; }
2629 if test "x$ac_ct_STRIP" = x; then
2630 STRIP=":"
2631 else
2632 case $cross_compiling:$ac_tool_warned in
2633 yes:)
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2636 ac_tool_warned=yes ;;
2637 esac
2638 STRIP=$ac_ct_STRIP
2640 else
2641 STRIP="$ac_cv_prog_STRIP"
2645 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2648 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2649 if test -z "$MKDIR_P"; then
2650 if test "${ac_cv_path_mkdir+set}" = set; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_prog in mkdir gmkdir; do
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2661 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2662 'mkdir (GNU coreutils) '* | \
2663 'mkdir (coreutils) '* | \
2664 'mkdir (fileutils) '4.1*)
2665 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2666 break 3;;
2667 esac
2668 done
2669 done
2670 done
2671 IFS=$as_save_IFS
2675 if test "${ac_cv_path_mkdir+set}" = set; then
2676 MKDIR_P="$ac_cv_path_mkdir -p"
2677 else
2678 # As a last resort, use the slow shell script. Don't cache a
2679 # value for MKDIR_P within a source directory, because that will
2680 # break other packages using the cache if that directory is
2681 # removed, or if the value is a relative name.
2682 test -d ./--version && rmdir ./--version
2683 MKDIR_P="$ac_install_sh -d"
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2687 $as_echo "$MKDIR_P" >&6; }
2689 mkdir_p="$MKDIR_P"
2690 case $mkdir_p in
2691 [\\/$]* | ?:[\\/]*) ;;
2692 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2693 esac
2695 for ac_prog in gawk mawk nawk awk
2697 # Extract the first word of "$ac_prog", so it can be a program name with args.
2698 set dummy $ac_prog; ac_word=$2
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if test "${ac_cv_prog_AWK+set}" = set; then :
2702 $as_echo_n "(cached) " >&6
2703 else
2704 if test -n "$AWK"; then
2705 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2710 IFS=$as_save_IFS
2711 test -z "$as_dir" && as_dir=.
2712 for ac_exec_ext in '' $ac_executable_extensions; do
2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714 ac_cv_prog_AWK="$ac_prog"
2715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 break 2
2718 done
2719 done
2720 IFS=$as_save_IFS
2724 AWK=$ac_cv_prog_AWK
2725 if test -n "$AWK"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2727 $as_echo "$AWK" >&6; }
2728 else
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2730 $as_echo "no" >&6; }
2734 test -n "$AWK" && break
2735 done
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2738 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2739 set x ${MAKE-make}
2740 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2741 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2742 $as_echo_n "(cached) " >&6
2743 else
2744 cat >conftest.make <<\_ACEOF
2745 SHELL = /bin/sh
2746 all:
2747 @echo '@@@%%%=$(MAKE)=@@@%%%'
2748 _ACEOF
2749 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2750 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2751 *@@@%%%=?*=@@@%%%*)
2752 eval ac_cv_prog_make_${ac_make}_set=yes;;
2754 eval ac_cv_prog_make_${ac_make}_set=no;;
2755 esac
2756 rm -f conftest.make
2758 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2760 $as_echo "yes" >&6; }
2761 SET_MAKE=
2762 else
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2765 SET_MAKE="MAKE=${MAKE-make}"
2768 rm -rf .tst 2>/dev/null
2769 mkdir .tst 2>/dev/null
2770 if test -d .tst; then
2771 am__leading_dot=.
2772 else
2773 am__leading_dot=_
2775 rmdir .tst 2>/dev/null
2777 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2778 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2779 # is not polluted with repeated "-I."
2780 am__isrc=' -I$(srcdir)'
2781 # test to see if srcdir already configured
2782 if test -f $srcdir/config.status; then
2783 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2787 # test whether we have cygpath
2788 if test -z "$CYGPATH_W"; then
2789 if (cygpath --version) >/dev/null 2>/dev/null; then
2790 CYGPATH_W='cygpath -w'
2791 else
2792 CYGPATH_W=echo
2797 # Define the identity of the package.
2798 PACKAGE=zlib
2799 VERSION=1.1.4
2802 cat >>confdefs.h <<_ACEOF
2803 #define PACKAGE "$PACKAGE"
2804 _ACEOF
2807 cat >>confdefs.h <<_ACEOF
2808 #define VERSION "$VERSION"
2809 _ACEOF
2811 # Some tools Automake needs.
2813 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2816 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2819 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2822 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2825 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2827 # We need awk for the "check" target. The system "awk" is bad on
2828 # some platforms.
2829 # Always define AMTAR for backward compatibility.
2831 AMTAR=${AMTAR-"${am_missing_run}tar"}
2833 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2842 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2843 # Check whether --enable-maintainer-mode was given.
2844 if test "${enable_maintainer_mode+set}" = set; then :
2845 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2846 else
2847 USE_MAINTAINER_MODE=no
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2851 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2852 if test $USE_MAINTAINER_MODE = yes; then
2853 MAINTAINER_MODE_TRUE=
2854 MAINTAINER_MODE_FALSE='#'
2855 else
2856 MAINTAINER_MODE_TRUE='#'
2857 MAINTAINER_MODE_FALSE=
2860 MAINT=$MAINTAINER_MODE_TRUE
2865 # Check whether --with-target-subdir was given.
2866 if test "${with_target_subdir+set}" = set; then :
2867 withval=$with_target_subdir;
2871 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2872 COMPPATH=.
2873 else
2874 COMPPATH=..
2879 # Check whether --with-cross-host was given.
2880 if test "${with_cross_host+set}" = set; then :
2881 withval=$with_cross_host;
2885 # Check whether --enable-multilib was given.
2886 if test "${enable_multilib+set}" = set; then :
2887 enableval=$enable_multilib; case "${enableval}" in
2888 yes) multilib=yes ;;
2889 no) multilib=no ;;
2890 *) as_fn_error "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
2891 esac
2892 else
2893 test -z "$with_target_subdir" && multilib=no || multilib=yes
2897 # Check whether --with-system-zlib was given.
2898 if test "${with_system_zlib+set}" = set; then :
2899 withval=$with_system_zlib;
2903 # Make sure we don't test executables when making cross-tools.
2906 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2907 # We must force CC to /not/ be precious variables; otherwise
2908 # the wrong, non-multilib-adjusted value will be used in multilibs.
2909 # As a side effect, we have to subst CFLAGS ourselves.
2913 ac_ext=c
2914 ac_cpp='$CPP $CPPFLAGS'
2915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918 if test -n "$ac_tool_prefix"; then
2919 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2920 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922 $as_echo_n "checking for $ac_word... " >&6; }
2923 if test "${ac_cv_prog_CC+set}" = set; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 if test -n "$CC"; then
2927 ac_cv_prog_CC="$CC" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2940 done
2941 done
2942 IFS=$as_save_IFS
2946 CC=$ac_cv_prog_CC
2947 if test -n "$CC"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2949 $as_echo "$CC" >&6; }
2950 else
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 $as_echo "no" >&6; }
2957 if test -z "$ac_cv_prog_CC"; then
2958 ac_ct_CC=$CC
2959 # Extract the first word of "gcc", so it can be a program name with args.
2960 set dummy gcc; ac_word=$2
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962 $as_echo_n "checking for $ac_word... " >&6; }
2963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2964 $as_echo_n "(cached) " >&6
2965 else
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976 ac_cv_prog_ac_ct_CC="gcc"
2977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2980 done
2981 done
2982 IFS=$as_save_IFS
2986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2987 if test -n "$ac_ct_CC"; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2989 $as_echo "$ac_ct_CC" >&6; }
2990 else
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992 $as_echo "no" >&6; }
2995 if test "x$ac_ct_CC" = x; then
2996 CC=""
2997 else
2998 case $cross_compiling:$ac_tool_warned in
2999 yes:)
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3002 ac_tool_warned=yes ;;
3003 esac
3004 CC=$ac_ct_CC
3006 else
3007 CC="$ac_cv_prog_CC"
3010 if test -z "$CC"; then
3011 if test -n "$ac_tool_prefix"; then
3012 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3013 set dummy ${ac_tool_prefix}cc; ac_word=$2
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 $as_echo_n "checking for $ac_word... " >&6; }
3016 if test "${ac_cv_prog_CC+set}" = set; then :
3017 $as_echo_n "(cached) " >&6
3018 else
3019 if test -n "$CC"; then
3020 ac_cv_prog_CC="$CC" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
3027 for ac_exec_ext in '' $ac_executable_extensions; do
3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029 ac_cv_prog_CC="${ac_tool_prefix}cc"
3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 break 2
3033 done
3034 done
3035 IFS=$as_save_IFS
3039 CC=$ac_cv_prog_CC
3040 if test -n "$CC"; then
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3042 $as_echo "$CC" >&6; }
3043 else
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3051 if test -z "$CC"; then
3052 # Extract the first word of "cc", so it can be a program name with args.
3053 set dummy cc; ac_word=$2
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if test "${ac_cv_prog_CC+set}" = set; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 if test -n "$CC"; then
3060 ac_cv_prog_CC="$CC" # Let the user override the test.
3061 else
3062 ac_prog_rejected=no
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3071 ac_prog_rejected=yes
3072 continue
3074 ac_cv_prog_CC="cc"
3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3078 done
3079 done
3080 IFS=$as_save_IFS
3082 if test $ac_prog_rejected = yes; then
3083 # We found a bogon in the path, so make sure we never use it.
3084 set dummy $ac_cv_prog_CC
3085 shift
3086 if test $# != 0; then
3087 # We chose a different compiler from the bogus one.
3088 # However, it has the same basename, so the bogon will be chosen
3089 # first if we set CC to just the basename; use the full file name.
3090 shift
3091 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3096 CC=$ac_cv_prog_CC
3097 if test -n "$CC"; then
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3099 $as_echo "$CC" >&6; }
3100 else
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3107 if test -z "$CC"; then
3108 if test -n "$ac_tool_prefix"; then
3109 for ac_prog in cl.exe
3111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if test "${ac_cv_prog_CC+set}" = set; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 if test -n "$CC"; then
3119 ac_cv_prog_CC="$CC" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3124 IFS=$as_save_IFS
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3128 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 break 2
3132 done
3133 done
3134 IFS=$as_save_IFS
3138 CC=$ac_cv_prog_CC
3139 if test -n "$CC"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3141 $as_echo "$CC" >&6; }
3142 else
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3148 test -n "$CC" && break
3149 done
3151 if test -z "$CC"; then
3152 ac_ct_CC=$CC
3153 for ac_prog in cl.exe
3155 # Extract the first word of "$ac_prog", so it can be a program name with args.
3156 set dummy $ac_prog; ac_word=$2
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158 $as_echo_n "checking for $ac_word... " >&6; }
3159 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3160 $as_echo_n "(cached) " >&6
3161 else
3162 if test -n "$ac_ct_CC"; then
3163 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3168 IFS=$as_save_IFS
3169 test -z "$as_dir" && as_dir=.
3170 for ac_exec_ext in '' $ac_executable_extensions; do
3171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3172 ac_cv_prog_ac_ct_CC="$ac_prog"
3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174 break 2
3176 done
3177 done
3178 IFS=$as_save_IFS
3182 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3183 if test -n "$ac_ct_CC"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3185 $as_echo "$ac_ct_CC" >&6; }
3186 else
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188 $as_echo "no" >&6; }
3192 test -n "$ac_ct_CC" && break
3193 done
3195 if test "x$ac_ct_CC" = x; then
3196 CC=""
3197 else
3198 case $cross_compiling:$ac_tool_warned in
3199 yes:)
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3202 ac_tool_warned=yes ;;
3203 esac
3204 CC=$ac_ct_CC
3211 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213 as_fn_error "no acceptable C compiler found in \$PATH
3214 See \`config.log' for more details." "$LINENO" 5; }
3216 # Provide some information about the compiler.
3217 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3218 set X $ac_compile
3219 ac_compiler=$2
3220 for ac_option in --version -v -V -qversion; do
3221 { { ac_try="$ac_compiler $ac_option >&5"
3222 case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225 esac
3226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3227 $as_echo "$ac_try_echo"; } >&5
3228 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3229 ac_status=$?
3230 if test -s conftest.err; then
3231 sed '10a\
3232 ... rest of stderr output deleted ...
3233 10q' conftest.err >conftest.er1
3234 cat conftest.er1 >&5
3235 rm -f conftest.er1 conftest.err
3237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3238 test $ac_status = 0; }
3239 done
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h. */
3245 main ()
3249 return 0;
3251 _ACEOF
3252 # FIXME: Cleanup?
3253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3254 (eval $ac_link) 2>&5
3255 ac_status=$?
3256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257 test $ac_status = 0; }; then :
3258 gcc_no_link=no
3259 else
3260 gcc_no_link=yes
3262 if test x$gcc_no_link = xyes; then
3263 # Setting cross_compile will disable run tests; it will
3264 # also disable AC_CHECK_FILE but that's generally
3265 # correct if we can't link.
3266 cross_compiling=yes
3267 EXEEXT=
3268 else
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3273 main ()
3277 return 0;
3279 _ACEOF
3280 ac_clean_files_save=$ac_clean_files
3281 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3282 # Try to create an executable without -o first, disregard a.out.
3283 # It will help us diagnose broken compilers, and finding out an intuition
3284 # of exeext.
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3286 $as_echo_n "checking for C compiler default output file name... " >&6; }
3287 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3289 # The possible output files:
3290 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3292 ac_rmfiles=
3293 for ac_file in $ac_files
3295 case $ac_file in
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3297 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3298 esac
3299 done
3300 rm -f $ac_rmfiles
3302 if { { ac_try="$ac_link_default"
3303 case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306 esac
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_link_default") 2>&5
3310 ac_status=$?
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }; then :
3313 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3314 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3315 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3316 # so that the user can short-circuit this test for compilers unknown to
3317 # Autoconf.
3318 for ac_file in $ac_files ''
3320 test -f "$ac_file" || continue
3321 case $ac_file in
3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3324 [ab].out )
3325 # We found the default executable, but exeext='' is most
3326 # certainly right.
3327 break;;
3328 *.* )
3329 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3330 then :; else
3331 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3333 # We set ac_cv_exeext here because the later test for it is not
3334 # safe: cross compilers may not add the suffix if given an `-o'
3335 # argument, so we may need to know it at that point already.
3336 # Even if this section looks crufty: it has the advantage of
3337 # actually working.
3338 break;;
3340 break;;
3341 esac
3342 done
3343 test "$ac_cv_exeext" = no && ac_cv_exeext=
3345 else
3346 ac_file=''
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3349 $as_echo "$ac_file" >&6; }
3350 if test -z "$ac_file"; then :
3351 $as_echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356 { as_fn_set_status 77
3357 as_fn_error "C compiler cannot create executables
3358 See \`config.log' for more details." "$LINENO" 5; }; }
3360 ac_exeext=$ac_cv_exeext
3362 # Check that the compiler produces executables we can run. If not, either
3363 # the compiler is broken, or we cross compile.
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3365 $as_echo_n "checking whether the C compiler works... " >&6; }
3366 # If not cross compiling, check that we can run a simple program.
3367 if test "$cross_compiling" != yes; then
3368 if { ac_try='./$ac_file'
3369 { { case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374 $as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_try") 2>&5
3376 ac_status=$?
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }; }; then
3379 cross_compiling=no
3380 else
3381 if test "$cross_compiling" = maybe; then
3382 cross_compiling=yes
3383 else
3384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386 as_fn_error "cannot run C compiled programs.
3387 If you meant to cross compile, use \`--host'.
3388 See \`config.log' for more details." "$LINENO" 5; }
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3393 $as_echo "yes" >&6; }
3395 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3396 ac_clean_files=$ac_clean_files_save
3397 # Check that the compiler produces executables we can run. If not, either
3398 # the compiler is broken, or we cross compile.
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3400 $as_echo_n "checking whether we are cross compiling... " >&6; }
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3402 $as_echo "$cross_compiling" >&6; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3405 $as_echo_n "checking for suffix of executables... " >&6; }
3406 if { { ac_try="$ac_link"
3407 case "(($ac_try" in
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3410 esac
3411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3412 $as_echo "$ac_try_echo"; } >&5
3413 (eval "$ac_link") 2>&5
3414 ac_status=$?
3415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3416 test $ac_status = 0; }; then :
3417 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3418 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3419 # work properly (i.e., refer to `conftest.exe'), while it won't with
3420 # `rm'.
3421 for ac_file in conftest.exe conftest conftest.*; do
3422 test -f "$ac_file" || continue
3423 case $ac_file in
3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3425 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3426 break;;
3427 * ) break;;
3428 esac
3429 done
3430 else
3431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error "cannot compute suffix of executables: cannot compile and link
3434 See \`config.log' for more details." "$LINENO" 5; }
3436 rm -f conftest$ac_cv_exeext
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3438 $as_echo "$ac_cv_exeext" >&6; }
3440 rm -f conftest.$ac_ext
3441 EXEEXT=$ac_cv_exeext
3442 ac_exeext=$EXEEXT
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3445 $as_echo_n "checking for suffix of object files... " >&6; }
3446 if test "${ac_cv_objext+set}" = set; then :
3447 $as_echo_n "(cached) " >&6
3448 else
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3453 main ()
3457 return 0;
3459 _ACEOF
3460 rm -f conftest.o conftest.obj
3461 if { { ac_try="$ac_compile"
3462 case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465 esac
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468 (eval "$ac_compile") 2>&5
3469 ac_status=$?
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }; then :
3472 for ac_file in conftest.o conftest.obj conftest.*; do
3473 test -f "$ac_file" || continue;
3474 case $ac_file in
3475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3477 break;;
3478 esac
3479 done
3480 else
3481 $as_echo "$as_me: failed program was:" >&5
3482 sed 's/^/| /' conftest.$ac_ext >&5
3484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486 as_fn_error "cannot compute suffix of object files: cannot compile
3487 See \`config.log' for more details." "$LINENO" 5; }
3489 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3492 $as_echo "$ac_cv_objext" >&6; }
3493 OBJEXT=$ac_cv_objext
3494 ac_objext=$OBJEXT
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3496 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3497 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3498 $as_echo_n "(cached) " >&6
3499 else
3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h. */
3504 main ()
3506 #ifndef __GNUC__
3507 choke me
3508 #endif
3511 return 0;
3513 _ACEOF
3514 if ac_fn_c_try_compile "$LINENO"; then :
3515 ac_compiler_gnu=yes
3516 else
3517 ac_compiler_gnu=no
3519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3520 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3524 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3525 if test $ac_compiler_gnu = yes; then
3526 GCC=yes
3527 else
3528 GCC=
3530 ac_test_CFLAGS=${CFLAGS+set}
3531 ac_save_CFLAGS=$CFLAGS
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3533 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3534 if test "${ac_cv_prog_cc_g+set}" = set; then :
3535 $as_echo_n "(cached) " >&6
3536 else
3537 ac_save_c_werror_flag=$ac_c_werror_flag
3538 ac_c_werror_flag=yes
3539 ac_cv_prog_cc_g=no
3540 CFLAGS="-g"
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3545 main ()
3549 return 0;
3551 _ACEOF
3552 if ac_fn_c_try_compile "$LINENO"; then :
3553 ac_cv_prog_cc_g=yes
3554 else
3555 CFLAGS=""
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3560 main ()
3564 return 0;
3566 _ACEOF
3567 if ac_fn_c_try_compile "$LINENO"; then :
3569 else
3570 ac_c_werror_flag=$ac_save_c_werror_flag
3571 CFLAGS="-g"
3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3576 main ()
3580 return 0;
3582 _ACEOF
3583 if ac_fn_c_try_compile "$LINENO"; then :
3584 ac_cv_prog_cc_g=yes
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591 ac_c_werror_flag=$ac_save_c_werror_flag
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3594 $as_echo "$ac_cv_prog_cc_g" >&6; }
3595 if test "$ac_test_CFLAGS" = set; then
3596 CFLAGS=$ac_save_CFLAGS
3597 elif test $ac_cv_prog_cc_g = yes; then
3598 if test "$GCC" = yes; then
3599 CFLAGS="-g -O2"
3600 else
3601 CFLAGS="-g"
3603 else
3604 if test "$GCC" = yes; then
3605 CFLAGS="-O2"
3606 else
3607 CFLAGS=
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3611 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3612 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3613 $as_echo_n "(cached) " >&6
3614 else
3615 ac_cv_prog_cc_c89=no
3616 ac_save_CC=$CC
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3619 #include <stdarg.h>
3620 #include <stdio.h>
3621 #include <sys/types.h>
3622 #include <sys/stat.h>
3623 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3624 struct buf { int x; };
3625 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3626 static char *e (p, i)
3627 char **p;
3628 int i;
3630 return p[i];
3632 static char *f (char * (*g) (char **, int), char **p, ...)
3634 char *s;
3635 va_list v;
3636 va_start (v,p);
3637 s = g (p, va_arg (v,int));
3638 va_end (v);
3639 return s;
3642 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3643 function prototypes and stuff, but not '\xHH' hex character constants.
3644 These don't provoke an error unfortunately, instead are silently treated
3645 as 'x'. The following induces an error, until -std is added to get
3646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3647 array size at least. It's necessary to write '\x00'==0 to get something
3648 that's true only with -std. */
3649 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3651 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3652 inside strings and character constants. */
3653 #define FOO(x) 'x'
3654 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3656 int test (int i, double x);
3657 struct s1 {int (*f) (int a);};
3658 struct s2 {int (*f) (double a);};
3659 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3660 int argc;
3661 char **argv;
3663 main ()
3665 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3667 return 0;
3669 _ACEOF
3670 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3673 CC="$ac_save_CC $ac_arg"
3674 if ac_fn_c_try_compile "$LINENO"; then :
3675 ac_cv_prog_cc_c89=$ac_arg
3677 rm -f core conftest.err conftest.$ac_objext
3678 test "x$ac_cv_prog_cc_c89" != "xno" && break
3679 done
3680 rm -f conftest.$ac_ext
3681 CC=$ac_save_CC
3684 # AC_CACHE_VAL
3685 case "x$ac_cv_prog_cc_c89" in
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3688 $as_echo "none needed" >&6; } ;;
3689 xno)
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3691 $as_echo "unsupported" >&6; } ;;
3693 CC="$CC $ac_cv_prog_cc_c89"
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3695 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3696 esac
3697 if test "x$ac_cv_prog_cc_c89" != xno; then :
3701 ac_ext=c
3702 ac_cpp='$CPP $CPPFLAGS'
3703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706 DEPDIR="${am__leading_dot}deps"
3708 ac_config_commands="$ac_config_commands depfiles"
3711 am_make=${MAKE-make}
3712 cat > confinc << 'END'
3713 am__doit:
3714 @echo this is the am__doit target
3715 .PHONY: am__doit
3717 # If we don't find an include directive, just comment out the code.
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3719 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3720 am__include="#"
3721 am__quote=
3722 _am_result=none
3723 # First try GNU make style include.
3724 echo "include confinc" > confmf
3725 # Ignore all kinds of additional output from `make'.
3726 case `$am_make -s -f confmf 2> /dev/null` in #(
3727 *the\ am__doit\ target*)
3728 am__include=include
3729 am__quote=
3730 _am_result=GNU
3732 esac
3733 # Now try BSD make style include.
3734 if test "$am__include" = "#"; then
3735 echo '.include "confinc"' > confmf
3736 case `$am_make -s -f confmf 2> /dev/null` in #(
3737 *the\ am__doit\ target*)
3738 am__include=.include
3739 am__quote="\""
3740 _am_result=BSD
3742 esac
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3747 $as_echo "$_am_result" >&6; }
3748 rm -f confinc confmf
3750 # Check whether --enable-dependency-tracking was given.
3751 if test "${enable_dependency_tracking+set}" = set; then :
3752 enableval=$enable_dependency_tracking;
3755 if test "x$enable_dependency_tracking" != xno; then
3756 am_depcomp="$ac_aux_dir/depcomp"
3757 AMDEPBACKSLASH='\'
3759 if test "x$enable_dependency_tracking" != xno; then
3760 AMDEP_TRUE=
3761 AMDEP_FALSE='#'
3762 else
3763 AMDEP_TRUE='#'
3764 AMDEP_FALSE=
3769 depcc="$CC" am_compiler_list=
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3772 $as_echo_n "checking dependency style of $depcc... " >&6; }
3773 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3777 # We make a subdir and do the tests there. Otherwise we can end up
3778 # making bogus files that we don't know about and never remove. For
3779 # instance it was reported that on HP-UX the gcc test will end up
3780 # making a dummy file named `D' -- because `-MD' means `put the output
3781 # in D'.
3782 mkdir conftest.dir
3783 # Copy depcomp to subdir because otherwise we won't find it if we're
3784 # using a relative directory.
3785 cp "$am_depcomp" conftest.dir
3786 cd conftest.dir
3787 # We will build objects and dependencies in a subdirectory because
3788 # it helps to detect inapplicable dependency modes. For instance
3789 # both Tru64's cc and ICC support -MD to output dependencies as a
3790 # side effect of compilation, but ICC will put the dependencies in
3791 # the current directory while Tru64 will put them in the object
3792 # directory.
3793 mkdir sub
3795 am_cv_CC_dependencies_compiler_type=none
3796 if test "$am_compiler_list" = ""; then
3797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3799 am__universal=false
3800 case " $depcc " in #(
3801 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3802 esac
3804 for depmode in $am_compiler_list; do
3805 # Setup a source with many dependencies, because some compilers
3806 # like to wrap large dependency lists on column 80 (with \), and
3807 # we should not choose a depcomp mode which is confused by this.
3809 # We need to recreate these files for each test, as the compiler may
3810 # overwrite some of them when testing with obscure command lines.
3811 # This happens at least with the AIX C compiler.
3812 : > sub/conftest.c
3813 for i in 1 2 3 4 5 6; do
3814 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3815 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3816 # Solaris 8's {/usr,}/bin/sh.
3817 touch sub/conftst$i.h
3818 done
3819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3821 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3822 # mode. It turns out that the SunPro C++ compiler does not properly
3823 # handle `-M -o', and we need to detect this. Also, some Intel
3824 # versions had trouble with output in subdirs
3825 am__obj=sub/conftest.${OBJEXT-o}
3826 am__minus_obj="-o $am__obj"
3827 case $depmode in
3828 gcc)
3829 # This depmode causes a compiler race in universal mode.
3830 test "$am__universal" = false || continue
3832 nosideeffect)
3833 # after this tag, mechanisms are not by side-effect, so they'll
3834 # only be used when explicitly requested
3835 if test "x$enable_dependency_tracking" = xyes; then
3836 continue
3837 else
3838 break
3841 msvisualcpp | msvcmsys)
3842 # This compiler won't grok `-c -o', but also, the minuso test has
3843 # not run yet. These depmodes are late enough in the game, and
3844 # so weak that their functioning should not be impacted.
3845 am__obj=conftest.${OBJEXT-o}
3846 am__minus_obj=
3848 none) break ;;
3849 esac
3850 if depmode=$depmode \
3851 source=sub/conftest.c object=$am__obj \
3852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3853 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3854 >/dev/null 2>conftest.err &&
3855 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3856 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3857 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3858 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3859 # icc doesn't choke on unknown options, it will just issue warnings
3860 # or remarks (even with -Werror). So we grep stderr for any message
3861 # that says an option was ignored or not supported.
3862 # When given -MP, icc 7.0 and 7.1 complain thusly:
3863 # icc: Command line warning: ignoring option '-M'; no argument required
3864 # The diagnosis changed in icc 8.0:
3865 # icc: Command line remark: option '-MP' not supported
3866 if (grep 'ignoring option' conftest.err ||
3867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3868 am_cv_CC_dependencies_compiler_type=$depmode
3869 break
3872 done
3874 cd ..
3875 rm -rf conftest.dir
3876 else
3877 am_cv_CC_dependencies_compiler_type=none
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3882 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3883 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3886 test "x$enable_dependency_tracking" != xno \
3887 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3888 am__fastdepCC_TRUE=
3889 am__fastdepCC_FALSE='#'
3890 else
3891 am__fastdepCC_TRUE='#'
3892 am__fastdepCC_FALSE=
3900 case `pwd` in
3901 *\ * | *\ *)
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3903 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3904 esac
3908 macro_version='2.2.7a'
3909 macro_revision='1.3134'
3923 ltmain="$ac_aux_dir/ltmain.sh"
3925 # Backslashify metacharacters that are still active within
3926 # double-quoted strings.
3927 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3929 # Same as above, but do not quote variable references.
3930 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3932 # Sed substitution to delay expansion of an escaped shell variable in a
3933 # double_quote_subst'ed string.
3934 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3936 # Sed substitution to delay expansion of an escaped single quote.
3937 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3939 # Sed substitution to avoid accidental globbing in evaled expressions
3940 no_glob_subst='s/\*/\\\*/g'
3942 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3943 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3944 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3947 $as_echo_n "checking how to print strings... " >&6; }
3948 # Test print first, because it will be a builtin if present.
3949 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3950 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3951 ECHO='print -r --'
3952 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3953 ECHO='printf %s\n'
3954 else
3955 # Use this function as a fallback that always works.
3956 func_fallback_echo ()
3958 eval 'cat <<_LTECHO_EOF
3960 _LTECHO_EOF'
3962 ECHO='func_fallback_echo'
3965 # func_echo_all arg...
3966 # Invoke $ECHO with all args, space-separated.
3967 func_echo_all ()
3969 $ECHO ""
3972 case "$ECHO" in
3973 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3974 $as_echo "printf" >&6; } ;;
3975 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3976 $as_echo "print -r" >&6; } ;;
3977 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3978 $as_echo "cat" >&6; } ;;
3979 esac
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3995 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3996 if test "${ac_cv_path_SED+set}" = set; then :
3997 $as_echo_n "(cached) " >&6
3998 else
3999 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4000 for ac_i in 1 2 3 4 5 6 7; do
4001 ac_script="$ac_script$as_nl$ac_script"
4002 done
4003 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4004 { ac_script=; unset ac_script;}
4005 if test -z "$SED"; then
4006 ac_path_SED_found=false
4007 # Loop through the user's path and test for each of PROGNAME-LIST
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 for as_dir in $PATH
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
4013 for ac_prog in sed gsed; do
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4016 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4017 # Check for GNU ac_path_SED and select it if it is found.
4018 # Check for GNU $ac_path_SED
4019 case `"$ac_path_SED" --version 2>&1` in
4020 *GNU*)
4021 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4023 ac_count=0
4024 $as_echo_n 0123456789 >"conftest.in"
4025 while :
4027 cat "conftest.in" "conftest.in" >"conftest.tmp"
4028 mv "conftest.tmp" "conftest.in"
4029 cp "conftest.in" "conftest.nl"
4030 $as_echo '' >> "conftest.nl"
4031 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4033 as_fn_arith $ac_count + 1 && ac_count=$as_val
4034 if test $ac_count -gt ${ac_path_SED_max-0}; then
4035 # Best one so far, save it but keep looking for a better one
4036 ac_cv_path_SED="$ac_path_SED"
4037 ac_path_SED_max=$ac_count
4039 # 10*(2^10) chars as input seems more than enough
4040 test $ac_count -gt 10 && break
4041 done
4042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4043 esac
4045 $ac_path_SED_found && break 3
4046 done
4047 done
4048 done
4049 IFS=$as_save_IFS
4050 if test -z "$ac_cv_path_SED"; then
4051 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4053 else
4054 ac_cv_path_SED=$SED
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4059 $as_echo "$ac_cv_path_SED" >&6; }
4060 SED="$ac_cv_path_SED"
4061 rm -f conftest.sed
4063 test -z "$SED" && SED=sed
4064 Xsed="$SED -e 1s/^X//"
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4077 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4078 if test "${ac_cv_path_GREP+set}" = set; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 if test -z "$GREP"; then
4082 ac_path_GREP_found=false
4083 # Loop through the user's path and test for each of PROGNAME-LIST
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4087 IFS=$as_save_IFS
4088 test -z "$as_dir" && as_dir=.
4089 for ac_prog in grep ggrep; do
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4092 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4093 # Check for GNU ac_path_GREP and select it if it is found.
4094 # Check for GNU $ac_path_GREP
4095 case `"$ac_path_GREP" --version 2>&1` in
4096 *GNU*)
4097 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4099 ac_count=0
4100 $as_echo_n 0123456789 >"conftest.in"
4101 while :
4103 cat "conftest.in" "conftest.in" >"conftest.tmp"
4104 mv "conftest.tmp" "conftest.in"
4105 cp "conftest.in" "conftest.nl"
4106 $as_echo 'GREP' >> "conftest.nl"
4107 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4109 as_fn_arith $ac_count + 1 && ac_count=$as_val
4110 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4111 # Best one so far, save it but keep looking for a better one
4112 ac_cv_path_GREP="$ac_path_GREP"
4113 ac_path_GREP_max=$ac_count
4115 # 10*(2^10) chars as input seems more than enough
4116 test $ac_count -gt 10 && break
4117 done
4118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4119 esac
4121 $ac_path_GREP_found && break 3
4122 done
4123 done
4124 done
4125 IFS=$as_save_IFS
4126 if test -z "$ac_cv_path_GREP"; then
4127 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4129 else
4130 ac_cv_path_GREP=$GREP
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4135 $as_echo "$ac_cv_path_GREP" >&6; }
4136 GREP="$ac_cv_path_GREP"
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4140 $as_echo_n "checking for egrep... " >&6; }
4141 if test "${ac_cv_path_EGREP+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
4143 else
4144 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4145 then ac_cv_path_EGREP="$GREP -E"
4146 else
4147 if test -z "$EGREP"; then
4148 ac_path_EGREP_found=false
4149 # Loop through the user's path and test for each of PROGNAME-LIST
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_prog in egrep; do
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4158 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4159 # Check for GNU ac_path_EGREP and select it if it is found.
4160 # Check for GNU $ac_path_EGREP
4161 case `"$ac_path_EGREP" --version 2>&1` in
4162 *GNU*)
4163 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4165 ac_count=0
4166 $as_echo_n 0123456789 >"conftest.in"
4167 while :
4169 cat "conftest.in" "conftest.in" >"conftest.tmp"
4170 mv "conftest.tmp" "conftest.in"
4171 cp "conftest.in" "conftest.nl"
4172 $as_echo 'EGREP' >> "conftest.nl"
4173 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4175 as_fn_arith $ac_count + 1 && ac_count=$as_val
4176 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4177 # Best one so far, save it but keep looking for a better one
4178 ac_cv_path_EGREP="$ac_path_EGREP"
4179 ac_path_EGREP_max=$ac_count
4181 # 10*(2^10) chars as input seems more than enough
4182 test $ac_count -gt 10 && break
4183 done
4184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4185 esac
4187 $ac_path_EGREP_found && break 3
4188 done
4189 done
4190 done
4191 IFS=$as_save_IFS
4192 if test -z "$ac_cv_path_EGREP"; then
4193 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4195 else
4196 ac_cv_path_EGREP=$EGREP
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4202 $as_echo "$ac_cv_path_EGREP" >&6; }
4203 EGREP="$ac_cv_path_EGREP"
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4207 $as_echo_n "checking for fgrep... " >&6; }
4208 if test "${ac_cv_path_FGREP+set}" = set; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4212 then ac_cv_path_FGREP="$GREP -F"
4213 else
4214 if test -z "$FGREP"; then
4215 ac_path_FGREP_found=false
4216 # Loop through the user's path and test for each of PROGNAME-LIST
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 for ac_prog in fgrep; do
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4225 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4226 # Check for GNU ac_path_FGREP and select it if it is found.
4227 # Check for GNU $ac_path_FGREP
4228 case `"$ac_path_FGREP" --version 2>&1` in
4229 *GNU*)
4230 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4232 ac_count=0
4233 $as_echo_n 0123456789 >"conftest.in"
4234 while :
4236 cat "conftest.in" "conftest.in" >"conftest.tmp"
4237 mv "conftest.tmp" "conftest.in"
4238 cp "conftest.in" "conftest.nl"
4239 $as_echo 'FGREP' >> "conftest.nl"
4240 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4242 as_fn_arith $ac_count + 1 && ac_count=$as_val
4243 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4244 # Best one so far, save it but keep looking for a better one
4245 ac_cv_path_FGREP="$ac_path_FGREP"
4246 ac_path_FGREP_max=$ac_count
4248 # 10*(2^10) chars as input seems more than enough
4249 test $ac_count -gt 10 && break
4250 done
4251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4252 esac
4254 $ac_path_FGREP_found && break 3
4255 done
4256 done
4257 done
4258 IFS=$as_save_IFS
4259 if test -z "$ac_cv_path_FGREP"; then
4260 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4262 else
4263 ac_cv_path_FGREP=$FGREP
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4269 $as_echo "$ac_cv_path_FGREP" >&6; }
4270 FGREP="$ac_cv_path_FGREP"
4273 test -z "$GREP" && GREP=grep
4293 # Check whether --with-gnu-ld was given.
4294 if test "${with_gnu_ld+set}" = set; then :
4295 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4296 else
4297 with_gnu_ld=no
4300 ac_prog=ld
4301 if test "$GCC" = yes; then
4302 # Check if gcc -print-prog-name=ld gives a path.
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4304 $as_echo_n "checking for ld used by $CC... " >&6; }
4305 case $host in
4306 *-*-mingw*)
4307 # gcc leaves a trailing carriage return which upsets mingw
4308 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4310 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4311 esac
4312 case $ac_prog in
4313 # Accept absolute paths.
4314 [\\/]* | ?:[\\/]*)
4315 re_direlt='/[^/][^/]*/\.\./'
4316 # Canonicalize the pathname of ld
4317 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4318 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4319 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4320 done
4321 test -z "$LD" && LD="$ac_prog"
4324 # If it fails, then pretend we aren't using GCC.
4325 ac_prog=ld
4328 # If it is relative, then search for the first ld in PATH.
4329 with_gnu_ld=unknown
4331 esac
4332 elif test "$with_gnu_ld" = yes; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4334 $as_echo_n "checking for GNU ld... " >&6; }
4335 else
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4337 $as_echo_n "checking for non-GNU ld... " >&6; }
4339 if test "${lt_cv_path_LD+set}" = set; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 if test -z "$LD"; then
4343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4344 for ac_dir in $PATH; do
4345 IFS="$lt_save_ifs"
4346 test -z "$ac_dir" && ac_dir=.
4347 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4348 lt_cv_path_LD="$ac_dir/$ac_prog"
4349 # Check to see if the program is GNU ld. I'd rather use --version,
4350 # but apparently some variants of GNU ld only accept -v.
4351 # Break only if it was the GNU/non-GNU ld that we prefer.
4352 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4353 *GNU* | *'with BFD'*)
4354 test "$with_gnu_ld" != no && break
4357 test "$with_gnu_ld" != yes && break
4359 esac
4361 done
4362 IFS="$lt_save_ifs"
4363 else
4364 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4368 LD="$lt_cv_path_LD"
4369 if test -n "$LD"; then
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4371 $as_echo "$LD" >&6; }
4372 else
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374 $as_echo "no" >&6; }
4376 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4378 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4379 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4380 $as_echo_n "(cached) " >&6
4381 else
4382 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4383 case `$LD -v 2>&1 </dev/null` in
4384 *GNU* | *'with BFD'*)
4385 lt_cv_prog_gnu_ld=yes
4388 lt_cv_prog_gnu_ld=no
4390 esac
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4393 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4394 with_gnu_ld=$lt_cv_prog_gnu_ld
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4405 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4406 if test "${lt_cv_path_NM+set}" = set; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 if test -n "$NM"; then
4410 # Let the user override the test.
4411 lt_cv_path_NM="$NM"
4412 else
4413 lt_nm_to_check="${ac_tool_prefix}nm"
4414 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4415 lt_nm_to_check="$lt_nm_to_check nm"
4417 for lt_tmp_nm in $lt_nm_to_check; do
4418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4419 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4420 IFS="$lt_save_ifs"
4421 test -z "$ac_dir" && ac_dir=.
4422 tmp_nm="$ac_dir/$lt_tmp_nm"
4423 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4424 # Check to see if the nm accepts a BSD-compat flag.
4425 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4426 # nm: unknown option "B" ignored
4427 # Tru64's nm complains that /dev/null is an invalid object file
4428 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4429 */dev/null* | *'Invalid file or object type'*)
4430 lt_cv_path_NM="$tmp_nm -B"
4431 break
4434 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4435 */dev/null*)
4436 lt_cv_path_NM="$tmp_nm -p"
4437 break
4440 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4441 continue # so that we can try to find one that supports BSD flags
4443 esac
4445 esac
4447 done
4448 IFS="$lt_save_ifs"
4449 done
4450 : ${lt_cv_path_NM=no}
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4454 $as_echo "$lt_cv_path_NM" >&6; }
4455 if test "$lt_cv_path_NM" != "no"; then
4456 NM="$lt_cv_path_NM"
4457 else
4458 # Didn't find any BSD compatible name lister, look for dumpbin.
4459 if test -n "$DUMPBIN"; then :
4460 # Let the user override the test.
4461 else
4462 if test -n "$ac_tool_prefix"; then
4463 for ac_prog in dumpbin "link -dump"
4465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4466 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468 $as_echo_n "checking for $ac_word... " >&6; }
4469 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4470 $as_echo_n "(cached) " >&6
4471 else
4472 if test -n "$DUMPBIN"; then
4473 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4486 done
4487 done
4488 IFS=$as_save_IFS
4492 DUMPBIN=$ac_cv_prog_DUMPBIN
4493 if test -n "$DUMPBIN"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4495 $as_echo "$DUMPBIN" >&6; }
4496 else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 $as_echo "no" >&6; }
4502 test -n "$DUMPBIN" && break
4503 done
4505 if test -z "$DUMPBIN"; then
4506 ac_ct_DUMPBIN=$DUMPBIN
4507 for ac_prog in dumpbin "link -dump"
4509 # Extract the first word of "$ac_prog", so it can be a program name with args.
4510 set dummy $ac_prog; ac_word=$2
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4512 $as_echo_n "checking for $ac_word... " >&6; }
4513 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 if test -n "$ac_ct_DUMPBIN"; then
4517 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4518 else
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4526 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 break 2
4530 done
4531 done
4532 IFS=$as_save_IFS
4536 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4537 if test -n "$ac_ct_DUMPBIN"; then
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4539 $as_echo "$ac_ct_DUMPBIN" >&6; }
4540 else
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 $as_echo "no" >&6; }
4546 test -n "$ac_ct_DUMPBIN" && break
4547 done
4549 if test "x$ac_ct_DUMPBIN" = x; then
4550 DUMPBIN=":"
4551 else
4552 case $cross_compiling:$ac_tool_warned in
4553 yes:)
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4556 ac_tool_warned=yes ;;
4557 esac
4558 DUMPBIN=$ac_ct_DUMPBIN
4562 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4563 *COFF*)
4564 DUMPBIN="$DUMPBIN -symbols"
4567 DUMPBIN=:
4569 esac
4572 if test "$DUMPBIN" != ":"; then
4573 NM="$DUMPBIN"
4576 test -z "$NM" && NM=nm
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4584 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4585 if test "${lt_cv_nm_interface+set}" = set; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4588 lt_cv_nm_interface="BSD nm"
4589 echo "int some_variable = 0;" > conftest.$ac_ext
4590 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4591 (eval "$ac_compile" 2>conftest.err)
4592 cat conftest.err >&5
4593 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4594 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4595 cat conftest.err >&5
4596 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4597 cat conftest.out >&5
4598 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4599 lt_cv_nm_interface="MS dumpbin"
4601 rm -f conftest*
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4604 $as_echo "$lt_cv_nm_interface" >&6; }
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4607 $as_echo_n "checking whether ln -s works... " >&6; }
4608 LN_S=$as_ln_s
4609 if test "$LN_S" = "ln -s"; then
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4611 $as_echo "yes" >&6; }
4612 else
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4614 $as_echo "no, using $LN_S" >&6; }
4617 # find the maximum length of command line arguments
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4619 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4620 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4624 teststring="ABCD"
4626 case $build_os in
4627 msdosdjgpp*)
4628 # On DJGPP, this test can blow up pretty badly due to problems in libc
4629 # (any single argument exceeding 2000 bytes causes a buffer overrun
4630 # during glob expansion). Even if it were fixed, the result of this
4631 # check would be larger than it should be.
4632 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4635 gnu*)
4636 # Under GNU Hurd, this test is not required because there is
4637 # no limit to the length of command line arguments.
4638 # Libtool will interpret -1 as no limit whatsoever
4639 lt_cv_sys_max_cmd_len=-1;
4642 cygwin* | mingw* | cegcc*)
4643 # On Win9x/ME, this test blows up -- it succeeds, but takes
4644 # about 5 minutes as the teststring grows exponentially.
4645 # Worse, since 9x/ME are not pre-emptively multitasking,
4646 # you end up with a "frozen" computer, even though with patience
4647 # the test eventually succeeds (with a max line length of 256k).
4648 # Instead, let's just punt: use the minimum linelength reported by
4649 # all of the supported platforms: 8192 (on NT/2K/XP).
4650 lt_cv_sys_max_cmd_len=8192;
4653 mint*)
4654 # On MiNT this can take a long time and run out of memory.
4655 lt_cv_sys_max_cmd_len=8192;
4658 amigaos*)
4659 # On AmigaOS with pdksh, this test takes hours, literally.
4660 # So we just punt and use a minimum line length of 8192.
4661 lt_cv_sys_max_cmd_len=8192;
4664 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4665 # This has been around since 386BSD, at least. Likely further.
4666 if test -x /sbin/sysctl; then
4667 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4668 elif test -x /usr/sbin/sysctl; then
4669 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4670 else
4671 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4673 # And add a safety zone
4674 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4678 interix*)
4679 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4680 lt_cv_sys_max_cmd_len=196608
4683 osf*)
4684 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4685 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4686 # nice to cause kernel panics so lets avoid the loop below.
4687 # First set a reasonable default.
4688 lt_cv_sys_max_cmd_len=16384
4690 if test -x /sbin/sysconfig; then
4691 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4692 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4693 esac
4696 sco3.2v5*)
4697 lt_cv_sys_max_cmd_len=102400
4699 sysv5* | sco5v6* | sysv4.2uw2*)
4700 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4701 if test -n "$kargmax"; then
4702 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4703 else
4704 lt_cv_sys_max_cmd_len=32768
4708 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4709 if test -n "$lt_cv_sys_max_cmd_len"; then
4710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4712 else
4713 # Make teststring a little bigger before we do anything with it.
4714 # a 1K string should be a reasonable start.
4715 for i in 1 2 3 4 5 6 7 8 ; do
4716 teststring=$teststring$teststring
4717 done
4718 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4719 # If test is not a shell built-in, we'll probably end up computing a
4720 # maximum length that is only half of the actual maximum length, but
4721 # we can't tell.
4722 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4723 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4724 test $i != 17 # 1/2 MB should be enough
4726 i=`expr $i + 1`
4727 teststring=$teststring$teststring
4728 done
4729 # Only check the string length outside the loop.
4730 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4731 teststring=
4732 # Add a significant safety factor because C++ compilers can tack on
4733 # massive amounts of additional arguments before passing them to the
4734 # linker. It appears as though 1/2 is a usable value.
4735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4738 esac
4742 if test -n $lt_cv_sys_max_cmd_len ; then
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4744 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4745 else
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4747 $as_echo "none" >&6; }
4749 max_cmd_len=$lt_cv_sys_max_cmd_len
4756 : ${CP="cp -f"}
4757 : ${MV="mv -f"}
4758 : ${RM="rm -f"}
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4761 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4762 # Try some XSI features
4763 xsi_shell=no
4764 ( _lt_dummy="a/b/c"
4765 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4766 = c,a/b,, \
4767 && eval 'test $(( 1 + 1 )) -eq 2 \
4768 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4769 && xsi_shell=yes
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4771 $as_echo "$xsi_shell" >&6; }
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4775 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4776 lt_shell_append=no
4777 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4778 >/dev/null 2>&1 \
4779 && lt_shell_append=yes
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4781 $as_echo "$lt_shell_append" >&6; }
4784 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4785 lt_unset=unset
4786 else
4787 lt_unset=false
4794 # test EBCDIC or ASCII
4795 case `echo X|tr X '\101'` in
4796 A) # ASCII based system
4797 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4798 lt_SP2NL='tr \040 \012'
4799 lt_NL2SP='tr \015\012 \040\040'
4801 *) # EBCDIC based system
4802 lt_SP2NL='tr \100 \n'
4803 lt_NL2SP='tr \r\n \100\100'
4805 esac
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4816 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4817 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 lt_cv_ld_reload_flag='-r'
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4823 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4824 reload_flag=$lt_cv_ld_reload_flag
4825 case $reload_flag in
4826 "" | " "*) ;;
4827 *) reload_flag=" $reload_flag" ;;
4828 esac
4829 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4830 case $host_os in
4831 darwin*)
4832 if test "$GCC" = yes; then
4833 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4834 else
4835 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4838 esac
4848 if test -n "$ac_tool_prefix"; then
4849 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4850 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 if test -n "$OBJDUMP"; then
4857 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4870 done
4871 done
4872 IFS=$as_save_IFS
4876 OBJDUMP=$ac_cv_prog_OBJDUMP
4877 if test -n "$OBJDUMP"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4879 $as_echo "$OBJDUMP" >&6; }
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4887 if test -z "$ac_cv_prog_OBJDUMP"; then
4888 ac_ct_OBJDUMP=$OBJDUMP
4889 # Extract the first word of "objdump", so it can be a program name with args.
4890 set dummy objdump; ac_word=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 if test -n "$ac_ct_OBJDUMP"; then
4897 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4898 else
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4906 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4910 done
4911 done
4912 IFS=$as_save_IFS
4916 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4917 if test -n "$ac_ct_OBJDUMP"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4919 $as_echo "$ac_ct_OBJDUMP" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4925 if test "x$ac_ct_OBJDUMP" = x; then
4926 OBJDUMP="false"
4927 else
4928 case $cross_compiling:$ac_tool_warned in
4929 yes:)
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4932 ac_tool_warned=yes ;;
4933 esac
4934 OBJDUMP=$ac_ct_OBJDUMP
4936 else
4937 OBJDUMP="$ac_cv_prog_OBJDUMP"
4940 test -z "$OBJDUMP" && OBJDUMP=objdump
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4951 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4952 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 lt_cv_file_magic_cmd='$MAGIC_CMD'
4956 lt_cv_file_magic_test_file=
4957 lt_cv_deplibs_check_method='unknown'
4958 # Need to set the preceding variable on all platforms that support
4959 # interlibrary dependencies.
4960 # 'none' -- dependencies not supported.
4961 # `unknown' -- same as none, but documents that we really don't know.
4962 # 'pass_all' -- all dependencies passed with no checks.
4963 # 'test_compile' -- check by making test program.
4964 # 'file_magic [[regex]]' -- check by looking for files in library path
4965 # which responds to the $file_magic_cmd with a given extended regex.
4966 # If you have `file' or equivalent on your system and you're not sure
4967 # whether `pass_all' will *always* work, you probably want this one.
4969 case $host_os in
4970 aix[4-9]*)
4971 lt_cv_deplibs_check_method=pass_all
4974 beos*)
4975 lt_cv_deplibs_check_method=pass_all
4978 bsdi[45]*)
4979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4980 lt_cv_file_magic_cmd='/usr/bin/file -L'
4981 lt_cv_file_magic_test_file=/shlib/libc.so
4984 cygwin*)
4985 # func_win32_libid is a shell function defined in ltmain.sh
4986 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4987 lt_cv_file_magic_cmd='func_win32_libid'
4990 mingw* | pw32*)
4991 # Base MSYS/MinGW do not provide the 'file' command needed by
4992 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4993 # unless we find 'file', for example because we are cross-compiling.
4994 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4995 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4996 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4997 lt_cv_file_magic_cmd='func_win32_libid'
4998 else
4999 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5000 lt_cv_file_magic_cmd='$OBJDUMP -f'
5004 cegcc*)
5005 # use the weaker test based on 'objdump'. See mingw*.
5006 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5007 lt_cv_file_magic_cmd='$OBJDUMP -f'
5010 darwin* | rhapsody*)
5011 lt_cv_deplibs_check_method=pass_all
5014 freebsd* | dragonfly*)
5015 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5016 case $host_cpu in
5017 i*86 )
5018 # Not sure whether the presence of OpenBSD here was a mistake.
5019 # Let's accept both of them until this is cleared up.
5020 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5021 lt_cv_file_magic_cmd=/usr/bin/file
5022 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5024 esac
5025 else
5026 lt_cv_deplibs_check_method=pass_all
5030 gnu*)
5031 lt_cv_deplibs_check_method=pass_all
5034 haiku*)
5035 lt_cv_deplibs_check_method=pass_all
5038 hpux10.20* | hpux11*)
5039 lt_cv_file_magic_cmd=/usr/bin/file
5040 case $host_cpu in
5041 ia64*)
5042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5043 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5045 hppa*64*)
5046 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]'
5047 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5051 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5053 esac
5056 interix[3-9]*)
5057 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5061 irix5* | irix6* | nonstopux*)
5062 case $LD in
5063 *-32|*"-32 ") libmagic=32-bit;;
5064 *-n32|*"-n32 ") libmagic=N32;;
5065 *-64|*"-64 ") libmagic=64-bit;;
5066 *) libmagic=never-match;;
5067 esac
5068 lt_cv_deplibs_check_method=pass_all
5071 # This must be Linux ELF.
5072 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5073 lt_cv_deplibs_check_method=pass_all
5076 netbsd*)
5077 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5079 else
5080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5084 newos6*)
5085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5086 lt_cv_file_magic_cmd=/usr/bin/file
5087 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5090 *nto* | *qnx*)
5091 lt_cv_deplibs_check_method=pass_all
5094 openbsd*)
5095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5097 else
5098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5102 osf3* | osf4* | osf5*)
5103 lt_cv_deplibs_check_method=pass_all
5106 rdos*)
5107 lt_cv_deplibs_check_method=pass_all
5110 solaris*)
5111 lt_cv_deplibs_check_method=pass_all
5114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5115 lt_cv_deplibs_check_method=pass_all
5118 sysv4 | sysv4.3*)
5119 case $host_vendor in
5120 motorola)
5121 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]'
5122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5124 ncr)
5125 lt_cv_deplibs_check_method=pass_all
5127 sequent)
5128 lt_cv_file_magic_cmd='/bin/file'
5129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5131 sni)
5132 lt_cv_file_magic_cmd='/bin/file'
5133 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5134 lt_cv_file_magic_test_file=/lib/libc.so
5136 siemens)
5137 lt_cv_deplibs_check_method=pass_all
5140 lt_cv_deplibs_check_method=pass_all
5142 esac
5145 tpf*)
5146 lt_cv_deplibs_check_method=pass_all
5148 esac
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5152 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5153 file_magic_cmd=$lt_cv_file_magic_cmd
5154 deplibs_check_method=$lt_cv_deplibs_check_method
5155 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5168 if test -n "$ac_tool_prefix"; then
5169 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5170 set dummy ${ac_tool_prefix}ar; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if test "${ac_cv_prog_AR+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 if test -n "$AR"; then
5177 ac_cv_prog_AR="$AR" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186 ac_cv_prog_AR="${ac_tool_prefix}ar"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5190 done
5191 done
5192 IFS=$as_save_IFS
5196 AR=$ac_cv_prog_AR
5197 if test -n "$AR"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5199 $as_echo "$AR" >&6; }
5200 else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5207 if test -z "$ac_cv_prog_AR"; then
5208 ac_ct_AR=$AR
5209 # Extract the first word of "ar", so it can be a program name with args.
5210 set dummy ar; ac_word=$2
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5212 $as_echo_n "checking for $ac_word... " >&6; }
5213 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 if test -n "$ac_ct_AR"; then
5217 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5218 else
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5226 ac_cv_prog_ac_ct_AR="ar"
5227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5230 done
5231 done
5232 IFS=$as_save_IFS
5236 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5237 if test -n "$ac_ct_AR"; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5239 $as_echo "$ac_ct_AR" >&6; }
5240 else
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5245 if test "x$ac_ct_AR" = x; then
5246 AR="false"
5247 else
5248 case $cross_compiling:$ac_tool_warned in
5249 yes:)
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5252 ac_tool_warned=yes ;;
5253 esac
5254 AR=$ac_ct_AR
5256 else
5257 AR="$ac_cv_prog_AR"
5260 test -z "$AR" && AR=ar
5261 test -z "$AR_FLAGS" && AR_FLAGS=cru
5273 if test -n "$ac_tool_prefix"; then
5274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5275 set dummy ${ac_tool_prefix}strip; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if test "${ac_cv_prog_STRIP+set}" = set; then :
5279 $as_echo_n "(cached) " >&6
5280 else
5281 if test -n "$STRIP"; then
5282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5283 else
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5285 for as_dir in $PATH
5287 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 break 2
5295 done
5296 done
5297 IFS=$as_save_IFS
5301 STRIP=$ac_cv_prog_STRIP
5302 if test -n "$STRIP"; then
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5304 $as_echo "$STRIP" >&6; }
5305 else
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5307 $as_echo "no" >&6; }
5312 if test -z "$ac_cv_prog_STRIP"; then
5313 ac_ct_STRIP=$STRIP
5314 # Extract the first word of "strip", so it can be a program name with args.
5315 set dummy strip; ac_word=$2
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5317 $as_echo_n "checking for $ac_word... " >&6; }
5318 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 if test -n "$ac_ct_STRIP"; then
5322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5323 else
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331 ac_cv_prog_ac_ct_STRIP="strip"
5332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 break 2
5335 done
5336 done
5337 IFS=$as_save_IFS
5341 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5342 if test -n "$ac_ct_STRIP"; then
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5344 $as_echo "$ac_ct_STRIP" >&6; }
5345 else
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5347 $as_echo "no" >&6; }
5350 if test "x$ac_ct_STRIP" = x; then
5351 STRIP=":"
5352 else
5353 case $cross_compiling:$ac_tool_warned in
5354 yes:)
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5357 ac_tool_warned=yes ;;
5358 esac
5359 STRIP=$ac_ct_STRIP
5361 else
5362 STRIP="$ac_cv_prog_STRIP"
5365 test -z "$STRIP" && STRIP=:
5372 if test -n "$ac_tool_prefix"; then
5373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5374 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5376 $as_echo_n "checking for $ac_word... " >&6; }
5377 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5378 $as_echo_n "(cached) " >&6
5379 else
5380 if test -n "$RANLIB"; then
5381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5382 else
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH
5386 IFS=$as_save_IFS
5387 test -z "$as_dir" && as_dir=.
5388 for ac_exec_ext in '' $ac_executable_extensions; do
5389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5392 break 2
5394 done
5395 done
5396 IFS=$as_save_IFS
5400 RANLIB=$ac_cv_prog_RANLIB
5401 if test -n "$RANLIB"; then
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5403 $as_echo "$RANLIB" >&6; }
5404 else
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 $as_echo "no" >&6; }
5411 if test -z "$ac_cv_prog_RANLIB"; then
5412 ac_ct_RANLIB=$RANLIB
5413 # Extract the first word of "ranlib", so it can be a program name with args.
5414 set dummy ranlib; ac_word=$2
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416 $as_echo_n "checking for $ac_word... " >&6; }
5417 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5418 $as_echo_n "(cached) " >&6
5419 else
5420 if test -n "$ac_ct_RANLIB"; then
5421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5422 else
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH
5426 IFS=$as_save_IFS
5427 test -z "$as_dir" && as_dir=.
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5430 ac_cv_prog_ac_ct_RANLIB="ranlib"
5431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 break 2
5434 done
5435 done
5436 IFS=$as_save_IFS
5440 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5441 if test -n "$ac_ct_RANLIB"; then
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5443 $as_echo "$ac_ct_RANLIB" >&6; }
5444 else
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5449 if test "x$ac_ct_RANLIB" = x; then
5450 RANLIB=":"
5451 else
5452 case $cross_compiling:$ac_tool_warned in
5453 yes:)
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5456 ac_tool_warned=yes ;;
5457 esac
5458 RANLIB=$ac_ct_RANLIB
5460 else
5461 RANLIB="$ac_cv_prog_RANLIB"
5464 test -z "$RANLIB" && RANLIB=:
5471 # Determine commands to create old-style static archives.
5472 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5473 old_postinstall_cmds='chmod 644 $oldlib'
5474 old_postuninstall_cmds=
5476 if test -n "$RANLIB"; then
5477 case $host_os in
5478 openbsd*)
5479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5484 esac
5485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5488 case $host_os in
5489 darwin*)
5490 lock_old_archive_extraction=yes ;;
5492 lock_old_archive_extraction=no ;;
5493 esac
5533 # If no C compiler was specified, use CC.
5534 LTCC=${LTCC-"$CC"}
5536 # If no C compiler flags were specified, use CFLAGS.
5537 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5539 # Allow CC to be a program name with arguments.
5540 compiler=$CC
5543 # Check for command to grab the raw symbol name followed by C symbol from nm.
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5545 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5546 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5550 # These are sane defaults that work on at least a few old systems.
5551 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5553 # Character class describing NM global symbol codes.
5554 symcode='[BCDEGRST]'
5556 # Regexp to match symbols that can be accessed directly from C.
5557 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5559 # Define system-specific variables.
5560 case $host_os in
5561 aix*)
5562 symcode='[BCDT]'
5564 cygwin* | mingw* | pw32* | cegcc*)
5565 symcode='[ABCDGISTW]'
5567 hpux*)
5568 if test "$host_cpu" = ia64; then
5569 symcode='[ABCDEGRST]'
5572 irix* | nonstopux*)
5573 symcode='[BCDEGRST]'
5575 osf*)
5576 symcode='[BCDEGQRST]'
5578 solaris*)
5579 symcode='[BDRT]'
5581 sco3.2v5*)
5582 symcode='[DT]'
5584 sysv4.2uw2*)
5585 symcode='[DT]'
5587 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5588 symcode='[ABDT]'
5590 sysv4)
5591 symcode='[DFNSTU]'
5593 esac
5595 # If we're using GNU nm, then use its standard symbol codes.
5596 case `$NM -V 2>&1` in
5597 *GNU* | *'with BFD'*)
5598 symcode='[ABCDGIRSTW]' ;;
5599 esac
5601 # Transform an extracted symbol line into a proper C declaration.
5602 # Some systems (esp. on ia64) link data and code symbols differently,
5603 # so use this general approach.
5604 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5606 # Transform an extracted symbol line into symbol name and symbol address
5607 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5608 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'"
5610 # Handle CRLF in mingw tool chain
5611 opt_cr=
5612 case $build_os in
5613 mingw*)
5614 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5616 esac
5618 # Try without a prefix underscore, then with it.
5619 for ac_symprfx in "" "_"; do
5621 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5622 symxfrm="\\1 $ac_symprfx\\2 \\2"
5624 # Write the raw and C identifiers.
5625 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5626 # Fake it for dumpbin and say T for any non-static function
5627 # and D for any global variable.
5628 # Also find C++ and __fastcall symbols from MSVC++,
5629 # which start with @ or ?.
5630 lt_cv_sys_global_symbol_pipe="$AWK '"\
5631 " {last_section=section; section=\$ 3};"\
5632 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5633 " \$ 0!~/External *\|/{next};"\
5634 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5635 " {if(hide[section]) next};"\
5636 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5637 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5638 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5639 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5640 " ' prfx=^$ac_symprfx"
5641 else
5642 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5645 # Check to see that the pipe works correctly.
5646 pipe_works=no
5648 rm -f conftest*
5649 cat > conftest.$ac_ext <<_LT_EOF
5650 #ifdef __cplusplus
5651 extern "C" {
5652 #endif
5653 char nm_test_var;
5654 void nm_test_func(void);
5655 void nm_test_func(void){}
5656 #ifdef __cplusplus
5658 #endif
5659 int main(){nm_test_var='a';nm_test_func();return(0);}
5660 _LT_EOF
5662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5663 (eval $ac_compile) 2>&5
5664 ac_status=$?
5665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5666 test $ac_status = 0; }; then
5667 # Now try to grab the symbols.
5668 nlist=conftest.nm
5669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5670 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5671 ac_status=$?
5672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5673 test $ac_status = 0; } && test -s "$nlist"; then
5674 # Try sorting and uniquifying the output.
5675 if sort "$nlist" | uniq > "$nlist"T; then
5676 mv -f "$nlist"T "$nlist"
5677 else
5678 rm -f "$nlist"T
5681 # Make sure that we snagged all the symbols we need.
5682 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5683 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5684 cat <<_LT_EOF > conftest.$ac_ext
5685 #ifdef __cplusplus
5686 extern "C" {
5687 #endif
5689 _LT_EOF
5690 # Now generate the symbol file.
5691 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5693 cat <<_LT_EOF >> conftest.$ac_ext
5695 /* The mapping between symbol names and symbols. */
5696 const struct {
5697 const char *name;
5698 void *address;
5700 lt__PROGRAM__LTX_preloaded_symbols[] =
5702 { "@PROGRAM@", (void *) 0 },
5703 _LT_EOF
5704 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5705 cat <<\_LT_EOF >> conftest.$ac_ext
5706 {0, (void *) 0}
5709 /* This works around a problem in FreeBSD linker */
5710 #ifdef FREEBSD_WORKAROUND
5711 static const void *lt_preloaded_setup() {
5712 return lt__PROGRAM__LTX_preloaded_symbols;
5714 #endif
5716 #ifdef __cplusplus
5718 #endif
5719 _LT_EOF
5720 # Now try linking the two files.
5721 mv conftest.$ac_objext conftstm.$ac_objext
5722 lt_save_LIBS="$LIBS"
5723 lt_save_CFLAGS="$CFLAGS"
5724 LIBS="conftstm.$ac_objext"
5725 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5727 (eval $ac_link) 2>&5
5728 ac_status=$?
5729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5730 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5731 pipe_works=yes
5733 LIBS="$lt_save_LIBS"
5734 CFLAGS="$lt_save_CFLAGS"
5735 else
5736 echo "cannot find nm_test_func in $nlist" >&5
5738 else
5739 echo "cannot find nm_test_var in $nlist" >&5
5741 else
5742 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5744 else
5745 echo "$progname: failed program was:" >&5
5746 cat conftest.$ac_ext >&5
5748 rm -rf conftest* conftst*
5750 # Do not use the global_symbol_pipe unless it works.
5751 if test "$pipe_works" = yes; then
5752 break
5753 else
5754 lt_cv_sys_global_symbol_pipe=
5756 done
5760 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5761 lt_cv_sys_global_symbol_to_cdecl=
5763 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5765 $as_echo "failed" >&6; }
5766 else
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5768 $as_echo "ok" >&6; }
5793 # Check whether --enable-libtool-lock was given.
5794 if test "${enable_libtool_lock+set}" = set; then :
5795 enableval=$enable_libtool_lock;
5798 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5800 # Some flags need to be propagated to the compiler or linker for good
5801 # libtool support.
5802 case $host in
5803 ia64-*-hpux*)
5804 # Find out which ABI we are using.
5805 echo 'int i;' > conftest.$ac_ext
5806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5807 (eval $ac_compile) 2>&5
5808 ac_status=$?
5809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5810 test $ac_status = 0; }; then
5811 case `/usr/bin/file conftest.$ac_objext` in
5812 *ELF-32*)
5813 HPUX_IA64_MODE="32"
5815 *ELF-64*)
5816 HPUX_IA64_MODE="64"
5818 esac
5820 rm -rf conftest*
5822 *-*-irix6*)
5823 # Find out which ABI we are using.
5824 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5826 (eval $ac_compile) 2>&5
5827 ac_status=$?
5828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5829 test $ac_status = 0; }; then
5830 if test "$lt_cv_prog_gnu_ld" = yes; then
5831 case `/usr/bin/file conftest.$ac_objext` in
5832 *32-bit*)
5833 LD="${LD-ld} -melf32bsmip"
5835 *N32*)
5836 LD="${LD-ld} -melf32bmipn32"
5838 *64-bit*)
5839 LD="${LD-ld} -melf64bmip"
5841 esac
5842 else
5843 case `/usr/bin/file conftest.$ac_objext` in
5844 *32-bit*)
5845 LD="${LD-ld} -32"
5847 *N32*)
5848 LD="${LD-ld} -n32"
5850 *64-bit*)
5851 LD="${LD-ld} -64"
5853 esac
5856 rm -rf conftest*
5859 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5860 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5861 # Find out which ABI we are using.
5862 echo 'int i;' > conftest.$ac_ext
5863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5864 (eval $ac_compile) 2>&5
5865 ac_status=$?
5866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5867 test $ac_status = 0; }; then
5868 case `/usr/bin/file conftest.o` in
5869 *32-bit*)
5870 case $host in
5871 x86_64-*kfreebsd*-gnu)
5872 LD="${LD-ld} -m elf_i386_fbsd"
5874 x86_64-*linux*)
5875 case `/usr/bin/file conftest.o` in
5876 *x86-64*)
5877 LD="${LD-ld} -m elf32_x86_64"
5880 LD="${LD-ld} -m elf_i386"
5882 esac
5884 powerpc64le-*linux*)
5885 LD="${LD-ld} -m elf32lppclinux"
5887 powerpc64-*linux*)
5888 LD="${LD-ld} -m elf32ppclinux"
5890 s390x-*linux*)
5891 LD="${LD-ld} -m elf_s390"
5893 sparc64-*linux*)
5894 LD="${LD-ld} -m elf32_sparc"
5896 esac
5898 *64-bit*)
5899 case $host in
5900 x86_64-*kfreebsd*-gnu)
5901 LD="${LD-ld} -m elf_x86_64_fbsd"
5903 x86_64-*linux*)
5904 LD="${LD-ld} -m elf_x86_64"
5906 powerpcle-*linux*)
5907 LD="${LD-ld} -m elf64lppc"
5909 powerpc-*linux*)
5910 LD="${LD-ld} -m elf64ppc"
5912 s390*-*linux*|s390*-*tpf*)
5913 LD="${LD-ld} -m elf64_s390"
5915 sparc*-*linux*)
5916 LD="${LD-ld} -m elf64_sparc"
5918 esac
5920 esac
5922 rm -rf conftest*
5925 *-*-sco3.2v5*)
5926 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5927 SAVE_CFLAGS="$CFLAGS"
5928 CFLAGS="$CFLAGS -belf"
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5930 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5931 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5934 ac_ext=c
5935 ac_cpp='$CPP $CPPFLAGS'
5936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5940 if test x$gcc_no_link = xyes; then
5941 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5947 main ()
5951 return 0;
5953 _ACEOF
5954 if ac_fn_c_try_link "$LINENO"; then :
5955 lt_cv_cc_needs_belf=yes
5956 else
5957 lt_cv_cc_needs_belf=no
5959 rm -f core conftest.err conftest.$ac_objext \
5960 conftest$ac_exeext conftest.$ac_ext
5961 ac_ext=c
5962 ac_cpp='$CPP $CPPFLAGS'
5963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5969 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5970 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5971 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5972 CFLAGS="$SAVE_CFLAGS"
5975 sparc*-*solaris*)
5976 # Find out which ABI we are using.
5977 echo 'int i;' > conftest.$ac_ext
5978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5979 (eval $ac_compile) 2>&5
5980 ac_status=$?
5981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5982 test $ac_status = 0; }; then
5983 case `/usr/bin/file conftest.o` in
5984 *64-bit*)
5985 case $lt_cv_prog_gnu_ld in
5986 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5988 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5989 LD="${LD-ld} -64"
5992 esac
5994 esac
5996 rm -rf conftest*
5998 esac
6000 need_locks="$enable_libtool_lock"
6003 case $host_os in
6004 rhapsody* | darwin*)
6005 if test -n "$ac_tool_prefix"; then
6006 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6007 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009 $as_echo_n "checking for $ac_word... " >&6; }
6010 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 if test -n "$DSYMUTIL"; then
6014 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6015 else
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6023 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 break 2
6027 done
6028 done
6029 IFS=$as_save_IFS
6033 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6034 if test -n "$DSYMUTIL"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6036 $as_echo "$DSYMUTIL" >&6; }
6037 else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039 $as_echo "no" >&6; }
6044 if test -z "$ac_cv_prog_DSYMUTIL"; then
6045 ac_ct_DSYMUTIL=$DSYMUTIL
6046 # Extract the first word of "dsymutil", so it can be a program name with args.
6047 set dummy dsymutil; ac_word=$2
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049 $as_echo_n "checking for $ac_word... " >&6; }
6050 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6051 $as_echo_n "(cached) " >&6
6052 else
6053 if test -n "$ac_ct_DSYMUTIL"; then
6054 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6055 else
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057 for as_dir in $PATH
6059 IFS=$as_save_IFS
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6063 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6065 break 2
6067 done
6068 done
6069 IFS=$as_save_IFS
6073 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6074 if test -n "$ac_ct_DSYMUTIL"; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6076 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6077 else
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079 $as_echo "no" >&6; }
6082 if test "x$ac_ct_DSYMUTIL" = x; then
6083 DSYMUTIL=":"
6084 else
6085 case $cross_compiling:$ac_tool_warned in
6086 yes:)
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6089 ac_tool_warned=yes ;;
6090 esac
6091 DSYMUTIL=$ac_ct_DSYMUTIL
6093 else
6094 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6097 if test -n "$ac_tool_prefix"; then
6098 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6099 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6101 $as_echo_n "checking for $ac_word... " >&6; }
6102 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 if test -n "$NMEDIT"; then
6106 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6107 else
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6115 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 break 2
6119 done
6120 done
6121 IFS=$as_save_IFS
6125 NMEDIT=$ac_cv_prog_NMEDIT
6126 if test -n "$NMEDIT"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6128 $as_echo "$NMEDIT" >&6; }
6129 else
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131 $as_echo "no" >&6; }
6136 if test -z "$ac_cv_prog_NMEDIT"; then
6137 ac_ct_NMEDIT=$NMEDIT
6138 # Extract the first word of "nmedit", so it can be a program name with args.
6139 set dummy nmedit; ac_word=$2
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6141 $as_echo_n "checking for $ac_word... " >&6; }
6142 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 if test -n "$ac_ct_NMEDIT"; then
6146 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6147 else
6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH
6151 IFS=$as_save_IFS
6152 test -z "$as_dir" && as_dir=.
6153 for ac_exec_ext in '' $ac_executable_extensions; do
6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6155 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 break 2
6159 done
6160 done
6161 IFS=$as_save_IFS
6165 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6166 if test -n "$ac_ct_NMEDIT"; then
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6168 $as_echo "$ac_ct_NMEDIT" >&6; }
6169 else
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6171 $as_echo "no" >&6; }
6174 if test "x$ac_ct_NMEDIT" = x; then
6175 NMEDIT=":"
6176 else
6177 case $cross_compiling:$ac_tool_warned in
6178 yes:)
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6181 ac_tool_warned=yes ;;
6182 esac
6183 NMEDIT=$ac_ct_NMEDIT
6185 else
6186 NMEDIT="$ac_cv_prog_NMEDIT"
6189 if test -n "$ac_tool_prefix"; then
6190 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6191 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193 $as_echo_n "checking for $ac_word... " >&6; }
6194 if test "${ac_cv_prog_LIPO+set}" = set; then :
6195 $as_echo_n "(cached) " >&6
6196 else
6197 if test -n "$LIPO"; then
6198 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6199 else
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH
6203 IFS=$as_save_IFS
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 break 2
6211 done
6212 done
6213 IFS=$as_save_IFS
6217 LIPO=$ac_cv_prog_LIPO
6218 if test -n "$LIPO"; then
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6220 $as_echo "$LIPO" >&6; }
6221 else
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223 $as_echo "no" >&6; }
6228 if test -z "$ac_cv_prog_LIPO"; then
6229 ac_ct_LIPO=$LIPO
6230 # Extract the first word of "lipo", so it can be a program name with args.
6231 set dummy lipo; ac_word=$2
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233 $as_echo_n "checking for $ac_word... " >&6; }
6234 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6235 $as_echo_n "(cached) " >&6
6236 else
6237 if test -n "$ac_ct_LIPO"; then
6238 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_prog_ac_ct_LIPO="lipo"
6248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249 break 2
6251 done
6252 done
6253 IFS=$as_save_IFS
6257 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6258 if test -n "$ac_ct_LIPO"; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6260 $as_echo "$ac_ct_LIPO" >&6; }
6261 else
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6266 if test "x$ac_ct_LIPO" = x; then
6267 LIPO=":"
6268 else
6269 case $cross_compiling:$ac_tool_warned in
6270 yes:)
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6273 ac_tool_warned=yes ;;
6274 esac
6275 LIPO=$ac_ct_LIPO
6277 else
6278 LIPO="$ac_cv_prog_LIPO"
6281 if test -n "$ac_tool_prefix"; then
6282 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6283 set dummy ${ac_tool_prefix}otool; ac_word=$2
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285 $as_echo_n "checking for $ac_word... " >&6; }
6286 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6287 $as_echo_n "(cached) " >&6
6288 else
6289 if test -n "$OTOOL"; then
6290 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6291 else
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6299 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 break 2
6303 done
6304 done
6305 IFS=$as_save_IFS
6309 OTOOL=$ac_cv_prog_OTOOL
6310 if test -n "$OTOOL"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6312 $as_echo "$OTOOL" >&6; }
6313 else
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6320 if test -z "$ac_cv_prog_OTOOL"; then
6321 ac_ct_OTOOL=$OTOOL
6322 # Extract the first word of "otool", so it can be a program name with args.
6323 set dummy otool; ac_word=$2
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 if test -n "$ac_ct_OTOOL"; then
6330 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6331 else
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_prog_ac_ct_OTOOL="otool"
6340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341 break 2
6343 done
6344 done
6345 IFS=$as_save_IFS
6349 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6350 if test -n "$ac_ct_OTOOL"; then
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6352 $as_echo "$ac_ct_OTOOL" >&6; }
6353 else
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }
6358 if test "x$ac_ct_OTOOL" = x; then
6359 OTOOL=":"
6360 else
6361 case $cross_compiling:$ac_tool_warned in
6362 yes:)
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6365 ac_tool_warned=yes ;;
6366 esac
6367 OTOOL=$ac_ct_OTOOL
6369 else
6370 OTOOL="$ac_cv_prog_OTOOL"
6373 if test -n "$ac_tool_prefix"; then
6374 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6375 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6377 $as_echo_n "checking for $ac_word... " >&6; }
6378 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 if test -n "$OTOOL64"; then
6382 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6383 else
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 for as_dir in $PATH
6387 IFS=$as_save_IFS
6388 test -z "$as_dir" && as_dir=.
6389 for ac_exec_ext in '' $ac_executable_extensions; do
6390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6391 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6393 break 2
6395 done
6396 done
6397 IFS=$as_save_IFS
6401 OTOOL64=$ac_cv_prog_OTOOL64
6402 if test -n "$OTOOL64"; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6404 $as_echo "$OTOOL64" >&6; }
6405 else
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407 $as_echo "no" >&6; }
6412 if test -z "$ac_cv_prog_OTOOL64"; then
6413 ac_ct_OTOOL64=$OTOOL64
6414 # Extract the first word of "otool64", so it can be a program name with args.
6415 set dummy otool64; ac_word=$2
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417 $as_echo_n "checking for $ac_word... " >&6; }
6418 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6419 $as_echo_n "(cached) " >&6
6420 else
6421 if test -n "$ac_ct_OTOOL64"; then
6422 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6423 else
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH
6427 IFS=$as_save_IFS
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6431 ac_cv_prog_ac_ct_OTOOL64="otool64"
6432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 break 2
6435 done
6436 done
6437 IFS=$as_save_IFS
6441 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6442 if test -n "$ac_ct_OTOOL64"; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6444 $as_echo "$ac_ct_OTOOL64" >&6; }
6445 else
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 $as_echo "no" >&6; }
6450 if test "x$ac_ct_OTOOL64" = x; then
6451 OTOOL64=":"
6452 else
6453 case $cross_compiling:$ac_tool_warned in
6454 yes:)
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6457 ac_tool_warned=yes ;;
6458 esac
6459 OTOOL64=$ac_ct_OTOOL64
6461 else
6462 OTOOL64="$ac_cv_prog_OTOOL64"
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6492 $as_echo_n "checking for -single_module linker flag... " >&6; }
6493 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6494 $as_echo_n "(cached) " >&6
6495 else
6496 lt_cv_apple_cc_single_mod=no
6497 if test -z "${LT_MULTI_MODULE}"; then
6498 # By default we will add the -single_module flag. You can override
6499 # by either setting the environment variable LT_MULTI_MODULE
6500 # non-empty at configure time, or by adding -multi_module to the
6501 # link flags.
6502 rm -rf libconftest.dylib*
6503 echo "int foo(void){return 1;}" > conftest.c
6504 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6505 -dynamiclib -Wl,-single_module conftest.c" >&5
6506 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6507 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6508 _lt_result=$?
6509 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6510 lt_cv_apple_cc_single_mod=yes
6511 else
6512 cat conftest.err >&5
6514 rm -rf libconftest.dylib*
6515 rm -f conftest.*
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6519 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6521 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6522 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6523 $as_echo_n "(cached) " >&6
6524 else
6525 lt_cv_ld_exported_symbols_list=no
6526 save_LDFLAGS=$LDFLAGS
6527 echo "_main" > conftest.sym
6528 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6529 if test x$gcc_no_link = xyes; then
6530 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533 /* end confdefs.h. */
6536 main ()
6540 return 0;
6542 _ACEOF
6543 if ac_fn_c_try_link "$LINENO"; then :
6544 lt_cv_ld_exported_symbols_list=yes
6545 else
6546 lt_cv_ld_exported_symbols_list=no
6548 rm -f core conftest.err conftest.$ac_objext \
6549 conftest$ac_exeext conftest.$ac_ext
6550 LDFLAGS="$save_LDFLAGS"
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6554 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6556 $as_echo_n "checking for -force_load linker flag... " >&6; }
6557 if test "${lt_cv_ld_force_load+set}" = set; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 lt_cv_ld_force_load=no
6561 cat > conftest.c << _LT_EOF
6562 int forced_loaded() { return 2;}
6563 _LT_EOF
6564 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6565 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6566 echo "$AR cru libconftest.a conftest.o" >&5
6567 $AR cru libconftest.a conftest.o 2>&5
6568 cat > conftest.c << _LT_EOF
6569 int main() { return 0;}
6570 _LT_EOF
6571 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6572 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6573 _lt_result=$?
6574 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6575 lt_cv_ld_force_load=yes
6576 else
6577 cat conftest.err >&5
6579 rm -f conftest.err libconftest.a conftest conftest.c
6580 rm -rf conftest.dSYM
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6584 $as_echo "$lt_cv_ld_force_load" >&6; }
6585 case $host_os in
6586 rhapsody* | darwin1.[012])
6587 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6588 darwin1.*)
6589 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6590 darwin*) # darwin 5.x on
6591 # if running on 10.5 or later, the deployment target defaults
6592 # to the OS version, if on x86, and 10.4, the deployment
6593 # target defaults to 10.4. Don't you love it?
6594 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6595 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6596 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6597 10.[012]*)
6598 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6599 10.*)
6600 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6601 esac
6603 esac
6604 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6605 _lt_dar_single_mod='$single_module'
6607 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6608 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6609 else
6610 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6612 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6613 _lt_dsymutil='~$DSYMUTIL $lib || :'
6614 else
6615 _lt_dsymutil=
6618 esac
6620 ac_ext=c
6621 ac_cpp='$CPP $CPPFLAGS'
6622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6626 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6627 # On Suns, sometimes $CPP names a directory.
6628 if test -n "$CPP" && test -d "$CPP"; then
6629 CPP=
6631 if test -z "$CPP"; then
6632 if test "${ac_cv_prog_CPP+set}" = set; then :
6633 $as_echo_n "(cached) " >&6
6634 else
6635 # Double quotes because CPP needs to be expanded
6636 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6638 ac_preproc_ok=false
6639 for ac_c_preproc_warn_flag in '' yes
6641 # Use a header file that comes with gcc, so configuring glibc
6642 # with a fresh cross-compiler works.
6643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6644 # <limits.h> exists even on freestanding compilers.
6645 # On the NeXT, cc -E runs the code through the compiler's parser,
6646 # not just through cpp. "Syntax error" is here to catch this case.
6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h. */
6649 #ifdef __STDC__
6650 # include <limits.h>
6651 #else
6652 # include <assert.h>
6653 #endif
6654 Syntax error
6655 _ACEOF
6656 if ac_fn_c_try_cpp "$LINENO"; then :
6658 else
6659 # Broken: fails on valid input.
6660 continue
6662 rm -f conftest.err conftest.$ac_ext
6664 # OK, works on sane cases. Now check whether nonexistent headers
6665 # can be detected and how.
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6668 #include <ac_nonexistent.h>
6669 _ACEOF
6670 if ac_fn_c_try_cpp "$LINENO"; then :
6671 # Broken: success on invalid input.
6672 continue
6673 else
6674 # Passes both tests.
6675 ac_preproc_ok=:
6676 break
6678 rm -f conftest.err conftest.$ac_ext
6680 done
6681 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6682 rm -f conftest.err conftest.$ac_ext
6683 if $ac_preproc_ok; then :
6684 break
6687 done
6688 ac_cv_prog_CPP=$CPP
6691 CPP=$ac_cv_prog_CPP
6692 else
6693 ac_cv_prog_CPP=$CPP
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6696 $as_echo "$CPP" >&6; }
6697 ac_preproc_ok=false
6698 for ac_c_preproc_warn_flag in '' yes
6700 # Use a header file that comes with gcc, so configuring glibc
6701 # with a fresh cross-compiler works.
6702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6703 # <limits.h> exists even on freestanding compilers.
6704 # On the NeXT, cc -E runs the code through the compiler's parser,
6705 # not just through cpp. "Syntax error" is here to catch this case.
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6708 #ifdef __STDC__
6709 # include <limits.h>
6710 #else
6711 # include <assert.h>
6712 #endif
6713 Syntax error
6714 _ACEOF
6715 if ac_fn_c_try_cpp "$LINENO"; then :
6717 else
6718 # Broken: fails on valid input.
6719 continue
6721 rm -f conftest.err conftest.$ac_ext
6723 # OK, works on sane cases. Now check whether nonexistent headers
6724 # can be detected and how.
6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726 /* end confdefs.h. */
6727 #include <ac_nonexistent.h>
6728 _ACEOF
6729 if ac_fn_c_try_cpp "$LINENO"; then :
6730 # Broken: success on invalid input.
6731 continue
6732 else
6733 # Passes both tests.
6734 ac_preproc_ok=:
6735 break
6737 rm -f conftest.err conftest.$ac_ext
6739 done
6740 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6741 rm -f conftest.err conftest.$ac_ext
6742 if $ac_preproc_ok; then :
6744 else
6745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6747 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6748 See \`config.log' for more details." "$LINENO" 5; }
6751 ac_ext=c
6752 ac_cpp='$CPP $CPPFLAGS'
6753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6759 $as_echo_n "checking for ANSI C header files... " >&6; }
6760 if test "${ac_cv_header_stdc+set}" = set; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6765 #include <stdlib.h>
6766 #include <stdarg.h>
6767 #include <string.h>
6768 #include <float.h>
6771 main ()
6775 return 0;
6777 _ACEOF
6778 if ac_fn_c_try_compile "$LINENO"; then :
6779 ac_cv_header_stdc=yes
6780 else
6781 ac_cv_header_stdc=no
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785 if test $ac_cv_header_stdc = yes; then
6786 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6789 #include <string.h>
6791 _ACEOF
6792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6793 $EGREP "memchr" >/dev/null 2>&1; then :
6795 else
6796 ac_cv_header_stdc=no
6798 rm -f conftest*
6802 if test $ac_cv_header_stdc = yes; then
6803 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h. */
6806 #include <stdlib.h>
6808 _ACEOF
6809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6810 $EGREP "free" >/dev/null 2>&1; then :
6812 else
6813 ac_cv_header_stdc=no
6815 rm -f conftest*
6819 if test $ac_cv_header_stdc = yes; then
6820 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6821 if test "$cross_compiling" = yes; then :
6823 else
6824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h. */
6826 #include <ctype.h>
6827 #include <stdlib.h>
6828 #if ((' ' & 0x0FF) == 0x020)
6829 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6830 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6831 #else
6832 # define ISLOWER(c) \
6833 (('a' <= (c) && (c) <= 'i') \
6834 || ('j' <= (c) && (c) <= 'r') \
6835 || ('s' <= (c) && (c) <= 'z'))
6836 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6837 #endif
6839 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6841 main ()
6843 int i;
6844 for (i = 0; i < 256; i++)
6845 if (XOR (islower (i), ISLOWER (i))
6846 || toupper (i) != TOUPPER (i))
6847 return 2;
6848 return 0;
6850 _ACEOF
6851 if ac_fn_c_try_run "$LINENO"; then :
6853 else
6854 ac_cv_header_stdc=no
6856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6857 conftest.$ac_objext conftest.beam conftest.$ac_ext
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6863 $as_echo "$ac_cv_header_stdc" >&6; }
6864 if test $ac_cv_header_stdc = yes; then
6866 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6870 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6871 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6872 inttypes.h stdint.h unistd.h
6873 do :
6874 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6875 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6877 eval as_val=\$$as_ac_Header
6878 if test "x$as_val" = x""yes; then :
6879 cat >>confdefs.h <<_ACEOF
6880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6881 _ACEOF
6885 done
6888 for ac_header in dlfcn.h
6889 do :
6890 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6892 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6893 cat >>confdefs.h <<_ACEOF
6894 #define HAVE_DLFCN_H 1
6895 _ACEOF
6899 done
6905 # Set options
6909 enable_dlopen=no
6912 enable_win32_dll=no
6915 # Check whether --enable-shared was given.
6916 if test "${enable_shared+set}" = set; then :
6917 enableval=$enable_shared; p=${PACKAGE-default}
6918 case $enableval in
6919 yes) enable_shared=yes ;;
6920 no) enable_shared=no ;;
6922 enable_shared=no
6923 # Look at the argument we got. We use all the common list separators.
6924 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6925 for pkg in $enableval; do
6926 IFS="$lt_save_ifs"
6927 if test "X$pkg" = "X$p"; then
6928 enable_shared=yes
6930 done
6931 IFS="$lt_save_ifs"
6933 esac
6934 else
6935 enable_shared=yes
6946 # Check whether --enable-static was given.
6947 if test "${enable_static+set}" = set; then :
6948 enableval=$enable_static; p=${PACKAGE-default}
6949 case $enableval in
6950 yes) enable_static=yes ;;
6951 no) enable_static=no ;;
6953 enable_static=no
6954 # Look at the argument we got. We use all the common list separators.
6955 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6956 for pkg in $enableval; do
6957 IFS="$lt_save_ifs"
6958 if test "X$pkg" = "X$p"; then
6959 enable_static=yes
6961 done
6962 IFS="$lt_save_ifs"
6964 esac
6965 else
6966 enable_static=yes
6978 # Check whether --with-pic was given.
6979 if test "${with_pic+set}" = set; then :
6980 withval=$with_pic; pic_mode="$withval"
6981 else
6982 pic_mode=default
6986 test -z "$pic_mode" && pic_mode=default
6994 # Check whether --enable-fast-install was given.
6995 if test "${enable_fast_install+set}" = set; then :
6996 enableval=$enable_fast_install; p=${PACKAGE-default}
6997 case $enableval in
6998 yes) enable_fast_install=yes ;;
6999 no) enable_fast_install=no ;;
7001 enable_fast_install=no
7002 # Look at the argument we got. We use all the common list separators.
7003 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7004 for pkg in $enableval; do
7005 IFS="$lt_save_ifs"
7006 if test "X$pkg" = "X$p"; then
7007 enable_fast_install=yes
7009 done
7010 IFS="$lt_save_ifs"
7012 esac
7013 else
7014 enable_fast_install=yes
7027 # This can be used to rebuild libtool when needed
7028 LIBTOOL_DEPS="$ltmain"
7030 # Always use our own libtool.
7031 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7058 test -z "$LN_S" && LN_S="ln -s"
7073 if test -n "${ZSH_VERSION+set}" ; then
7074 setopt NO_GLOB_SUBST
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7078 $as_echo_n "checking for objdir... " >&6; }
7079 if test "${lt_cv_objdir+set}" = set; then :
7080 $as_echo_n "(cached) " >&6
7081 else
7082 rm -f .libs 2>/dev/null
7083 mkdir .libs 2>/dev/null
7084 if test -d .libs; then
7085 lt_cv_objdir=.libs
7086 else
7087 # MS-DOS does not allow filenames that begin with a dot.
7088 lt_cv_objdir=_libs
7090 rmdir .libs 2>/dev/null
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7093 $as_echo "$lt_cv_objdir" >&6; }
7094 objdir=$lt_cv_objdir
7100 cat >>confdefs.h <<_ACEOF
7101 #define LT_OBJDIR "$lt_cv_objdir/"
7102 _ACEOF
7107 case $host_os in
7108 aix3*)
7109 # AIX sometimes has problems with the GCC collect2 program. For some
7110 # reason, if we set the COLLECT_NAMES environment variable, the problems
7111 # vanish in a puff of smoke.
7112 if test "X${COLLECT_NAMES+set}" != Xset; then
7113 COLLECT_NAMES=
7114 export COLLECT_NAMES
7117 esac
7119 # Global variables:
7120 ofile=libtool
7121 can_build_shared=yes
7123 # All known linkers require a `.a' archive for static linking (except MSVC,
7124 # which needs '.lib').
7125 libext=a
7127 with_gnu_ld="$lt_cv_prog_gnu_ld"
7129 old_CC="$CC"
7130 old_CFLAGS="$CFLAGS"
7132 # Set sane defaults for various variables
7133 test -z "$CC" && CC=cc
7134 test -z "$LTCC" && LTCC=$CC
7135 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7136 test -z "$LD" && LD=ld
7137 test -z "$ac_objext" && ac_objext=o
7139 for cc_temp in $compiler""; do
7140 case $cc_temp in
7141 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7142 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7143 \-*) ;;
7144 *) break;;
7145 esac
7146 done
7147 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7150 # Only perform the check for file, if the check method requires it
7151 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7152 case $deplibs_check_method in
7153 file_magic*)
7154 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7156 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7157 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7158 $as_echo_n "(cached) " >&6
7159 else
7160 case $MAGIC_CMD in
7161 [\\/*] | ?:[\\/]*)
7162 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7165 lt_save_MAGIC_CMD="$MAGIC_CMD"
7166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7167 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7168 for ac_dir in $ac_dummy; do
7169 IFS="$lt_save_ifs"
7170 test -z "$ac_dir" && ac_dir=.
7171 if test -f $ac_dir/${ac_tool_prefix}file; then
7172 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7173 if test -n "$file_magic_test_file"; then
7174 case $deplibs_check_method in
7175 "file_magic "*)
7176 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7177 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7178 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7179 $EGREP "$file_magic_regex" > /dev/null; then
7181 else
7182 cat <<_LT_EOF 1>&2
7184 *** Warning: the command libtool uses to detect shared libraries,
7185 *** $file_magic_cmd, produces output that libtool cannot recognize.
7186 *** The result is that libtool may fail to recognize shared libraries
7187 *** as such. This will affect the creation of libtool libraries that
7188 *** depend on shared libraries, but programs linked with such libtool
7189 *** libraries will work regardless of this problem. Nevertheless, you
7190 *** may want to report the problem to your system manager and/or to
7191 *** bug-libtool@gnu.org
7193 _LT_EOF
7194 fi ;;
7195 esac
7197 break
7199 done
7200 IFS="$lt_save_ifs"
7201 MAGIC_CMD="$lt_save_MAGIC_CMD"
7203 esac
7206 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7207 if test -n "$MAGIC_CMD"; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7209 $as_echo "$MAGIC_CMD" >&6; }
7210 else
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 $as_echo "no" >&6; }
7219 if test -z "$lt_cv_path_MAGIC_CMD"; then
7220 if test -n "$ac_tool_prefix"; then
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7222 $as_echo_n "checking for file... " >&6; }
7223 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7224 $as_echo_n "(cached) " >&6
7225 else
7226 case $MAGIC_CMD in
7227 [\\/*] | ?:[\\/]*)
7228 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7231 lt_save_MAGIC_CMD="$MAGIC_CMD"
7232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7233 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7234 for ac_dir in $ac_dummy; do
7235 IFS="$lt_save_ifs"
7236 test -z "$ac_dir" && ac_dir=.
7237 if test -f $ac_dir/file; then
7238 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7239 if test -n "$file_magic_test_file"; then
7240 case $deplibs_check_method in
7241 "file_magic "*)
7242 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7243 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7244 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7245 $EGREP "$file_magic_regex" > /dev/null; then
7247 else
7248 cat <<_LT_EOF 1>&2
7250 *** Warning: the command libtool uses to detect shared libraries,
7251 *** $file_magic_cmd, produces output that libtool cannot recognize.
7252 *** The result is that libtool may fail to recognize shared libraries
7253 *** as such. This will affect the creation of libtool libraries that
7254 *** depend on shared libraries, but programs linked with such libtool
7255 *** libraries will work regardless of this problem. Nevertheless, you
7256 *** may want to report the problem to your system manager and/or to
7257 *** bug-libtool@gnu.org
7259 _LT_EOF
7260 fi ;;
7261 esac
7263 break
7265 done
7266 IFS="$lt_save_ifs"
7267 MAGIC_CMD="$lt_save_MAGIC_CMD"
7269 esac
7272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7273 if test -n "$MAGIC_CMD"; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7275 $as_echo "$MAGIC_CMD" >&6; }
7276 else
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7282 else
7283 MAGIC_CMD=:
7289 esac
7291 # Use C for the default configuration in the libtool script
7293 lt_save_CC="$CC"
7294 ac_ext=c
7295 ac_cpp='$CPP $CPPFLAGS'
7296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7301 # Source file extension for C test sources.
7302 ac_ext=c
7304 # Object file extension for compiled C test sources.
7305 objext=o
7306 objext=$objext
7308 # Code to be used in simple compile tests
7309 lt_simple_compile_test_code="int some_variable = 0;"
7311 # Code to be used in simple link tests
7312 lt_simple_link_test_code='int main(){return(0);}'
7320 # If no C compiler was specified, use CC.
7321 LTCC=${LTCC-"$CC"}
7323 # If no C compiler flags were specified, use CFLAGS.
7324 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7326 # Allow CC to be a program name with arguments.
7327 compiler=$CC
7329 # Save the default compiler, since it gets overwritten when the other
7330 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7331 compiler_DEFAULT=$CC
7333 # save warnings/boilerplate of simple test code
7334 ac_outfile=conftest.$ac_objext
7335 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7336 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7337 _lt_compiler_boilerplate=`cat conftest.err`
7338 $RM conftest*
7340 ac_outfile=conftest.$ac_objext
7341 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7342 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7343 _lt_linker_boilerplate=`cat conftest.err`
7344 $RM -r conftest*
7347 ## CAVEAT EMPTOR:
7348 ## There is no encapsulation within the following macros, do not change
7349 ## the running order or otherwise move them around unless you know exactly
7350 ## what you are doing...
7351 if test -n "$compiler"; then
7353 lt_prog_compiler_no_builtin_flag=
7355 if test "$GCC" = yes; then
7356 case $cc_basename in
7357 nvcc*)
7358 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7360 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7361 esac
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7364 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7365 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7366 $as_echo_n "(cached) " >&6
7367 else
7368 lt_cv_prog_compiler_rtti_exceptions=no
7369 ac_outfile=conftest.$ac_objext
7370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7371 lt_compiler_flag="-fno-rtti -fno-exceptions"
7372 # Insert the option either (1) after the last *FLAGS variable, or
7373 # (2) before a word containing "conftest.", or (3) at the end.
7374 # Note that $ac_compile itself does not contain backslashes and begins
7375 # with a dollar sign (not a hyphen), so the echo should work correctly.
7376 # The option is referenced via a variable to avoid confusing sed.
7377 lt_compile=`echo "$ac_compile" | $SED \
7378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7380 -e 's:$: $lt_compiler_flag:'`
7381 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7382 (eval "$lt_compile" 2>conftest.err)
7383 ac_status=$?
7384 cat conftest.err >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 if (exit $ac_status) && test -s "$ac_outfile"; then
7387 # The compiler can only warn and ignore the option if not recognized
7388 # So say no if there are warnings other than the usual output.
7389 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7390 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7391 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7392 lt_cv_prog_compiler_rtti_exceptions=yes
7395 $RM conftest*
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7399 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7401 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7402 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7403 else
7414 lt_prog_compiler_wl=
7415 lt_prog_compiler_pic=
7416 lt_prog_compiler_static=
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7419 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7421 if test "$GCC" = yes; then
7422 lt_prog_compiler_wl='-Wl,'
7423 lt_prog_compiler_static='-static'
7425 case $host_os in
7426 aix*)
7427 # All AIX code is PIC.
7428 if test "$host_cpu" = ia64; then
7429 # AIX 5 now supports IA64 processor
7430 lt_prog_compiler_static='-Bstatic'
7432 lt_prog_compiler_pic='-fPIC'
7435 amigaos*)
7436 case $host_cpu in
7437 powerpc)
7438 # see comment about AmigaOS4 .so support
7439 lt_prog_compiler_pic='-fPIC'
7441 m68k)
7442 # FIXME: we need at least 68020 code to build shared libraries, but
7443 # adding the `-m68020' flag to GCC prevents building anything better,
7444 # like `-m68040'.
7445 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7447 esac
7450 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7451 # PIC is the default for these OSes.
7454 mingw* | cygwin* | pw32* | os2* | cegcc*)
7455 # This hack is so that the source file can tell whether it is being
7456 # built for inclusion in a dll (and should export symbols for example).
7457 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7458 # (--disable-auto-import) libraries
7459 lt_prog_compiler_pic='-DDLL_EXPORT'
7462 darwin* | rhapsody*)
7463 # PIC is the default on this platform
7464 # Common symbols not allowed in MH_DYLIB files
7465 lt_prog_compiler_pic='-fno-common'
7468 haiku*)
7469 # PIC is the default for Haiku.
7470 # The "-static" flag exists, but is broken.
7471 lt_prog_compiler_static=
7474 hpux*)
7475 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7476 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7477 # sets the default TLS model and affects inlining.
7478 case $host_cpu in
7479 hppa*64*)
7480 # +Z the default
7483 lt_prog_compiler_pic='-fPIC'
7485 esac
7488 interix[3-9]*)
7489 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7490 # Instead, we relocate shared libraries at runtime.
7493 msdosdjgpp*)
7494 # Just because we use GCC doesn't mean we suddenly get shared libraries
7495 # on systems that don't support them.
7496 lt_prog_compiler_can_build_shared=no
7497 enable_shared=no
7500 *nto* | *qnx*)
7501 # QNX uses GNU C++, but need to define -shared option too, otherwise
7502 # it will coredump.
7503 lt_prog_compiler_pic='-fPIC -shared'
7506 sysv4*MP*)
7507 if test -d /usr/nec; then
7508 lt_prog_compiler_pic=-Kconform_pic
7513 lt_prog_compiler_pic='-fPIC'
7515 esac
7517 case $cc_basename in
7518 nvcc*) # Cuda Compiler Driver 2.2
7519 lt_prog_compiler_wl='-Xlinker '
7520 lt_prog_compiler_pic='-Xcompiler -fPIC'
7522 esac
7523 else
7524 # PORTME Check for flag to pass linker flags through the system compiler.
7525 case $host_os in
7526 aix*)
7527 lt_prog_compiler_wl='-Wl,'
7528 if test "$host_cpu" = ia64; then
7529 # AIX 5 now supports IA64 processor
7530 lt_prog_compiler_static='-Bstatic'
7531 else
7532 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7536 mingw* | cygwin* | pw32* | os2* | cegcc*)
7537 # This hack is so that the source file can tell whether it is being
7538 # built for inclusion in a dll (and should export symbols for example).
7539 lt_prog_compiler_pic='-DDLL_EXPORT'
7542 hpux9* | hpux10* | hpux11*)
7543 lt_prog_compiler_wl='-Wl,'
7544 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7545 # not for PA HP-UX.
7546 case $host_cpu in
7547 hppa*64*|ia64*)
7548 # +Z the default
7551 lt_prog_compiler_pic='+Z'
7553 esac
7554 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7555 lt_prog_compiler_static='${wl}-a ${wl}archive'
7558 irix5* | irix6* | nonstopux*)
7559 lt_prog_compiler_wl='-Wl,'
7560 # PIC (with -KPIC) is the default.
7561 lt_prog_compiler_static='-non_shared'
7564 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7565 case $cc_basename in
7566 # old Intel for x86_64 which still supported -KPIC.
7567 ecc*)
7568 lt_prog_compiler_wl='-Wl,'
7569 lt_prog_compiler_pic='-KPIC'
7570 lt_prog_compiler_static='-static'
7572 # icc used to be incompatible with GCC.
7573 # ICC 10 doesn't accept -KPIC any more.
7574 icc* | ifort*)
7575 lt_prog_compiler_wl='-Wl,'
7576 lt_prog_compiler_pic='-fPIC'
7577 lt_prog_compiler_static='-static'
7579 # Lahey Fortran 8.1.
7580 lf95*)
7581 lt_prog_compiler_wl='-Wl,'
7582 lt_prog_compiler_pic='--shared'
7583 lt_prog_compiler_static='--static'
7585 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7586 # Portland Group compilers (*not* the Pentium gcc compiler,
7587 # which looks to be a dead project)
7588 lt_prog_compiler_wl='-Wl,'
7589 lt_prog_compiler_pic='-fpic'
7590 lt_prog_compiler_static='-Bstatic'
7592 ccc*)
7593 lt_prog_compiler_wl='-Wl,'
7594 # All Alpha code is PIC.
7595 lt_prog_compiler_static='-non_shared'
7597 xl* | bgxl* | bgf* | mpixl*)
7598 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7599 lt_prog_compiler_wl='-Wl,'
7600 lt_prog_compiler_pic='-qpic'
7601 lt_prog_compiler_static='-qstaticlink'
7604 case `$CC -V 2>&1 | sed 5q` in
7605 *Sun\ F* | *Sun*Fortran*)
7606 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7607 lt_prog_compiler_pic='-KPIC'
7608 lt_prog_compiler_static='-Bstatic'
7609 lt_prog_compiler_wl=''
7611 *Sun\ C*)
7612 # Sun C 5.9
7613 lt_prog_compiler_pic='-KPIC'
7614 lt_prog_compiler_static='-Bstatic'
7615 lt_prog_compiler_wl='-Wl,'
7617 esac
7619 esac
7622 newsos6)
7623 lt_prog_compiler_pic='-KPIC'
7624 lt_prog_compiler_static='-Bstatic'
7627 *nto* | *qnx*)
7628 # QNX uses GNU C++, but need to define -shared option too, otherwise
7629 # it will coredump.
7630 lt_prog_compiler_pic='-fPIC -shared'
7633 osf3* | osf4* | osf5*)
7634 lt_prog_compiler_wl='-Wl,'
7635 # All OSF/1 code is PIC.
7636 lt_prog_compiler_static='-non_shared'
7639 rdos*)
7640 lt_prog_compiler_static='-non_shared'
7643 solaris*)
7644 lt_prog_compiler_pic='-KPIC'
7645 lt_prog_compiler_static='-Bstatic'
7646 case $cc_basename in
7647 f77* | f90* | f95*)
7648 lt_prog_compiler_wl='-Qoption ld ';;
7650 lt_prog_compiler_wl='-Wl,';;
7651 esac
7654 sunos4*)
7655 lt_prog_compiler_wl='-Qoption ld '
7656 lt_prog_compiler_pic='-PIC'
7657 lt_prog_compiler_static='-Bstatic'
7660 sysv4 | sysv4.2uw2* | sysv4.3*)
7661 lt_prog_compiler_wl='-Wl,'
7662 lt_prog_compiler_pic='-KPIC'
7663 lt_prog_compiler_static='-Bstatic'
7666 sysv4*MP*)
7667 if test -d /usr/nec ;then
7668 lt_prog_compiler_pic='-Kconform_pic'
7669 lt_prog_compiler_static='-Bstatic'
7673 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7674 lt_prog_compiler_wl='-Wl,'
7675 lt_prog_compiler_pic='-KPIC'
7676 lt_prog_compiler_static='-Bstatic'
7679 unicos*)
7680 lt_prog_compiler_wl='-Wl,'
7681 lt_prog_compiler_can_build_shared=no
7684 uts4*)
7685 lt_prog_compiler_pic='-pic'
7686 lt_prog_compiler_static='-Bstatic'
7690 lt_prog_compiler_can_build_shared=no
7692 esac
7695 case $host_os in
7696 # For platforms which do not support PIC, -DPIC is meaningless:
7697 *djgpp*)
7698 lt_prog_compiler_pic=
7701 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7703 esac
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7705 $as_echo "$lt_prog_compiler_pic" >&6; }
7713 # Check to make sure the PIC flag actually works.
7715 if test -n "$lt_prog_compiler_pic"; then
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7717 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7718 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 lt_cv_prog_compiler_pic_works=no
7722 ac_outfile=conftest.$ac_objext
7723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7724 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7725 # Insert the option either (1) after the last *FLAGS variable, or
7726 # (2) before a word containing "conftest.", or (3) at the end.
7727 # Note that $ac_compile itself does not contain backslashes and begins
7728 # with a dollar sign (not a hyphen), so the echo should work correctly.
7729 # The option is referenced via a variable to avoid confusing sed.
7730 lt_compile=`echo "$ac_compile" | $SED \
7731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7733 -e 's:$: $lt_compiler_flag:'`
7734 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7735 (eval "$lt_compile" 2>conftest.err)
7736 ac_status=$?
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 if (exit $ac_status) && test -s "$ac_outfile"; then
7740 # The compiler can only warn and ignore the option if not recognized
7741 # So say no if there are warnings other than the usual output.
7742 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7743 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7744 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7745 lt_cv_prog_compiler_pic_works=yes
7748 $RM conftest*
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7752 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7754 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7755 case $lt_prog_compiler_pic in
7756 "" | " "*) ;;
7757 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7758 esac
7759 else
7760 lt_prog_compiler_pic=
7761 lt_prog_compiler_can_build_shared=no
7772 # Check to make sure the static flag actually works.
7774 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7776 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7777 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 lt_cv_prog_compiler_static_works=no
7781 save_LDFLAGS="$LDFLAGS"
7782 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7783 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7784 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7785 # The linker can only warn and ignore the option if not recognized
7786 # So say no if there are warnings
7787 if test -s conftest.err; then
7788 # Append any errors to the config.log.
7789 cat conftest.err 1>&5
7790 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7792 if diff conftest.exp conftest.er2 >/dev/null; then
7793 lt_cv_prog_compiler_static_works=yes
7795 else
7796 lt_cv_prog_compiler_static_works=yes
7799 $RM -r conftest*
7800 LDFLAGS="$save_LDFLAGS"
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7804 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7806 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7808 else
7809 lt_prog_compiler_static=
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7819 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7820 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7821 $as_echo_n "(cached) " >&6
7822 else
7823 lt_cv_prog_compiler_c_o=no
7824 $RM -r conftest 2>/dev/null
7825 mkdir conftest
7826 cd conftest
7827 mkdir out
7828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7830 lt_compiler_flag="-o out/conftest2.$ac_objext"
7831 # Insert the option either (1) after the last *FLAGS variable, or
7832 # (2) before a word containing "conftest.", or (3) at the end.
7833 # Note that $ac_compile itself does not contain backslashes and begins
7834 # with a dollar sign (not a hyphen), so the echo should work correctly.
7835 lt_compile=`echo "$ac_compile" | $SED \
7836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7838 -e 's:$: $lt_compiler_flag:'`
7839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7840 (eval "$lt_compile" 2>out/conftest.err)
7841 ac_status=$?
7842 cat out/conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7845 then
7846 # The compiler can only warn and ignore the option if not recognized
7847 # So say no if there are warnings
7848 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7849 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7850 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7851 lt_cv_prog_compiler_c_o=yes
7854 chmod u+w . 2>&5
7855 $RM conftest*
7856 # SGI C++ compiler will create directory out/ii_files/ for
7857 # template instantiation
7858 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7859 $RM out/* && rmdir out
7860 cd ..
7861 $RM -r conftest
7862 $RM conftest*
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7866 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7874 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7875 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7876 $as_echo_n "(cached) " >&6
7877 else
7878 lt_cv_prog_compiler_c_o=no
7879 $RM -r conftest 2>/dev/null
7880 mkdir conftest
7881 cd conftest
7882 mkdir out
7883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7885 lt_compiler_flag="-o out/conftest2.$ac_objext"
7886 # Insert the option either (1) after the last *FLAGS variable, or
7887 # (2) before a word containing "conftest.", or (3) at the end.
7888 # Note that $ac_compile itself does not contain backslashes and begins
7889 # with a dollar sign (not a hyphen), so the echo should work correctly.
7890 lt_compile=`echo "$ac_compile" | $SED \
7891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7893 -e 's:$: $lt_compiler_flag:'`
7894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7895 (eval "$lt_compile" 2>out/conftest.err)
7896 ac_status=$?
7897 cat out/conftest.err >&5
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7900 then
7901 # The compiler can only warn and ignore the option if not recognized
7902 # So say no if there are warnings
7903 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7904 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7905 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7906 lt_cv_prog_compiler_c_o=yes
7909 chmod u+w . 2>&5
7910 $RM conftest*
7911 # SGI C++ compiler will create directory out/ii_files/ for
7912 # template instantiation
7913 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7914 $RM out/* && rmdir out
7915 cd ..
7916 $RM -r conftest
7917 $RM conftest*
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7921 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7926 hard_links="nottested"
7927 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7928 # do not overwrite the value of need_locks provided by the user
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7930 $as_echo_n "checking if we can lock with hard links... " >&6; }
7931 hard_links=yes
7932 $RM conftest*
7933 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7934 touch conftest.a
7935 ln conftest.a conftest.b 2>&5 || hard_links=no
7936 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7938 $as_echo "$hard_links" >&6; }
7939 if test "$hard_links" = no; then
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7941 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7942 need_locks=warn
7944 else
7945 need_locks=no
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7954 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7956 runpath_var=
7957 allow_undefined_flag=
7958 always_export_symbols=no
7959 archive_cmds=
7960 archive_expsym_cmds=
7961 compiler_needs_object=no
7962 enable_shared_with_static_runtimes=no
7963 export_dynamic_flag_spec=
7964 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7965 hardcode_automatic=no
7966 hardcode_direct=no
7967 hardcode_direct_absolute=no
7968 hardcode_libdir_flag_spec=
7969 hardcode_libdir_flag_spec_ld=
7970 hardcode_libdir_separator=
7971 hardcode_minus_L=no
7972 hardcode_shlibpath_var=unsupported
7973 inherit_rpath=no
7974 link_all_deplibs=unknown
7975 module_cmds=
7976 module_expsym_cmds=
7977 old_archive_from_new_cmds=
7978 old_archive_from_expsyms_cmds=
7979 thread_safe_flag_spec=
7980 whole_archive_flag_spec=
7981 # include_expsyms should be a list of space-separated symbols to be *always*
7982 # included in the symbol list
7983 include_expsyms=
7984 # exclude_expsyms can be an extended regexp of symbols to exclude
7985 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7986 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7987 # as well as any symbol that contains `d'.
7988 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7989 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7990 # platforms (ab)use it in PIC code, but their linkers get confused if
7991 # the symbol is explicitly referenced. Since portable code cannot
7992 # rely on this symbol name, it's probably fine to never include it in
7993 # preloaded symbol tables.
7994 # Exclude shared library initialization/finalization symbols.
7995 extract_expsyms_cmds=
7997 case $host_os in
7998 cygwin* | mingw* | pw32* | cegcc*)
7999 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8000 # When not using gcc, we currently assume that we are using
8001 # Microsoft Visual C++.
8002 if test "$GCC" != yes; then
8003 with_gnu_ld=no
8006 interix*)
8007 # we just hope/assume this is gcc and not c89 (= MSVC++)
8008 with_gnu_ld=yes
8010 openbsd*)
8011 with_gnu_ld=no
8013 esac
8015 ld_shlibs=yes
8017 # On some targets, GNU ld is compatible enough with the native linker
8018 # that we're better off using the native interface for both.
8019 lt_use_gnu_ld_interface=no
8020 if test "$with_gnu_ld" = yes; then
8021 case $host_os in
8022 aix*)
8023 # The AIX port of GNU ld has always aspired to compatibility
8024 # with the native linker. However, as the warning in the GNU ld
8025 # block says, versions before 2.19.5* couldn't really create working
8026 # shared libraries, regardless of the interface used.
8027 case `$LD -v 2>&1` in
8028 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8029 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8030 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8032 lt_use_gnu_ld_interface=yes
8034 esac
8037 lt_use_gnu_ld_interface=yes
8039 esac
8042 if test "$lt_use_gnu_ld_interface" = yes; then
8043 # If archive_cmds runs LD, not CC, wlarc should be empty
8044 wlarc='${wl}'
8046 # Set some defaults for GNU ld with shared library support. These
8047 # are reset later if shared libraries are not supported. Putting them
8048 # here allows them to be overridden if necessary.
8049 runpath_var=LD_RUN_PATH
8050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8051 export_dynamic_flag_spec='${wl}--export-dynamic'
8052 # ancient GNU ld didn't support --whole-archive et. al.
8053 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8054 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8055 else
8056 whole_archive_flag_spec=
8058 supports_anon_versioning=no
8059 case `$LD -v 2>&1` in
8060 *GNU\ gold*) supports_anon_versioning=yes ;;
8061 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8062 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8063 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8064 *\ 2.11.*) ;; # other 2.11 versions
8065 *) supports_anon_versioning=yes ;;
8066 esac
8068 # See if GNU ld supports shared libraries.
8069 case $host_os in
8070 aix[3-9]*)
8071 # On AIX/PPC, the GNU linker is very broken
8072 if test "$host_cpu" != ia64; then
8073 ld_shlibs=no
8074 cat <<_LT_EOF 1>&2
8076 *** Warning: the GNU linker, at least up to release 2.19, is reported
8077 *** to be unable to reliably create shared libraries on AIX.
8078 *** Therefore, libtool is disabling shared libraries support. If you
8079 *** really care for shared libraries, you may want to install binutils
8080 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8081 *** You will then need to restart the configuration process.
8083 _LT_EOF
8087 amigaos*)
8088 case $host_cpu in
8089 powerpc)
8090 # see comment about AmigaOS4 .so support
8091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8092 archive_expsym_cmds=''
8094 m68k)
8095 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)'
8096 hardcode_libdir_flag_spec='-L$libdir'
8097 hardcode_minus_L=yes
8099 esac
8102 beos*)
8103 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8104 allow_undefined_flag=unsupported
8105 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8106 # support --undefined. This deserves some investigation. FIXME
8107 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8108 else
8109 ld_shlibs=no
8113 cygwin* | mingw* | pw32* | cegcc*)
8114 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8115 # as there is no search path for DLLs.
8116 hardcode_libdir_flag_spec='-L$libdir'
8117 export_dynamic_flag_spec='${wl}--export-all-symbols'
8118 allow_undefined_flag=unsupported
8119 always_export_symbols=no
8120 enable_shared_with_static_runtimes=yes
8121 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8123 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8125 # If the export-symbols file already is a .def file (1st line
8126 # is EXPORTS), use it as is; otherwise, prepend...
8127 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8128 cp $export_symbols $output_objdir/$soname.def;
8129 else
8130 echo EXPORTS > $output_objdir/$soname.def;
8131 cat $export_symbols >> $output_objdir/$soname.def;
8133 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8134 else
8135 ld_shlibs=no
8139 haiku*)
8140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8141 link_all_deplibs=yes
8144 interix[3-9]*)
8145 hardcode_direct=no
8146 hardcode_shlibpath_var=no
8147 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8148 export_dynamic_flag_spec='${wl}-E'
8149 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8150 # Instead, shared libraries are loaded at an image base (0x10000000 by
8151 # default) and relocated if they conflict, which is a slow very memory
8152 # consuming and fragmenting process. To avoid this, we pick a random,
8153 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8154 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8155 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8156 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'
8159 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8160 tmp_diet=no
8161 if test "$host_os" = linux-dietlibc; then
8162 case $cc_basename in
8163 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8164 esac
8166 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8167 && test "$tmp_diet" = no
8168 then
8169 tmp_addflag=
8170 tmp_sharedflag='-shared'
8171 case $cc_basename,$host_cpu in
8172 pgcc*) # Portland Group C compiler
8173 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'
8174 tmp_addflag=' $pic_flag'
8176 pgf77* | pgf90* | pgf95* | pgfortran*)
8177 # Portland Group f77 and f90 compilers
8178 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'
8179 tmp_addflag=' $pic_flag -Mnomain' ;;
8180 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8181 tmp_addflag=' -i_dynamic' ;;
8182 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8183 tmp_addflag=' -i_dynamic -nofor_main' ;;
8184 ifc* | ifort*) # Intel Fortran compiler
8185 tmp_addflag=' -nofor_main' ;;
8186 lf95*) # Lahey Fortran 8.1
8187 whole_archive_flag_spec=
8188 tmp_sharedflag='--shared' ;;
8189 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8190 tmp_sharedflag='-qmkshrobj'
8191 tmp_addflag= ;;
8192 nvcc*) # Cuda Compiler Driver 2.2
8193 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'
8194 compiler_needs_object=yes
8196 esac
8197 case `$CC -V 2>&1 | sed 5q` in
8198 *Sun\ C*) # Sun C 5.9
8199 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'
8200 compiler_needs_object=yes
8201 tmp_sharedflag='-G' ;;
8202 *Sun\ F*) # Sun Fortran 8.3
8203 tmp_sharedflag='-G' ;;
8204 esac
8205 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8207 if test "x$supports_anon_versioning" = xyes; then
8208 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8209 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8210 echo "local: *; };" >> $output_objdir/$libname.ver~
8211 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8214 case $cc_basename in
8215 xlf* | bgf* | bgxlf* | mpixlf*)
8216 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8217 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8218 hardcode_libdir_flag_spec=
8219 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8220 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8221 if test "x$supports_anon_versioning" = xyes; then
8222 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8224 echo "local: *; };" >> $output_objdir/$libname.ver~
8225 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8228 esac
8229 else
8230 ld_shlibs=no
8234 netbsd*)
8235 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8236 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8237 wlarc=
8238 else
8239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8240 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8244 solaris*)
8245 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8246 ld_shlibs=no
8247 cat <<_LT_EOF 1>&2
8249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8250 *** create shared libraries on Solaris systems. Therefore, libtool
8251 *** is disabling shared libraries support. We urge you to upgrade GNU
8252 *** binutils to release 2.9.1 or newer. Another option is to modify
8253 *** your PATH or compiler configuration so that the native linker is
8254 *** used, and then restart.
8256 _LT_EOF
8257 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8260 else
8261 ld_shlibs=no
8265 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8266 case `$LD -v 2>&1` in
8267 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8268 ld_shlibs=no
8269 cat <<_LT_EOF 1>&2
8271 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8272 *** reliably create shared libraries on SCO systems. Therefore, libtool
8273 *** is disabling shared libraries support. We urge you to upgrade GNU
8274 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8275 *** your PATH or compiler configuration so that the native linker is
8276 *** used, and then restart.
8278 _LT_EOF
8281 # For security reasons, it is highly recommended that you always
8282 # use absolute paths for naming shared libraries, and exclude the
8283 # DT_RUNPATH tag from executables and libraries. But doing so
8284 # requires that you compile everything twice, which is a pain.
8285 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8286 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8289 else
8290 ld_shlibs=no
8293 esac
8296 sunos4*)
8297 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8298 wlarc=
8299 hardcode_direct=yes
8300 hardcode_shlibpath_var=no
8304 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8307 else
8308 ld_shlibs=no
8311 esac
8313 if test "$ld_shlibs" = no; then
8314 runpath_var=
8315 hardcode_libdir_flag_spec=
8316 export_dynamic_flag_spec=
8317 whole_archive_flag_spec=
8319 else
8320 # PORTME fill in a description of your system's linker (not GNU ld)
8321 case $host_os in
8322 aix3*)
8323 allow_undefined_flag=unsupported
8324 always_export_symbols=yes
8325 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'
8326 # Note: this linker hardcodes the directories in LIBPATH if there
8327 # are no directories specified by -L.
8328 hardcode_minus_L=yes
8329 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8330 # Neither direct hardcoding nor static linking is supported with a
8331 # broken collect2.
8332 hardcode_direct=unsupported
8336 aix[4-9]*)
8337 if test "$host_cpu" = ia64; then
8338 # On IA64, the linker does run time linking by default, so we don't
8339 # have to do anything special.
8340 aix_use_runtimelinking=no
8341 exp_sym_flag='-Bexport'
8342 no_entry_flag=""
8343 else
8344 # If we're using GNU nm, then we don't want the "-C" option.
8345 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8346 # Also, AIX nm treats weak defined symbols like other global
8347 # defined symbols, whereas GNU nm marks them as "W".
8348 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8349 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'
8350 else
8351 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'
8353 aix_use_runtimelinking=no
8355 # Test if we are trying to use run time linking or normal
8356 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8357 # need to do runtime linking.
8358 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8359 for ld_flag in $LDFLAGS; do
8360 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8361 aix_use_runtimelinking=yes
8362 break
8364 done
8366 esac
8368 exp_sym_flag='-bexport'
8369 no_entry_flag='-bnoentry'
8372 # When large executables or shared objects are built, AIX ld can
8373 # have problems creating the table of contents. If linking a library
8374 # or program results in "error TOC overflow" add -mminimal-toc to
8375 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8376 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8378 archive_cmds=''
8379 hardcode_direct=yes
8380 hardcode_direct_absolute=yes
8381 hardcode_libdir_separator=':'
8382 link_all_deplibs=yes
8383 file_list_spec='${wl}-f,'
8385 if test "$GCC" = yes; then
8386 case $host_os in aix4.[012]|aix4.[012].*)
8387 # We only want to do this on AIX 4.2 and lower, the check
8388 # below for broken collect2 doesn't work under 4.3+
8389 collect2name=`${CC} -print-prog-name=collect2`
8390 if test -f "$collect2name" &&
8391 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8392 then
8393 # We have reworked collect2
8395 else
8396 # We have old collect2
8397 hardcode_direct=unsupported
8398 # It fails to find uninstalled libraries when the uninstalled
8399 # path is not listed in the libpath. Setting hardcode_minus_L
8400 # to unsupported forces relinking
8401 hardcode_minus_L=yes
8402 hardcode_libdir_flag_spec='-L$libdir'
8403 hardcode_libdir_separator=
8406 esac
8407 shared_flag='-shared'
8408 if test "$aix_use_runtimelinking" = yes; then
8409 shared_flag="$shared_flag "'${wl}-G'
8411 else
8412 # not using gcc
8413 if test "$host_cpu" = ia64; then
8414 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8415 # chokes on -Wl,-G. The following line is correct:
8416 shared_flag='-G'
8417 else
8418 if test "$aix_use_runtimelinking" = yes; then
8419 shared_flag='${wl}-G'
8420 else
8421 shared_flag='${wl}-bM:SRE'
8426 export_dynamic_flag_spec='${wl}-bexpall'
8427 # It seems that -bexpall does not export symbols beginning with
8428 # underscore (_), so it is better to generate a list of symbols to export.
8429 always_export_symbols=yes
8430 if test "$aix_use_runtimelinking" = yes; then
8431 # Warning - without using the other runtime loading flags (-brtl),
8432 # -berok will link without error, but may produce a broken library.
8433 allow_undefined_flag='-berok'
8434 # Determine the default libpath from the value encoded in an
8435 # empty executable.
8436 if test x$gcc_no_link = xyes; then
8437 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8440 /* end confdefs.h. */
8443 main ()
8447 return 0;
8449 _ACEOF
8450 if ac_fn_c_try_link "$LINENO"; then :
8452 lt_aix_libpath_sed='
8453 /Import File Strings/,/^$/ {
8454 /^0/ {
8455 s/^0 *\(.*\)$/\1/
8459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8460 # Check for a 64-bit object if we didn't find anything.
8461 if test -z "$aix_libpath"; then
8462 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8465 rm -f core conftest.err conftest.$ac_objext \
8466 conftest$ac_exeext conftest.$ac_ext
8467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8469 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8470 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"
8471 else
8472 if test "$host_cpu" = ia64; then
8473 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8474 allow_undefined_flag="-z nodefs"
8475 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"
8476 else
8477 # Determine the default libpath from the value encoded in an
8478 # empty executable.
8479 if test x$gcc_no_link = xyes; then
8480 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8486 main ()
8490 return 0;
8492 _ACEOF
8493 if ac_fn_c_try_link "$LINENO"; then :
8495 lt_aix_libpath_sed='
8496 /Import File Strings/,/^$/ {
8497 /^0/ {
8498 s/^0 *\(.*\)$/\1/
8502 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8503 # Check for a 64-bit object if we didn't find anything.
8504 if test -z "$aix_libpath"; then
8505 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8508 rm -f core conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
8510 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8512 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8513 # Warning - without using the other run time loading flags,
8514 # -berok will link without error, but may produce a broken library.
8515 no_undefined_flag=' ${wl}-bernotok'
8516 allow_undefined_flag=' ${wl}-berok'
8517 if test "$with_gnu_ld" = yes; then
8518 # We only use this code for GNU lds that support --whole-archive.
8519 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8520 else
8521 # Exported symbols can be pulled into shared objects from archives
8522 whole_archive_flag_spec='$convenience'
8524 archive_cmds_need_lc=yes
8525 # This is similar to how AIX traditionally builds its shared libraries.
8526 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'
8531 amigaos*)
8532 case $host_cpu in
8533 powerpc)
8534 # see comment about AmigaOS4 .so support
8535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8536 archive_expsym_cmds=''
8538 m68k)
8539 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)'
8540 hardcode_libdir_flag_spec='-L$libdir'
8541 hardcode_minus_L=yes
8543 esac
8546 bsdi[45]*)
8547 export_dynamic_flag_spec=-rdynamic
8550 cygwin* | mingw* | pw32* | cegcc*)
8551 # When not using gcc, we currently assume that we are using
8552 # Microsoft Visual C++.
8553 # hardcode_libdir_flag_spec is actually meaningless, as there is
8554 # no search path for DLLs.
8555 hardcode_libdir_flag_spec=' '
8556 allow_undefined_flag=unsupported
8557 # Tell ltmain to make .lib files, not .a files.
8558 libext=lib
8559 # Tell ltmain to make .dll files, not .so files.
8560 shrext_cmds=".dll"
8561 # FIXME: Setting linknames here is a bad hack.
8562 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8563 # The linker will automatically build a .lib file if we build a DLL.
8564 old_archive_from_new_cmds='true'
8565 # FIXME: Should let the user specify the lib program.
8566 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8567 fix_srcfile_path='`cygpath -w "$srcfile"`'
8568 enable_shared_with_static_runtimes=yes
8571 darwin* | rhapsody*)
8574 archive_cmds_need_lc=no
8575 hardcode_direct=no
8576 hardcode_automatic=yes
8577 hardcode_shlibpath_var=unsupported
8578 if test "$lt_cv_ld_force_load" = "yes"; then
8579 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\"`'
8580 else
8581 whole_archive_flag_spec=''
8583 link_all_deplibs=yes
8584 allow_undefined_flag="$_lt_dar_allow_undefined"
8585 case $cc_basename in
8586 ifort*) _lt_dar_can_shared=yes ;;
8587 *) _lt_dar_can_shared=$GCC ;;
8588 esac
8589 if test "$_lt_dar_can_shared" = "yes"; then
8590 output_verbose_link_cmd=func_echo_all
8591 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8592 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8593 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}"
8594 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}"
8596 else
8597 ld_shlibs=no
8602 dgux*)
8603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8604 hardcode_libdir_flag_spec='-L$libdir'
8605 hardcode_shlibpath_var=no
8608 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8609 # support. Future versions do this automatically, but an explicit c++rt0.o
8610 # does not break anything, and helps significantly (at the cost of a little
8611 # extra space).
8612 freebsd2.2*)
8613 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8614 hardcode_libdir_flag_spec='-R$libdir'
8615 hardcode_direct=yes
8616 hardcode_shlibpath_var=no
8619 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8620 freebsd2.*)
8621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8622 hardcode_direct=yes
8623 hardcode_minus_L=yes
8624 hardcode_shlibpath_var=no
8627 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8628 freebsd* | dragonfly*)
8629 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8630 hardcode_libdir_flag_spec='-R$libdir'
8631 hardcode_direct=yes
8632 hardcode_shlibpath_var=no
8635 hpux9*)
8636 if test "$GCC" = yes; then
8637 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8638 else
8639 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'
8641 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8642 hardcode_libdir_separator=:
8643 hardcode_direct=yes
8645 # hardcode_minus_L: Not really in the search PATH,
8646 # but as the default location of the library.
8647 hardcode_minus_L=yes
8648 export_dynamic_flag_spec='${wl}-E'
8651 hpux10*)
8652 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8653 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8654 else
8655 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8657 if test "$with_gnu_ld" = no; then
8658 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8659 hardcode_libdir_flag_spec_ld='+b $libdir'
8660 hardcode_libdir_separator=:
8661 hardcode_direct=yes
8662 hardcode_direct_absolute=yes
8663 export_dynamic_flag_spec='${wl}-E'
8664 # hardcode_minus_L: Not really in the search PATH,
8665 # but as the default location of the library.
8666 hardcode_minus_L=yes
8670 hpux11*)
8671 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8672 case $host_cpu in
8673 hppa*64*)
8674 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8676 ia64*)
8677 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8680 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8682 esac
8683 else
8684 case $host_cpu in
8685 hppa*64*)
8686 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8688 ia64*)
8689 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8693 # Older versions of the 11.00 compiler do not understand -b yet
8694 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8696 $as_echo_n "checking if $CC understands -b... " >&6; }
8697 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8698 $as_echo_n "(cached) " >&6
8699 else
8700 lt_cv_prog_compiler__b=no
8701 save_LDFLAGS="$LDFLAGS"
8702 LDFLAGS="$LDFLAGS -b"
8703 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8704 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8705 # The linker can only warn and ignore the option if not recognized
8706 # So say no if there are warnings
8707 if test -s conftest.err; then
8708 # Append any errors to the config.log.
8709 cat conftest.err 1>&5
8710 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8712 if diff conftest.exp conftest.er2 >/dev/null; then
8713 lt_cv_prog_compiler__b=yes
8715 else
8716 lt_cv_prog_compiler__b=yes
8719 $RM -r conftest*
8720 LDFLAGS="$save_LDFLAGS"
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8724 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8726 if test x"$lt_cv_prog_compiler__b" = xyes; then
8727 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8728 else
8729 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8733 esac
8735 if test "$with_gnu_ld" = no; then
8736 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8737 hardcode_libdir_separator=:
8739 case $host_cpu in
8740 hppa*64*|ia64*)
8741 hardcode_direct=no
8742 hardcode_shlibpath_var=no
8745 hardcode_direct=yes
8746 hardcode_direct_absolute=yes
8747 export_dynamic_flag_spec='${wl}-E'
8749 # hardcode_minus_L: Not really in the search PATH,
8750 # but as the default location of the library.
8751 hardcode_minus_L=yes
8753 esac
8757 irix5* | irix6* | nonstopux*)
8758 if test "$GCC" = yes; then
8759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8760 # Try to use the -exported_symbol ld option, if it does not
8761 # work, assume that -exports_file does not work either and
8762 # implicitly export all symbols.
8763 save_LDFLAGS="$LDFLAGS"
8764 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8765 if test x$gcc_no_link = xyes; then
8766 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8769 /* end confdefs.h. */
8770 int foo(void) {}
8771 _ACEOF
8772 if ac_fn_c_try_link "$LINENO"; then :
8773 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8776 rm -f core conftest.err conftest.$ac_objext \
8777 conftest$ac_exeext conftest.$ac_ext
8778 LDFLAGS="$save_LDFLAGS"
8779 else
8780 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'
8781 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'
8783 archive_cmds_need_lc='no'
8784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8785 hardcode_libdir_separator=:
8786 inherit_rpath=yes
8787 link_all_deplibs=yes
8790 netbsd*)
8791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8792 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8793 else
8794 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8796 hardcode_libdir_flag_spec='-R$libdir'
8797 hardcode_direct=yes
8798 hardcode_shlibpath_var=no
8801 newsos6)
8802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8803 hardcode_direct=yes
8804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8805 hardcode_libdir_separator=:
8806 hardcode_shlibpath_var=no
8809 *nto* | *qnx*)
8812 openbsd*)
8813 if test -f /usr/libexec/ld.so; then
8814 hardcode_direct=yes
8815 hardcode_shlibpath_var=no
8816 hardcode_direct_absolute=yes
8817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8819 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8821 export_dynamic_flag_spec='${wl}-E'
8822 else
8823 case $host_os in
8824 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8826 hardcode_libdir_flag_spec='-R$libdir'
8829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8832 esac
8834 else
8835 ld_shlibs=no
8839 os2*)
8840 hardcode_libdir_flag_spec='-L$libdir'
8841 hardcode_minus_L=yes
8842 allow_undefined_flag=unsupported
8843 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'
8844 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8847 osf3*)
8848 if test "$GCC" = yes; then
8849 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8850 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'
8851 else
8852 allow_undefined_flag=' -expect_unresolved \*'
8853 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'
8855 archive_cmds_need_lc='no'
8856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8857 hardcode_libdir_separator=:
8860 osf4* | osf5*) # as osf3* with the addition of -msym flag
8861 if test "$GCC" = yes; then
8862 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8863 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8865 else
8866 allow_undefined_flag=' -expect_unresolved \*'
8867 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'
8868 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~
8869 $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'
8871 # Both c and cxx compiler support -rpath directly
8872 hardcode_libdir_flag_spec='-rpath $libdir'
8874 archive_cmds_need_lc='no'
8875 hardcode_libdir_separator=:
8878 solaris*)
8879 no_undefined_flag=' -z defs'
8880 if test "$GCC" = yes; then
8881 wlarc='${wl}'
8882 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8883 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8884 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8885 else
8886 case `$CC -V 2>&1` in
8887 *"Compilers 5.0"*)
8888 wlarc=''
8889 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8890 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8891 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8894 wlarc='${wl}'
8895 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8896 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8897 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8899 esac
8901 hardcode_libdir_flag_spec='-R$libdir'
8902 hardcode_shlibpath_var=no
8903 case $host_os in
8904 solaris2.[0-5] | solaris2.[0-5].*) ;;
8906 # The compiler driver will combine and reorder linker options,
8907 # but understands `-z linker_flag'. GCC discards it without `$wl',
8908 # but is careful enough not to reorder.
8909 # Supported since Solaris 2.6 (maybe 2.5.1?)
8910 if test "$GCC" = yes; then
8911 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8912 else
8913 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8916 esac
8917 link_all_deplibs=yes
8920 sunos4*)
8921 if test "x$host_vendor" = xsequent; then
8922 # Use $CC to link under sequent, because it throws in some extra .o
8923 # files that make .init and .fini sections work.
8924 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8925 else
8926 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8928 hardcode_libdir_flag_spec='-L$libdir'
8929 hardcode_direct=yes
8930 hardcode_minus_L=yes
8931 hardcode_shlibpath_var=no
8934 sysv4)
8935 case $host_vendor in
8936 sni)
8937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8938 hardcode_direct=yes # is this really true???
8940 siemens)
8941 ## LD is ld it makes a PLAMLIB
8942 ## CC just makes a GrossModule.
8943 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8944 reload_cmds='$CC -r -o $output$reload_objs'
8945 hardcode_direct=no
8947 motorola)
8948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8949 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8951 esac
8952 runpath_var='LD_RUN_PATH'
8953 hardcode_shlibpath_var=no
8956 sysv4.3*)
8957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8958 hardcode_shlibpath_var=no
8959 export_dynamic_flag_spec='-Bexport'
8962 sysv4*MP*)
8963 if test -d /usr/nec; then
8964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8965 hardcode_shlibpath_var=no
8966 runpath_var=LD_RUN_PATH
8967 hardcode_runpath_var=yes
8968 ld_shlibs=yes
8972 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8973 no_undefined_flag='${wl}-z,text'
8974 archive_cmds_need_lc=no
8975 hardcode_shlibpath_var=no
8976 runpath_var='LD_RUN_PATH'
8978 if test "$GCC" = yes; then
8979 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8980 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8981 else
8982 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8983 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8987 sysv5* | sco3.2v5* | sco5v6*)
8988 # Note: We can NOT use -z defs as we might desire, because we do not
8989 # link with -lc, and that would cause any symbols used from libc to
8990 # always be unresolved, which means just about no library would
8991 # ever link correctly. If we're not using GNU ld we use -z text
8992 # though, which does catch some bad symbols but isn't as heavy-handed
8993 # as -z defs.
8994 no_undefined_flag='${wl}-z,text'
8995 allow_undefined_flag='${wl}-z,nodefs'
8996 archive_cmds_need_lc=no
8997 hardcode_shlibpath_var=no
8998 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8999 hardcode_libdir_separator=':'
9000 link_all_deplibs=yes
9001 export_dynamic_flag_spec='${wl}-Bexport'
9002 runpath_var='LD_RUN_PATH'
9004 if test "$GCC" = yes; then
9005 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9006 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9007 else
9008 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9009 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9013 uts4*)
9014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9015 hardcode_libdir_flag_spec='-L$libdir'
9016 hardcode_shlibpath_var=no
9020 ld_shlibs=no
9022 esac
9024 if test x$host_vendor = xsni; then
9025 case $host in
9026 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9027 export_dynamic_flag_spec='${wl}-Blargedynsym'
9029 esac
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9034 $as_echo "$ld_shlibs" >&6; }
9035 test "$ld_shlibs" = no && can_build_shared=no
9037 with_gnu_ld=$with_gnu_ld
9054 # Do we need to explicitly link libc?
9056 case "x$archive_cmds_need_lc" in
9057 x|xyes)
9058 # Assume -lc should be added
9059 archive_cmds_need_lc=yes
9061 if test "$enable_shared" = yes && test "$GCC" = yes; then
9062 case $archive_cmds in
9063 *'~'*)
9064 # FIXME: we may have to deal with multi-command sequences.
9066 '$CC '*)
9067 # Test whether the compiler implicitly links with -lc since on some
9068 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9069 # to ld, don't add -lc before -lgcc.
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9071 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9072 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9073 $as_echo_n "(cached) " >&6
9074 else
9075 $RM conftest*
9076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9079 (eval $ac_compile) 2>&5
9080 ac_status=$?
9081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9082 test $ac_status = 0; } 2>conftest.err; then
9083 soname=conftest
9084 lib=conftest
9085 libobjs=conftest.$ac_objext
9086 deplibs=
9087 wl=$lt_prog_compiler_wl
9088 pic_flag=$lt_prog_compiler_pic
9089 compiler_flags=-v
9090 linker_flags=-v
9091 verstring=
9092 output_objdir=.
9093 libname=conftest
9094 lt_save_allow_undefined_flag=$allow_undefined_flag
9095 allow_undefined_flag=
9096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9097 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9098 ac_status=$?
9099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9100 test $ac_status = 0; }
9101 then
9102 lt_cv_archive_cmds_need_lc=no
9103 else
9104 lt_cv_archive_cmds_need_lc=yes
9106 allow_undefined_flag=$lt_save_allow_undefined_flag
9107 else
9108 cat conftest.err 1>&5
9110 $RM conftest*
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9114 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9115 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9117 esac
9120 esac
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9279 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9281 if test "$GCC" = yes; then
9282 case $host_os in
9283 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9284 *) lt_awk_arg="/^libraries:/" ;;
9285 esac
9286 case $host_os in
9287 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9288 *) lt_sed_strip_eq="s,=/,/,g" ;;
9289 esac
9290 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9291 case $lt_search_path_spec in
9292 *\;*)
9293 # if the path contains ";" then we assume it to be the separator
9294 # otherwise default to the standard path separator (i.e. ":") - it is
9295 # assumed that no part of a normal pathname contains ";" but that should
9296 # okay in the real world where ";" in dirpaths is itself problematic.
9297 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9300 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9302 esac
9303 # Ok, now we have the path, separated by spaces, we can step through it
9304 # and add multilib dir if necessary.
9305 lt_tmp_lt_search_path_spec=
9306 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9307 for lt_sys_path in $lt_search_path_spec; do
9308 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9309 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9310 else
9311 test -d "$lt_sys_path" && \
9312 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9314 done
9315 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9316 BEGIN {RS=" "; FS="/|\n";} {
9317 lt_foo="";
9318 lt_count=0;
9319 for (lt_i = NF; lt_i > 0; lt_i--) {
9320 if ($lt_i != "" && $lt_i != ".") {
9321 if ($lt_i == "..") {
9322 lt_count++;
9323 } else {
9324 if (lt_count == 0) {
9325 lt_foo="/" $lt_i lt_foo;
9326 } else {
9327 lt_count--;
9332 if (lt_foo != "") { lt_freq[lt_foo]++; }
9333 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9335 # AWK program above erroneously prepends '/' to C:/dos/paths
9336 # for these hosts.
9337 case $host_os in
9338 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9339 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9340 esac
9341 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9342 else
9343 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9345 library_names_spec=
9346 libname_spec='lib$name'
9347 soname_spec=
9348 shrext_cmds=".so"
9349 postinstall_cmds=
9350 postuninstall_cmds=
9351 finish_cmds=
9352 finish_eval=
9353 shlibpath_var=
9354 shlibpath_overrides_runpath=unknown
9355 version_type=none
9356 dynamic_linker="$host_os ld.so"
9357 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9358 need_lib_prefix=unknown
9359 hardcode_into_libs=no
9361 # when you set need_version to no, make sure it does not cause -set_version
9362 # flags to be left without arguments
9363 need_version=unknown
9365 case $host_os in
9366 aix3*)
9367 version_type=linux
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9369 shlibpath_var=LIBPATH
9371 # AIX 3 has no versioning support, so we append a major version to the name.
9372 soname_spec='${libname}${release}${shared_ext}$major'
9375 aix[4-9]*)
9376 version_type=linux
9377 need_lib_prefix=no
9378 need_version=no
9379 hardcode_into_libs=yes
9380 if test "$host_cpu" = ia64; then
9381 # AIX 5 supports IA64
9382 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 else
9385 # With GCC up to 2.95.x, collect2 would create an import file
9386 # for dependence libraries. The import file would start with
9387 # the line `#! .'. This would cause the generated library to
9388 # depend on `.', always an invalid library. This was fixed in
9389 # development snapshots of GCC prior to 3.0.
9390 case $host_os in
9391 aix4 | aix4.[01] | aix4.[01].*)
9392 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9393 echo ' yes '
9394 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9396 else
9397 can_build_shared=no
9400 esac
9401 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9402 # soname into executable. Probably we can add versioning support to
9403 # collect2, so additional links can be useful in future.
9404 if test "$aix_use_runtimelinking" = yes; then
9405 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9406 # instead of lib<name>.a to let people know that these are not
9407 # typical AIX shared libraries.
9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409 else
9410 # We preserve .a as extension for shared libraries through AIX4.2
9411 # and later when we are not doing run time linking.
9412 library_names_spec='${libname}${release}.a $libname.a'
9413 soname_spec='${libname}${release}${shared_ext}$major'
9415 shlibpath_var=LIBPATH
9419 amigaos*)
9420 case $host_cpu in
9421 powerpc)
9422 # Since July 2007 AmigaOS4 officially supports .so libraries.
9423 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9426 m68k)
9427 library_names_spec='$libname.ixlibrary $libname.a'
9428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9429 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'
9431 esac
9434 beos*)
9435 library_names_spec='${libname}${shared_ext}'
9436 dynamic_linker="$host_os ld.so"
9437 shlibpath_var=LIBRARY_PATH
9440 bsdi[45]*)
9441 version_type=linux
9442 need_version=no
9443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9444 soname_spec='${libname}${release}${shared_ext}$major'
9445 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9446 shlibpath_var=LD_LIBRARY_PATH
9447 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9448 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9449 # the default ld.so.conf also contains /usr/contrib/lib and
9450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9451 # libtool to hard-code these into programs
9454 cygwin* | mingw* | pw32* | cegcc*)
9455 version_type=windows
9456 shrext_cmds=".dll"
9457 need_version=no
9458 need_lib_prefix=no
9460 case $GCC,$host_os in
9461 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9462 library_names_spec='$libname.dll.a'
9463 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9464 postinstall_cmds='base_file=`basename \${file}`~
9465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9466 dldir=$destdir/`dirname \$dlpath`~
9467 test -d \$dldir || mkdir -p \$dldir~
9468 $install_prog $dir/$dlname \$dldir/$dlname~
9469 chmod a+x \$dldir/$dlname~
9470 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9471 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9473 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9474 dlpath=$dir/\$dldll~
9475 $RM \$dlpath'
9476 shlibpath_overrides_runpath=yes
9478 case $host_os in
9479 cygwin*)
9480 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9481 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9483 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9485 mingw* | cegcc*)
9486 # MinGW DLLs use traditional 'lib' prefix
9487 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9489 pw32*)
9490 # pw32 DLLs use 'pw' prefix rather than 'lib'
9491 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9493 esac
9497 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9499 esac
9500 dynamic_linker='Win32 ld.exe'
9501 # FIXME: first we should search . and the directory the executable is in
9502 shlibpath_var=PATH
9505 darwin* | rhapsody*)
9506 dynamic_linker="$host_os dyld"
9507 version_type=darwin
9508 need_lib_prefix=no
9509 need_version=no
9510 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9511 soname_spec='${libname}${release}${major}$shared_ext'
9512 shlibpath_overrides_runpath=yes
9513 shlibpath_var=DYLD_LIBRARY_PATH
9514 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9516 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9517 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9520 dgux*)
9521 version_type=linux
9522 need_lib_prefix=no
9523 need_version=no
9524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9525 soname_spec='${libname}${release}${shared_ext}$major'
9526 shlibpath_var=LD_LIBRARY_PATH
9529 freebsd* | dragonfly*)
9530 # DragonFly does not have aout. When/if they implement a new
9531 # versioning mechanism, adjust this.
9532 if test -x /usr/bin/objformat; then
9533 objformat=`/usr/bin/objformat`
9534 else
9535 case $host_os in
9536 freebsd[23].*) objformat=aout ;;
9537 *) objformat=elf ;;
9538 esac
9540 version_type=freebsd-$objformat
9541 case $version_type in
9542 freebsd-elf*)
9543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9544 need_version=no
9545 need_lib_prefix=no
9547 freebsd-*)
9548 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9549 need_version=yes
9551 esac
9552 shlibpath_var=LD_LIBRARY_PATH
9553 case $host_os in
9554 freebsd2.*)
9555 shlibpath_overrides_runpath=yes
9557 freebsd3.[01]* | freebsdelf3.[01]*)
9558 shlibpath_overrides_runpath=yes
9559 hardcode_into_libs=yes
9561 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9562 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9563 shlibpath_overrides_runpath=no
9564 hardcode_into_libs=yes
9566 *) # from 4.6 on, and DragonFly
9567 shlibpath_overrides_runpath=yes
9568 hardcode_into_libs=yes
9570 esac
9573 gnu*)
9574 version_type=linux
9575 need_lib_prefix=no
9576 need_version=no
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9578 soname_spec='${libname}${release}${shared_ext}$major'
9579 shlibpath_var=LD_LIBRARY_PATH
9580 hardcode_into_libs=yes
9583 haiku*)
9584 version_type=linux
9585 need_lib_prefix=no
9586 need_version=no
9587 dynamic_linker="$host_os runtime_loader"
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9589 soname_spec='${libname}${release}${shared_ext}$major'
9590 shlibpath_var=LIBRARY_PATH
9591 shlibpath_overrides_runpath=yes
9592 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9593 hardcode_into_libs=yes
9596 hpux9* | hpux10* | hpux11*)
9597 # Give a soname corresponding to the major version so that dld.sl refuses to
9598 # link against other versions.
9599 version_type=sunos
9600 need_lib_prefix=no
9601 need_version=no
9602 case $host_cpu in
9603 ia64*)
9604 shrext_cmds='.so'
9605 hardcode_into_libs=yes
9606 dynamic_linker="$host_os dld.so"
9607 shlibpath_var=LD_LIBRARY_PATH
9608 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9610 soname_spec='${libname}${release}${shared_ext}$major'
9611 if test "X$HPUX_IA64_MODE" = X32; then
9612 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9613 else
9614 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9618 hppa*64*)
9619 shrext_cmds='.sl'
9620 hardcode_into_libs=yes
9621 dynamic_linker="$host_os dld.sl"
9622 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9625 soname_spec='${libname}${release}${shared_ext}$major'
9626 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9630 shrext_cmds='.sl'
9631 dynamic_linker="$host_os dld.sl"
9632 shlibpath_var=SHLIB_PATH
9633 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9635 soname_spec='${libname}${release}${shared_ext}$major'
9637 esac
9638 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9639 postinstall_cmds='chmod 555 $lib'
9640 # or fails outright, so override atomically:
9641 install_override_mode=555
9644 interix[3-9]*)
9645 version_type=linux
9646 need_lib_prefix=no
9647 need_version=no
9648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9649 soname_spec='${libname}${release}${shared_ext}$major'
9650 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9651 shlibpath_var=LD_LIBRARY_PATH
9652 shlibpath_overrides_runpath=no
9653 hardcode_into_libs=yes
9656 irix5* | irix6* | nonstopux*)
9657 case $host_os in
9658 nonstopux*) version_type=nonstopux ;;
9660 if test "$lt_cv_prog_gnu_ld" = yes; then
9661 version_type=linux
9662 else
9663 version_type=irix
9664 fi ;;
9665 esac
9666 need_lib_prefix=no
9667 need_version=no
9668 soname_spec='${libname}${release}${shared_ext}$major'
9669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9670 case $host_os in
9671 irix5* | nonstopux*)
9672 libsuff= shlibsuff=
9675 case $LD in # libtool.m4 will add one of these switches to LD
9676 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9677 libsuff= shlibsuff= libmagic=32-bit;;
9678 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9679 libsuff=32 shlibsuff=N32 libmagic=N32;;
9680 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9681 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9682 *) libsuff= shlibsuff= libmagic=never-match;;
9683 esac
9685 esac
9686 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9687 shlibpath_overrides_runpath=no
9688 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9689 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9690 hardcode_into_libs=yes
9693 # No shared lib support for Linux oldld, aout, or coff.
9694 linux*oldld* | linux*aout* | linux*coff*)
9695 dynamic_linker=no
9698 # This must be Linux ELF.
9699 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9700 version_type=linux
9701 need_lib_prefix=no
9702 need_version=no
9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9704 soname_spec='${libname}${release}${shared_ext}$major'
9705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9706 shlibpath_var=LD_LIBRARY_PATH
9707 shlibpath_overrides_runpath=no
9709 # Some binutils ld are patched to set DT_RUNPATH
9710 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9711 $as_echo_n "(cached) " >&6
9712 else
9713 lt_cv_shlibpath_overrides_runpath=no
9714 save_LDFLAGS=$LDFLAGS
9715 save_libdir=$libdir
9716 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9717 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9718 if test x$gcc_no_link = xyes; then
9719 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9725 main ()
9729 return 0;
9731 _ACEOF
9732 if ac_fn_c_try_link "$LINENO"; then :
9733 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9734 lt_cv_shlibpath_overrides_runpath=yes
9737 rm -f core conftest.err conftest.$ac_objext \
9738 conftest$ac_exeext conftest.$ac_ext
9739 LDFLAGS=$save_LDFLAGS
9740 libdir=$save_libdir
9744 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9746 # This implies no fast_install, which is unacceptable.
9747 # Some rework will be needed to allow for fast_install
9748 # before this can be enabled.
9749 hardcode_into_libs=yes
9751 # Append ld.so.conf contents to the search path
9752 if test -f /etc/ld.so.conf; then
9753 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' ' '`
9754 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9757 # We used to test for /lib/ld.so.1 and disable shared libraries on
9758 # powerpc, because MkLinux only supported shared libraries with the
9759 # GNU dynamic linker. Since this was broken with cross compilers,
9760 # most powerpc-linux boxes support dynamic linking these days and
9761 # people can always --disable-shared, the test was removed, and we
9762 # assume the GNU/Linux dynamic linker is in use.
9763 dynamic_linker='GNU/Linux ld.so'
9766 netbsd*)
9767 version_type=sunos
9768 need_lib_prefix=no
9769 need_version=no
9770 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9773 dynamic_linker='NetBSD (a.out) ld.so'
9774 else
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9776 soname_spec='${libname}${release}${shared_ext}$major'
9777 dynamic_linker='NetBSD ld.elf_so'
9779 shlibpath_var=LD_LIBRARY_PATH
9780 shlibpath_overrides_runpath=yes
9781 hardcode_into_libs=yes
9784 newsos6)
9785 version_type=linux
9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787 shlibpath_var=LD_LIBRARY_PATH
9788 shlibpath_overrides_runpath=yes
9791 *nto* | *qnx*)
9792 version_type=qnx
9793 need_lib_prefix=no
9794 need_version=no
9795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9796 soname_spec='${libname}${release}${shared_ext}$major'
9797 shlibpath_var=LD_LIBRARY_PATH
9798 shlibpath_overrides_runpath=no
9799 hardcode_into_libs=yes
9800 dynamic_linker='ldqnx.so'
9803 openbsd*)
9804 version_type=sunos
9805 sys_lib_dlsearch_path_spec="/usr/lib"
9806 need_lib_prefix=no
9807 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9808 case $host_os in
9809 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9810 *) need_version=no ;;
9811 esac
9812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9814 shlibpath_var=LD_LIBRARY_PATH
9815 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9816 case $host_os in
9817 openbsd2.[89] | openbsd2.[89].*)
9818 shlibpath_overrides_runpath=no
9821 shlibpath_overrides_runpath=yes
9823 esac
9824 else
9825 shlibpath_overrides_runpath=yes
9829 os2*)
9830 libname_spec='$name'
9831 shrext_cmds=".dll"
9832 need_lib_prefix=no
9833 library_names_spec='$libname${shared_ext} $libname.a'
9834 dynamic_linker='OS/2 ld.exe'
9835 shlibpath_var=LIBPATH
9838 osf3* | osf4* | osf5*)
9839 version_type=osf
9840 need_lib_prefix=no
9841 need_version=no
9842 soname_spec='${libname}${release}${shared_ext}$major'
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844 shlibpath_var=LD_LIBRARY_PATH
9845 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9846 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9849 rdos*)
9850 dynamic_linker=no
9853 solaris*)
9854 version_type=linux
9855 need_lib_prefix=no
9856 need_version=no
9857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9858 soname_spec='${libname}${release}${shared_ext}$major'
9859 shlibpath_var=LD_LIBRARY_PATH
9860 shlibpath_overrides_runpath=yes
9861 hardcode_into_libs=yes
9862 # ldd complains unless libraries are executable
9863 postinstall_cmds='chmod +x $lib'
9866 sunos4*)
9867 version_type=sunos
9868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9869 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9870 shlibpath_var=LD_LIBRARY_PATH
9871 shlibpath_overrides_runpath=yes
9872 if test "$with_gnu_ld" = yes; then
9873 need_lib_prefix=no
9875 need_version=yes
9878 sysv4 | sysv4.3*)
9879 version_type=linux
9880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9881 soname_spec='${libname}${release}${shared_ext}$major'
9882 shlibpath_var=LD_LIBRARY_PATH
9883 case $host_vendor in
9884 sni)
9885 shlibpath_overrides_runpath=no
9886 need_lib_prefix=no
9887 runpath_var=LD_RUN_PATH
9889 siemens)
9890 need_lib_prefix=no
9892 motorola)
9893 need_lib_prefix=no
9894 need_version=no
9895 shlibpath_overrides_runpath=no
9896 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9898 esac
9901 sysv4*MP*)
9902 if test -d /usr/nec ;then
9903 version_type=linux
9904 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9905 soname_spec='$libname${shared_ext}.$major'
9906 shlibpath_var=LD_LIBRARY_PATH
9910 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9911 version_type=freebsd-elf
9912 need_lib_prefix=no
9913 need_version=no
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9915 soname_spec='${libname}${release}${shared_ext}$major'
9916 shlibpath_var=LD_LIBRARY_PATH
9917 shlibpath_overrides_runpath=yes
9918 hardcode_into_libs=yes
9919 if test "$with_gnu_ld" = yes; then
9920 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9921 else
9922 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9923 case $host_os in
9924 sco3.2v5*)
9925 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9927 esac
9929 sys_lib_dlsearch_path_spec='/usr/lib'
9932 tpf*)
9933 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9934 version_type=linux
9935 need_lib_prefix=no
9936 need_version=no
9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9938 shlibpath_var=LD_LIBRARY_PATH
9939 shlibpath_overrides_runpath=no
9940 hardcode_into_libs=yes
9943 uts4*)
9944 version_type=linux
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9946 soname_spec='${libname}${release}${shared_ext}$major'
9947 shlibpath_var=LD_LIBRARY_PATH
9951 dynamic_linker=no
9953 esac
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9955 $as_echo "$dynamic_linker" >&6; }
9956 test "$dynamic_linker" = no && can_build_shared=no
9958 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9959 if test "$GCC" = yes; then
9960 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9963 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9964 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9966 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9967 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10062 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10063 hardcode_action=
10064 if test -n "$hardcode_libdir_flag_spec" ||
10065 test -n "$runpath_var" ||
10066 test "X$hardcode_automatic" = "Xyes" ; then
10068 # We can hardcode non-existent directories.
10069 if test "$hardcode_direct" != no &&
10070 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10071 # have to relink, otherwise we might link with an installed library
10072 # when we should be linking with a yet-to-be-installed one
10073 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10074 test "$hardcode_minus_L" != no; then
10075 # Linking always hardcodes the temporary library directory.
10076 hardcode_action=relink
10077 else
10078 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10079 hardcode_action=immediate
10081 else
10082 # We cannot hardcode anything, or else we can only hardcode existing
10083 # directories.
10084 hardcode_action=unsupported
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10087 $as_echo "$hardcode_action" >&6; }
10089 if test "$hardcode_action" = relink ||
10090 test "$inherit_rpath" = yes; then
10091 # Fast installation is not supported
10092 enable_fast_install=no
10093 elif test "$shlibpath_overrides_runpath" = yes ||
10094 test "$enable_shared" = no; then
10095 # Fast installation is not necessary
10096 enable_fast_install=needless
10104 if test "x$enable_dlopen" != xyes; then
10105 enable_dlopen=unknown
10106 enable_dlopen_self=unknown
10107 enable_dlopen_self_static=unknown
10108 else
10109 lt_cv_dlopen=no
10110 lt_cv_dlopen_libs=
10112 case $host_os in
10113 beos*)
10114 lt_cv_dlopen="load_add_on"
10115 lt_cv_dlopen_libs=
10116 lt_cv_dlopen_self=yes
10119 mingw* | pw32* | cegcc*)
10120 lt_cv_dlopen="LoadLibrary"
10121 lt_cv_dlopen_libs=
10124 cygwin*)
10125 lt_cv_dlopen="dlopen"
10126 lt_cv_dlopen_libs=
10129 darwin*)
10130 # if libdl is installed we need to link against it
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10132 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10133 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10134 $as_echo_n "(cached) " >&6
10135 else
10136 ac_check_lib_save_LIBS=$LIBS
10137 LIBS="-ldl $LIBS"
10138 if test x$gcc_no_link = xyes; then
10139 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10142 /* end confdefs.h. */
10144 /* Override any GCC internal prototype to avoid an error.
10145 Use char because int might match the return type of a GCC
10146 builtin and then its argument prototype would still apply. */
10147 #ifdef __cplusplus
10148 extern "C"
10149 #endif
10150 char dlopen ();
10152 main ()
10154 return dlopen ();
10156 return 0;
10158 _ACEOF
10159 if ac_fn_c_try_link "$LINENO"; then :
10160 ac_cv_lib_dl_dlopen=yes
10161 else
10162 ac_cv_lib_dl_dlopen=no
10164 rm -f core conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 LIBS=$ac_check_lib_save_LIBS
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10169 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10170 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10171 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10172 else
10174 lt_cv_dlopen="dyld"
10175 lt_cv_dlopen_libs=
10176 lt_cv_dlopen_self=yes
10183 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10184 if test "x$ac_cv_func_shl_load" = x""yes; then :
10185 lt_cv_dlopen="shl_load"
10186 else
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10188 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10189 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10190 $as_echo_n "(cached) " >&6
10191 else
10192 ac_check_lib_save_LIBS=$LIBS
10193 LIBS="-ldld $LIBS"
10194 if test x$gcc_no_link = xyes; then
10195 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10198 /* end confdefs.h. */
10200 /* Override any GCC internal prototype to avoid an error.
10201 Use char because int might match the return type of a GCC
10202 builtin and then its argument prototype would still apply. */
10203 #ifdef __cplusplus
10204 extern "C"
10205 #endif
10206 char shl_load ();
10208 main ()
10210 return shl_load ();
10212 return 0;
10214 _ACEOF
10215 if ac_fn_c_try_link "$LINENO"; then :
10216 ac_cv_lib_dld_shl_load=yes
10217 else
10218 ac_cv_lib_dld_shl_load=no
10220 rm -f core conftest.err conftest.$ac_objext \
10221 conftest$ac_exeext conftest.$ac_ext
10222 LIBS=$ac_check_lib_save_LIBS
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10225 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10226 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10227 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10228 else
10229 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10230 if test "x$ac_cv_func_dlopen" = x""yes; then :
10231 lt_cv_dlopen="dlopen"
10232 else
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10234 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10235 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10236 $as_echo_n "(cached) " >&6
10237 else
10238 ac_check_lib_save_LIBS=$LIBS
10239 LIBS="-ldl $LIBS"
10240 if test x$gcc_no_link = xyes; then
10241 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10246 /* Override any GCC internal prototype to avoid an error.
10247 Use char because int might match the return type of a GCC
10248 builtin and then its argument prototype would still apply. */
10249 #ifdef __cplusplus
10250 extern "C"
10251 #endif
10252 char dlopen ();
10254 main ()
10256 return dlopen ();
10258 return 0;
10260 _ACEOF
10261 if ac_fn_c_try_link "$LINENO"; then :
10262 ac_cv_lib_dl_dlopen=yes
10263 else
10264 ac_cv_lib_dl_dlopen=no
10266 rm -f core conftest.err conftest.$ac_objext \
10267 conftest$ac_exeext conftest.$ac_ext
10268 LIBS=$ac_check_lib_save_LIBS
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10271 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10272 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10274 else
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10276 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10277 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10278 $as_echo_n "(cached) " >&6
10279 else
10280 ac_check_lib_save_LIBS=$LIBS
10281 LIBS="-lsvld $LIBS"
10282 if test x$gcc_no_link = xyes; then
10283 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10286 /* end confdefs.h. */
10288 /* Override any GCC internal prototype to avoid an error.
10289 Use char because int might match the return type of a GCC
10290 builtin and then its argument prototype would still apply. */
10291 #ifdef __cplusplus
10292 extern "C"
10293 #endif
10294 char dlopen ();
10296 main ()
10298 return dlopen ();
10300 return 0;
10302 _ACEOF
10303 if ac_fn_c_try_link "$LINENO"; then :
10304 ac_cv_lib_svld_dlopen=yes
10305 else
10306 ac_cv_lib_svld_dlopen=no
10308 rm -f core conftest.err conftest.$ac_objext \
10309 conftest$ac_exeext conftest.$ac_ext
10310 LIBS=$ac_check_lib_save_LIBS
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10313 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10314 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10315 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10316 else
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10318 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10319 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10320 $as_echo_n "(cached) " >&6
10321 else
10322 ac_check_lib_save_LIBS=$LIBS
10323 LIBS="-ldld $LIBS"
10324 if test x$gcc_no_link = xyes; then
10325 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10330 /* Override any GCC internal prototype to avoid an error.
10331 Use char because int might match the return type of a GCC
10332 builtin and then its argument prototype would still apply. */
10333 #ifdef __cplusplus
10334 extern "C"
10335 #endif
10336 char dld_link ();
10338 main ()
10340 return dld_link ();
10342 return 0;
10344 _ACEOF
10345 if ac_fn_c_try_link "$LINENO"; then :
10346 ac_cv_lib_dld_dld_link=yes
10347 else
10348 ac_cv_lib_dld_dld_link=no
10350 rm -f core conftest.err conftest.$ac_objext \
10351 conftest$ac_exeext conftest.$ac_ext
10352 LIBS=$ac_check_lib_save_LIBS
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10355 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10356 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10357 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10376 esac
10378 if test "x$lt_cv_dlopen" != xno; then
10379 enable_dlopen=yes
10380 else
10381 enable_dlopen=no
10384 case $lt_cv_dlopen in
10385 dlopen)
10386 save_CPPFLAGS="$CPPFLAGS"
10387 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10389 save_LDFLAGS="$LDFLAGS"
10390 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10392 save_LIBS="$LIBS"
10393 LIBS="$lt_cv_dlopen_libs $LIBS"
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10396 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10397 if test "${lt_cv_dlopen_self+set}" = set; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 if test "$cross_compiling" = yes; then :
10401 lt_cv_dlopen_self=cross
10402 else
10403 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10404 lt_status=$lt_dlunknown
10405 cat > conftest.$ac_ext <<_LT_EOF
10406 #line 10406 "configure"
10407 #include "confdefs.h"
10409 #if HAVE_DLFCN_H
10410 #include <dlfcn.h>
10411 #endif
10413 #include <stdio.h>
10415 #ifdef RTLD_GLOBAL
10416 # define LT_DLGLOBAL RTLD_GLOBAL
10417 #else
10418 # ifdef DL_GLOBAL
10419 # define LT_DLGLOBAL DL_GLOBAL
10420 # else
10421 # define LT_DLGLOBAL 0
10422 # endif
10423 #endif
10425 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10426 find out it does not work in some platform. */
10427 #ifndef LT_DLLAZY_OR_NOW
10428 # ifdef RTLD_LAZY
10429 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10430 # else
10431 # ifdef DL_LAZY
10432 # define LT_DLLAZY_OR_NOW DL_LAZY
10433 # else
10434 # ifdef RTLD_NOW
10435 # define LT_DLLAZY_OR_NOW RTLD_NOW
10436 # else
10437 # ifdef DL_NOW
10438 # define LT_DLLAZY_OR_NOW DL_NOW
10439 # else
10440 # define LT_DLLAZY_OR_NOW 0
10441 # endif
10442 # endif
10443 # endif
10444 # endif
10445 #endif
10447 /* When -fvisbility=hidden is used, assume the code has been annotated
10448 correspondingly for the symbols needed. */
10449 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10450 void fnord () __attribute__((visibility("default")));
10451 #endif
10453 void fnord () { int i=42; }
10454 int main ()
10456 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10457 int status = $lt_dlunknown;
10459 if (self)
10461 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10462 else
10464 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10465 else puts (dlerror ());
10467 /* dlclose (self); */
10469 else
10470 puts (dlerror ());
10472 return status;
10474 _LT_EOF
10475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10476 (eval $ac_link) 2>&5
10477 ac_status=$?
10478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10479 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10480 (./conftest; exit; ) >&5 2>/dev/null
10481 lt_status=$?
10482 case x$lt_status in
10483 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10484 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10485 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10486 esac
10487 else :
10488 # compilation failed
10489 lt_cv_dlopen_self=no
10492 rm -fr conftest*
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10497 $as_echo "$lt_cv_dlopen_self" >&6; }
10499 if test "x$lt_cv_dlopen_self" = xyes; then
10500 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10502 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10503 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10504 $as_echo_n "(cached) " >&6
10505 else
10506 if test "$cross_compiling" = yes; then :
10507 lt_cv_dlopen_self_static=cross
10508 else
10509 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10510 lt_status=$lt_dlunknown
10511 cat > conftest.$ac_ext <<_LT_EOF
10512 #line 10512 "configure"
10513 #include "confdefs.h"
10515 #if HAVE_DLFCN_H
10516 #include <dlfcn.h>
10517 #endif
10519 #include <stdio.h>
10521 #ifdef RTLD_GLOBAL
10522 # define LT_DLGLOBAL RTLD_GLOBAL
10523 #else
10524 # ifdef DL_GLOBAL
10525 # define LT_DLGLOBAL DL_GLOBAL
10526 # else
10527 # define LT_DLGLOBAL 0
10528 # endif
10529 #endif
10531 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10532 find out it does not work in some platform. */
10533 #ifndef LT_DLLAZY_OR_NOW
10534 # ifdef RTLD_LAZY
10535 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10536 # else
10537 # ifdef DL_LAZY
10538 # define LT_DLLAZY_OR_NOW DL_LAZY
10539 # else
10540 # ifdef RTLD_NOW
10541 # define LT_DLLAZY_OR_NOW RTLD_NOW
10542 # else
10543 # ifdef DL_NOW
10544 # define LT_DLLAZY_OR_NOW DL_NOW
10545 # else
10546 # define LT_DLLAZY_OR_NOW 0
10547 # endif
10548 # endif
10549 # endif
10550 # endif
10551 #endif
10553 /* When -fvisbility=hidden is used, assume the code has been annotated
10554 correspondingly for the symbols needed. */
10555 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10556 void fnord () __attribute__((visibility("default")));
10557 #endif
10559 void fnord () { int i=42; }
10560 int main ()
10562 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10563 int status = $lt_dlunknown;
10565 if (self)
10567 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10568 else
10570 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10571 else puts (dlerror ());
10573 /* dlclose (self); */
10575 else
10576 puts (dlerror ());
10578 return status;
10580 _LT_EOF
10581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10582 (eval $ac_link) 2>&5
10583 ac_status=$?
10584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10585 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10586 (./conftest; exit; ) >&5 2>/dev/null
10587 lt_status=$?
10588 case x$lt_status in
10589 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10590 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10591 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10592 esac
10593 else :
10594 # compilation failed
10595 lt_cv_dlopen_self_static=no
10598 rm -fr conftest*
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10603 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10606 CPPFLAGS="$save_CPPFLAGS"
10607 LDFLAGS="$save_LDFLAGS"
10608 LIBS="$save_LIBS"
10610 esac
10612 case $lt_cv_dlopen_self in
10613 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10614 *) enable_dlopen_self=unknown ;;
10615 esac
10617 case $lt_cv_dlopen_self_static in
10618 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10619 *) enable_dlopen_self_static=unknown ;;
10620 esac
10639 striplib=
10640 old_striplib=
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10642 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10643 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10644 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10645 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10647 $as_echo "yes" >&6; }
10648 else
10649 # FIXME - insert some real tests, host_os isn't really good enough
10650 case $host_os in
10651 darwin*)
10652 if test -n "$STRIP" ; then
10653 striplib="$STRIP -x"
10654 old_striplib="$STRIP -S"
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10656 $as_echo "yes" >&6; }
10657 else
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10659 $as_echo "no" >&6; }
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664 $as_echo "no" >&6; }
10666 esac
10680 # Report which library types will actually be built
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10682 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10684 $as_echo "$can_build_shared" >&6; }
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10687 $as_echo_n "checking whether to build shared libraries... " >&6; }
10688 test "$can_build_shared" = "no" && enable_shared=no
10690 # On AIX, shared libraries and static libraries use the same namespace, and
10691 # are all built from PIC.
10692 case $host_os in
10693 aix3*)
10694 test "$enable_shared" = yes && enable_static=no
10695 if test -n "$RANLIB"; then
10696 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10697 postinstall_cmds='$RANLIB $lib'
10701 aix[4-9]*)
10702 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10703 test "$enable_shared" = yes && enable_static=no
10706 esac
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10708 $as_echo "$enable_shared" >&6; }
10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10711 $as_echo_n "checking whether to build static libraries... " >&6; }
10712 # Make sure either enable_shared or enable_static is yes.
10713 test "$enable_shared" = yes || enable_static=yes
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10715 $as_echo "$enable_static" >&6; }
10721 ac_ext=c
10722 ac_cpp='$CPP $CPPFLAGS'
10723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10727 CC="$lt_save_CC"
10741 ac_config_commands="$ac_config_commands libtool"
10746 # Only expand once:
10750 # Find CPP now so that any conditional tests below won't do it and
10751 # thereby make the resulting definitions conditional.
10752 ac_ext=c
10753 ac_cpp='$CPP $CPPFLAGS'
10754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
10758 $as_echo_n "checking how to run the C preprocessor... " >&6; }
10759 # On Suns, sometimes $CPP names a directory.
10760 if test -n "$CPP" && test -d "$CPP"; then
10761 CPP=
10763 if test -z "$CPP"; then
10764 if test "${ac_cv_prog_CPP+set}" = set; then :
10765 $as_echo_n "(cached) " >&6
10766 else
10767 # Double quotes because CPP needs to be expanded
10768 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10770 ac_preproc_ok=false
10771 for ac_c_preproc_warn_flag in '' yes
10773 # Use a header file that comes with gcc, so configuring glibc
10774 # with a fresh cross-compiler works.
10775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10776 # <limits.h> exists even on freestanding compilers.
10777 # On the NeXT, cc -E runs the code through the compiler's parser,
10778 # not just through cpp. "Syntax error" is here to catch this case.
10779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10780 /* end confdefs.h. */
10781 #ifdef __STDC__
10782 # include <limits.h>
10783 #else
10784 # include <assert.h>
10785 #endif
10786 Syntax error
10787 _ACEOF
10788 if ac_fn_c_try_cpp "$LINENO"; then :
10790 else
10791 # Broken: fails on valid input.
10792 continue
10794 rm -f conftest.err conftest.$ac_ext
10796 # OK, works on sane cases. Now check whether nonexistent headers
10797 # can be detected and how.
10798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799 /* end confdefs.h. */
10800 #include <ac_nonexistent.h>
10801 _ACEOF
10802 if ac_fn_c_try_cpp "$LINENO"; then :
10803 # Broken: success on invalid input.
10804 continue
10805 else
10806 # Passes both tests.
10807 ac_preproc_ok=:
10808 break
10810 rm -f conftest.err conftest.$ac_ext
10812 done
10813 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10814 rm -f conftest.err conftest.$ac_ext
10815 if $ac_preproc_ok; then :
10816 break
10819 done
10820 ac_cv_prog_CPP=$CPP
10823 CPP=$ac_cv_prog_CPP
10824 else
10825 ac_cv_prog_CPP=$CPP
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
10828 $as_echo "$CPP" >&6; }
10829 ac_preproc_ok=false
10830 for ac_c_preproc_warn_flag in '' yes
10832 # Use a header file that comes with gcc, so configuring glibc
10833 # with a fresh cross-compiler works.
10834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10835 # <limits.h> exists even on freestanding compilers.
10836 # On the NeXT, cc -E runs the code through the compiler's parser,
10837 # not just through cpp. "Syntax error" is here to catch this case.
10838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10839 /* end confdefs.h. */
10840 #ifdef __STDC__
10841 # include <limits.h>
10842 #else
10843 # include <assert.h>
10844 #endif
10845 Syntax error
10846 _ACEOF
10847 if ac_fn_c_try_cpp "$LINENO"; then :
10849 else
10850 # Broken: fails on valid input.
10851 continue
10853 rm -f conftest.err conftest.$ac_ext
10855 # OK, works on sane cases. Now check whether nonexistent headers
10856 # can be detected and how.
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10859 #include <ac_nonexistent.h>
10860 _ACEOF
10861 if ac_fn_c_try_cpp "$LINENO"; then :
10862 # Broken: success on invalid input.
10863 continue
10864 else
10865 # Passes both tests.
10866 ac_preproc_ok=:
10867 break
10869 rm -f conftest.err conftest.$ac_ext
10871 done
10872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10873 rm -f conftest.err conftest.$ac_ext
10874 if $ac_preproc_ok; then :
10876 else
10877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10879 as_fn_error "C preprocessor \"$CPP\" fails sanity check
10880 See \`config.log' for more details." "$LINENO" 5; }
10883 ac_ext=c
10884 ac_cpp='$CPP $CPPFLAGS'
10885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10890 if test -n "$with_cross_host"; then
10891 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
10892 # may not work correctly, because the compiler may not be able to
10893 # link executables.
10895 # We assume newlib. This lets us hard-code the functions we know
10896 # we'll have.
10897 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
10899 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
10902 # We ignore --with-system-zlib in this case.
10903 target_all=libzgcj.la
10904 else
10905 if test x$gcc_no_link = xyes; then
10906 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
10907 ac_cv_func_mmap_fixed_mapped=no
10910 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
10911 for ac_header in stdlib.h unistd.h
10912 do :
10913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10914 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10915 eval as_val=\$$as_ac_Header
10916 if test "x$as_val" = x""yes; then :
10917 cat >>confdefs.h <<_ACEOF
10918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10919 _ACEOF
10923 done
10925 for ac_func in getpagesize
10926 do :
10927 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10928 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10929 cat >>confdefs.h <<_ACEOF
10930 #define HAVE_GETPAGESIZE 1
10931 _ACEOF
10934 done
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10937 $as_echo_n "checking for working mmap... " >&6; }
10938 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10939 $as_echo_n "(cached) " >&6
10940 else
10941 if test "$cross_compiling" = yes; then :
10942 ac_cv_func_mmap_fixed_mapped=no
10943 else
10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10945 /* end confdefs.h. */
10946 $ac_includes_default
10947 /* malloc might have been renamed as rpl_malloc. */
10948 #undef malloc
10950 /* Thanks to Mike Haertel and Jim Avera for this test.
10951 Here is a matrix of mmap possibilities:
10952 mmap private not fixed
10953 mmap private fixed at somewhere currently unmapped
10954 mmap private fixed at somewhere already mapped
10955 mmap shared not fixed
10956 mmap shared fixed at somewhere currently unmapped
10957 mmap shared fixed at somewhere already mapped
10958 For private mappings, we should verify that changes cannot be read()
10959 back from the file, nor mmap's back from the file at a different
10960 address. (There have been systems where private was not correctly
10961 implemented like the infamous i386 svr4.0, and systems where the
10962 VM page cache was not coherent with the file system buffer cache
10963 like early versions of FreeBSD and possibly contemporary NetBSD.)
10964 For shared mappings, we should conversely verify that changes get
10965 propagated back to all the places they're supposed to be.
10967 Grep wants private fixed already mapped.
10968 The main things grep needs to know about mmap are:
10969 * does it exist and is it safe to write into the mmap'd area
10970 * how to use it (BSD variants) */
10972 #include <fcntl.h>
10973 #include <sys/mman.h>
10975 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10976 char *malloc ();
10977 #endif
10979 /* This mess was copied from the GNU getpagesize.h. */
10980 #ifndef HAVE_GETPAGESIZE
10981 /* Assume that all systems that can run configure have sys/param.h. */
10982 # ifndef HAVE_SYS_PARAM_H
10983 # define HAVE_SYS_PARAM_H 1
10984 # endif
10986 # ifdef _SC_PAGESIZE
10987 # define getpagesize() sysconf(_SC_PAGESIZE)
10988 # else /* no _SC_PAGESIZE */
10989 # ifdef HAVE_SYS_PARAM_H
10990 # include <sys/param.h>
10991 # ifdef EXEC_PAGESIZE
10992 # define getpagesize() EXEC_PAGESIZE
10993 # else /* no EXEC_PAGESIZE */
10994 # ifdef NBPG
10995 # define getpagesize() NBPG * CLSIZE
10996 # ifndef CLSIZE
10997 # define CLSIZE 1
10998 # endif /* no CLSIZE */
10999 # else /* no NBPG */
11000 # ifdef NBPC
11001 # define getpagesize() NBPC
11002 # else /* no NBPC */
11003 # ifdef PAGESIZE
11004 # define getpagesize() PAGESIZE
11005 # endif /* PAGESIZE */
11006 # endif /* no NBPC */
11007 # endif /* no NBPG */
11008 # endif /* no EXEC_PAGESIZE */
11009 # else /* no HAVE_SYS_PARAM_H */
11010 # define getpagesize() 8192 /* punt totally */
11011 # endif /* no HAVE_SYS_PARAM_H */
11012 # endif /* no _SC_PAGESIZE */
11014 #endif /* no HAVE_GETPAGESIZE */
11017 main ()
11019 char *data, *data2, *data3;
11020 int i, pagesize;
11021 int fd;
11023 pagesize = getpagesize ();
11025 /* First, make a file with some known garbage in it. */
11026 data = (char *) malloc (pagesize);
11027 if (!data)
11028 return 1;
11029 for (i = 0; i < pagesize; ++i)
11030 *(data + i) = rand ();
11031 umask (0);
11032 fd = creat ("conftest.mmap", 0600);
11033 if (fd < 0)
11034 return 1;
11035 if (write (fd, data, pagesize) != pagesize)
11036 return 1;
11037 close (fd);
11039 /* Next, try to mmap the file at a fixed address which already has
11040 something else allocated at it. If we can, also make sure that
11041 we see the same garbage. */
11042 fd = open ("conftest.mmap", O_RDWR);
11043 if (fd < 0)
11044 return 1;
11045 data2 = (char *) malloc (2 * pagesize);
11046 if (!data2)
11047 return 1;
11048 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11049 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11050 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11051 return 1;
11052 for (i = 0; i < pagesize; ++i)
11053 if (*(data + i) != *(data2 + i))
11054 return 1;
11056 /* Finally, make sure that changes to the mapped area do not
11057 percolate back to the file as seen by read(). (This is a bug on
11058 some variants of i386 svr4.0.) */
11059 for (i = 0; i < pagesize; ++i)
11060 *(data2 + i) = *(data2 + i) + 1;
11061 data3 = (char *) malloc (pagesize);
11062 if (!data3)
11063 return 1;
11064 if (read (fd, data3, pagesize) != pagesize)
11065 return 1;
11066 for (i = 0; i < pagesize; ++i)
11067 if (*(data + i) != *(data3 + i))
11068 return 1;
11069 close (fd);
11070 return 0;
11072 _ACEOF
11073 if ac_fn_c_try_run "$LINENO"; then :
11074 ac_cv_func_mmap_fixed_mapped=yes
11075 else
11076 ac_cv_func_mmap_fixed_mapped=no
11078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11079 conftest.$ac_objext conftest.beam conftest.$ac_ext
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11084 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11085 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11087 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
11090 rm -f conftest.mmap
11093 for ac_func in memcpy strerror
11094 do :
11095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11096 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11097 eval as_val=\$$as_ac_var
11098 if test "x$as_val" = x""yes; then :
11099 cat >>confdefs.h <<_ACEOF
11100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11101 _ACEOF
11104 done
11107 if test "$with_system_zlib" = yes; then
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
11109 $as_echo_n "checking for deflate in -lz... " >&6; }
11110 if test "${ac_cv_lib_z_deflate+set}" = set; then :
11111 $as_echo_n "(cached) " >&6
11112 else
11113 ac_check_lib_save_LIBS=$LIBS
11114 LIBS="-lz $LIBS"
11115 if test x$gcc_no_link = xyes; then
11116 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119 /* end confdefs.h. */
11121 /* Override any GCC internal prototype to avoid an error.
11122 Use char because int might match the return type of a GCC
11123 builtin and then its argument prototype would still apply. */
11124 #ifdef __cplusplus
11125 extern "C"
11126 #endif
11127 char deflate ();
11129 main ()
11131 return deflate ();
11133 return 0;
11135 _ACEOF
11136 if ac_fn_c_try_link "$LINENO"; then :
11137 ac_cv_lib_z_deflate=yes
11138 else
11139 ac_cv_lib_z_deflate=no
11141 rm -f core conftest.err conftest.$ac_objext \
11142 conftest$ac_exeext conftest.$ac_ext
11143 LIBS=$ac_check_lib_save_LIBS
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
11146 $as_echo "$ac_cv_lib_z_deflate" >&6; }
11147 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
11148 target_all=
11149 else
11150 target_all=libzgcj.la
11153 else
11154 target_all=libzgcj.la
11160 for ac_header in unistd.h
11161 do :
11162 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11163 if test "x$ac_cv_header_unistd_h" = x""yes; then :
11164 cat >>confdefs.h <<_ACEOF
11165 #define HAVE_UNISTD_H 1
11166 _ACEOF
11170 done
11173 if test -n "$with_cross_host" &&
11174 test x"$with_cross_host" != x"no"; then
11175 toolexecdir='$(exec_prefix)/$(target_alias)'
11176 toolexeclibdir='$(toolexecdir)/lib'
11177 else
11178 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11179 toolexeclibdir='$(libdir)'
11181 if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
11182 multiosdir=/`$CC -print-multi-os-directory`
11183 case $multiosdir in
11184 /.) multiosdir= ;; # Avoid trailing /.
11185 esac
11186 else
11187 multiosdir=
11189 toolexeclibdir=${toolexeclibdir}${multiosdir}
11193 if test -n "$with_target_subdir"; then
11194 TARGET_LIBRARY_TRUE=
11195 TARGET_LIBRARY_FALSE='#'
11196 else
11197 TARGET_LIBRARY_TRUE='#'
11198 TARGET_LIBRARY_FALSE=
11202 if test "${multilib}" = "yes"; then
11203 multilib_arg="--enable-multilib"
11204 else
11205 multilib_arg=
11208 # Check whether --enable-host-shared was given.
11209 if test "${enable_host_shared+set}" = set; then :
11210 enableval=$enable_host_shared; PICFLAG=-fPIC
11211 else
11212 PICFLAG=
11217 ac_config_files="$ac_config_files Makefile"
11219 cat >confcache <<\_ACEOF
11220 # This file is a shell script that caches the results of configure
11221 # tests run on this system so they can be shared between configure
11222 # scripts and configure runs, see configure's option --config-cache.
11223 # It is not useful on other systems. If it contains results you don't
11224 # want to keep, you may remove or edit it.
11226 # config.status only pays attention to the cache file if you give it
11227 # the --recheck option to rerun configure.
11229 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11230 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11231 # following values.
11233 _ACEOF
11235 # The following way of writing the cache mishandles newlines in values,
11236 # but we know of no workaround that is simple, portable, and efficient.
11237 # So, we kill variables containing newlines.
11238 # Ultrix sh set writes to stderr and can't be redirected directly,
11239 # and sets the high bit in the cache file unless we assign to the vars.
11241 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11242 eval ac_val=\$$ac_var
11243 case $ac_val in #(
11244 *${as_nl}*)
11245 case $ac_var in #(
11246 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11247 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11248 esac
11249 case $ac_var in #(
11250 _ | IFS | as_nl) ;; #(
11251 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11252 *) { eval $ac_var=; unset $ac_var;} ;;
11253 esac ;;
11254 esac
11255 done
11257 (set) 2>&1 |
11258 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11259 *${as_nl}ac_space=\ *)
11260 # `set' does not quote correctly, so add quotes: double-quote
11261 # substitution turns \\\\ into \\, and sed turns \\ into \.
11262 sed -n \
11263 "s/'/'\\\\''/g;
11264 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11265 ;; #(
11267 # `set' quotes correctly as required by POSIX, so do not add quotes.
11268 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11270 esac |
11271 sort
11273 sed '
11274 /^ac_cv_env_/b end
11275 t clear
11276 :clear
11277 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11278 t end
11279 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11280 :end' >>confcache
11281 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11282 if test -w "$cache_file"; then
11283 test "x$cache_file" != "x/dev/null" &&
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11285 $as_echo "$as_me: updating cache $cache_file" >&6;}
11286 cat confcache >$cache_file
11287 else
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11289 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11292 rm -f confcache
11294 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11295 # Let make expand exec_prefix.
11296 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11298 # Transform confdefs.h into DEFS.
11299 # Protect against shell expansion while executing Makefile rules.
11300 # Protect against Makefile macro expansion.
11302 # If the first sed substitution is executed (which looks for macros that
11303 # take arguments), then branch to the quote section. Otherwise,
11304 # look for a macro that doesn't take arguments.
11305 ac_script='
11306 :mline
11307 /\\$/{
11309 s,\\\n,,
11310 b mline
11312 t clear
11313 :clear
11314 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11315 t quote
11316 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11317 t quote
11318 b any
11319 :quote
11320 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11321 s/\[/\\&/g
11322 s/\]/\\&/g
11323 s/\$/$$/g
11325 :any
11328 s/^\n//
11329 s/\n/ /g
11333 DEFS=`sed -n "$ac_script" confdefs.h`
11336 ac_libobjs=
11337 ac_ltlibobjs=
11338 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11339 # 1. Remove the extension, and $U if already installed.
11340 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11341 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11342 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11343 # will be set to the directory where LIBOBJS objects are built.
11344 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11345 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11346 done
11347 LIBOBJS=$ac_libobjs
11349 LTLIBOBJS=$ac_ltlibobjs
11352 if test -n "$EXEEXT"; then
11353 am__EXEEXT_TRUE=
11354 am__EXEEXT_FALSE='#'
11355 else
11356 am__EXEEXT_TRUE='#'
11357 am__EXEEXT_FALSE=
11360 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11361 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11364 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11365 as_fn_error "conditional \"AMDEP\" was never defined.
11366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11368 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11369 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11372 if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
11373 as_fn_error "conditional \"TARGET_LIBRARY\" was never defined.
11374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11377 : ${CONFIG_STATUS=./config.status}
11378 ac_write_fail=0
11379 ac_clean_files_save=$ac_clean_files
11380 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11382 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11383 as_write_fail=0
11384 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11385 #! $SHELL
11386 # Generated by $as_me.
11387 # Run this file to recreate the current configuration.
11388 # Compiler output produced by configure, useful for debugging
11389 # configure, is in config.log if it exists.
11391 debug=false
11392 ac_cs_recheck=false
11393 ac_cs_silent=false
11395 SHELL=\${CONFIG_SHELL-$SHELL}
11396 export SHELL
11397 _ASEOF
11398 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11399 ## -------------------- ##
11400 ## M4sh Initialization. ##
11401 ## -------------------- ##
11403 # Be more Bourne compatible
11404 DUALCASE=1; export DUALCASE # for MKS sh
11405 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11406 emulate sh
11407 NULLCMD=:
11408 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11409 # is contrary to our usage. Disable this feature.
11410 alias -g '${1+"$@"}'='"$@"'
11411 setopt NO_GLOB_SUBST
11412 else
11413 case `(set -o) 2>/dev/null` in #(
11414 *posix*) :
11415 set -o posix ;; #(
11416 *) :
11418 esac
11422 as_nl='
11424 export as_nl
11425 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11426 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11427 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11428 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11429 # Prefer a ksh shell builtin over an external printf program on Solaris,
11430 # but without wasting forks for bash or zsh.
11431 if test -z "$BASH_VERSION$ZSH_VERSION" \
11432 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11433 as_echo='print -r --'
11434 as_echo_n='print -rn --'
11435 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11436 as_echo='printf %s\n'
11437 as_echo_n='printf %s'
11438 else
11439 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11440 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11441 as_echo_n='/usr/ucb/echo -n'
11442 else
11443 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11444 as_echo_n_body='eval
11445 arg=$1;
11446 case $arg in #(
11447 *"$as_nl"*)
11448 expr "X$arg" : "X\\(.*\\)$as_nl";
11449 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11450 esac;
11451 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11453 export as_echo_n_body
11454 as_echo_n='sh -c $as_echo_n_body as_echo'
11456 export as_echo_body
11457 as_echo='sh -c $as_echo_body as_echo'
11460 # The user is always right.
11461 if test "${PATH_SEPARATOR+set}" != set; then
11462 PATH_SEPARATOR=:
11463 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11464 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11465 PATH_SEPARATOR=';'
11470 # IFS
11471 # We need space, tab and new line, in precisely that order. Quoting is
11472 # there to prevent editors from complaining about space-tab.
11473 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11474 # splitting by setting IFS to empty value.)
11475 IFS=" "" $as_nl"
11477 # Find who we are. Look in the path if we contain no directory separator.
11478 case $0 in #((
11479 *[\\/]* ) as_myself=$0 ;;
11480 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481 for as_dir in $PATH
11483 IFS=$as_save_IFS
11484 test -z "$as_dir" && as_dir=.
11485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11486 done
11487 IFS=$as_save_IFS
11490 esac
11491 # We did not find ourselves, most probably we were run as `sh COMMAND'
11492 # in which case we are not to be found in the path.
11493 if test "x$as_myself" = x; then
11494 as_myself=$0
11496 if test ! -f "$as_myself"; then
11497 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11498 exit 1
11501 # Unset variables that we do not need and which cause bugs (e.g. in
11502 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11503 # suppresses any "Segmentation fault" message there. '((' could
11504 # trigger a bug in pdksh 5.2.14.
11505 for as_var in BASH_ENV ENV MAIL MAILPATH
11506 do eval test x\${$as_var+set} = xset \
11507 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11508 done
11509 PS1='$ '
11510 PS2='> '
11511 PS4='+ '
11513 # NLS nuisances.
11514 LC_ALL=C
11515 export LC_ALL
11516 LANGUAGE=C
11517 export LANGUAGE
11519 # CDPATH.
11520 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11523 # as_fn_error ERROR [LINENO LOG_FD]
11524 # ---------------------------------
11525 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11526 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11527 # script with status $?, using 1 if that was 0.
11528 as_fn_error ()
11530 as_status=$?; test $as_status -eq 0 && as_status=1
11531 if test "$3"; then
11532 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11533 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11535 $as_echo "$as_me: error: $1" >&2
11536 as_fn_exit $as_status
11537 } # as_fn_error
11540 # as_fn_set_status STATUS
11541 # -----------------------
11542 # Set $? to STATUS, without forking.
11543 as_fn_set_status ()
11545 return $1
11546 } # as_fn_set_status
11548 # as_fn_exit STATUS
11549 # -----------------
11550 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11551 as_fn_exit ()
11553 set +e
11554 as_fn_set_status $1
11555 exit $1
11556 } # as_fn_exit
11558 # as_fn_unset VAR
11559 # ---------------
11560 # Portably unset VAR.
11561 as_fn_unset ()
11563 { eval $1=; unset $1;}
11565 as_unset=as_fn_unset
11566 # as_fn_append VAR VALUE
11567 # ----------------------
11568 # Append the text in VALUE to the end of the definition contained in VAR. Take
11569 # advantage of any shell optimizations that allow amortized linear growth over
11570 # repeated appends, instead of the typical quadratic growth present in naive
11571 # implementations.
11572 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11573 eval 'as_fn_append ()
11575 eval $1+=\$2
11577 else
11578 as_fn_append ()
11580 eval $1=\$$1\$2
11582 fi # as_fn_append
11584 # as_fn_arith ARG...
11585 # ------------------
11586 # Perform arithmetic evaluation on the ARGs, and store the result in the
11587 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11588 # must be portable across $(()) and expr.
11589 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11590 eval 'as_fn_arith ()
11592 as_val=$(( $* ))
11594 else
11595 as_fn_arith ()
11597 as_val=`expr "$@" || test $? -eq 1`
11599 fi # as_fn_arith
11602 if expr a : '\(a\)' >/dev/null 2>&1 &&
11603 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11604 as_expr=expr
11605 else
11606 as_expr=false
11609 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11610 as_basename=basename
11611 else
11612 as_basename=false
11615 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11616 as_dirname=dirname
11617 else
11618 as_dirname=false
11621 as_me=`$as_basename -- "$0" ||
11622 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11623 X"$0" : 'X\(//\)$' \| \
11624 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11625 $as_echo X/"$0" |
11626 sed '/^.*\/\([^/][^/]*\)\/*$/{
11627 s//\1/
11630 /^X\/\(\/\/\)$/{
11631 s//\1/
11634 /^X\/\(\/\).*/{
11635 s//\1/
11638 s/.*/./; q'`
11640 # Avoid depending upon Character Ranges.
11641 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11642 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11643 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11644 as_cr_digits='0123456789'
11645 as_cr_alnum=$as_cr_Letters$as_cr_digits
11647 ECHO_C= ECHO_N= ECHO_T=
11648 case `echo -n x` in #(((((
11649 -n*)
11650 case `echo 'xy\c'` in
11651 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11652 xy) ECHO_C='\c';;
11653 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11654 ECHO_T=' ';;
11655 esac;;
11657 ECHO_N='-n';;
11658 esac
11660 rm -f conf$$ conf$$.exe conf$$.file
11661 if test -d conf$$.dir; then
11662 rm -f conf$$.dir/conf$$.file
11663 else
11664 rm -f conf$$.dir
11665 mkdir conf$$.dir 2>/dev/null
11667 if (echo >conf$$.file) 2>/dev/null; then
11668 if ln -s conf$$.file conf$$ 2>/dev/null; then
11669 as_ln_s='ln -s'
11670 # ... but there are two gotchas:
11671 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11672 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11673 # In both cases, we have to default to `cp -p'.
11674 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11675 as_ln_s='cp -p'
11676 elif ln conf$$.file conf$$ 2>/dev/null; then
11677 as_ln_s=ln
11678 else
11679 as_ln_s='cp -p'
11681 else
11682 as_ln_s='cp -p'
11684 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11685 rmdir conf$$.dir 2>/dev/null
11688 # as_fn_mkdir_p
11689 # -------------
11690 # Create "$as_dir" as a directory, including parents if necessary.
11691 as_fn_mkdir_p ()
11694 case $as_dir in #(
11695 -*) as_dir=./$as_dir;;
11696 esac
11697 test -d "$as_dir" || eval $as_mkdir_p || {
11698 as_dirs=
11699 while :; do
11700 case $as_dir in #(
11701 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11702 *) as_qdir=$as_dir;;
11703 esac
11704 as_dirs="'$as_qdir' $as_dirs"
11705 as_dir=`$as_dirname -- "$as_dir" ||
11706 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11707 X"$as_dir" : 'X\(//\)[^/]' \| \
11708 X"$as_dir" : 'X\(//\)$' \| \
11709 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11710 $as_echo X"$as_dir" |
11711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11712 s//\1/
11715 /^X\(\/\/\)[^/].*/{
11716 s//\1/
11719 /^X\(\/\/\)$/{
11720 s//\1/
11723 /^X\(\/\).*/{
11724 s//\1/
11727 s/.*/./; q'`
11728 test -d "$as_dir" && break
11729 done
11730 test -z "$as_dirs" || eval "mkdir $as_dirs"
11731 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11734 } # as_fn_mkdir_p
11735 if mkdir -p . 2>/dev/null; then
11736 as_mkdir_p='mkdir -p "$as_dir"'
11737 else
11738 test -d ./-p && rmdir ./-p
11739 as_mkdir_p=false
11742 if test -x / >/dev/null 2>&1; then
11743 as_test_x='test -x'
11744 else
11745 if ls -dL / >/dev/null 2>&1; then
11746 as_ls_L_option=L
11747 else
11748 as_ls_L_option=
11750 as_test_x='
11751 eval sh -c '\''
11752 if test -d "$1"; then
11753 test -d "$1/.";
11754 else
11755 case $1 in #(
11756 -*)set "./$1";;
11757 esac;
11758 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11759 ???[sx]*):;;*)false;;esac;fi
11760 '\'' sh
11763 as_executable_p=$as_test_x
11765 # Sed expression to map a string onto a valid CPP name.
11766 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11768 # Sed expression to map a string onto a valid variable name.
11769 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11772 exec 6>&1
11773 ## ----------------------------------- ##
11774 ## Main body of $CONFIG_STATUS script. ##
11775 ## ----------------------------------- ##
11776 _ASEOF
11777 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11780 # Save the log message, to keep $0 and so on meaningful, and to
11781 # report actual input values of CONFIG_FILES etc. instead of their
11782 # values after options handling.
11783 ac_log="
11784 This file was extended by $as_me, which was
11785 generated by GNU Autoconf 2.64. Invocation command line was
11787 CONFIG_FILES = $CONFIG_FILES
11788 CONFIG_HEADERS = $CONFIG_HEADERS
11789 CONFIG_LINKS = $CONFIG_LINKS
11790 CONFIG_COMMANDS = $CONFIG_COMMANDS
11791 $ $0 $@
11793 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11796 _ACEOF
11798 case $ac_config_files in *"
11799 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11800 esac
11804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11805 # Files that config.status was made for.
11806 config_files="$ac_config_files"
11807 config_commands="$ac_config_commands"
11809 _ACEOF
11811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11812 ac_cs_usage="\
11813 \`$as_me' instantiates files and other configuration actions
11814 from templates according to the current configuration. Unless the files
11815 and actions are specified as TAGs, all are instantiated by default.
11817 Usage: $0 [OPTION]... [TAG]...
11819 -h, --help print this help, then exit
11820 -V, --version print version number and configuration settings, then exit
11821 -q, --quiet, --silent
11822 do not print progress messages
11823 -d, --debug don't remove temporary files
11824 --recheck update $as_me by reconfiguring in the same conditions
11825 --file=FILE[:TEMPLATE]
11826 instantiate the configuration file FILE
11828 Configuration files:
11829 $config_files
11831 Configuration commands:
11832 $config_commands
11834 Report bugs to the package provider."
11836 _ACEOF
11837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11838 ac_cs_version="\\
11839 config.status
11840 configured by $0, generated by GNU Autoconf 2.64,
11841 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11843 Copyright (C) 2009 Free Software Foundation, Inc.
11844 This config.status script is free software; the Free Software Foundation
11845 gives unlimited permission to copy, distribute and modify it."
11847 ac_pwd='$ac_pwd'
11848 srcdir='$srcdir'
11849 INSTALL='$INSTALL'
11850 MKDIR_P='$MKDIR_P'
11851 AWK='$AWK'
11852 test -n "\$AWK" || AWK=awk
11853 _ACEOF
11855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11856 # The default lists apply if the user does not specify any file.
11857 ac_need_defaults=:
11858 while test $# != 0
11860 case $1 in
11861 --*=*)
11862 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11863 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11864 ac_shift=:
11867 ac_option=$1
11868 ac_optarg=$2
11869 ac_shift=shift
11871 esac
11873 case $ac_option in
11874 # Handling of the options.
11875 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11876 ac_cs_recheck=: ;;
11877 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11878 $as_echo "$ac_cs_version"; exit ;;
11879 --debug | --debu | --deb | --de | --d | -d )
11880 debug=: ;;
11881 --file | --fil | --fi | --f )
11882 $ac_shift
11883 case $ac_optarg in
11884 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11885 esac
11886 as_fn_append CONFIG_FILES " '$ac_optarg'"
11887 ac_need_defaults=false;;
11888 --he | --h | --help | --hel | -h )
11889 $as_echo "$ac_cs_usage"; exit ;;
11890 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11891 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11892 ac_cs_silent=: ;;
11894 # This is an error.
11895 -*) as_fn_error "unrecognized option: \`$1'
11896 Try \`$0 --help' for more information." ;;
11898 *) as_fn_append ac_config_targets " $1"
11899 ac_need_defaults=false ;;
11901 esac
11902 shift
11903 done
11905 ac_configure_extra_args=
11907 if $ac_cs_silent; then
11908 exec 6>/dev/null
11909 ac_configure_extra_args="$ac_configure_extra_args --silent"
11912 _ACEOF
11913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11914 if \$ac_cs_recheck; then
11915 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11916 shift
11917 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11918 CONFIG_SHELL='$SHELL'
11919 export CONFIG_SHELL
11920 exec "\$@"
11923 _ACEOF
11924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11925 exec 5>>config.log
11927 echo
11928 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11929 ## Running $as_me. ##
11930 _ASBOX
11931 $as_echo "$ac_log"
11932 } >&5
11934 _ACEOF
11935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11937 # INIT-COMMANDS
11940 srcdir="$srcdir"
11941 host="$host"
11942 target="$target"
11943 with_multisubdir="$with_multisubdir"
11944 with_multisrctop="$with_multisrctop"
11945 with_target_subdir="$with_target_subdir"
11946 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11947 multi_basedir="$multi_basedir"
11948 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11949 CC="$CC"
11950 CXX="$CXX"
11951 GFORTRAN="$GFORTRAN"
11952 GCJ="$GCJ"
11953 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11956 # The HP-UX ksh and POSIX shell print the target directory to stdout
11957 # if CDPATH is set.
11958 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11960 sed_quote_subst='$sed_quote_subst'
11961 double_quote_subst='$double_quote_subst'
11962 delay_variable_subst='$delay_variable_subst'
11963 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11964 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11965 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11966 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11967 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11968 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11969 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11970 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11971 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11972 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11973 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11974 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11975 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11976 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11977 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11978 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11979 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11980 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11981 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11982 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11983 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11984 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11985 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11986 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11987 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11988 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11989 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11990 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11991 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11992 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11993 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11994 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11995 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11996 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11997 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11998 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11999 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12000 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12001 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12002 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12003 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12004 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12005 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12006 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12007 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12008 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12009 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12010 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12011 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"`'
12012 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12013 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12014 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12015 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12016 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12017 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12018 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12019 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12020 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12021 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12022 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12023 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12024 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12025 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12026 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12027 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12028 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12029 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12030 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12031 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12032 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12033 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12034 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12035 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12036 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12037 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12038 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12039 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12040 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12041 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12042 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12043 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12044 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12045 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12046 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12047 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12048 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12049 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12050 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12051 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12052 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12053 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12054 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12055 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12056 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12057 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12058 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12059 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12060 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12061 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12062 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12063 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12064 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12065 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12066 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12067 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12068 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12069 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12070 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12071 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12072 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12073 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12074 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12075 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12076 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12077 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12078 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12079 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12080 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12081 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12082 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12084 LTCC='$LTCC'
12085 LTCFLAGS='$LTCFLAGS'
12086 compiler='$compiler_DEFAULT'
12088 # A function that is used when there is no print builtin or printf.
12089 func_fallback_echo ()
12091 eval 'cat <<_LTECHO_EOF
12093 _LTECHO_EOF'
12096 # Quote evaled strings.
12097 for var in SHELL \
12098 ECHO \
12099 SED \
12100 GREP \
12101 EGREP \
12102 FGREP \
12103 LD \
12104 NM \
12105 LN_S \
12106 lt_SP2NL \
12107 lt_NL2SP \
12108 reload_flag \
12109 OBJDUMP \
12110 deplibs_check_method \
12111 file_magic_cmd \
12112 AR \
12113 AR_FLAGS \
12114 STRIP \
12115 RANLIB \
12116 CC \
12117 CFLAGS \
12118 compiler \
12119 lt_cv_sys_global_symbol_pipe \
12120 lt_cv_sys_global_symbol_to_cdecl \
12121 lt_cv_sys_global_symbol_to_c_name_address \
12122 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12123 lt_prog_compiler_no_builtin_flag \
12124 lt_prog_compiler_wl \
12125 lt_prog_compiler_pic \
12126 lt_prog_compiler_static \
12127 lt_cv_prog_compiler_c_o \
12128 need_locks \
12129 DSYMUTIL \
12130 NMEDIT \
12131 LIPO \
12132 OTOOL \
12133 OTOOL64 \
12134 shrext_cmds \
12135 export_dynamic_flag_spec \
12136 whole_archive_flag_spec \
12137 compiler_needs_object \
12138 with_gnu_ld \
12139 allow_undefined_flag \
12140 no_undefined_flag \
12141 hardcode_libdir_flag_spec \
12142 hardcode_libdir_flag_spec_ld \
12143 hardcode_libdir_separator \
12144 fix_srcfile_path \
12145 exclude_expsyms \
12146 include_expsyms \
12147 file_list_spec \
12148 variables_saved_for_relink \
12149 libname_spec \
12150 library_names_spec \
12151 soname_spec \
12152 install_override_mode \
12153 finish_eval \
12154 old_striplib \
12155 striplib; do
12156 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12157 *[\\\\\\\`\\"\\\$]*)
12158 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12161 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12163 esac
12164 done
12166 # Double-quote double-evaled strings.
12167 for var in reload_cmds \
12168 old_postinstall_cmds \
12169 old_postuninstall_cmds \
12170 old_archive_cmds \
12171 extract_expsyms_cmds \
12172 old_archive_from_new_cmds \
12173 old_archive_from_expsyms_cmds \
12174 archive_cmds \
12175 archive_expsym_cmds \
12176 module_cmds \
12177 module_expsym_cmds \
12178 export_symbols_cmds \
12179 prelink_cmds \
12180 postinstall_cmds \
12181 postuninstall_cmds \
12182 finish_cmds \
12183 sys_lib_search_path_spec \
12184 sys_lib_dlsearch_path_spec; do
12185 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12186 *[\\\\\\\`\\"\\\$]*)
12187 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12190 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12192 esac
12193 done
12195 ac_aux_dir='$ac_aux_dir'
12196 xsi_shell='$xsi_shell'
12197 lt_shell_append='$lt_shell_append'
12199 # See if we are running on zsh, and set the options which allow our
12200 # commands through without removal of \ escapes INIT.
12201 if test -n "\${ZSH_VERSION+set}" ; then
12202 setopt NO_GLOB_SUBST
12206 PACKAGE='$PACKAGE'
12207 VERSION='$VERSION'
12208 TIMESTAMP='$TIMESTAMP'
12209 RM='$RM'
12210 ofile='$ofile'
12215 _ACEOF
12217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12219 # Handling of arguments.
12220 for ac_config_target in $ac_config_targets
12222 case $ac_config_target in
12223 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12224 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12225 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12226 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12228 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12229 esac
12230 done
12233 # If the user did not use the arguments to specify the items to instantiate,
12234 # then the envvar interface is used. Set only those that are not.
12235 # We use the long form for the default assignment because of an extremely
12236 # bizarre bug on SunOS 4.1.3.
12237 if $ac_need_defaults; then
12238 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12239 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12242 # Have a temporary directory for convenience. Make it in the build tree
12243 # simply because there is no reason against having it here, and in addition,
12244 # creating and moving files from /tmp can sometimes cause problems.
12245 # Hook for its removal unless debugging.
12246 # Note that there is a small window in which the directory will not be cleaned:
12247 # after its creation but before its name has been assigned to `$tmp'.
12248 $debug ||
12250 tmp=
12251 trap 'exit_status=$?
12252 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12254 trap 'as_fn_exit 1' 1 2 13 15
12256 # Create a (secure) tmp directory for tmp files.
12259 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12260 test -n "$tmp" && test -d "$tmp"
12261 } ||
12263 tmp=./conf$$-$RANDOM
12264 (umask 077 && mkdir "$tmp")
12265 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12267 # Set up the scripts for CONFIG_FILES section.
12268 # No need to generate them if there are no CONFIG_FILES.
12269 # This happens for instance with `./config.status config.h'.
12270 if test -n "$CONFIG_FILES"; then
12273 ac_cr=`echo X | tr X '\015'`
12274 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12275 # But we know of no other shell where ac_cr would be empty at this
12276 # point, so we can use a bashism as a fallback.
12277 if test "x$ac_cr" = x; then
12278 eval ac_cr=\$\'\\r\'
12280 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12281 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12282 ac_cs_awk_cr='\r'
12283 else
12284 ac_cs_awk_cr=$ac_cr
12287 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12288 _ACEOF
12292 echo "cat >conf$$subs.awk <<_ACEOF" &&
12293 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12294 echo "_ACEOF"
12295 } >conf$$subs.sh ||
12296 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12297 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12298 ac_delim='%!_!# '
12299 for ac_last_try in false false false false false :; do
12300 . ./conf$$subs.sh ||
12301 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12303 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12304 if test $ac_delim_n = $ac_delim_num; then
12305 break
12306 elif $ac_last_try; then
12307 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12308 else
12309 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12311 done
12312 rm -f conf$$subs.sh
12314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12315 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12316 _ACEOF
12317 sed -n '
12319 s/^/S["/; s/!.*/"]=/
12322 s/^[^!]*!//
12323 :repl
12324 t repl
12325 s/'"$ac_delim"'$//
12326 t delim
12329 s/\(.\{148\}\).*/\1/
12330 t more1
12331 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12334 b repl
12335 :more1
12336 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12339 s/.\{148\}//
12340 t nl
12341 :delim
12343 s/\(.\{148\}\).*/\1/
12344 t more2
12345 s/["\\]/\\&/g; s/^/"/; s/$/"/
12348 :more2
12349 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12352 s/.\{148\}//
12353 t delim
12354 ' <conf$$subs.awk | sed '
12355 /^[^""]/{
12357 s/\n//
12359 ' >>$CONFIG_STATUS || ac_write_fail=1
12360 rm -f conf$$subs.awk
12361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12362 _ACAWK
12363 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12364 for (key in S) S_is_set[key] = 1
12365 FS = "\a"
12369 line = $ 0
12370 nfields = split(line, field, "@")
12371 substed = 0
12372 len = length(field[1])
12373 for (i = 2; i < nfields; i++) {
12374 key = field[i]
12375 keylen = length(key)
12376 if (S_is_set[key]) {
12377 value = S[key]
12378 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12379 len += length(value) + length(field[++i])
12380 substed = 1
12381 } else
12382 len += 1 + keylen
12385 print line
12388 _ACAWK
12389 _ACEOF
12390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12391 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12392 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12393 else
12395 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12396 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12397 _ACEOF
12399 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12400 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12401 # trailing colons and then remove the whole line if VPATH becomes empty
12402 # (actually we leave an empty line to preserve line numbers).
12403 if test "x$srcdir" = x.; then
12404 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12405 s/:*\$(srcdir):*/:/
12406 s/:*\${srcdir}:*/:/
12407 s/:*@srcdir@:*/:/
12408 s/^\([^=]*=[ ]*\):*/\1/
12409 s/:*$//
12410 s/^[^=]*=[ ]*$//
12414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12415 fi # test -n "$CONFIG_FILES"
12418 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12419 shift
12420 for ac_tag
12422 case $ac_tag in
12423 :[FHLC]) ac_mode=$ac_tag; continue;;
12424 esac
12425 case $ac_mode$ac_tag in
12426 :[FHL]*:*);;
12427 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12428 :[FH]-) ac_tag=-:-;;
12429 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12430 esac
12431 ac_save_IFS=$IFS
12432 IFS=:
12433 set x $ac_tag
12434 IFS=$ac_save_IFS
12435 shift
12436 ac_file=$1
12437 shift
12439 case $ac_mode in
12440 :L) ac_source=$1;;
12441 :[FH])
12442 ac_file_inputs=
12443 for ac_f
12445 case $ac_f in
12446 -) ac_f="$tmp/stdin";;
12447 *) # Look for the file first in the build tree, then in the source tree
12448 # (if the path is not absolute). The absolute path cannot be DOS-style,
12449 # because $ac_f cannot contain `:'.
12450 test -f "$ac_f" ||
12451 case $ac_f in
12452 [\\/$]*) false;;
12453 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12454 esac ||
12455 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12456 esac
12457 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12458 as_fn_append ac_file_inputs " '$ac_f'"
12459 done
12461 # Let's still pretend it is `configure' which instantiates (i.e., don't
12462 # use $as_me), people would be surprised to read:
12463 # /* config.h. Generated by config.status. */
12464 configure_input='Generated from '`
12465 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12466 `' by configure.'
12467 if test x"$ac_file" != x-; then
12468 configure_input="$ac_file. $configure_input"
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12470 $as_echo "$as_me: creating $ac_file" >&6;}
12472 # Neutralize special characters interpreted by sed in replacement strings.
12473 case $configure_input in #(
12474 *\&* | *\|* | *\\* )
12475 ac_sed_conf_input=`$as_echo "$configure_input" |
12476 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12477 *) ac_sed_conf_input=$configure_input;;
12478 esac
12480 case $ac_tag in
12481 *:-:* | *:-) cat >"$tmp/stdin" \
12482 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12483 esac
12485 esac
12487 ac_dir=`$as_dirname -- "$ac_file" ||
12488 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12489 X"$ac_file" : 'X\(//\)[^/]' \| \
12490 X"$ac_file" : 'X\(//\)$' \| \
12491 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12492 $as_echo X"$ac_file" |
12493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12494 s//\1/
12497 /^X\(\/\/\)[^/].*/{
12498 s//\1/
12501 /^X\(\/\/\)$/{
12502 s//\1/
12505 /^X\(\/\).*/{
12506 s//\1/
12509 s/.*/./; q'`
12510 as_dir="$ac_dir"; as_fn_mkdir_p
12511 ac_builddir=.
12513 case "$ac_dir" in
12514 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12517 # A ".." for each directory in $ac_dir_suffix.
12518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12519 case $ac_top_builddir_sub in
12520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12522 esac ;;
12523 esac
12524 ac_abs_top_builddir=$ac_pwd
12525 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12526 # for backward compatibility:
12527 ac_top_builddir=$ac_top_build_prefix
12529 case $srcdir in
12530 .) # We are building in place.
12531 ac_srcdir=.
12532 ac_top_srcdir=$ac_top_builddir_sub
12533 ac_abs_top_srcdir=$ac_pwd ;;
12534 [\\/]* | ?:[\\/]* ) # Absolute name.
12535 ac_srcdir=$srcdir$ac_dir_suffix;
12536 ac_top_srcdir=$srcdir
12537 ac_abs_top_srcdir=$srcdir ;;
12538 *) # Relative name.
12539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12540 ac_top_srcdir=$ac_top_build_prefix$srcdir
12541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12542 esac
12543 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12546 case $ac_mode in
12549 # CONFIG_FILE
12552 case $INSTALL in
12553 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12554 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12555 esac
12556 ac_MKDIR_P=$MKDIR_P
12557 case $MKDIR_P in
12558 [\\/$]* | ?:[\\/]* ) ;;
12559 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12560 esac
12561 _ACEOF
12563 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12564 # If the template does not know about datarootdir, expand it.
12565 # FIXME: This hack should be removed a few years after 2.60.
12566 ac_datarootdir_hack=; ac_datarootdir_seen=
12567 ac_sed_dataroot='
12568 /datarootdir/ {
12572 /@datadir@/p
12573 /@docdir@/p
12574 /@infodir@/p
12575 /@localedir@/p
12576 /@mandir@/p'
12577 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12578 *datarootdir*) ac_datarootdir_seen=yes;;
12579 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12581 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12582 _ACEOF
12583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12584 ac_datarootdir_hack='
12585 s&@datadir@&$datadir&g
12586 s&@docdir@&$docdir&g
12587 s&@infodir@&$infodir&g
12588 s&@localedir@&$localedir&g
12589 s&@mandir@&$mandir&g
12590 s&\\\${datarootdir}&$datarootdir&g' ;;
12591 esac
12592 _ACEOF
12594 # Neutralize VPATH when `$srcdir' = `.'.
12595 # Shell code in configure.ac might set extrasub.
12596 # FIXME: do we really want to maintain this feature?
12597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12598 ac_sed_extra="$ac_vpsub
12599 $extrasub
12600 _ACEOF
12601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12603 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12604 s|@configure_input@|$ac_sed_conf_input|;t t
12605 s&@top_builddir@&$ac_top_builddir_sub&;t t
12606 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12607 s&@srcdir@&$ac_srcdir&;t t
12608 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12609 s&@top_srcdir@&$ac_top_srcdir&;t t
12610 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12611 s&@builddir@&$ac_builddir&;t t
12612 s&@abs_builddir@&$ac_abs_builddir&;t t
12613 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12614 s&@INSTALL@&$ac_INSTALL&;t t
12615 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12616 $ac_datarootdir_hack
12618 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12619 || as_fn_error "could not create $ac_file" "$LINENO" 5
12621 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12622 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12623 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12625 which seems to be undefined. Please make sure it is defined." >&5
12626 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12627 which seems to be undefined. Please make sure it is defined." >&2;}
12629 rm -f "$tmp/stdin"
12630 case $ac_file in
12631 -) cat "$tmp/out" && rm -f "$tmp/out";;
12632 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12633 esac \
12634 || as_fn_error "could not create $ac_file" "$LINENO" 5
12638 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12639 $as_echo "$as_me: executing $ac_file commands" >&6;}
12641 esac
12644 case $ac_file$ac_mode in
12645 "default-1":C)
12646 # Only add multilib support code if we just rebuilt the top-level
12647 # Makefile.
12648 case " $CONFIG_FILES " in
12649 *" Makefile "*)
12650 ac_file=Makefile . ${multi_basedir}/config-ml.in
12652 esac ;;
12653 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12654 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12655 # are listed without --file. Let's play safe and only enable the eval
12656 # if we detect the quoting.
12657 case $CONFIG_FILES in
12658 *\'*) eval set x "$CONFIG_FILES" ;;
12659 *) set x $CONFIG_FILES ;;
12660 esac
12661 shift
12662 for mf
12664 # Strip MF so we end up with the name of the file.
12665 mf=`echo "$mf" | sed -e 's/:.*$//'`
12666 # Check whether this is an Automake generated Makefile or not.
12667 # We used to match only the files named `Makefile.in', but
12668 # some people rename them; so instead we look at the file content.
12669 # Grep'ing the first line is not enough: some people post-process
12670 # each Makefile.in and add a new line on top of each file to say so.
12671 # Grep'ing the whole file is not good either: AIX grep has a line
12672 # limit of 2048, but all sed's we know have understand at least 4000.
12673 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12674 dirpart=`$as_dirname -- "$mf" ||
12675 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12676 X"$mf" : 'X\(//\)[^/]' \| \
12677 X"$mf" : 'X\(//\)$' \| \
12678 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12679 $as_echo X"$mf" |
12680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12681 s//\1/
12684 /^X\(\/\/\)[^/].*/{
12685 s//\1/
12688 /^X\(\/\/\)$/{
12689 s//\1/
12692 /^X\(\/\).*/{
12693 s//\1/
12696 s/.*/./; q'`
12697 else
12698 continue
12700 # Extract the definition of DEPDIR, am__include, and am__quote
12701 # from the Makefile without running `make'.
12702 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12703 test -z "$DEPDIR" && continue
12704 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12705 test -z "am__include" && continue
12706 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12707 # When using ansi2knr, U may be empty or an underscore; expand it
12708 U=`sed -n 's/^U = //p' < "$mf"`
12709 # Find all dependency output files, they are included files with
12710 # $(DEPDIR) in their names. We invoke sed twice because it is the
12711 # simplest approach to changing $(DEPDIR) to its actual value in the
12712 # expansion.
12713 for file in `sed -n "
12714 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12715 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12716 # Make sure the directory exists.
12717 test -f "$dirpart/$file" && continue
12718 fdir=`$as_dirname -- "$file" ||
12719 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12720 X"$file" : 'X\(//\)[^/]' \| \
12721 X"$file" : 'X\(//\)$' \| \
12722 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12723 $as_echo X"$file" |
12724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12725 s//\1/
12728 /^X\(\/\/\)[^/].*/{
12729 s//\1/
12732 /^X\(\/\/\)$/{
12733 s//\1/
12736 /^X\(\/\).*/{
12737 s//\1/
12740 s/.*/./; q'`
12741 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12742 # echo "creating $dirpart/$file"
12743 echo '# dummy' > "$dirpart/$file"
12744 done
12745 done
12748 "libtool":C)
12750 # See if we are running on zsh, and set the options which allow our
12751 # commands through without removal of \ escapes.
12752 if test -n "${ZSH_VERSION+set}" ; then
12753 setopt NO_GLOB_SUBST
12756 cfgfile="${ofile}T"
12757 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12758 $RM "$cfgfile"
12760 cat <<_LT_EOF >> "$cfgfile"
12761 #! $SHELL
12763 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12764 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12765 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12766 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12768 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12769 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12770 # Written by Gordon Matzigkeit, 1996
12772 # This file is part of GNU Libtool.
12774 # GNU Libtool is free software; you can redistribute it and/or
12775 # modify it under the terms of the GNU General Public License as
12776 # published by the Free Software Foundation; either version 2 of
12777 # the License, or (at your option) any later version.
12779 # As a special exception to the GNU General Public License,
12780 # if you distribute this file as part of a program or library that
12781 # is built using GNU Libtool, you may include this file under the
12782 # same distribution terms that you use for the rest of that program.
12784 # GNU Libtool is distributed in the hope that it will be useful,
12785 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12786 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12787 # GNU General Public License for more details.
12789 # You should have received a copy of the GNU General Public License
12790 # along with GNU Libtool; see the file COPYING. If not, a copy
12791 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12792 # obtained by writing to the Free Software Foundation, Inc.,
12793 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12796 # The names of the tagged configurations supported by this script.
12797 available_tags=""
12799 # ### BEGIN LIBTOOL CONFIG
12801 # Which release of libtool.m4 was used?
12802 macro_version=$macro_version
12803 macro_revision=$macro_revision
12805 # Whether or not to build shared libraries.
12806 build_libtool_libs=$enable_shared
12808 # Whether or not to build static libraries.
12809 build_old_libs=$enable_static
12811 # What type of objects to build.
12812 pic_mode=$pic_mode
12814 # Whether or not to optimize for fast installation.
12815 fast_install=$enable_fast_install
12817 # Shell to use when invoking shell scripts.
12818 SHELL=$lt_SHELL
12820 # An echo program that protects backslashes.
12821 ECHO=$lt_ECHO
12823 # The host system.
12824 host_alias=$host_alias
12825 host=$host
12826 host_os=$host_os
12828 # The build system.
12829 build_alias=$build_alias
12830 build=$build
12831 build_os=$build_os
12833 # A sed program that does not truncate output.
12834 SED=$lt_SED
12836 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12837 Xsed="\$SED -e 1s/^X//"
12839 # A grep program that handles long lines.
12840 GREP=$lt_GREP
12842 # An ERE matcher.
12843 EGREP=$lt_EGREP
12845 # A literal string matcher.
12846 FGREP=$lt_FGREP
12848 # A BSD- or MS-compatible name lister.
12849 NM=$lt_NM
12851 # Whether we need soft or hard links.
12852 LN_S=$lt_LN_S
12854 # What is the maximum length of a command?
12855 max_cmd_len=$max_cmd_len
12857 # Object file suffix (normally "o").
12858 objext=$ac_objext
12860 # Executable file suffix (normally "").
12861 exeext=$exeext
12863 # whether the shell understands "unset".
12864 lt_unset=$lt_unset
12866 # turn spaces into newlines.
12867 SP2NL=$lt_lt_SP2NL
12869 # turn newlines into spaces.
12870 NL2SP=$lt_lt_NL2SP
12872 # An object symbol dumper.
12873 OBJDUMP=$lt_OBJDUMP
12875 # Method to check whether dependent libraries are shared objects.
12876 deplibs_check_method=$lt_deplibs_check_method
12878 # Command to use when deplibs_check_method == "file_magic".
12879 file_magic_cmd=$lt_file_magic_cmd
12881 # The archiver.
12882 AR=$lt_AR
12883 AR_FLAGS=$lt_AR_FLAGS
12885 # A symbol stripping program.
12886 STRIP=$lt_STRIP
12888 # Commands used to install an old-style archive.
12889 RANLIB=$lt_RANLIB
12890 old_postinstall_cmds=$lt_old_postinstall_cmds
12891 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12893 # Whether to use a lock for old archive extraction.
12894 lock_old_archive_extraction=$lock_old_archive_extraction
12896 # A C compiler.
12897 LTCC=$lt_CC
12899 # LTCC compiler flags.
12900 LTCFLAGS=$lt_CFLAGS
12902 # Take the output of nm and produce a listing of raw symbols and C names.
12903 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12905 # Transform the output of nm in a proper C declaration.
12906 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12908 # Transform the output of nm in a C name address pair.
12909 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12911 # Transform the output of nm in a C name address pair when lib prefix is needed.
12912 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12914 # The name of the directory that contains temporary libtool files.
12915 objdir=$objdir
12917 # Used to examine libraries when file_magic_cmd begins with "file".
12918 MAGIC_CMD=$MAGIC_CMD
12920 # Must we lock files when doing compilation?
12921 need_locks=$lt_need_locks
12923 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12924 DSYMUTIL=$lt_DSYMUTIL
12926 # Tool to change global to local symbols on Mac OS X.
12927 NMEDIT=$lt_NMEDIT
12929 # Tool to manipulate fat objects and archives on Mac OS X.
12930 LIPO=$lt_LIPO
12932 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12933 OTOOL=$lt_OTOOL
12935 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12936 OTOOL64=$lt_OTOOL64
12938 # Old archive suffix (normally "a").
12939 libext=$libext
12941 # Shared library suffix (normally ".so").
12942 shrext_cmds=$lt_shrext_cmds
12944 # The commands to extract the exported symbol list from a shared archive.
12945 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12947 # Variables whose values should be saved in libtool wrapper scripts and
12948 # restored at link time.
12949 variables_saved_for_relink=$lt_variables_saved_for_relink
12951 # Do we need the "lib" prefix for modules?
12952 need_lib_prefix=$need_lib_prefix
12954 # Do we need a version for libraries?
12955 need_version=$need_version
12957 # Library versioning type.
12958 version_type=$version_type
12960 # Shared library runtime path variable.
12961 runpath_var=$runpath_var
12963 # Shared library path variable.
12964 shlibpath_var=$shlibpath_var
12966 # Is shlibpath searched before the hard-coded library search path?
12967 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12969 # Format of library name prefix.
12970 libname_spec=$lt_libname_spec
12972 # List of archive names. First name is the real one, the rest are links.
12973 # The last name is the one that the linker finds with -lNAME
12974 library_names_spec=$lt_library_names_spec
12976 # The coded name of the library, if different from the real name.
12977 soname_spec=$lt_soname_spec
12979 # Permission mode override for installation of shared libraries.
12980 install_override_mode=$lt_install_override_mode
12982 # Command to use after installation of a shared archive.
12983 postinstall_cmds=$lt_postinstall_cmds
12985 # Command to use after uninstallation of a shared archive.
12986 postuninstall_cmds=$lt_postuninstall_cmds
12988 # Commands used to finish a libtool library installation in a directory.
12989 finish_cmds=$lt_finish_cmds
12991 # As "finish_cmds", except a single script fragment to be evaled but
12992 # not shown.
12993 finish_eval=$lt_finish_eval
12995 # Whether we should hardcode library paths into libraries.
12996 hardcode_into_libs=$hardcode_into_libs
12998 # Compile-time system search path for libraries.
12999 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13001 # Run-time system search path for libraries.
13002 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13004 # Whether dlopen is supported.
13005 dlopen_support=$enable_dlopen
13007 # Whether dlopen of programs is supported.
13008 dlopen_self=$enable_dlopen_self
13010 # Whether dlopen of statically linked programs is supported.
13011 dlopen_self_static=$enable_dlopen_self_static
13013 # Commands to strip libraries.
13014 old_striplib=$lt_old_striplib
13015 striplib=$lt_striplib
13018 # The linker used to build libraries.
13019 LD=$lt_LD
13021 # How to create reloadable object files.
13022 reload_flag=$lt_reload_flag
13023 reload_cmds=$lt_reload_cmds
13025 # Commands used to build an old-style archive.
13026 old_archive_cmds=$lt_old_archive_cmds
13028 # A language specific compiler.
13029 CC=$lt_compiler
13031 # Is the compiler the GNU compiler?
13032 with_gcc=$GCC
13034 # Compiler flag to turn off builtin functions.
13035 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13037 # How to pass a linker flag through the compiler.
13038 wl=$lt_lt_prog_compiler_wl
13040 # Additional compiler flags for building library objects.
13041 pic_flag=$lt_lt_prog_compiler_pic
13043 # Compiler flag to prevent dynamic linking.
13044 link_static_flag=$lt_lt_prog_compiler_static
13046 # Does compiler simultaneously support -c and -o options?
13047 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13049 # Whether or not to add -lc for building shared libraries.
13050 build_libtool_need_lc=$archive_cmds_need_lc
13052 # Whether or not to disallow shared libs when runtime libs are static.
13053 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13055 # Compiler flag to allow reflexive dlopens.
13056 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13058 # Compiler flag to generate shared objects directly from archives.
13059 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13061 # Whether the compiler copes with passing no objects directly.
13062 compiler_needs_object=$lt_compiler_needs_object
13064 # Create an old-style archive from a shared archive.
13065 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13067 # Create a temporary old-style archive to link instead of a shared archive.
13068 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13070 # Commands used to build a shared archive.
13071 archive_cmds=$lt_archive_cmds
13072 archive_expsym_cmds=$lt_archive_expsym_cmds
13074 # Commands used to build a loadable module if different from building
13075 # a shared archive.
13076 module_cmds=$lt_module_cmds
13077 module_expsym_cmds=$lt_module_expsym_cmds
13079 # Whether we are building with GNU ld or not.
13080 with_gnu_ld=$lt_with_gnu_ld
13082 # Flag that allows shared libraries with undefined symbols to be built.
13083 allow_undefined_flag=$lt_allow_undefined_flag
13085 # Flag that enforces no undefined symbols.
13086 no_undefined_flag=$lt_no_undefined_flag
13088 # Flag to hardcode \$libdir into a binary during linking.
13089 # This must work even if \$libdir does not exist
13090 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13092 # If ld is used when linking, flag to hardcode \$libdir into a binary
13093 # during linking. This must work even if \$libdir does not exist.
13094 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13096 # Whether we need a single "-rpath" flag with a separated argument.
13097 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13099 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13100 # DIR into the resulting binary.
13101 hardcode_direct=$hardcode_direct
13103 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13104 # DIR into the resulting binary and the resulting library dependency is
13105 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13106 # library is relocated.
13107 hardcode_direct_absolute=$hardcode_direct_absolute
13109 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13110 # into the resulting binary.
13111 hardcode_minus_L=$hardcode_minus_L
13113 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13114 # into the resulting binary.
13115 hardcode_shlibpath_var=$hardcode_shlibpath_var
13117 # Set to "yes" if building a shared library automatically hardcodes DIR
13118 # into the library and all subsequent libraries and executables linked
13119 # against it.
13120 hardcode_automatic=$hardcode_automatic
13122 # Set to yes if linker adds runtime paths of dependent libraries
13123 # to runtime path list.
13124 inherit_rpath=$inherit_rpath
13126 # Whether libtool must link a program against all its dependency libraries.
13127 link_all_deplibs=$link_all_deplibs
13129 # Fix the shell variable \$srcfile for the compiler.
13130 fix_srcfile_path=$lt_fix_srcfile_path
13132 # Set to "yes" if exported symbols are required.
13133 always_export_symbols=$always_export_symbols
13135 # The commands to list exported symbols.
13136 export_symbols_cmds=$lt_export_symbols_cmds
13138 # Symbols that should not be listed in the preloaded symbols.
13139 exclude_expsyms=$lt_exclude_expsyms
13141 # Symbols that must always be exported.
13142 include_expsyms=$lt_include_expsyms
13144 # Commands necessary for linking programs (against libraries) with templates.
13145 prelink_cmds=$lt_prelink_cmds
13147 # Specify filename containing input files.
13148 file_list_spec=$lt_file_list_spec
13150 # How to hardcode a shared library path into an executable.
13151 hardcode_action=$hardcode_action
13153 # ### END LIBTOOL CONFIG
13155 _LT_EOF
13157 case $host_os in
13158 aix3*)
13159 cat <<\_LT_EOF >> "$cfgfile"
13160 # AIX sometimes has problems with the GCC collect2 program. For some
13161 # reason, if we set the COLLECT_NAMES environment variable, the problems
13162 # vanish in a puff of smoke.
13163 if test "X${COLLECT_NAMES+set}" != Xset; then
13164 COLLECT_NAMES=
13165 export COLLECT_NAMES
13167 _LT_EOF
13169 esac
13172 ltmain="$ac_aux_dir/ltmain.sh"
13175 # We use sed instead of cat because bash on DJGPP gets confused if
13176 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13177 # text mode, it properly converts lines to CR/LF. This bash problem
13178 # is reportedly fixed, but why not run on old versions too?
13179 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13180 || (rm -f "$cfgfile"; exit 1)
13182 case $xsi_shell in
13183 yes)
13184 cat << \_LT_EOF >> "$cfgfile"
13186 # func_dirname file append nondir_replacement
13187 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13188 # otherwise set result to NONDIR_REPLACEMENT.
13189 func_dirname ()
13191 case ${1} in
13192 */*) func_dirname_result="${1%/*}${2}" ;;
13193 * ) func_dirname_result="${3}" ;;
13194 esac
13197 # func_basename file
13198 func_basename ()
13200 func_basename_result="${1##*/}"
13203 # func_dirname_and_basename file append nondir_replacement
13204 # perform func_basename and func_dirname in a single function
13205 # call:
13206 # dirname: Compute the dirname of FILE. If nonempty,
13207 # add APPEND to the result, otherwise set result
13208 # to NONDIR_REPLACEMENT.
13209 # value returned in "$func_dirname_result"
13210 # basename: Compute filename of FILE.
13211 # value retuned in "$func_basename_result"
13212 # Implementation must be kept synchronized with func_dirname
13213 # and func_basename. For efficiency, we do not delegate to
13214 # those functions but instead duplicate the functionality here.
13215 func_dirname_and_basename ()
13217 case ${1} in
13218 */*) func_dirname_result="${1%/*}${2}" ;;
13219 * ) func_dirname_result="${3}" ;;
13220 esac
13221 func_basename_result="${1##*/}"
13224 # func_stripname prefix suffix name
13225 # strip PREFIX and SUFFIX off of NAME.
13226 # PREFIX and SUFFIX must not contain globbing or regex special
13227 # characters, hashes, percent signs, but SUFFIX may contain a leading
13228 # dot (in which case that matches only a dot).
13229 func_stripname ()
13231 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13232 # positional parameters, so assign one to ordinary parameter first.
13233 func_stripname_result=${3}
13234 func_stripname_result=${func_stripname_result#"${1}"}
13235 func_stripname_result=${func_stripname_result%"${2}"}
13238 # func_opt_split
13239 func_opt_split ()
13241 func_opt_split_opt=${1%%=*}
13242 func_opt_split_arg=${1#*=}
13245 # func_lo2o object
13246 func_lo2o ()
13248 case ${1} in
13249 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13250 *) func_lo2o_result=${1} ;;
13251 esac
13254 # func_xform libobj-or-source
13255 func_xform ()
13257 func_xform_result=${1%.*}.lo
13260 # func_arith arithmetic-term...
13261 func_arith ()
13263 func_arith_result=$(( $* ))
13266 # func_len string
13267 # STRING may not start with a hyphen.
13268 func_len ()
13270 func_len_result=${#1}
13273 _LT_EOF
13275 *) # Bourne compatible functions.
13276 cat << \_LT_EOF >> "$cfgfile"
13278 # func_dirname file append nondir_replacement
13279 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13280 # otherwise set result to NONDIR_REPLACEMENT.
13281 func_dirname ()
13283 # Extract subdirectory from the argument.
13284 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13285 if test "X$func_dirname_result" = "X${1}"; then
13286 func_dirname_result="${3}"
13287 else
13288 func_dirname_result="$func_dirname_result${2}"
13292 # func_basename file
13293 func_basename ()
13295 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13299 # func_stripname prefix suffix name
13300 # strip PREFIX and SUFFIX off of NAME.
13301 # PREFIX and SUFFIX must not contain globbing or regex special
13302 # characters, hashes, percent signs, but SUFFIX may contain a leading
13303 # dot (in which case that matches only a dot).
13304 # func_strip_suffix prefix name
13305 func_stripname ()
13307 case ${2} in
13308 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13309 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13310 esac
13313 # sed scripts:
13314 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13315 my_sed_long_arg='1s/^-[^=]*=//'
13317 # func_opt_split
13318 func_opt_split ()
13320 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13321 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13324 # func_lo2o object
13325 func_lo2o ()
13327 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13330 # func_xform libobj-or-source
13331 func_xform ()
13333 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13336 # func_arith arithmetic-term...
13337 func_arith ()
13339 func_arith_result=`expr "$@"`
13342 # func_len string
13343 # STRING may not start with a hyphen.
13344 func_len ()
13346 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13349 _LT_EOF
13350 esac
13352 case $lt_shell_append in
13353 yes)
13354 cat << \_LT_EOF >> "$cfgfile"
13356 # func_append var value
13357 # Append VALUE to the end of shell variable VAR.
13358 func_append ()
13360 eval "$1+=\$2"
13362 _LT_EOF
13365 cat << \_LT_EOF >> "$cfgfile"
13367 # func_append var value
13368 # Append VALUE to the end of shell variable VAR.
13369 func_append ()
13371 eval "$1=\$$1\$2"
13374 _LT_EOF
13376 esac
13379 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13380 || (rm -f "$cfgfile"; exit 1)
13382 mv -f "$cfgfile" "$ofile" ||
13383 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13384 chmod +x "$ofile"
13388 esac
13389 done # for ac_tag
13392 as_fn_exit 0
13393 _ACEOF
13394 ac_clean_files=$ac_clean_files_save
13396 test $ac_write_fail = 0 ||
13397 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13400 # configure is writing to config.log, and then calls config.status.
13401 # config.status does its own redirection, appending to config.log.
13402 # Unfortunately, on DOS this fails, as config.log is still kept open
13403 # by configure, so config.status won't be able to write to it; its
13404 # output is simply discarded. So we exec the FD to /dev/null,
13405 # effectively closing config.log, so it can be properly (re)opened and
13406 # appended to by config.status. When coming back to configure, we
13407 # need to make the FD available again.
13408 if test "$no_create" != yes; then
13409 ac_cs_success=:
13410 ac_config_status_args=
13411 test "$silent" = yes &&
13412 ac_config_status_args="$ac_config_status_args --quiet"
13413 exec 5>/dev/null
13414 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13415 exec 5>>config.log
13416 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13417 # would make configure fail if this is the last instruction.
13418 $ac_cs_success || as_fn_exit $?
13420 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13422 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}