Add patch against GNU Binutils-2.20 to support "meminfo".
[libmeminfo.git] / configure
blobfbbb7f838441db3b9d6a63ad3f5c1b0c83adc63c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for libmeminfo 0.1.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (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=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
578 case X$lt_ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
583 esac
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
605 _LT_EOF
606 exit 0
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
623 done
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
647 done
648 IFS="$lt_save_ifs"
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
696 prev="$cmd"
697 done
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev/null 6>&1
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731 # Initializations.
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
744 PACKAGE_NAME='libmeminfo'
745 PACKAGE_TARNAME='libmeminfo'
746 PACKAGE_VERSION='0.1'
747 PACKAGE_STRING='libmeminfo 0.1'
748 PACKAGE_BUGREPORT=''
750 ac_unique_file="meminfo.h"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
753 #include <stdio.h>
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
756 #endif
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
759 #endif
760 #ifdef STDC_HEADERS
761 # include <stdlib.h>
762 # include <stddef.h>
763 #else
764 # ifdef HAVE_STDLIB_H
765 # include <stdlib.h>
766 # endif
767 #endif
768 #ifdef HAVE_STRING_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
770 # include <memory.h>
771 # endif
772 # include <string.h>
773 #endif
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
776 #endif
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
779 #endif
780 #ifdef HAVE_STDINT_H
781 # include <stdint.h>
782 #endif
783 #ifdef HAVE_UNISTD_H
784 # include <unistd.h>
785 #endif"
787 enable_option_checking=no
788 ac_subst_vars='SHELL
789 PATH_SEPARATOR
790 PACKAGE_NAME
791 PACKAGE_TARNAME
792 PACKAGE_VERSION
793 PACKAGE_STRING
794 PACKAGE_BUGREPORT
795 exec_prefix
796 prefix
797 program_transform_name
798 bindir
799 sbindir
800 libexecdir
801 datarootdir
802 datadir
803 sysconfdir
804 sharedstatedir
805 localstatedir
806 includedir
807 oldincludedir
808 docdir
809 infodir
810 htmldir
811 dvidir
812 pdfdir
813 psdir
814 libdir
815 localedir
816 mandir
817 DEFS
818 ECHO_C
819 ECHO_N
820 ECHO_T
821 LIBS
822 build_alias
823 host_alias
824 target_alias
825 INSTALL_PROGRAM
826 INSTALL_SCRIPT
827 INSTALL_DATA
828 am__isrc
829 CYGPATH_W
830 PACKAGE
831 VERSION
832 ACLOCAL
833 AUTOCONF
834 AUTOMAKE
835 AUTOHEADER
836 MAKEINFO
837 install_sh
838 STRIP
839 INSTALL_STRIP_PROGRAM
840 MKDIR_P
841 mkdir_p
843 SET_MAKE
844 am__leading_dot
845 AMTAR
846 am__tar
847 am__untar
848 MAINTAINER_MODE_TRUE
849 MAINTAINER_MODE_FALSE
850 MAINT
851 build
852 build_cpu
853 build_vendor
854 build_os
855 host
856 host_cpu
857 host_vendor
858 host_os
860 CFLAGS
861 LDFLAGS
862 CPPFLAGS
863 ac_ct_CC
864 EXEEXT
865 OBJEXT
866 DEPDIR
867 am__include
868 am__quote
869 AMDEP_TRUE
870 AMDEP_FALSE
871 AMDEPBACKSLASH
872 CCDEPMODE
873 am__fastdepCC_TRUE
874 am__fastdepCC_FALSE
875 LIBTOOL
877 GREP
878 EGREP
879 FGREP
881 DUMPBIN
882 ac_ct_DUMPBIN
884 LN_S
886 RANLIB
887 lt_ECHO
888 DSYMUTIL
889 NMEDIT
890 LIPO
891 OTOOL
892 OTOOL64
894 OPT_LIBELF_FLAGS_TRUE
895 OPT_LIBELF_FLAGS_FALSE
896 subdirs
897 OPT_LIBELF
898 LIBOBJS
899 LTLIBOBJS'
900 ac_subst_files=''
901 ac_user_opts='
902 enable_option_checking
903 enable_maintainer_mode
904 enable_dependency_tracking
905 enable_shared
906 enable_static
907 with_pic
908 enable_fast_install
909 with_gnu_ld
910 enable_libtool_lock
911 enable_local_libelf
913 ac_precious_vars='build_alias
914 host_alias
915 target_alias
917 CFLAGS
918 LDFLAGS
919 LIBS
920 CPPFLAGS
921 CPP'
922 ac_subdirs_all='libelf'
924 # Initialize some variables set by options.
925 ac_init_help=
926 ac_init_version=false
927 ac_unrecognized_opts=
928 ac_unrecognized_sep=
929 # The variables have the same names as the options, with
930 # dashes changed to underlines.
931 cache_file=/dev/null
932 exec_prefix=NONE
933 no_create=
934 no_recursion=
935 prefix=NONE
936 program_prefix=NONE
937 program_suffix=NONE
938 program_transform_name=s,x,x,
939 silent=
940 site=
941 srcdir=
942 verbose=
943 x_includes=NONE
944 x_libraries=NONE
946 # Installation directory options.
947 # These are left unexpanded so users can "make install exec_prefix=/foo"
948 # and all the variables that are supposed to be based on exec_prefix
949 # by default will actually change.
950 # Use braces instead of parens because sh, perl, etc. also accept them.
951 # (The list follows the same order as the GNU Coding Standards.)
952 bindir='${exec_prefix}/bin'
953 sbindir='${exec_prefix}/sbin'
954 libexecdir='${exec_prefix}/libexec'
955 datarootdir='${prefix}/share'
956 datadir='${datarootdir}'
957 sysconfdir='${prefix}/etc'
958 sharedstatedir='${prefix}/com'
959 localstatedir='${prefix}/var'
960 includedir='${prefix}/include'
961 oldincludedir='/usr/include'
962 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
963 infodir='${datarootdir}/info'
964 htmldir='${docdir}'
965 dvidir='${docdir}'
966 pdfdir='${docdir}'
967 psdir='${docdir}'
968 libdir='${exec_prefix}/lib'
969 localedir='${datarootdir}/locale'
970 mandir='${datarootdir}/man'
972 ac_prev=
973 ac_dashdash=
974 for ac_option
976 # If the previous option needs an argument, assign it.
977 if test -n "$ac_prev"; then
978 eval $ac_prev=\$ac_option
979 ac_prev=
980 continue
983 case $ac_option in
984 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
985 *) ac_optarg=yes ;;
986 esac
988 # Accept the important Cygnus configure options, so we can diagnose typos.
990 case $ac_dashdash$ac_option in
992 ac_dashdash=yes ;;
994 -bindir | --bindir | --bindi | --bind | --bin | --bi)
995 ac_prev=bindir ;;
996 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
997 bindir=$ac_optarg ;;
999 -build | --build | --buil | --bui | --bu)
1000 ac_prev=build_alias ;;
1001 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1002 build_alias=$ac_optarg ;;
1004 -cache-file | --cache-file | --cache-fil | --cache-fi \
1005 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1006 ac_prev=cache_file ;;
1007 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1008 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1009 cache_file=$ac_optarg ;;
1011 --config-cache | -C)
1012 cache_file=config.cache ;;
1014 -datadir | --datadir | --datadi | --datad)
1015 ac_prev=datadir ;;
1016 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1017 datadir=$ac_optarg ;;
1019 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1020 | --dataroo | --dataro | --datar)
1021 ac_prev=datarootdir ;;
1022 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1023 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1024 datarootdir=$ac_optarg ;;
1026 -disable-* | --disable-*)
1027 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1030 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1031 { (exit 1); exit 1; }; }
1032 ac_useropt_orig=$ac_useropt
1033 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1036 "enable_$ac_useropt"
1037 "*) ;;
1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1039 ac_unrecognized_sep=', ';;
1040 esac
1041 eval enable_$ac_useropt=no ;;
1043 -docdir | --docdir | --docdi | --doc | --do)
1044 ac_prev=docdir ;;
1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046 docdir=$ac_optarg ;;
1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049 ac_prev=dvidir ;;
1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051 dvidir=$ac_optarg ;;
1053 -enable-* | --enable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1063 "enable_$ac_useropt"
1064 "*) ;;
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1067 esac
1068 eval enable_$ac_useropt=\$ac_optarg ;;
1070 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1071 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1072 | --exec | --exe | --ex)
1073 ac_prev=exec_prefix ;;
1074 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1075 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1076 | --exec=* | --exe=* | --ex=*)
1077 exec_prefix=$ac_optarg ;;
1079 -gas | --gas | --ga | --g)
1080 # Obsolete; use --with-gas.
1081 with_gas=yes ;;
1083 -help | --help | --hel | --he | -h)
1084 ac_init_help=long ;;
1085 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1086 ac_init_help=recursive ;;
1087 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1088 ac_init_help=short ;;
1090 -host | --host | --hos | --ho)
1091 ac_prev=host_alias ;;
1092 -host=* | --host=* | --hos=* | --ho=*)
1093 host_alias=$ac_optarg ;;
1095 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1096 ac_prev=htmldir ;;
1097 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1098 | --ht=*)
1099 htmldir=$ac_optarg ;;
1101 -includedir | --includedir | --includedi | --included | --include \
1102 | --includ | --inclu | --incl | --inc)
1103 ac_prev=includedir ;;
1104 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1105 | --includ=* | --inclu=* | --incl=* | --inc=*)
1106 includedir=$ac_optarg ;;
1108 -infodir | --infodir | --infodi | --infod | --info | --inf)
1109 ac_prev=infodir ;;
1110 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1111 infodir=$ac_optarg ;;
1113 -libdir | --libdir | --libdi | --libd)
1114 ac_prev=libdir ;;
1115 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1116 libdir=$ac_optarg ;;
1118 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1119 | --libexe | --libex | --libe)
1120 ac_prev=libexecdir ;;
1121 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1122 | --libexe=* | --libex=* | --libe=*)
1123 libexecdir=$ac_optarg ;;
1125 -localedir | --localedir | --localedi | --localed | --locale)
1126 ac_prev=localedir ;;
1127 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1128 localedir=$ac_optarg ;;
1130 -localstatedir | --localstatedir | --localstatedi | --localstated \
1131 | --localstate | --localstat | --localsta | --localst | --locals)
1132 ac_prev=localstatedir ;;
1133 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1134 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1135 localstatedir=$ac_optarg ;;
1137 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1138 ac_prev=mandir ;;
1139 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1140 mandir=$ac_optarg ;;
1142 -nfp | --nfp | --nf)
1143 # Obsolete; use --without-fp.
1144 with_fp=no ;;
1146 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1147 | --no-cr | --no-c | -n)
1148 no_create=yes ;;
1150 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1151 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1152 no_recursion=yes ;;
1154 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1155 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1156 | --oldin | --oldi | --old | --ol | --o)
1157 ac_prev=oldincludedir ;;
1158 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1159 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1160 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1161 oldincludedir=$ac_optarg ;;
1163 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1164 ac_prev=prefix ;;
1165 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1166 prefix=$ac_optarg ;;
1168 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1169 | --program-pre | --program-pr | --program-p)
1170 ac_prev=program_prefix ;;
1171 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1172 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1173 program_prefix=$ac_optarg ;;
1175 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1176 | --program-suf | --program-su | --program-s)
1177 ac_prev=program_suffix ;;
1178 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1179 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1180 program_suffix=$ac_optarg ;;
1182 -program-transform-name | --program-transform-name \
1183 | --program-transform-nam | --program-transform-na \
1184 | --program-transform-n | --program-transform- \
1185 | --program-transform | --program-transfor \
1186 | --program-transfo | --program-transf \
1187 | --program-trans | --program-tran \
1188 | --progr-tra | --program-tr | --program-t)
1189 ac_prev=program_transform_name ;;
1190 -program-transform-name=* | --program-transform-name=* \
1191 | --program-transform-nam=* | --program-transform-na=* \
1192 | --program-transform-n=* | --program-transform-=* \
1193 | --program-transform=* | --program-transfor=* \
1194 | --program-transfo=* | --program-transf=* \
1195 | --program-trans=* | --program-tran=* \
1196 | --progr-tra=* | --program-tr=* | --program-t=*)
1197 program_transform_name=$ac_optarg ;;
1199 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1200 ac_prev=pdfdir ;;
1201 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1202 pdfdir=$ac_optarg ;;
1204 -psdir | --psdir | --psdi | --psd | --ps)
1205 ac_prev=psdir ;;
1206 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1207 psdir=$ac_optarg ;;
1209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1210 | -silent | --silent | --silen | --sile | --sil)
1211 silent=yes ;;
1213 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1214 ac_prev=sbindir ;;
1215 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1216 | --sbi=* | --sb=*)
1217 sbindir=$ac_optarg ;;
1219 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1220 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1221 | --sharedst | --shareds | --shared | --share | --shar \
1222 | --sha | --sh)
1223 ac_prev=sharedstatedir ;;
1224 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1225 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1226 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1227 | --sha=* | --sh=*)
1228 sharedstatedir=$ac_optarg ;;
1230 -site | --site | --sit)
1231 ac_prev=site ;;
1232 -site=* | --site=* | --sit=*)
1233 site=$ac_optarg ;;
1235 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1236 ac_prev=srcdir ;;
1237 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1238 srcdir=$ac_optarg ;;
1240 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1241 | --syscon | --sysco | --sysc | --sys | --sy)
1242 ac_prev=sysconfdir ;;
1243 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1244 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1245 sysconfdir=$ac_optarg ;;
1247 -target | --target | --targe | --targ | --tar | --ta | --t)
1248 ac_prev=target_alias ;;
1249 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1250 target_alias=$ac_optarg ;;
1252 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1253 verbose=yes ;;
1255 -version | --version | --versio | --versi | --vers | -V)
1256 ac_init_version=: ;;
1258 -with-* | --with-*)
1259 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1263 { (exit 1); exit 1; }; }
1264 ac_useropt_orig=$ac_useropt
1265 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266 case $ac_user_opts in
1268 "with_$ac_useropt"
1269 "*) ;;
1270 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1271 ac_unrecognized_sep=', ';;
1272 esac
1273 eval with_$ac_useropt=\$ac_optarg ;;
1275 -without-* | --without-*)
1276 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1280 { (exit 1); exit 1; }; }
1281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1285 "with_$ac_useropt"
1286 "*) ;;
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1289 esac
1290 eval with_$ac_useropt=no ;;
1292 --x)
1293 # Obsolete; use --with-x.
1294 with_x=yes ;;
1296 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1297 | --x-incl | --x-inc | --x-in | --x-i)
1298 ac_prev=x_includes ;;
1299 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1300 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1301 x_includes=$ac_optarg ;;
1303 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1304 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1305 ac_prev=x_libraries ;;
1306 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1307 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1308 x_libraries=$ac_optarg ;;
1310 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1311 Try \`$0 --help' for more information." >&2
1312 { (exit 1); exit 1; }; }
1315 *=*)
1316 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1317 # Reject names that are not valid shell variable names.
1318 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1319 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1320 { (exit 1); exit 1; }; }
1321 eval $ac_envvar=\$ac_optarg
1322 export $ac_envvar ;;
1325 # FIXME: should be removed in autoconf 3.0.
1326 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1327 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1328 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1329 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1332 esac
1333 done
1335 if test -n "$ac_prev"; then
1336 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1337 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1338 { (exit 1); exit 1; }; }
1341 if test -n "$ac_unrecognized_opts"; then
1342 case $enable_option_checking in
1343 no) ;;
1344 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1345 { (exit 1); exit 1; }; } ;;
1346 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1347 esac
1350 # Check all directory arguments for consistency.
1351 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352 datadir sysconfdir sharedstatedir localstatedir includedir \
1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354 libdir localedir mandir
1356 eval ac_val=\$$ac_var
1357 # Remove trailing slashes.
1358 case $ac_val in
1359 */ )
1360 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1361 eval $ac_var=\$ac_val;;
1362 esac
1363 # Be sure to have absolute directory names.
1364 case $ac_val in
1365 [\\/$]* | ?:[\\/]* ) continue;;
1366 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367 esac
1368 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1369 { (exit 1); exit 1; }; }
1370 done
1372 # There might be people who depend on the old broken behavior: `$host'
1373 # used to hold the argument of --host etc.
1374 # FIXME: To remove some day.
1375 build=$build_alias
1376 host=$host_alias
1377 target=$target_alias
1379 # FIXME: To remove some day.
1380 if test "x$host_alias" != x; then
1381 if test "x$build_alias" = x; then
1382 cross_compiling=maybe
1383 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1384 If a cross compiler is detected then cross compile mode will be used." >&2
1385 elif test "x$build_alias" != "x$host_alias"; then
1386 cross_compiling=yes
1390 ac_tool_prefix=
1391 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1393 test "$silent" = yes && exec 6>/dev/null
1396 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1397 ac_ls_di=`ls -di .` &&
1398 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1399 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1400 { (exit 1); exit 1; }; }
1401 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1402 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1403 { (exit 1); exit 1; }; }
1406 # Find the source files, if location was not specified.
1407 if test -z "$srcdir"; then
1408 ac_srcdir_defaulted=yes
1409 # Try the directory containing this script, then the parent directory.
1410 ac_confdir=`$as_dirname -- "$as_myself" ||
1411 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1412 X"$as_myself" : 'X\(//\)[^/]' \| \
1413 X"$as_myself" : 'X\(//\)$' \| \
1414 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1415 $as_echo X"$as_myself" |
1416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1417 s//\1/
1420 /^X\(\/\/\)[^/].*/{
1421 s//\1/
1424 /^X\(\/\/\)$/{
1425 s//\1/
1428 /^X\(\/\).*/{
1429 s//\1/
1432 s/.*/./; q'`
1433 srcdir=$ac_confdir
1434 if test ! -r "$srcdir/$ac_unique_file"; then
1435 srcdir=..
1437 else
1438 ac_srcdir_defaulted=no
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1441 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1442 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1443 { (exit 1); exit 1; }; }
1445 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 ac_abs_confdir=`(
1447 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1448 { (exit 1); exit 1; }; }
1449 pwd)`
1450 # When building in place, set srcdir=.
1451 if test "$ac_abs_confdir" = "$ac_pwd"; then
1452 srcdir=.
1454 # Remove unnecessary trailing slashes from srcdir.
1455 # Double slashes in file names in object file debugging info
1456 # mess up M-x gdb in Emacs.
1457 case $srcdir in
1458 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459 esac
1460 for ac_var in $ac_precious_vars; do
1461 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_env_${ac_var}_value=\$${ac_var}
1463 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1464 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1465 done
1468 # Report the --help message.
1470 if test "$ac_init_help" = "long"; then
1471 # Omit some internal or obsolete options to make the list less imposing.
1472 # This message is too long to be a string in the A/UX 3.1 sh.
1473 cat <<_ACEOF
1474 \`configure' configures libmeminfo 0.1 to adapt to many kinds of systems.
1476 Usage: $0 [OPTION]... [VAR=VALUE]...
1478 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1479 VAR=VALUE. See below for descriptions of some of the useful variables.
1481 Defaults for the options are specified in brackets.
1483 Configuration:
1484 -h, --help display this help and exit
1485 --help=short display options specific to this package
1486 --help=recursive display the short help of all the included packages
1487 -V, --version display version information and exit
1488 -q, --quiet, --silent do not print \`checking...' messages
1489 --cache-file=FILE cache test results in FILE [disabled]
1490 -C, --config-cache alias for \`--cache-file=config.cache'
1491 -n, --no-create do not create output files
1492 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1494 Installation directories:
1495 --prefix=PREFIX install architecture-independent files in PREFIX
1496 [$ac_default_prefix]
1497 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1498 [PREFIX]
1500 By default, \`make install' will install all the files in
1501 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1502 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1503 for instance \`--prefix=\$HOME'.
1505 For better control, use the options below.
1507 Fine tuning of the installation directories:
1508 --bindir=DIR user executables [EPREFIX/bin]
1509 --sbindir=DIR system admin executables [EPREFIX/sbin]
1510 --libexecdir=DIR program executables [EPREFIX/libexec]
1511 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1512 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1513 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1514 --libdir=DIR object code libraries [EPREFIX/lib]
1515 --includedir=DIR C header files [PREFIX/include]
1516 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1517 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1518 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1519 --infodir=DIR info documentation [DATAROOTDIR/info]
1520 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1521 --mandir=DIR man documentation [DATAROOTDIR/man]
1522 --docdir=DIR documentation root [DATAROOTDIR/doc/libmeminfo]
1523 --htmldir=DIR html documentation [DOCDIR]
1524 --dvidir=DIR dvi documentation [DOCDIR]
1525 --pdfdir=DIR pdf documentation [DOCDIR]
1526 --psdir=DIR ps documentation [DOCDIR]
1527 _ACEOF
1529 cat <<\_ACEOF
1531 Program names:
1532 --program-prefix=PREFIX prepend PREFIX to installed program names
1533 --program-suffix=SUFFIX append SUFFIX to installed program names
1534 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1536 System types:
1537 --build=BUILD configure for building on BUILD [guessed]
1538 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1539 _ACEOF
1542 if test -n "$ac_init_help"; then
1543 case $ac_init_help in
1544 short | recursive ) echo "Configuration of libmeminfo 0.1:";;
1545 esac
1546 cat <<\_ACEOF
1548 Optional Features:
1549 --disable-option-checking ignore unrecognized --enable/--with options
1550 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1551 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1552 --enable-maintainer-mode enable make rules and dependencies not useful
1553 (and sometimes confusing) to the casual installer
1554 --disable-dependency-tracking speeds up one-time build
1555 --enable-dependency-tracking do not reject slow dependency extractors
1556 --enable-shared[=PKGS] build shared libraries [default=yes]
1557 --enable-static[=PKGS] build static libraries [default=yes]
1558 --enable-fast-install[=PKGS]
1559 optimize for fast installation [default=yes]
1560 --disable-libtool-lock avoid locking (might break parallel builds)
1561 --disable-local-libelf do not use the local libelf.
1563 Optional Packages:
1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1566 --with-pic try to use only PIC/non-PIC objects [default=use
1567 both]
1568 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1570 Some influential environment variables:
1571 CC C compiler command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1574 nonstandard directory <lib dir>
1575 LIBS libraries to pass to the linker, e.g. -l<library>
1576 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1577 you have headers in a nonstandard directory <include dir>
1578 CPP C preprocessor
1580 Use these variables to override the choices made by `configure' or to help
1581 it to find libraries and programs with nonstandard names/locations.
1583 _ACEOF
1584 ac_status=$?
1587 if test "$ac_init_help" = "recursive"; then
1588 # If there are subdirs, report their specific --help.
1589 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1590 test -d "$ac_dir" ||
1591 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1592 continue
1593 ac_builddir=.
1595 case "$ac_dir" in
1596 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1599 # A ".." for each directory in $ac_dir_suffix.
1600 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1601 case $ac_top_builddir_sub in
1602 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1604 esac ;;
1605 esac
1606 ac_abs_top_builddir=$ac_pwd
1607 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1608 # for backward compatibility:
1609 ac_top_builddir=$ac_top_build_prefix
1611 case $srcdir in
1612 .) # We are building in place.
1613 ac_srcdir=.
1614 ac_top_srcdir=$ac_top_builddir_sub
1615 ac_abs_top_srcdir=$ac_pwd ;;
1616 [\\/]* | ?:[\\/]* ) # Absolute name.
1617 ac_srcdir=$srcdir$ac_dir_suffix;
1618 ac_top_srcdir=$srcdir
1619 ac_abs_top_srcdir=$srcdir ;;
1620 *) # Relative name.
1621 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1622 ac_top_srcdir=$ac_top_build_prefix$srcdir
1623 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1624 esac
1625 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1627 cd "$ac_dir" || { ac_status=$?; continue; }
1628 # Check for guested configure.
1629 if test -f "$ac_srcdir/configure.gnu"; then
1630 echo &&
1631 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1632 elif test -f "$ac_srcdir/configure"; then
1633 echo &&
1634 $SHELL "$ac_srcdir/configure" --help=recursive
1635 else
1636 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1637 fi || ac_status=$?
1638 cd "$ac_pwd" || { ac_status=$?; break; }
1639 done
1642 test -n "$ac_init_help" && exit $ac_status
1643 if $ac_init_version; then
1644 cat <<\_ACEOF
1645 libmeminfo configure 0.1
1646 generated by GNU Autoconf 2.62
1648 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1649 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1650 This configure script is free software; the Free Software Foundation
1651 gives unlimited permission to copy, distribute and modify it.
1652 _ACEOF
1653 exit
1655 cat >config.log <<_ACEOF
1656 This file contains any messages produced by compilers while
1657 running configure, to aid debugging if configure makes a mistake.
1659 It was created by libmeminfo $as_me 0.1, which was
1660 generated by GNU Autoconf 2.62. Invocation command line was
1662 $ $0 $@
1664 _ACEOF
1665 exec 5>>config.log
1667 cat <<_ASUNAME
1668 ## --------- ##
1669 ## Platform. ##
1670 ## --------- ##
1672 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1673 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1674 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1675 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1676 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1678 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1679 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1681 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1682 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1683 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1684 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1685 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1686 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1687 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1689 _ASUNAME
1691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692 for as_dir in $PATH
1694 IFS=$as_save_IFS
1695 test -z "$as_dir" && as_dir=.
1696 $as_echo "PATH: $as_dir"
1697 done
1698 IFS=$as_save_IFS
1700 } >&5
1702 cat >&5 <<_ACEOF
1705 ## ----------- ##
1706 ## Core tests. ##
1707 ## ----------- ##
1709 _ACEOF
1712 # Keep a trace of the command line.
1713 # Strip out --no-create and --no-recursion so they do not pile up.
1714 # Strip out --silent because we don't want to record it for future runs.
1715 # Also quote any args containing shell meta-characters.
1716 # Make two passes to allow for proper duplicate-argument suppression.
1717 ac_configure_args=
1718 ac_configure_args0=
1719 ac_configure_args1=
1720 ac_must_keep_next=false
1721 for ac_pass in 1 2
1723 for ac_arg
1725 case $ac_arg in
1726 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1728 | -silent | --silent | --silen | --sile | --sil)
1729 continue ;;
1730 *\'*)
1731 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1732 esac
1733 case $ac_pass in
1734 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1736 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1737 if test $ac_must_keep_next = true; then
1738 ac_must_keep_next=false # Got value, back to normal.
1739 else
1740 case $ac_arg in
1741 *=* | --config-cache | -C | -disable-* | --disable-* \
1742 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1743 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1744 | -with-* | --with-* | -without-* | --without-* | --x)
1745 case "$ac_configure_args0 " in
1746 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1747 esac
1749 -* ) ac_must_keep_next=true ;;
1750 esac
1752 ac_configure_args="$ac_configure_args '$ac_arg'"
1754 esac
1755 done
1756 done
1757 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1758 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1760 # When interrupted or exit'd, cleanup temporary files, and complete
1761 # config.log. We remove comments because anyway the quotes in there
1762 # would cause problems or look ugly.
1763 # WARNING: Use '\'' to represent an apostrophe within the trap.
1764 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1765 trap 'exit_status=$?
1766 # Save into config.log some information that might help in debugging.
1768 echo
1770 cat <<\_ASBOX
1771 ## ---------------- ##
1772 ## Cache variables. ##
1773 ## ---------------- ##
1774 _ASBOX
1775 echo
1776 # The following way of writing the cache mishandles newlines in values,
1778 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1779 eval ac_val=\$$ac_var
1780 case $ac_val in #(
1781 *${as_nl}*)
1782 case $ac_var in #(
1783 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1784 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1785 esac
1786 case $ac_var in #(
1787 _ | IFS | as_nl) ;; #(
1788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1789 *) $as_unset $ac_var ;;
1790 esac ;;
1791 esac
1792 done
1793 (set) 2>&1 |
1794 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1795 *${as_nl}ac_space=\ *)
1796 sed -n \
1797 "s/'\''/'\''\\\\'\'''\''/g;
1798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1799 ;; #(
1801 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1803 esac |
1804 sort
1806 echo
1808 cat <<\_ASBOX
1809 ## ----------------- ##
1810 ## Output variables. ##
1811 ## ----------------- ##
1812 _ASBOX
1813 echo
1814 for ac_var in $ac_subst_vars
1816 eval ac_val=\$$ac_var
1817 case $ac_val in
1818 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819 esac
1820 $as_echo "$ac_var='\''$ac_val'\''"
1821 done | sort
1822 echo
1824 if test -n "$ac_subst_files"; then
1825 cat <<\_ASBOX
1826 ## ------------------- ##
1827 ## File substitutions. ##
1828 ## ------------------- ##
1829 _ASBOX
1830 echo
1831 for ac_var in $ac_subst_files
1833 eval ac_val=\$$ac_var
1834 case $ac_val in
1835 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1836 esac
1837 $as_echo "$ac_var='\''$ac_val'\''"
1838 done | sort
1839 echo
1842 if test -s confdefs.h; then
1843 cat <<\_ASBOX
1844 ## ----------- ##
1845 ## confdefs.h. ##
1846 ## ----------- ##
1847 _ASBOX
1848 echo
1849 cat confdefs.h
1850 echo
1852 test "$ac_signal" != 0 &&
1853 $as_echo "$as_me: caught signal $ac_signal"
1854 $as_echo "$as_me: exit $exit_status"
1855 } >&5
1856 rm -f core *.core core.conftest.* &&
1857 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1858 exit $exit_status
1860 for ac_signal in 1 2 13 15; do
1861 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1862 done
1863 ac_signal=0
1865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1866 rm -f -r conftest* confdefs.h
1868 # Predefined preprocessor variables.
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_NAME "$PACKAGE_NAME"
1872 _ACEOF
1875 cat >>confdefs.h <<_ACEOF
1876 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1877 _ACEOF
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1882 _ACEOF
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_STRING "$PACKAGE_STRING"
1887 _ACEOF
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1892 _ACEOF
1895 # Let the site file select an alternate cache file if it wants to.
1896 # Prefer an explicitly selected file to automatically selected ones.
1897 ac_site_file1=NONE
1898 ac_site_file2=NONE
1899 if test -n "$CONFIG_SITE"; then
1900 ac_site_file1=$CONFIG_SITE
1901 elif test "x$prefix" != xNONE; then
1902 ac_site_file1=$prefix/share/config.site
1903 ac_site_file2=$prefix/etc/config.site
1904 else
1905 ac_site_file1=$ac_default_prefix/share/config.site
1906 ac_site_file2=$ac_default_prefix/etc/config.site
1908 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1910 test "x$ac_site_file" = xNONE && continue
1911 if test -r "$ac_site_file"; then
1912 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1913 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1914 sed 's/^/| /' "$ac_site_file" >&5
1915 . "$ac_site_file"
1917 done
1919 if test -r "$cache_file"; then
1920 # Some versions of bash will fail to source /dev/null (special
1921 # files actually), so we avoid doing that.
1922 if test -f "$cache_file"; then
1923 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1924 $as_echo "$as_me: loading cache $cache_file" >&6;}
1925 case $cache_file in
1926 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1927 *) . "./$cache_file";;
1928 esac
1930 else
1931 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1932 $as_echo "$as_me: creating cache $cache_file" >&6;}
1933 >$cache_file
1936 # Check that the precious variables saved in the cache have kept the same
1937 # value.
1938 ac_cache_corrupted=false
1939 for ac_var in $ac_precious_vars; do
1940 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1941 eval ac_new_set=\$ac_env_${ac_var}_set
1942 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1943 eval ac_new_val=\$ac_env_${ac_var}_value
1944 case $ac_old_set,$ac_new_set in
1945 set,)
1946 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1947 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1948 ac_cache_corrupted=: ;;
1949 ,set)
1950 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1951 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1952 ac_cache_corrupted=: ;;
1953 ,);;
1955 if test "x$ac_old_val" != "x$ac_new_val"; then
1956 # differences in whitespace do not lead to failure.
1957 ac_old_val_w=`echo x $ac_old_val`
1958 ac_new_val_w=`echo x $ac_new_val`
1959 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1960 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1961 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1962 ac_cache_corrupted=:
1963 else
1964 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1965 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1966 eval $ac_var=\$ac_old_val
1968 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1969 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1970 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1971 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1972 fi;;
1973 esac
1974 # Pass precious variables to config.status.
1975 if test "$ac_new_set" = set; then
1976 case $ac_new_val in
1977 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1978 *) ac_arg=$ac_var=$ac_new_val ;;
1979 esac
1980 case " $ac_configure_args " in
1981 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1982 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1983 esac
1985 done
1986 if $ac_cache_corrupted; then
1987 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1988 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1989 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1990 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1991 { (exit 1); exit 1; }; }
2018 ac_ext=c
2019 ac_cpp='$CPP $CPPFLAGS'
2020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2026 am__api_version='1.10'
2028 ac_aux_dir=
2029 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2030 if test -f "$ac_dir/install-sh"; then
2031 ac_aux_dir=$ac_dir
2032 ac_install_sh="$ac_aux_dir/install-sh -c"
2033 break
2034 elif test -f "$ac_dir/install.sh"; then
2035 ac_aux_dir=$ac_dir
2036 ac_install_sh="$ac_aux_dir/install.sh -c"
2037 break
2038 elif test -f "$ac_dir/shtool"; then
2039 ac_aux_dir=$ac_dir
2040 ac_install_sh="$ac_aux_dir/shtool install -c"
2041 break
2043 done
2044 if test -z "$ac_aux_dir"; then
2045 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2046 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2047 { (exit 1); exit 1; }; }
2050 # These three variables are undocumented and unsupported,
2051 # and are intended to be withdrawn in a future Autoconf release.
2052 # They can cause serious problems if a builder's source tree is in a directory
2053 # whose full name contains unusual characters.
2054 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2055 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2056 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2059 # Find a good install program. We prefer a C program (faster),
2060 # so one script is as good as another. But avoid the broken or
2061 # incompatible versions:
2062 # SysV /etc/install, /usr/sbin/install
2063 # SunOS /usr/etc/install
2064 # IRIX /sbin/install
2065 # AIX /bin/install
2066 # AmigaOS /C/install, which installs bootblocks on floppy discs
2067 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2068 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2069 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2070 # OS/2's system install, which has a completely different semantic
2071 # ./install, which can be erroneously created by make from ./install.sh.
2072 # Reject install programs that cannot install multiple files.
2073 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2074 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2075 if test -z "$INSTALL"; then
2076 if test "${ac_cv_path_install+set}" = set; then
2077 $as_echo_n "(cached) " >&6
2078 else
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 for as_dir in $PATH
2082 IFS=$as_save_IFS
2083 test -z "$as_dir" && as_dir=.
2084 # Account for people who put trailing slashes in PATH elements.
2085 case $as_dir/ in
2086 ./ | .// | /cC/* | \
2087 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2088 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2089 /usr/ucb/* ) ;;
2091 # OSF1 and SCO ODT 3.0 have their own names for install.
2092 # Don't use installbsd from OSF since it installs stuff as root
2093 # by default.
2094 for ac_prog in ginstall scoinst install; do
2095 for ac_exec_ext in '' $ac_executable_extensions; do
2096 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2097 if test $ac_prog = install &&
2098 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2099 # AIX install. It has an incompatible calling convention.
2101 elif test $ac_prog = install &&
2102 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2103 # program-specific install script used by HP pwplus--don't use.
2105 else
2106 rm -rf conftest.one conftest.two conftest.dir
2107 echo one > conftest.one
2108 echo two > conftest.two
2109 mkdir conftest.dir
2110 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2111 test -s conftest.one && test -s conftest.two &&
2112 test -s conftest.dir/conftest.one &&
2113 test -s conftest.dir/conftest.two
2114 then
2115 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2116 break 3
2120 done
2121 done
2123 esac
2125 done
2126 IFS=$as_save_IFS
2128 rm -rf conftest.one conftest.two conftest.dir
2131 if test "${ac_cv_path_install+set}" = set; then
2132 INSTALL=$ac_cv_path_install
2133 else
2134 # As a last resort, use the slow shell script. Don't cache a
2135 # value for INSTALL within a source directory, because that will
2136 # break other packages using the cache if that directory is
2137 # removed, or if the value is a relative name.
2138 INSTALL=$ac_install_sh
2141 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2142 $as_echo "$INSTALL" >&6; }
2144 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2145 # It thinks the first close brace ends the variable substitution.
2146 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2148 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2150 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2152 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2153 $as_echo_n "checking whether build environment is sane... " >&6; }
2154 # Just in case
2155 sleep 1
2156 echo timestamp > conftest.file
2157 # Do `set' in a subshell so we don't clobber the current shell's
2158 # arguments. Must try -L first in case configure is actually a
2159 # symlink; some systems play weird games with the mod time of symlinks
2160 # (eg FreeBSD returns the mod time of the symlink's containing
2161 # directory).
2162 if (
2163 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2164 if test "$*" = "X"; then
2165 # -L didn't work.
2166 set X `ls -t $srcdir/configure conftest.file`
2168 rm -f conftest.file
2169 if test "$*" != "X $srcdir/configure conftest.file" \
2170 && test "$*" != "X conftest.file $srcdir/configure"; then
2172 # If neither matched, then we have a broken ls. This can happen
2173 # if, for instance, CONFIG_SHELL is bash and it inherits a
2174 # broken ls alias from the environment. This has actually
2175 # happened. Such a system could not be considered "sane".
2176 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2177 alias in your environment" >&5
2178 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2179 alias in your environment" >&2;}
2180 { (exit 1); exit 1; }; }
2183 test "$2" = conftest.file
2185 then
2186 # Ok.
2188 else
2189 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2190 Check your system clock" >&5
2191 $as_echo "$as_me: error: newly created file is older than distributed files!
2192 Check your system clock" >&2;}
2193 { (exit 1); exit 1; }; }
2195 { $as_echo "$as_me:$LINENO: result: yes" >&5
2196 $as_echo "yes" >&6; }
2197 test "$program_prefix" != NONE &&
2198 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2199 # Use a double $ so make ignores it.
2200 test "$program_suffix" != NONE &&
2201 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2202 # Double any \ or $.
2203 # By default was `s,x,x', remove it if useless.
2204 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2205 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2207 # expand $ac_aux_dir to an absolute path
2208 am_aux_dir=`cd $ac_aux_dir && pwd`
2210 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2211 # Use eval to expand $SHELL
2212 if eval "$MISSING --run true"; then
2213 am_missing_run="$MISSING --run "
2214 else
2215 am_missing_run=
2216 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2217 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2220 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2221 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2222 if test -z "$MKDIR_P"; then
2223 if test "${ac_cv_path_mkdir+set}" = set; then
2224 $as_echo_n "(cached) " >&6
2225 else
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2229 IFS=$as_save_IFS
2230 test -z "$as_dir" && as_dir=.
2231 for ac_prog in mkdir gmkdir; do
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2234 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2235 'mkdir (GNU coreutils) '* | \
2236 'mkdir (coreutils) '* | \
2237 'mkdir (fileutils) '4.1*)
2238 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2239 break 3;;
2240 esac
2241 done
2242 done
2243 done
2244 IFS=$as_save_IFS
2248 if test "${ac_cv_path_mkdir+set}" = set; then
2249 MKDIR_P="$ac_cv_path_mkdir -p"
2250 else
2251 # As a last resort, use the slow shell script. Don't cache a
2252 # value for MKDIR_P within a source directory, because that will
2253 # break other packages using the cache if that directory is
2254 # removed, or if the value is a relative name.
2255 test -d ./--version && rmdir ./--version
2256 MKDIR_P="$ac_install_sh -d"
2259 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2260 $as_echo "$MKDIR_P" >&6; }
2262 mkdir_p="$MKDIR_P"
2263 case $mkdir_p in
2264 [\\/$]* | ?:[\\/]*) ;;
2265 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2266 esac
2268 for ac_prog in gawk mawk nawk awk
2270 # Extract the first word of "$ac_prog", so it can be a program name with args.
2271 set dummy $ac_prog; ac_word=$2
2272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 $as_echo_n "checking for $ac_word... " >&6; }
2274 if test "${ac_cv_prog_AWK+set}" = set; then
2275 $as_echo_n "(cached) " >&6
2276 else
2277 if test -n "$AWK"; then
2278 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2279 else
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2287 ac_cv_prog_AWK="$ac_prog"
2288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2289 break 2
2291 done
2292 done
2293 IFS=$as_save_IFS
2297 AWK=$ac_cv_prog_AWK
2298 if test -n "$AWK"; then
2299 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2300 $as_echo "$AWK" >&6; }
2301 else
2302 { $as_echo "$as_me:$LINENO: result: no" >&5
2303 $as_echo "no" >&6; }
2307 test -n "$AWK" && break
2308 done
2310 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2311 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2312 set x ${MAKE-make}
2313 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2314 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2315 $as_echo_n "(cached) " >&6
2316 else
2317 cat >conftest.make <<\_ACEOF
2318 SHELL = /bin/sh
2319 all:
2320 @echo '@@@%%%=$(MAKE)=@@@%%%'
2321 _ACEOF
2322 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2323 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2324 *@@@%%%=?*=@@@%%%*)
2325 eval ac_cv_prog_make_${ac_make}_set=yes;;
2327 eval ac_cv_prog_make_${ac_make}_set=no;;
2328 esac
2329 rm -f conftest.make
2331 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2332 { $as_echo "$as_me:$LINENO: result: yes" >&5
2333 $as_echo "yes" >&6; }
2334 SET_MAKE=
2335 else
2336 { $as_echo "$as_me:$LINENO: result: no" >&5
2337 $as_echo "no" >&6; }
2338 SET_MAKE="MAKE=${MAKE-make}"
2341 rm -rf .tst 2>/dev/null
2342 mkdir .tst 2>/dev/null
2343 if test -d .tst; then
2344 am__leading_dot=.
2345 else
2346 am__leading_dot=_
2348 rmdir .tst 2>/dev/null
2350 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2351 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2352 # is not polluted with repeated "-I."
2353 am__isrc=' -I$(srcdir)'
2354 # test to see if srcdir already configured
2355 if test -f $srcdir/config.status; then
2356 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2357 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2358 { (exit 1); exit 1; }; }
2362 # test whether we have cygpath
2363 if test -z "$CYGPATH_W"; then
2364 if (cygpath --version) >/dev/null 2>/dev/null; then
2365 CYGPATH_W='cygpath -w'
2366 else
2367 CYGPATH_W=echo
2372 # Define the identity of the package.
2373 PACKAGE='libmeminfo'
2374 VERSION='0.1'
2377 # Some tools Automake needs.
2379 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2382 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2385 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2388 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2391 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2393 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2395 # Installed binaries are usually stripped using `strip' when the user
2396 # run `make install-strip'. However `strip' might not be the right
2397 # tool to use in cross-compilation environments, therefore Automake
2398 # will honor the `STRIP' environment variable to overrule this program.
2399 if test "$cross_compiling" != no; then
2400 if test -n "$ac_tool_prefix"; then
2401 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2402 set dummy ${ac_tool_prefix}strip; ac_word=$2
2403 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 $as_echo_n "checking for $ac_word... " >&6; }
2405 if test "${ac_cv_prog_STRIP+set}" = set; then
2406 $as_echo_n "(cached) " >&6
2407 else
2408 if test -n "$STRIP"; then
2409 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2410 else
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2418 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 break 2
2422 done
2423 done
2424 IFS=$as_save_IFS
2428 STRIP=$ac_cv_prog_STRIP
2429 if test -n "$STRIP"; then
2430 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2431 $as_echo "$STRIP" >&6; }
2432 else
2433 { $as_echo "$as_me:$LINENO: result: no" >&5
2434 $as_echo "no" >&6; }
2439 if test -z "$ac_cv_prog_STRIP"; then
2440 ac_ct_STRIP=$STRIP
2441 # Extract the first word of "strip", so it can be a program name with args.
2442 set dummy strip; ac_word=$2
2443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2444 $as_echo_n "checking for $ac_word... " >&6; }
2445 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2446 $as_echo_n "(cached) " >&6
2447 else
2448 if test -n "$ac_ct_STRIP"; then
2449 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2450 else
2451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 for as_dir in $PATH
2454 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2458 ac_cv_prog_ac_ct_STRIP="strip"
2459 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 break 2
2462 done
2463 done
2464 IFS=$as_save_IFS
2468 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2469 if test -n "$ac_ct_STRIP"; then
2470 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2471 $as_echo "$ac_ct_STRIP" >&6; }
2472 else
2473 { $as_echo "$as_me:$LINENO: result: no" >&5
2474 $as_echo "no" >&6; }
2477 if test "x$ac_ct_STRIP" = x; then
2478 STRIP=":"
2479 else
2480 case $cross_compiling:$ac_tool_warned in
2481 yes:)
2482 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2483 whose name does not start with the host triplet. If you think this
2484 configuration is useful to you, please write to autoconf@gnu.org." >&5
2485 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2486 whose name does not start with the host triplet. If you think this
2487 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2488 ac_tool_warned=yes ;;
2489 esac
2490 STRIP=$ac_ct_STRIP
2492 else
2493 STRIP="$ac_cv_prog_STRIP"
2497 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2499 # We need awk for the "check" target. The system "awk" is bad on
2500 # some platforms.
2501 # Always define AMTAR for backward compatibility.
2503 AMTAR=${AMTAR-"${am_missing_run}tar"}
2505 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2511 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2512 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2513 # Check whether --enable-maintainer-mode was given.
2514 if test "${enable_maintainer_mode+set}" = set; then
2515 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2516 else
2517 USE_MAINTAINER_MODE=no
2520 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2521 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2522 if test $USE_MAINTAINER_MODE = yes; then
2523 MAINTAINER_MODE_TRUE=
2524 MAINTAINER_MODE_FALSE='#'
2525 else
2526 MAINTAINER_MODE_TRUE='#'
2527 MAINTAINER_MODE_FALSE=
2530 MAINT=$MAINTAINER_MODE_TRUE
2535 # Make sure we can run config.sub.
2536 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2537 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2538 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2539 { (exit 1); exit 1; }; }
2541 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2542 $as_echo_n "checking build system type... " >&6; }
2543 if test "${ac_cv_build+set}" = set; then
2544 $as_echo_n "(cached) " >&6
2545 else
2546 ac_build_alias=$build_alias
2547 test "x$ac_build_alias" = x &&
2548 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2549 test "x$ac_build_alias" = x &&
2550 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2551 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2552 { (exit 1); exit 1; }; }
2553 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2554 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2555 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2556 { (exit 1); exit 1; }; }
2559 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2560 $as_echo "$ac_cv_build" >&6; }
2561 case $ac_cv_build in
2562 *-*-*) ;;
2563 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2564 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2565 { (exit 1); exit 1; }; };;
2566 esac
2567 build=$ac_cv_build
2568 ac_save_IFS=$IFS; IFS='-'
2569 set x $ac_cv_build
2570 shift
2571 build_cpu=$1
2572 build_vendor=$2
2573 shift; shift
2574 # Remember, the first character of IFS is used to create $*,
2575 # except with old shells:
2576 build_os=$*
2577 IFS=$ac_save_IFS
2578 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2581 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2582 $as_echo_n "checking host system type... " >&6; }
2583 if test "${ac_cv_host+set}" = set; then
2584 $as_echo_n "(cached) " >&6
2585 else
2586 if test "x$host_alias" = x; then
2587 ac_cv_host=$ac_cv_build
2588 else
2589 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2590 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2591 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2592 { (exit 1); exit 1; }; }
2596 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2597 $as_echo "$ac_cv_host" >&6; }
2598 case $ac_cv_host in
2599 *-*-*) ;;
2600 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2601 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2602 { (exit 1); exit 1; }; };;
2603 esac
2604 host=$ac_cv_host
2605 ac_save_IFS=$IFS; IFS='-'
2606 set x $ac_cv_host
2607 shift
2608 host_cpu=$1
2609 host_vendor=$2
2610 shift; shift
2611 # Remember, the first character of IFS is used to create $*,
2612 # except with old shells:
2613 host_os=$*
2614 IFS=$ac_save_IFS
2615 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2619 ac_ext=c
2620 ac_cpp='$CPP $CPPFLAGS'
2621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2624 if test -n "$ac_tool_prefix"; then
2625 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2626 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2627 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 $as_echo_n "checking for $ac_word... " >&6; }
2629 if test "${ac_cv_prog_CC+set}" = set; then
2630 $as_echo_n "(cached) " >&6
2631 else
2632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2643 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 break 2
2646 done
2647 done
2648 IFS=$as_save_IFS
2652 CC=$ac_cv_prog_CC
2653 if test -n "$CC"; then
2654 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2655 $as_echo "$CC" >&6; }
2656 else
2657 { $as_echo "$as_me:$LINENO: result: no" >&5
2658 $as_echo "no" >&6; }
2663 if test -z "$ac_cv_prog_CC"; then
2664 ac_ct_CC=$CC
2665 # Extract the first word of "gcc", so it can be a program name with args.
2666 set dummy gcc; ac_word=$2
2667 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2668 $as_echo_n "checking for $ac_word... " >&6; }
2669 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2670 $as_echo_n "(cached) " >&6
2671 else
2672 if test -n "$ac_ct_CC"; then
2673 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2674 else
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 for as_dir in $PATH
2678 IFS=$as_save_IFS
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2682 ac_cv_prog_ac_ct_CC="gcc"
2683 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2684 break 2
2686 done
2687 done
2688 IFS=$as_save_IFS
2692 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2693 if test -n "$ac_ct_CC"; then
2694 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2695 $as_echo "$ac_ct_CC" >&6; }
2696 else
2697 { $as_echo "$as_me:$LINENO: result: no" >&5
2698 $as_echo "no" >&6; }
2701 if test "x$ac_ct_CC" = x; then
2702 CC=""
2703 else
2704 case $cross_compiling:$ac_tool_warned in
2705 yes:)
2706 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2707 whose name does not start with the host triplet. If you think this
2708 configuration is useful to you, please write to autoconf@gnu.org." >&5
2709 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2710 whose name does not start with the host triplet. If you think this
2711 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2712 ac_tool_warned=yes ;;
2713 esac
2714 CC=$ac_ct_CC
2716 else
2717 CC="$ac_cv_prog_CC"
2720 if test -z "$CC"; then
2721 if test -n "$ac_tool_prefix"; then
2722 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2723 set dummy ${ac_tool_prefix}cc; ac_word=$2
2724 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if test "${ac_cv_prog_CC+set}" = set; then
2727 $as_echo_n "(cached) " >&6
2728 else
2729 if test -n "$CC"; then
2730 ac_cv_prog_CC="$CC" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_CC="${ac_tool_prefix}cc"
2740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 break 2
2743 done
2744 done
2745 IFS=$as_save_IFS
2749 CC=$ac_cv_prog_CC
2750 if test -n "$CC"; then
2751 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2752 $as_echo "$CC" >&6; }
2753 else
2754 { $as_echo "$as_me:$LINENO: result: no" >&5
2755 $as_echo "no" >&6; }
2761 if test -z "$CC"; then
2762 # Extract the first word of "cc", so it can be a program name with args.
2763 set dummy cc; ac_word=$2
2764 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if test "${ac_cv_prog_CC+set}" = set; then
2767 $as_echo_n "(cached) " >&6
2768 else
2769 if test -n "$CC"; then
2770 ac_cv_prog_CC="$CC" # Let the user override the test.
2771 else
2772 ac_prog_rejected=no
2773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2780 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2781 ac_prog_rejected=yes
2782 continue
2784 ac_cv_prog_CC="cc"
2785 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2788 done
2789 done
2790 IFS=$as_save_IFS
2792 if test $ac_prog_rejected = yes; then
2793 # We found a bogon in the path, so make sure we never use it.
2794 set dummy $ac_cv_prog_CC
2795 shift
2796 if test $# != 0; then
2797 # We chose a different compiler from the bogus one.
2798 # However, it has the same basename, so the bogon will be chosen
2799 # first if we set CC to just the basename; use the full file name.
2800 shift
2801 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2806 CC=$ac_cv_prog_CC
2807 if test -n "$CC"; then
2808 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2809 $as_echo "$CC" >&6; }
2810 else
2811 { $as_echo "$as_me:$LINENO: result: no" >&5
2812 $as_echo "no" >&6; }
2817 if test -z "$CC"; then
2818 if test -n "$ac_tool_prefix"; then
2819 for ac_prog in cl.exe
2821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2822 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2823 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 $as_echo_n "checking for $ac_word... " >&6; }
2825 if test "${ac_cv_prog_CC+set}" = set; then
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if test -n "$CC"; then
2829 ac_cv_prog_CC="$CC" # Let the user override the test.
2830 else
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2839 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2842 done
2843 done
2844 IFS=$as_save_IFS
2848 CC=$ac_cv_prog_CC
2849 if test -n "$CC"; then
2850 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2851 $as_echo "$CC" >&6; }
2852 else
2853 { $as_echo "$as_me:$LINENO: result: no" >&5
2854 $as_echo "no" >&6; }
2858 test -n "$CC" && break
2859 done
2861 if test -z "$CC"; then
2862 ac_ct_CC=$CC
2863 for ac_prog in cl.exe
2865 # Extract the first word of "$ac_prog", so it can be a program name with args.
2866 set dummy $ac_prog; ac_word=$2
2867 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 $as_echo_n "checking for $ac_word... " >&6; }
2869 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2870 $as_echo_n "(cached) " >&6
2871 else
2872 if test -n "$ac_ct_CC"; then
2873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2878 IFS=$as_save_IFS
2879 test -z "$as_dir" && as_dir=.
2880 for ac_exec_ext in '' $ac_executable_extensions; do
2881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2882 ac_cv_prog_ac_ct_CC="$ac_prog"
2883 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 break 2
2886 done
2887 done
2888 IFS=$as_save_IFS
2892 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2893 if test -n "$ac_ct_CC"; then
2894 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2895 $as_echo "$ac_ct_CC" >&6; }
2896 else
2897 { $as_echo "$as_me:$LINENO: result: no" >&5
2898 $as_echo "no" >&6; }
2902 test -n "$ac_ct_CC" && break
2903 done
2905 if test "x$ac_ct_CC" = x; then
2906 CC=""
2907 else
2908 case $cross_compiling:$ac_tool_warned in
2909 yes:)
2910 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2911 whose name does not start with the host triplet. If you think this
2912 configuration is useful to you, please write to autoconf@gnu.org." >&5
2913 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2914 whose name does not start with the host triplet. If you think this
2915 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2916 ac_tool_warned=yes ;;
2917 esac
2918 CC=$ac_ct_CC
2925 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2926 See \`config.log' for more details." >&5
2927 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2928 See \`config.log' for more details." >&2;}
2929 { (exit 1); exit 1; }; }
2931 # Provide some information about the compiler.
2932 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2933 set X $ac_compile
2934 ac_compiler=$2
2935 { (ac_try="$ac_compiler --version >&5"
2936 case "(($ac_try" in
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2939 esac
2940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2941 $as_echo "$ac_try_echo") >&5
2942 (eval "$ac_compiler --version >&5") 2>&5
2943 ac_status=$?
2944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }
2946 { (ac_try="$ac_compiler -v >&5"
2947 case "(($ac_try" in
2948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949 *) ac_try_echo=$ac_try;;
2950 esac
2951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2952 $as_echo "$ac_try_echo") >&5
2953 (eval "$ac_compiler -v >&5") 2>&5
2954 ac_status=$?
2955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }
2957 { (ac_try="$ac_compiler -V >&5"
2958 case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961 esac
2962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2963 $as_echo "$ac_try_echo") >&5
2964 (eval "$ac_compiler -V >&5") 2>&5
2965 ac_status=$?
2966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }
2969 cat >conftest.$ac_ext <<_ACEOF
2970 /* confdefs.h. */
2971 _ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2977 main ()
2981 return 0;
2983 _ACEOF
2984 ac_clean_files_save=$ac_clean_files
2985 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2986 # Try to create an executable without -o first, disregard a.out.
2987 # It will help us diagnose broken compilers, and finding out an intuition
2988 # of exeext.
2989 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2990 $as_echo_n "checking for C compiler default output file name... " >&6; }
2991 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2993 # The possible output files:
2994 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2996 ac_rmfiles=
2997 for ac_file in $ac_files
2999 case $ac_file in
3000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3001 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3002 esac
3003 done
3004 rm -f $ac_rmfiles
3006 if { (ac_try="$ac_link_default"
3007 case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3010 esac
3011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3012 $as_echo "$ac_try_echo") >&5
3013 (eval "$ac_link_default") 2>&5
3014 ac_status=$?
3015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; then
3017 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3018 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3019 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3020 # so that the user can short-circuit this test for compilers unknown to
3021 # Autoconf.
3022 for ac_file in $ac_files ''
3024 test -f "$ac_file" || continue
3025 case $ac_file in
3026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3028 [ab].out )
3029 # We found the default executable, but exeext='' is most
3030 # certainly right.
3031 break;;
3032 *.* )
3033 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3034 then :; else
3035 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3037 # We set ac_cv_exeext here because the later test for it is not
3038 # safe: cross compilers may not add the suffix if given an `-o'
3039 # argument, so we may need to know it at that point already.
3040 # Even if this section looks crufty: it has the advantage of
3041 # actually working.
3042 break;;
3044 break;;
3045 esac
3046 done
3047 test "$ac_cv_exeext" = no && ac_cv_exeext=
3049 else
3050 ac_file=''
3053 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3054 $as_echo "$ac_file" >&6; }
3055 if test -z "$ac_file"; then
3056 $as_echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3059 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3060 See \`config.log' for more details." >&5
3061 $as_echo "$as_me: error: C compiler cannot create executables
3062 See \`config.log' for more details." >&2;}
3063 { (exit 77); exit 77; }; }
3066 ac_exeext=$ac_cv_exeext
3068 # Check that the compiler produces executables we can run. If not, either
3069 # the compiler is broken, or we cross compile.
3070 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3071 $as_echo_n "checking whether the C compiler works... " >&6; }
3072 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3073 # If not cross compiling, check that we can run a simple program.
3074 if test "$cross_compiling" != yes; then
3075 if { ac_try='./$ac_file'
3076 { (case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079 esac
3080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3081 $as_echo "$ac_try_echo") >&5
3082 (eval "$ac_try") 2>&5
3083 ac_status=$?
3084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; }; then
3086 cross_compiling=no
3087 else
3088 if test "$cross_compiling" = maybe; then
3089 cross_compiling=yes
3090 else
3091 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3092 If you meant to cross compile, use \`--host'.
3093 See \`config.log' for more details." >&5
3094 $as_echo "$as_me: error: cannot run C compiled programs.
3095 If you meant to cross compile, use \`--host'.
3096 See \`config.log' for more details." >&2;}
3097 { (exit 1); exit 1; }; }
3101 { $as_echo "$as_me:$LINENO: result: yes" >&5
3102 $as_echo "yes" >&6; }
3104 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3105 ac_clean_files=$ac_clean_files_save
3106 # Check that the compiler produces executables we can run. If not, either
3107 # the compiler is broken, or we cross compile.
3108 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3109 $as_echo_n "checking whether we are cross compiling... " >&6; }
3110 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3111 $as_echo "$cross_compiling" >&6; }
3113 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3114 $as_echo_n "checking for suffix of executables... " >&6; }
3115 if { (ac_try="$ac_link"
3116 case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3119 esac
3120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3121 $as_echo "$ac_try_echo") >&5
3122 (eval "$ac_link") 2>&5
3123 ac_status=$?
3124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; then
3126 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3127 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3128 # work properly (i.e., refer to `conftest.exe'), while it won't with
3129 # `rm'.
3130 for ac_file in conftest.exe conftest conftest.*; do
3131 test -f "$ac_file" || continue
3132 case $ac_file in
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3134 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3135 break;;
3136 * ) break;;
3137 esac
3138 done
3139 else
3140 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3141 See \`config.log' for more details." >&5
3142 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3143 See \`config.log' for more details." >&2;}
3144 { (exit 1); exit 1; }; }
3147 rm -f conftest$ac_cv_exeext
3148 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3149 $as_echo "$ac_cv_exeext" >&6; }
3151 rm -f conftest.$ac_ext
3152 EXEEXT=$ac_cv_exeext
3153 ac_exeext=$EXEEXT
3154 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3155 $as_echo_n "checking for suffix of object files... " >&6; }
3156 if test "${ac_cv_objext+set}" = set; then
3157 $as_echo_n "(cached) " >&6
3158 else
3159 cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h. */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3167 main ()
3171 return 0;
3173 _ACEOF
3174 rm -f conftest.o conftest.obj
3175 if { (ac_try="$ac_compile"
3176 case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179 esac
3180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3181 $as_echo "$ac_try_echo") >&5
3182 (eval "$ac_compile") 2>&5
3183 ac_status=$?
3184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); }; then
3186 for ac_file in conftest.o conftest.obj conftest.*; do
3187 test -f "$ac_file" || continue;
3188 case $ac_file in
3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3191 break;;
3192 esac
3193 done
3194 else
3195 $as_echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3198 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3199 See \`config.log' for more details." >&5
3200 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3201 See \`config.log' for more details." >&2;}
3202 { (exit 1); exit 1; }; }
3205 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3207 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3208 $as_echo "$ac_cv_objext" >&6; }
3209 OBJEXT=$ac_cv_objext
3210 ac_objext=$OBJEXT
3211 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3212 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3213 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3214 $as_echo_n "(cached) " >&6
3215 else
3216 cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h. */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h. */
3224 main ()
3226 #ifndef __GNUC__
3227 choke me
3228 #endif
3231 return 0;
3233 _ACEOF
3234 rm -f conftest.$ac_objext
3235 if { (ac_try="$ac_compile"
3236 case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3241 $as_echo "$ac_try_echo") >&5
3242 (eval "$ac_compile") 2>conftest.er1
3243 ac_status=$?
3244 grep -v '^ *+' conftest.er1 >conftest.err
3245 rm -f conftest.er1
3246 cat conftest.err >&5
3247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); } && {
3249 test -z "$ac_c_werror_flag" ||
3250 test ! -s conftest.err
3251 } && test -s conftest.$ac_objext; then
3252 ac_compiler_gnu=yes
3253 else
3254 $as_echo "$as_me: failed program was:" >&5
3255 sed 's/^/| /' conftest.$ac_ext >&5
3257 ac_compiler_gnu=no
3260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3261 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3264 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3265 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3266 if test $ac_compiler_gnu = yes; then
3267 GCC=yes
3268 else
3269 GCC=
3271 ac_test_CFLAGS=${CFLAGS+set}
3272 ac_save_CFLAGS=$CFLAGS
3273 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3274 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3275 if test "${ac_cv_prog_cc_g+set}" = set; then
3276 $as_echo_n "(cached) " >&6
3277 else
3278 ac_save_c_werror_flag=$ac_c_werror_flag
3279 ac_c_werror_flag=yes
3280 ac_cv_prog_cc_g=no
3281 CFLAGS="-g"
3282 cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h. */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3290 main ()
3294 return 0;
3296 _ACEOF
3297 rm -f conftest.$ac_objext
3298 if { (ac_try="$ac_compile"
3299 case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302 esac
3303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304 $as_echo "$ac_try_echo") >&5
3305 (eval "$ac_compile") 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } && {
3312 test -z "$ac_c_werror_flag" ||
3313 test ! -s conftest.err
3314 } && test -s conftest.$ac_objext; then
3315 ac_cv_prog_cc_g=yes
3316 else
3317 $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 CFLAGS=""
3321 cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3329 main ()
3333 return 0;
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (ac_try="$ac_compile"
3338 case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341 esac
3342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3343 $as_echo "$ac_try_echo") >&5
3344 (eval "$ac_compile") 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } && {
3351 test -z "$ac_c_werror_flag" ||
3352 test ! -s conftest.err
3353 } && test -s conftest.$ac_objext; then
3355 else
3356 $as_echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 ac_c_werror_flag=$ac_save_c_werror_flag
3360 CFLAGS="-g"
3361 cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h. */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3369 main ()
3373 return 0;
3375 _ACEOF
3376 rm -f conftest.$ac_objext
3377 if { (ac_try="$ac_compile"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3383 $as_echo "$ac_try_echo") >&5
3384 (eval "$ac_compile") 2>conftest.er1
3385 ac_status=$?
3386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
3389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } && {
3391 test -z "$ac_c_werror_flag" ||
3392 test ! -s conftest.err
3393 } && test -s conftest.$ac_objext; then
3394 ac_cv_prog_cc_g=yes
3395 else
3396 $as_echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409 ac_c_werror_flag=$ac_save_c_werror_flag
3411 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3412 $as_echo "$ac_cv_prog_cc_g" >&6; }
3413 if test "$ac_test_CFLAGS" = set; then
3414 CFLAGS=$ac_save_CFLAGS
3415 elif test $ac_cv_prog_cc_g = yes; then
3416 if test "$GCC" = yes; then
3417 CFLAGS="-g -O2"
3418 else
3419 CFLAGS="-g"
3421 else
3422 if test "$GCC" = yes; then
3423 CFLAGS="-O2"
3424 else
3425 CFLAGS=
3428 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3429 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3430 if test "${ac_cv_prog_cc_c89+set}" = set; then
3431 $as_echo_n "(cached) " >&6
3432 else
3433 ac_cv_prog_cc_c89=no
3434 ac_save_CC=$CC
3435 cat >conftest.$ac_ext <<_ACEOF
3436 /* confdefs.h. */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3441 #include <stdarg.h>
3442 #include <stdio.h>
3443 #include <sys/types.h>
3444 #include <sys/stat.h>
3445 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3446 struct buf { int x; };
3447 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3448 static char *e (p, i)
3449 char **p;
3450 int i;
3452 return p[i];
3454 static char *f (char * (*g) (char **, int), char **p, ...)
3456 char *s;
3457 va_list v;
3458 va_start (v,p);
3459 s = g (p, va_arg (v,int));
3460 va_end (v);
3461 return s;
3464 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3465 function prototypes and stuff, but not '\xHH' hex character constants.
3466 These don't provoke an error unfortunately, instead are silently treated
3467 as 'x'. The following induces an error, until -std is added to get
3468 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3469 array size at least. It's necessary to write '\x00'==0 to get something
3470 that's true only with -std. */
3471 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3473 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3474 inside strings and character constants. */
3475 #define FOO(x) 'x'
3476 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3478 int test (int i, double x);
3479 struct s1 {int (*f) (int a);};
3480 struct s2 {int (*f) (double a);};
3481 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3482 int argc;
3483 char **argv;
3485 main ()
3487 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3489 return 0;
3491 _ACEOF
3492 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3493 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3495 CC="$ac_save_CC $ac_arg"
3496 rm -f conftest.$ac_objext
3497 if { (ac_try="$ac_compile"
3498 case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3503 $as_echo "$ac_try_echo") >&5
3504 (eval "$ac_compile") 2>conftest.er1
3505 ac_status=$?
3506 grep -v '^ *+' conftest.er1 >conftest.err
3507 rm -f conftest.er1
3508 cat conftest.err >&5
3509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } && {
3511 test -z "$ac_c_werror_flag" ||
3512 test ! -s conftest.err
3513 } && test -s conftest.$ac_objext; then
3514 ac_cv_prog_cc_c89=$ac_arg
3515 else
3516 $as_echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3522 rm -f core conftest.err conftest.$ac_objext
3523 test "x$ac_cv_prog_cc_c89" != "xno" && break
3524 done
3525 rm -f conftest.$ac_ext
3526 CC=$ac_save_CC
3529 # AC_CACHE_VAL
3530 case "x$ac_cv_prog_cc_c89" in
3532 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3533 $as_echo "none needed" >&6; } ;;
3534 xno)
3535 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3536 $as_echo "unsupported" >&6; } ;;
3538 CC="$CC $ac_cv_prog_cc_c89"
3539 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3540 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3541 esac
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549 DEPDIR="${am__leading_dot}deps"
3551 ac_config_commands="$ac_config_commands depfiles"
3554 am_make=${MAKE-make}
3555 cat > confinc << 'END'
3556 am__doit:
3557 @echo done
3558 .PHONY: am__doit
3560 # If we don't find an include directive, just comment out the code.
3561 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3562 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3563 am__include="#"
3564 am__quote=
3565 _am_result=none
3566 # First try GNU make style include.
3567 echo "include confinc" > confmf
3568 # We grep out `Entering directory' and `Leaving directory'
3569 # messages which can occur if `w' ends up in MAKEFLAGS.
3570 # In particular we don't look at `^make:' because GNU make might
3571 # be invoked under some other name (usually "gmake"), in which
3572 # case it prints its new name instead of `make'.
3573 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3574 am__include=include
3575 am__quote=
3576 _am_result=GNU
3578 # Now try BSD make style include.
3579 if test "$am__include" = "#"; then
3580 echo '.include "confinc"' > confmf
3581 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3582 am__include=.include
3583 am__quote="\""
3584 _am_result=BSD
3589 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3590 $as_echo "$_am_result" >&6; }
3591 rm -f confinc confmf
3593 # Check whether --enable-dependency-tracking was given.
3594 if test "${enable_dependency_tracking+set}" = set; then
3595 enableval=$enable_dependency_tracking;
3598 if test "x$enable_dependency_tracking" != xno; then
3599 am_depcomp="$ac_aux_dir/depcomp"
3600 AMDEPBACKSLASH='\'
3602 if test "x$enable_dependency_tracking" != xno; then
3603 AMDEP_TRUE=
3604 AMDEP_FALSE='#'
3605 else
3606 AMDEP_TRUE='#'
3607 AMDEP_FALSE=
3612 depcc="$CC" am_compiler_list=
3614 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3615 $as_echo_n "checking dependency style of $depcc... " >&6; }
3616 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3617 $as_echo_n "(cached) " >&6
3618 else
3619 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3620 # We make a subdir and do the tests there. Otherwise we can end up
3621 # making bogus files that we don't know about and never remove. For
3622 # instance it was reported that on HP-UX the gcc test will end up
3623 # making a dummy file named `D' -- because `-MD' means `put the output
3624 # in D'.
3625 mkdir conftest.dir
3626 # Copy depcomp to subdir because otherwise we won't find it if we're
3627 # using a relative directory.
3628 cp "$am_depcomp" conftest.dir
3629 cd conftest.dir
3630 # We will build objects and dependencies in a subdirectory because
3631 # it helps to detect inapplicable dependency modes. For instance
3632 # both Tru64's cc and ICC support -MD to output dependencies as a
3633 # side effect of compilation, but ICC will put the dependencies in
3634 # the current directory while Tru64 will put them in the object
3635 # directory.
3636 mkdir sub
3638 am_cv_CC_dependencies_compiler_type=none
3639 if test "$am_compiler_list" = ""; then
3640 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3642 for depmode in $am_compiler_list; do
3643 # Setup a source with many dependencies, because some compilers
3644 # like to wrap large dependency lists on column 80 (with \), and
3645 # we should not choose a depcomp mode which is confused by this.
3647 # We need to recreate these files for each test, as the compiler may
3648 # overwrite some of them when testing with obscure command lines.
3649 # This happens at least with the AIX C compiler.
3650 : > sub/conftest.c
3651 for i in 1 2 3 4 5 6; do
3652 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3653 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3654 # Solaris 8's {/usr,}/bin/sh.
3655 touch sub/conftst$i.h
3656 done
3657 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3659 case $depmode in
3660 nosideeffect)
3661 # after this tag, mechanisms are not by side-effect, so they'll
3662 # only be used when explicitly requested
3663 if test "x$enable_dependency_tracking" = xyes; then
3664 continue
3665 else
3666 break
3669 none) break ;;
3670 esac
3671 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3672 # mode. It turns out that the SunPro C++ compiler does not properly
3673 # handle `-M -o', and we need to detect this.
3674 if depmode=$depmode \
3675 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3676 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3677 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3678 >/dev/null 2>conftest.err &&
3679 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3680 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3681 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3682 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3683 # icc doesn't choke on unknown options, it will just issue warnings
3684 # or remarks (even with -Werror). So we grep stderr for any message
3685 # that says an option was ignored or not supported.
3686 # When given -MP, icc 7.0 and 7.1 complain thusly:
3687 # icc: Command line warning: ignoring option '-M'; no argument required
3688 # The diagnosis changed in icc 8.0:
3689 # icc: Command line remark: option '-MP' not supported
3690 if (grep 'ignoring option' conftest.err ||
3691 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3692 am_cv_CC_dependencies_compiler_type=$depmode
3693 break
3696 done
3698 cd ..
3699 rm -rf conftest.dir
3700 else
3701 am_cv_CC_dependencies_compiler_type=none
3705 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3706 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3707 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3710 test "x$enable_dependency_tracking" != xno \
3711 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3712 am__fastdepCC_TRUE=
3713 am__fastdepCC_FALSE='#'
3714 else
3715 am__fastdepCC_TRUE='#'
3716 am__fastdepCC_FALSE=
3720 case `pwd` in
3721 *\ * | *\ *)
3722 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3723 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3724 esac
3728 macro_version='2.2.4'
3729 macro_revision='1.2976'
3743 ltmain="$ac_aux_dir/ltmain.sh"
3745 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3746 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3747 if test "${ac_cv_path_SED+set}" = set; then
3748 $as_echo_n "(cached) " >&6
3749 else
3750 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3751 for ac_i in 1 2 3 4 5 6 7; do
3752 ac_script="$ac_script$as_nl$ac_script"
3753 done
3754 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3755 $as_unset ac_script || ac_script=
3756 if test -z "$SED"; then
3757 ac_path_SED_found=false
3758 # Loop through the user's path and test for each of PROGNAME-LIST
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
3764 for ac_prog in sed gsed; do
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3767 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3768 # Check for GNU ac_path_SED and select it if it is found.
3769 # Check for GNU $ac_path_SED
3770 case `"$ac_path_SED" --version 2>&1` in
3771 *GNU*)
3772 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3774 ac_count=0
3775 $as_echo_n 0123456789 >"conftest.in"
3776 while :
3778 cat "conftest.in" "conftest.in" >"conftest.tmp"
3779 mv "conftest.tmp" "conftest.in"
3780 cp "conftest.in" "conftest.nl"
3781 $as_echo '' >> "conftest.nl"
3782 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3783 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3784 ac_count=`expr $ac_count + 1`
3785 if test $ac_count -gt ${ac_path_SED_max-0}; then
3786 # Best one so far, save it but keep looking for a better one
3787 ac_cv_path_SED="$ac_path_SED"
3788 ac_path_SED_max=$ac_count
3790 # 10*(2^10) chars as input seems more than enough
3791 test $ac_count -gt 10 && break
3792 done
3793 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3794 esac
3796 $ac_path_SED_found && break 3
3797 done
3798 done
3799 done
3800 IFS=$as_save_IFS
3801 if test -z "$ac_cv_path_SED"; then
3802 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3803 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3804 { (exit 1); exit 1; }; }
3806 else
3807 ac_cv_path_SED=$SED
3811 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3812 $as_echo "$ac_cv_path_SED" >&6; }
3813 SED="$ac_cv_path_SED"
3814 rm -f conftest.sed
3816 test -z "$SED" && SED=sed
3817 Xsed="$SED -e 1s/^X//"
3829 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3830 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3831 if test "${ac_cv_path_GREP+set}" = set; then
3832 $as_echo_n "(cached) " >&6
3833 else
3834 if test -z "$GREP"; then
3835 ac_path_GREP_found=false
3836 # Loop through the user's path and test for each of PROGNAME-LIST
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3840 IFS=$as_save_IFS
3841 test -z "$as_dir" && as_dir=.
3842 for ac_prog in grep ggrep; do
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3845 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3846 # Check for GNU ac_path_GREP and select it if it is found.
3847 # Check for GNU $ac_path_GREP
3848 case `"$ac_path_GREP" --version 2>&1` in
3849 *GNU*)
3850 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3852 ac_count=0
3853 $as_echo_n 0123456789 >"conftest.in"
3854 while :
3856 cat "conftest.in" "conftest.in" >"conftest.tmp"
3857 mv "conftest.tmp" "conftest.in"
3858 cp "conftest.in" "conftest.nl"
3859 $as_echo 'GREP' >> "conftest.nl"
3860 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3861 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3862 ac_count=`expr $ac_count + 1`
3863 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3864 # Best one so far, save it but keep looking for a better one
3865 ac_cv_path_GREP="$ac_path_GREP"
3866 ac_path_GREP_max=$ac_count
3868 # 10*(2^10) chars as input seems more than enough
3869 test $ac_count -gt 10 && break
3870 done
3871 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3872 esac
3874 $ac_path_GREP_found && break 3
3875 done
3876 done
3877 done
3878 IFS=$as_save_IFS
3879 if test -z "$ac_cv_path_GREP"; then
3880 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3881 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3882 { (exit 1); exit 1; }; }
3884 else
3885 ac_cv_path_GREP=$GREP
3889 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3890 $as_echo "$ac_cv_path_GREP" >&6; }
3891 GREP="$ac_cv_path_GREP"
3894 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3895 $as_echo_n "checking for egrep... " >&6; }
3896 if test "${ac_cv_path_EGREP+set}" = set; then
3897 $as_echo_n "(cached) " >&6
3898 else
3899 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3900 then ac_cv_path_EGREP="$GREP -E"
3901 else
3902 if test -z "$EGREP"; then
3903 ac_path_EGREP_found=false
3904 # Loop through the user's path and test for each of PROGNAME-LIST
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3908 IFS=$as_save_IFS
3909 test -z "$as_dir" && as_dir=.
3910 for ac_prog in egrep; do
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3913 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3914 # Check for GNU ac_path_EGREP and select it if it is found.
3915 # Check for GNU $ac_path_EGREP
3916 case `"$ac_path_EGREP" --version 2>&1` in
3917 *GNU*)
3918 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3920 ac_count=0
3921 $as_echo_n 0123456789 >"conftest.in"
3922 while :
3924 cat "conftest.in" "conftest.in" >"conftest.tmp"
3925 mv "conftest.tmp" "conftest.in"
3926 cp "conftest.in" "conftest.nl"
3927 $as_echo 'EGREP' >> "conftest.nl"
3928 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3929 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3930 ac_count=`expr $ac_count + 1`
3931 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3932 # Best one so far, save it but keep looking for a better one
3933 ac_cv_path_EGREP="$ac_path_EGREP"
3934 ac_path_EGREP_max=$ac_count
3936 # 10*(2^10) chars as input seems more than enough
3937 test $ac_count -gt 10 && break
3938 done
3939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3940 esac
3942 $ac_path_EGREP_found && break 3
3943 done
3944 done
3945 done
3946 IFS=$as_save_IFS
3947 if test -z "$ac_cv_path_EGREP"; then
3948 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3949 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3950 { (exit 1); exit 1; }; }
3952 else
3953 ac_cv_path_EGREP=$EGREP
3958 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3959 $as_echo "$ac_cv_path_EGREP" >&6; }
3960 EGREP="$ac_cv_path_EGREP"
3963 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3964 $as_echo_n "checking for fgrep... " >&6; }
3965 if test "${ac_cv_path_FGREP+set}" = set; then
3966 $as_echo_n "(cached) " >&6
3967 else
3968 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3969 then ac_cv_path_FGREP="$GREP -F"
3970 else
3971 if test -z "$FGREP"; then
3972 ac_path_FGREP_found=false
3973 # Loop through the user's path and test for each of PROGNAME-LIST
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
3979 for ac_prog in fgrep; do
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3982 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3983 # Check for GNU ac_path_FGREP and select it if it is found.
3984 # Check for GNU $ac_path_FGREP
3985 case `"$ac_path_FGREP" --version 2>&1` in
3986 *GNU*)
3987 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3989 ac_count=0
3990 $as_echo_n 0123456789 >"conftest.in"
3991 while :
3993 cat "conftest.in" "conftest.in" >"conftest.tmp"
3994 mv "conftest.tmp" "conftest.in"
3995 cp "conftest.in" "conftest.nl"
3996 $as_echo 'FGREP' >> "conftest.nl"
3997 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999 ac_count=`expr $ac_count + 1`
4000 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4001 # Best one so far, save it but keep looking for a better one
4002 ac_cv_path_FGREP="$ac_path_FGREP"
4003 ac_path_FGREP_max=$ac_count
4005 # 10*(2^10) chars as input seems more than enough
4006 test $ac_count -gt 10 && break
4007 done
4008 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4009 esac
4011 $ac_path_FGREP_found && break 3
4012 done
4013 done
4014 done
4015 IFS=$as_save_IFS
4016 if test -z "$ac_cv_path_FGREP"; then
4017 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4018 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4019 { (exit 1); exit 1; }; }
4021 else
4022 ac_cv_path_FGREP=$FGREP
4027 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4028 $as_echo "$ac_cv_path_FGREP" >&6; }
4029 FGREP="$ac_cv_path_FGREP"
4032 test -z "$GREP" && GREP=grep
4052 # Check whether --with-gnu-ld was given.
4053 if test "${with_gnu_ld+set}" = set; then
4054 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4055 else
4056 with_gnu_ld=no
4059 ac_prog=ld
4060 if test "$GCC" = yes; then
4061 # Check if gcc -print-prog-name=ld gives a path.
4062 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4063 $as_echo_n "checking for ld used by $CC... " >&6; }
4064 case $host in
4065 *-*-mingw*)
4066 # gcc leaves a trailing carriage return which upsets mingw
4067 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4069 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4070 esac
4071 case $ac_prog in
4072 # Accept absolute paths.
4073 [\\/]* | ?:[\\/]*)
4074 re_direlt='/[^/][^/]*/\.\./'
4075 # Canonicalize the pathname of ld
4076 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4077 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4078 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4079 done
4080 test -z "$LD" && LD="$ac_prog"
4083 # If it fails, then pretend we aren't using GCC.
4084 ac_prog=ld
4087 # If it is relative, then search for the first ld in PATH.
4088 with_gnu_ld=unknown
4090 esac
4091 elif test "$with_gnu_ld" = yes; then
4092 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4093 $as_echo_n "checking for GNU ld... " >&6; }
4094 else
4095 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4096 $as_echo_n "checking for non-GNU ld... " >&6; }
4098 if test "${lt_cv_path_LD+set}" = set; then
4099 $as_echo_n "(cached) " >&6
4100 else
4101 if test -z "$LD"; then
4102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4103 for ac_dir in $PATH; do
4104 IFS="$lt_save_ifs"
4105 test -z "$ac_dir" && ac_dir=.
4106 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4107 lt_cv_path_LD="$ac_dir/$ac_prog"
4108 # Check to see if the program is GNU ld. I'd rather use --version,
4109 # but apparently some variants of GNU ld only accept -v.
4110 # Break only if it was the GNU/non-GNU ld that we prefer.
4111 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4112 *GNU* | *'with BFD'*)
4113 test "$with_gnu_ld" != no && break
4116 test "$with_gnu_ld" != yes && break
4118 esac
4120 done
4121 IFS="$lt_save_ifs"
4122 else
4123 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4127 LD="$lt_cv_path_LD"
4128 if test -n "$LD"; then
4129 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4130 $as_echo "$LD" >&6; }
4131 else
4132 { $as_echo "$as_me:$LINENO: result: no" >&5
4133 $as_echo "no" >&6; }
4135 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4136 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4137 { (exit 1); exit 1; }; }
4138 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4139 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4140 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4141 $as_echo_n "(cached) " >&6
4142 else
4143 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4144 case `$LD -v 2>&1 </dev/null` in
4145 *GNU* | *'with BFD'*)
4146 lt_cv_prog_gnu_ld=yes
4149 lt_cv_prog_gnu_ld=no
4151 esac
4153 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4154 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4155 with_gnu_ld=$lt_cv_prog_gnu_ld
4165 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4166 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4167 if test "${lt_cv_path_NM+set}" = set; then
4168 $as_echo_n "(cached) " >&6
4169 else
4170 if test -n "$NM"; then
4171 # Let the user override the test.
4172 lt_cv_path_NM="$NM"
4173 else
4174 lt_nm_to_check="${ac_tool_prefix}nm"
4175 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4176 lt_nm_to_check="$lt_nm_to_check nm"
4178 for lt_tmp_nm in $lt_nm_to_check; do
4179 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4180 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4181 IFS="$lt_save_ifs"
4182 test -z "$ac_dir" && ac_dir=.
4183 tmp_nm="$ac_dir/$lt_tmp_nm"
4184 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4185 # Check to see if the nm accepts a BSD-compat flag.
4186 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4187 # nm: unknown option "B" ignored
4188 # Tru64's nm complains that /dev/null is an invalid object file
4189 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4190 */dev/null* | *'Invalid file or object type'*)
4191 lt_cv_path_NM="$tmp_nm -B"
4192 break
4195 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4196 */dev/null*)
4197 lt_cv_path_NM="$tmp_nm -p"
4198 break
4201 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4202 continue # so that we can try to find one that supports BSD flags
4204 esac
4206 esac
4208 done
4209 IFS="$lt_save_ifs"
4210 done
4211 : ${lt_cv_path_NM=no}
4214 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4215 $as_echo "$lt_cv_path_NM" >&6; }
4216 if test "$lt_cv_path_NM" != "no"; then
4217 NM="$lt_cv_path_NM"
4218 else
4219 # Didn't find any BSD compatible name lister, look for dumpbin.
4220 if test -n "$ac_tool_prefix"; then
4221 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4225 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4226 $as_echo_n "checking for $ac_word... " >&6; }
4227 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4228 $as_echo_n "(cached) " >&6
4229 else
4230 if test -n "$DUMPBIN"; then
4231 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4240 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4241 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 break 2
4244 done
4245 done
4246 IFS=$as_save_IFS
4250 DUMPBIN=$ac_cv_prog_DUMPBIN
4251 if test -n "$DUMPBIN"; then
4252 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4253 $as_echo "$DUMPBIN" >&6; }
4254 else
4255 { $as_echo "$as_me:$LINENO: result: no" >&5
4256 $as_echo "no" >&6; }
4260 test -n "$DUMPBIN" && break
4261 done
4263 if test -z "$DUMPBIN"; then
4264 ac_ct_DUMPBIN=$DUMPBIN
4265 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4267 # Extract the first word of "$ac_prog", so it can be a program name with args.
4268 set dummy $ac_prog; ac_word=$2
4269 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 $as_echo_n "checking for $ac_word... " >&6; }
4271 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4272 $as_echo_n "(cached) " >&6
4273 else
4274 if test -n "$ac_ct_DUMPBIN"; then
4275 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4276 else
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278 for as_dir in $PATH
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4284 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4285 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 break 2
4288 done
4289 done
4290 IFS=$as_save_IFS
4294 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4295 if test -n "$ac_ct_DUMPBIN"; then
4296 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4297 $as_echo "$ac_ct_DUMPBIN" >&6; }
4298 else
4299 { $as_echo "$as_me:$LINENO: result: no" >&5
4300 $as_echo "no" >&6; }
4304 test -n "$ac_ct_DUMPBIN" && break
4305 done
4307 if test "x$ac_ct_DUMPBIN" = x; then
4308 DUMPBIN=":"
4309 else
4310 case $cross_compiling:$ac_tool_warned in
4311 yes:)
4312 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4313 whose name does not start with the host triplet. If you think this
4314 configuration is useful to you, please write to autoconf@gnu.org." >&5
4315 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4316 whose name does not start with the host triplet. If you think this
4317 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4318 ac_tool_warned=yes ;;
4319 esac
4320 DUMPBIN=$ac_ct_DUMPBIN
4325 if test "$DUMPBIN" != ":"; then
4326 NM="$DUMPBIN"
4329 test -z "$NM" && NM=nm
4336 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4337 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4338 if test "${lt_cv_nm_interface+set}" = set; then
4339 $as_echo_n "(cached) " >&6
4340 else
4341 lt_cv_nm_interface="BSD nm"
4342 echo "int some_variable = 0;" > conftest.$ac_ext
4343 (eval echo "\"\$as_me:4343: $ac_compile\"" >&5)
4344 (eval "$ac_compile" 2>conftest.err)
4345 cat conftest.err >&5
4346 (eval echo "\"\$as_me:4346: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4347 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4348 cat conftest.err >&5
4349 (eval echo "\"\$as_me:4349: output\"" >&5)
4350 cat conftest.out >&5
4351 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4352 lt_cv_nm_interface="MS dumpbin"
4354 rm -f conftest*
4356 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4357 $as_echo "$lt_cv_nm_interface" >&6; }
4359 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4360 $as_echo_n "checking whether ln -s works... " >&6; }
4361 LN_S=$as_ln_s
4362 if test "$LN_S" = "ln -s"; then
4363 { $as_echo "$as_me:$LINENO: result: yes" >&5
4364 $as_echo "yes" >&6; }
4365 else
4366 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4367 $as_echo "no, using $LN_S" >&6; }
4370 # find the maximum length of command line arguments
4371 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4372 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4373 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4374 $as_echo_n "(cached) " >&6
4375 else
4377 teststring="ABCD"
4379 case $build_os in
4380 msdosdjgpp*)
4381 # On DJGPP, this test can blow up pretty badly due to problems in libc
4382 # (any single argument exceeding 2000 bytes causes a buffer overrun
4383 # during glob expansion). Even if it were fixed, the result of this
4384 # check would be larger than it should be.
4385 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4388 gnu*)
4389 # Under GNU Hurd, this test is not required because there is
4390 # no limit to the length of command line arguments.
4391 # Libtool will interpret -1 as no limit whatsoever
4392 lt_cv_sys_max_cmd_len=-1;
4395 cygwin* | mingw*)
4396 # On Win9x/ME, this test blows up -- it succeeds, but takes
4397 # about 5 minutes as the teststring grows exponentially.
4398 # Worse, since 9x/ME are not pre-emptively multitasking,
4399 # you end up with a "frozen" computer, even though with patience
4400 # the test eventually succeeds (with a max line length of 256k).
4401 # Instead, let's just punt: use the minimum linelength reported by
4402 # all of the supported platforms: 8192 (on NT/2K/XP).
4403 lt_cv_sys_max_cmd_len=8192;
4406 amigaos*)
4407 # On AmigaOS with pdksh, this test takes hours, literally.
4408 # So we just punt and use a minimum line length of 8192.
4409 lt_cv_sys_max_cmd_len=8192;
4412 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4413 # This has been around since 386BSD, at least. Likely further.
4414 if test -x /sbin/sysctl; then
4415 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4416 elif test -x /usr/sbin/sysctl; then
4417 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4418 else
4419 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4421 # And add a safety zone
4422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4426 interix*)
4427 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4428 lt_cv_sys_max_cmd_len=196608
4431 osf*)
4432 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4433 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4434 # nice to cause kernel panics so lets avoid the loop below.
4435 # First set a reasonable default.
4436 lt_cv_sys_max_cmd_len=16384
4438 if test -x /sbin/sysconfig; then
4439 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4440 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4441 esac
4444 sco3.2v5*)
4445 lt_cv_sys_max_cmd_len=102400
4447 sysv5* | sco5v6* | sysv4.2uw2*)
4448 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4449 if test -n "$kargmax"; then
4450 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4451 else
4452 lt_cv_sys_max_cmd_len=32768
4456 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4457 if test -n "$lt_cv_sys_max_cmd_len"; then
4458 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4460 else
4461 # Make teststring a little bigger before we do anything with it.
4462 # a 1K string should be a reasonable start.
4463 for i in 1 2 3 4 5 6 7 8 ; do
4464 teststring=$teststring$teststring
4465 done
4466 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4467 # If test is not a shell built-in, we'll probably end up computing a
4468 # maximum length that is only half of the actual maximum length, but
4469 # we can't tell.
4470 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4471 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4472 test $i != 17 # 1/2 MB should be enough
4474 i=`expr $i + 1`
4475 teststring=$teststring$teststring
4476 done
4477 # Only check the string length outside the loop.
4478 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4479 teststring=
4480 # Add a significant safety factor because C++ compilers can tack on
4481 # massive amounts of additional arguments before passing them to the
4482 # linker. It appears as though 1/2 is a usable value.
4483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4486 esac
4490 if test -n $lt_cv_sys_max_cmd_len ; then
4491 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4492 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4493 else
4494 { $as_echo "$as_me:$LINENO: result: none" >&5
4495 $as_echo "none" >&6; }
4497 max_cmd_len=$lt_cv_sys_max_cmd_len
4504 : ${CP="cp -f"}
4505 : ${MV="mv -f"}
4506 : ${RM="rm -f"}
4508 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4509 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4510 # Try some XSI features
4511 xsi_shell=no
4512 ( _lt_dummy="a/b/c"
4513 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4514 = c,a/b,, \
4515 && eval 'test $(( 1 + 1 )) -eq 2 \
4516 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4517 && xsi_shell=yes
4518 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4519 $as_echo "$xsi_shell" >&6; }
4522 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4523 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4524 lt_shell_append=no
4525 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4526 >/dev/null 2>&1 \
4527 && lt_shell_append=yes
4528 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4529 $as_echo "$lt_shell_append" >&6; }
4532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4533 lt_unset=unset
4534 else
4535 lt_unset=false
4542 # test EBCDIC or ASCII
4543 case `echo X|tr X '\101'` in
4544 A) # ASCII based system
4545 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4546 lt_SP2NL='tr \040 \012'
4547 lt_NL2SP='tr \015\012 \040\040'
4549 *) # EBCDIC based system
4550 lt_SP2NL='tr \100 \n'
4551 lt_NL2SP='tr \r\n \100\100'
4553 esac
4563 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4564 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4565 if test "${lt_cv_ld_reload_flag+set}" = set; then
4566 $as_echo_n "(cached) " >&6
4567 else
4568 lt_cv_ld_reload_flag='-r'
4570 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4571 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4572 reload_flag=$lt_cv_ld_reload_flag
4573 case $reload_flag in
4574 "" | " "*) ;;
4575 *) reload_flag=" $reload_flag" ;;
4576 esac
4577 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4578 case $host_os in
4579 darwin*)
4580 if test "$GCC" = yes; then
4581 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4582 else
4583 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4586 esac
4597 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4598 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4599 if test "${lt_cv_deplibs_check_method+set}" = set; then
4600 $as_echo_n "(cached) " >&6
4601 else
4602 lt_cv_file_magic_cmd='$MAGIC_CMD'
4603 lt_cv_file_magic_test_file=
4604 lt_cv_deplibs_check_method='unknown'
4605 # Need to set the preceding variable on all platforms that support
4606 # interlibrary dependencies.
4607 # 'none' -- dependencies not supported.
4608 # `unknown' -- same as none, but documents that we really don't know.
4609 # 'pass_all' -- all dependencies passed with no checks.
4610 # 'test_compile' -- check by making test program.
4611 # 'file_magic [[regex]]' -- check by looking for files in library path
4612 # which responds to the $file_magic_cmd with a given extended regex.
4613 # If you have `file' or equivalent on your system and you're not sure
4614 # whether `pass_all' will *always* work, you probably want this one.
4616 case $host_os in
4617 aix[4-9]*)
4618 lt_cv_deplibs_check_method=pass_all
4621 beos*)
4622 lt_cv_deplibs_check_method=pass_all
4625 bsdi[45]*)
4626 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4627 lt_cv_file_magic_cmd='/usr/bin/file -L'
4628 lt_cv_file_magic_test_file=/shlib/libc.so
4631 cygwin*)
4632 # func_win32_libid is a shell function defined in ltmain.sh
4633 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4634 lt_cv_file_magic_cmd='func_win32_libid'
4637 mingw* | pw32*)
4638 # Base MSYS/MinGW do not provide the 'file' command needed by
4639 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4640 # unless we find 'file', for example because we are cross-compiling.
4641 if ( file / ) >/dev/null 2>&1; then
4642 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4643 lt_cv_file_magic_cmd='func_win32_libid'
4644 else
4645 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4646 lt_cv_file_magic_cmd='$OBJDUMP -f'
4650 darwin* | rhapsody*)
4651 lt_cv_deplibs_check_method=pass_all
4654 freebsd* | dragonfly*)
4655 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4656 case $host_cpu in
4657 i*86 )
4658 # Not sure whether the presence of OpenBSD here was a mistake.
4659 # Let's accept both of them until this is cleared up.
4660 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4661 lt_cv_file_magic_cmd=/usr/bin/file
4662 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4664 esac
4665 else
4666 lt_cv_deplibs_check_method=pass_all
4670 gnu*)
4671 lt_cv_deplibs_check_method=pass_all
4674 hpux10.20* | hpux11*)
4675 lt_cv_file_magic_cmd=/usr/bin/file
4676 case $host_cpu in
4677 ia64*)
4678 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4679 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4681 hppa*64*)
4682 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4683 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4686 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4687 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4689 esac
4692 interix[3-9]*)
4693 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4694 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4697 irix5* | irix6* | nonstopux*)
4698 case $LD in
4699 *-32|*"-32 ") libmagic=32-bit;;
4700 *-n32|*"-n32 ") libmagic=N32;;
4701 *-64|*"-64 ") libmagic=64-bit;;
4702 *) libmagic=never-match;;
4703 esac
4704 lt_cv_deplibs_check_method=pass_all
4707 # This must be Linux ELF.
4708 linux* | k*bsd*-gnu)
4709 lt_cv_deplibs_check_method=pass_all
4712 netbsd*)
4713 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4714 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4715 else
4716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4720 newos6*)
4721 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4722 lt_cv_file_magic_cmd=/usr/bin/file
4723 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4726 *nto* | *qnx*)
4727 lt_cv_deplibs_check_method=pass_all
4730 openbsd*)
4731 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4732 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4733 else
4734 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4738 osf3* | osf4* | osf5*)
4739 lt_cv_deplibs_check_method=pass_all
4742 rdos*)
4743 lt_cv_deplibs_check_method=pass_all
4746 solaris*)
4747 lt_cv_deplibs_check_method=pass_all
4750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4751 lt_cv_deplibs_check_method=pass_all
4754 sysv4 | sysv4.3*)
4755 case $host_vendor in
4756 motorola)
4757 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]'
4758 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4760 ncr)
4761 lt_cv_deplibs_check_method=pass_all
4763 sequent)
4764 lt_cv_file_magic_cmd='/bin/file'
4765 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4767 sni)
4768 lt_cv_file_magic_cmd='/bin/file'
4769 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4770 lt_cv_file_magic_test_file=/lib/libc.so
4772 siemens)
4773 lt_cv_deplibs_check_method=pass_all
4776 lt_cv_deplibs_check_method=pass_all
4778 esac
4781 tpf*)
4782 lt_cv_deplibs_check_method=pass_all
4784 esac
4787 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4788 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4789 file_magic_cmd=$lt_cv_file_magic_cmd
4790 deplibs_check_method=$lt_cv_deplibs_check_method
4791 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4804 if test -n "$ac_tool_prefix"; then
4805 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4806 set dummy ${ac_tool_prefix}ar; ac_word=$2
4807 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4808 $as_echo_n "checking for $ac_word... " >&6; }
4809 if test "${ac_cv_prog_AR+set}" = set; then
4810 $as_echo_n "(cached) " >&6
4811 else
4812 if test -n "$AR"; then
4813 ac_cv_prog_AR="$AR" # Let the user override the test.
4814 else
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4822 ac_cv_prog_AR="${ac_tool_prefix}ar"
4823 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 break 2
4826 done
4827 done
4828 IFS=$as_save_IFS
4832 AR=$ac_cv_prog_AR
4833 if test -n "$AR"; then
4834 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4835 $as_echo "$AR" >&6; }
4836 else
4837 { $as_echo "$as_me:$LINENO: result: no" >&5
4838 $as_echo "no" >&6; }
4843 if test -z "$ac_cv_prog_AR"; then
4844 ac_ct_AR=$AR
4845 # Extract the first word of "ar", so it can be a program name with args.
4846 set dummy ar; ac_word=$2
4847 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4848 $as_echo_n "checking for $ac_word... " >&6; }
4849 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4850 $as_echo_n "(cached) " >&6
4851 else
4852 if test -n "$ac_ct_AR"; then
4853 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4854 else
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4858 IFS=$as_save_IFS
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4862 ac_cv_prog_ac_ct_AR="ar"
4863 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4864 break 2
4866 done
4867 done
4868 IFS=$as_save_IFS
4872 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4873 if test -n "$ac_ct_AR"; then
4874 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4875 $as_echo "$ac_ct_AR" >&6; }
4876 else
4877 { $as_echo "$as_me:$LINENO: result: no" >&5
4878 $as_echo "no" >&6; }
4881 if test "x$ac_ct_AR" = x; then
4882 AR="false"
4883 else
4884 case $cross_compiling:$ac_tool_warned in
4885 yes:)
4886 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4887 whose name does not start with the host triplet. If you think this
4888 configuration is useful to you, please write to autoconf@gnu.org." >&5
4889 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4890 whose name does not start with the host triplet. If you think this
4891 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4892 ac_tool_warned=yes ;;
4893 esac
4894 AR=$ac_ct_AR
4896 else
4897 AR="$ac_cv_prog_AR"
4900 test -z "$AR" && AR=ar
4901 test -z "$AR_FLAGS" && AR_FLAGS=cru
4913 if test -n "$ac_tool_prefix"; then
4914 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4915 set dummy ${ac_tool_prefix}strip; ac_word=$2
4916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4917 $as_echo_n "checking for $ac_word... " >&6; }
4918 if test "${ac_cv_prog_STRIP+set}" = set; then
4919 $as_echo_n "(cached) " >&6
4920 else
4921 if test -n "$STRIP"; then
4922 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4923 else
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4931 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4932 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4935 done
4936 done
4937 IFS=$as_save_IFS
4941 STRIP=$ac_cv_prog_STRIP
4942 if test -n "$STRIP"; then
4943 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4944 $as_echo "$STRIP" >&6; }
4945 else
4946 { $as_echo "$as_me:$LINENO: result: no" >&5
4947 $as_echo "no" >&6; }
4952 if test -z "$ac_cv_prog_STRIP"; then
4953 ac_ct_STRIP=$STRIP
4954 # Extract the first word of "strip", so it can be a program name with args.
4955 set dummy strip; ac_word=$2
4956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4959 $as_echo_n "(cached) " >&6
4960 else
4961 if test -n "$ac_ct_STRIP"; then
4962 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4963 else
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971 ac_cv_prog_ac_ct_STRIP="strip"
4972 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 break 2
4975 done
4976 done
4977 IFS=$as_save_IFS
4981 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4982 if test -n "$ac_ct_STRIP"; then
4983 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4984 $as_echo "$ac_ct_STRIP" >&6; }
4985 else
4986 { $as_echo "$as_me:$LINENO: result: no" >&5
4987 $as_echo "no" >&6; }
4990 if test "x$ac_ct_STRIP" = x; then
4991 STRIP=":"
4992 else
4993 case $cross_compiling:$ac_tool_warned in
4994 yes:)
4995 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4996 whose name does not start with the host triplet. If you think this
4997 configuration is useful to you, please write to autoconf@gnu.org." >&5
4998 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4999 whose name does not start with the host triplet. If you think this
5000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5001 ac_tool_warned=yes ;;
5002 esac
5003 STRIP=$ac_ct_STRIP
5005 else
5006 STRIP="$ac_cv_prog_STRIP"
5009 test -z "$STRIP" && STRIP=:
5016 if test -n "$ac_tool_prefix"; then
5017 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5018 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5019 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5020 $as_echo_n "checking for $ac_word... " >&6; }
5021 if test "${ac_cv_prog_RANLIB+set}" = set; then
5022 $as_echo_n "(cached) " >&6
5023 else
5024 if test -n "$RANLIB"; then
5025 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5026 else
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5035 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
5038 done
5039 done
5040 IFS=$as_save_IFS
5044 RANLIB=$ac_cv_prog_RANLIB
5045 if test -n "$RANLIB"; then
5046 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5047 $as_echo "$RANLIB" >&6; }
5048 else
5049 { $as_echo "$as_me:$LINENO: result: no" >&5
5050 $as_echo "no" >&6; }
5055 if test -z "$ac_cv_prog_RANLIB"; then
5056 ac_ct_RANLIB=$RANLIB
5057 # Extract the first word of "ranlib", so it can be a program name with args.
5058 set dummy ranlib; ac_word=$2
5059 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5062 $as_echo_n "(cached) " >&6
5063 else
5064 if test -n "$ac_ct_RANLIB"; then
5065 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074 ac_cv_prog_ac_ct_RANLIB="ranlib"
5075 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
5078 done
5079 done
5080 IFS=$as_save_IFS
5084 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5085 if test -n "$ac_ct_RANLIB"; then
5086 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5087 $as_echo "$ac_ct_RANLIB" >&6; }
5088 else
5089 { $as_echo "$as_me:$LINENO: result: no" >&5
5090 $as_echo "no" >&6; }
5093 if test "x$ac_ct_RANLIB" = x; then
5094 RANLIB=":"
5095 else
5096 case $cross_compiling:$ac_tool_warned in
5097 yes:)
5098 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5099 whose name does not start with the host triplet. If you think this
5100 configuration is useful to you, please write to autoconf@gnu.org." >&5
5101 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5102 whose name does not start with the host triplet. If you think this
5103 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5104 ac_tool_warned=yes ;;
5105 esac
5106 RANLIB=$ac_ct_RANLIB
5108 else
5109 RANLIB="$ac_cv_prog_RANLIB"
5112 test -z "$RANLIB" && RANLIB=:
5119 # Determine commands to create old-style static archives.
5120 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5121 old_postinstall_cmds='chmod 644 $oldlib'
5122 old_postuninstall_cmds=
5124 if test -n "$RANLIB"; then
5125 case $host_os in
5126 openbsd*)
5127 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5130 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5132 esac
5133 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5169 # If no C compiler was specified, use CC.
5170 LTCC=${LTCC-"$CC"}
5172 # If no C compiler flags were specified, use CFLAGS.
5173 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5175 # Allow CC to be a program name with arguments.
5176 compiler=$CC
5179 # Check for command to grab the raw symbol name followed by C symbol from nm.
5180 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5181 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5182 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5183 $as_echo_n "(cached) " >&6
5184 else
5186 # These are sane defaults that work on at least a few old systems.
5187 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5189 # Character class describing NM global symbol codes.
5190 symcode='[BCDEGRST]'
5192 # Regexp to match symbols that can be accessed directly from C.
5193 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5195 # Define system-specific variables.
5196 case $host_os in
5197 aix*)
5198 symcode='[BCDT]'
5200 cygwin* | mingw* | pw32*)
5201 symcode='[ABCDGISTW]'
5203 hpux*)
5204 if test "$host_cpu" = ia64; then
5205 symcode='[ABCDEGRST]'
5208 irix* | nonstopux*)
5209 symcode='[BCDEGRST]'
5211 osf*)
5212 symcode='[BCDEGQRST]'
5214 solaris*)
5215 symcode='[BDRT]'
5217 sco3.2v5*)
5218 symcode='[DT]'
5220 sysv4.2uw2*)
5221 symcode='[DT]'
5223 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5224 symcode='[ABDT]'
5226 sysv4)
5227 symcode='[DFNSTU]'
5229 esac
5231 # If we're using GNU nm, then use its standard symbol codes.
5232 case `$NM -V 2>&1` in
5233 *GNU* | *'with BFD'*)
5234 symcode='[ABCDGIRSTW]' ;;
5235 esac
5237 # Transform an extracted symbol line into a proper C declaration.
5238 # Some systems (esp. on ia64) link data and code symbols differently,
5239 # so use this general approach.
5240 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5242 # Transform an extracted symbol line into symbol name and symbol address
5243 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5244 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'"
5246 # Handle CRLF in mingw tool chain
5247 opt_cr=
5248 case $build_os in
5249 mingw*)
5250 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5252 esac
5254 # Try without a prefix underscore, then with it.
5255 for ac_symprfx in "" "_"; do
5257 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5258 symxfrm="\\1 $ac_symprfx\\2 \\2"
5260 # Write the raw and C identifiers.
5261 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5262 # Fake it for dumpbin and say T for any non-static function
5263 # and D for any global variable.
5264 # Also find C++ and __fastcall symbols from MSVC++,
5265 # which start with @ or ?.
5266 lt_cv_sys_global_symbol_pipe="$AWK '"\
5267 " {last_section=section; section=\$ 3};"\
5268 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5269 " \$ 0!~/External *\|/{next};"\
5270 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5271 " {if(hide[section]) next};"\
5272 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5273 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5274 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5275 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5276 " ' prfx=^$ac_symprfx"
5277 else
5278 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5281 # Check to see that the pipe works correctly.
5282 pipe_works=no
5284 rm -f conftest*
5285 cat > conftest.$ac_ext <<_LT_EOF
5286 #ifdef __cplusplus
5287 extern "C" {
5288 #endif
5289 char nm_test_var;
5290 void nm_test_func(void);
5291 void nm_test_func(void){}
5292 #ifdef __cplusplus
5294 #endif
5295 int main(){nm_test_var='a';nm_test_func();return(0);}
5296 _LT_EOF
5298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5299 (eval $ac_compile) 2>&5
5300 ac_status=$?
5301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; then
5303 # Now try to grab the symbols.
5304 nlist=conftest.nm
5305 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5306 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5307 ac_status=$?
5308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } && test -s "$nlist"; then
5310 # Try sorting and uniquifying the output.
5311 if sort "$nlist" | uniq > "$nlist"T; then
5312 mv -f "$nlist"T "$nlist"
5313 else
5314 rm -f "$nlist"T
5317 # Make sure that we snagged all the symbols we need.
5318 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5319 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5320 cat <<_LT_EOF > conftest.$ac_ext
5321 #ifdef __cplusplus
5322 extern "C" {
5323 #endif
5325 _LT_EOF
5326 # Now generate the symbol file.
5327 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5329 cat <<_LT_EOF >> conftest.$ac_ext
5331 /* The mapping between symbol names and symbols. */
5332 const struct {
5333 const char *name;
5334 void *address;
5336 lt__PROGRAM__LTX_preloaded_symbols[] =
5338 { "@PROGRAM@", (void *) 0 },
5339 _LT_EOF
5340 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5341 cat <<\_LT_EOF >> conftest.$ac_ext
5342 {0, (void *) 0}
5345 /* This works around a problem in FreeBSD linker */
5346 #ifdef FREEBSD_WORKAROUND
5347 static const void *lt_preloaded_setup() {
5348 return lt__PROGRAM__LTX_preloaded_symbols;
5350 #endif
5352 #ifdef __cplusplus
5354 #endif
5355 _LT_EOF
5356 # Now try linking the two files.
5357 mv conftest.$ac_objext conftstm.$ac_objext
5358 lt_save_LIBS="$LIBS"
5359 lt_save_CFLAGS="$CFLAGS"
5360 LIBS="conftstm.$ac_objext"
5361 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5363 (eval $ac_link) 2>&5
5364 ac_status=$?
5365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5367 pipe_works=yes
5369 LIBS="$lt_save_LIBS"
5370 CFLAGS="$lt_save_CFLAGS"
5371 else
5372 echo "cannot find nm_test_func in $nlist" >&5
5374 else
5375 echo "cannot find nm_test_var in $nlist" >&5
5377 else
5378 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5380 else
5381 echo "$progname: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5384 rm -rf conftest* conftst*
5386 # Do not use the global_symbol_pipe unless it works.
5387 if test "$pipe_works" = yes; then
5388 break
5389 else
5390 lt_cv_sys_global_symbol_pipe=
5392 done
5396 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5397 lt_cv_sys_global_symbol_to_cdecl=
5399 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5400 { $as_echo "$as_me:$LINENO: result: failed" >&5
5401 $as_echo "failed" >&6; }
5402 else
5403 { $as_echo "$as_me:$LINENO: result: ok" >&5
5404 $as_echo "ok" >&6; }
5429 # Check whether --enable-libtool-lock was given.
5430 if test "${enable_libtool_lock+set}" = set; then
5431 enableval=$enable_libtool_lock;
5434 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5436 # Some flags need to be propagated to the compiler or linker for good
5437 # libtool support.
5438 case $host in
5439 ia64-*-hpux*)
5440 # Find out which ABI we are using.
5441 echo 'int i;' > conftest.$ac_ext
5442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5443 (eval $ac_compile) 2>&5
5444 ac_status=$?
5445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); }; then
5447 case `/usr/bin/file conftest.$ac_objext` in
5448 *ELF-32*)
5449 HPUX_IA64_MODE="32"
5451 *ELF-64*)
5452 HPUX_IA64_MODE="64"
5454 esac
5456 rm -rf conftest*
5458 *-*-irix6*)
5459 # Find out which ABI we are using.
5460 echo '#line 5460 "configure"' > conftest.$ac_ext
5461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5462 (eval $ac_compile) 2>&5
5463 ac_status=$?
5464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; then
5466 if test "$lt_cv_prog_gnu_ld" = yes; then
5467 case `/usr/bin/file conftest.$ac_objext` in
5468 *32-bit*)
5469 LD="${LD-ld} -melf32bsmip"
5471 *N32*)
5472 LD="${LD-ld} -melf32bmipn32"
5474 *64-bit*)
5475 LD="${LD-ld} -melf64bmip"
5477 esac
5478 else
5479 case `/usr/bin/file conftest.$ac_objext` in
5480 *32-bit*)
5481 LD="${LD-ld} -32"
5483 *N32*)
5484 LD="${LD-ld} -n32"
5486 *64-bit*)
5487 LD="${LD-ld} -64"
5489 esac
5492 rm -rf conftest*
5495 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5496 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5497 # Find out which ABI we are using.
5498 echo 'int i;' > conftest.$ac_ext
5499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5500 (eval $ac_compile) 2>&5
5501 ac_status=$?
5502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; then
5504 case `/usr/bin/file conftest.o` in
5505 *32-bit*)
5506 case $host in
5507 x86_64-*kfreebsd*-gnu)
5508 LD="${LD-ld} -m elf_i386_fbsd"
5510 x86_64-*linux*)
5511 LD="${LD-ld} -m elf_i386"
5513 ppc64-*linux*|powerpc64-*linux*)
5514 LD="${LD-ld} -m elf32ppclinux"
5516 s390x-*linux*)
5517 LD="${LD-ld} -m elf_s390"
5519 sparc64-*linux*)
5520 LD="${LD-ld} -m elf32_sparc"
5522 esac
5524 *64-bit*)
5525 case $host in
5526 x86_64-*kfreebsd*-gnu)
5527 LD="${LD-ld} -m elf_x86_64_fbsd"
5529 x86_64-*linux*)
5530 LD="${LD-ld} -m elf_x86_64"
5532 ppc*-*linux*|powerpc*-*linux*)
5533 LD="${LD-ld} -m elf64ppc"
5535 s390*-*linux*|s390*-*tpf*)
5536 LD="${LD-ld} -m elf64_s390"
5538 sparc*-*linux*)
5539 LD="${LD-ld} -m elf64_sparc"
5541 esac
5543 esac
5545 rm -rf conftest*
5548 *-*-sco3.2v5*)
5549 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5550 SAVE_CFLAGS="$CFLAGS"
5551 CFLAGS="$CFLAGS -belf"
5552 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5553 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5554 if test "${lt_cv_cc_needs_belf+set}" = set; then
5555 $as_echo_n "(cached) " >&6
5556 else
5557 ac_ext=c
5558 ac_cpp='$CPP $CPPFLAGS'
5559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5563 cat >conftest.$ac_ext <<_ACEOF
5564 /* confdefs.h. */
5565 _ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5571 main ()
5575 return 0;
5577 _ACEOF
5578 rm -f conftest.$ac_objext conftest$ac_exeext
5579 if { (ac_try="$ac_link"
5580 case "(($ac_try" in
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5583 esac
5584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5585 $as_echo "$ac_try_echo") >&5
5586 (eval "$ac_link") 2>conftest.er1
5587 ac_status=$?
5588 grep -v '^ *+' conftest.er1 >conftest.err
5589 rm -f conftest.er1
5590 cat conftest.err >&5
5591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && {
5593 test -z "$ac_c_werror_flag" ||
5594 test ! -s conftest.err
5595 } && test -s conftest$ac_exeext && {
5596 test "$cross_compiling" = yes ||
5597 $as_test_x conftest$ac_exeext
5598 }; then
5599 lt_cv_cc_needs_belf=yes
5600 else
5601 $as_echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5604 lt_cv_cc_needs_belf=no
5607 rm -rf conftest.dSYM
5608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5609 conftest$ac_exeext conftest.$ac_ext
5610 ac_ext=c
5611 ac_cpp='$CPP $CPPFLAGS'
5612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5617 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5618 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5619 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5620 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5621 CFLAGS="$SAVE_CFLAGS"
5624 sparc*-*solaris*)
5625 # Find out which ABI we are using.
5626 echo 'int i;' > conftest.$ac_ext
5627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5628 (eval $ac_compile) 2>&5
5629 ac_status=$?
5630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; then
5632 case `/usr/bin/file conftest.o` in
5633 *64-bit*)
5634 case $lt_cv_prog_gnu_ld in
5635 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5637 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5638 LD="${LD-ld} -64"
5641 esac
5643 esac
5645 rm -rf conftest*
5647 esac
5649 need_locks="$enable_libtool_lock"
5652 case $host_os in
5653 rhapsody* | darwin*)
5654 if test -n "$ac_tool_prefix"; then
5655 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5656 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5657 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5658 $as_echo_n "checking for $ac_word... " >&6; }
5659 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5660 $as_echo_n "(cached) " >&6
5661 else
5662 if test -n "$DSYMUTIL"; then
5663 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5664 else
5665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5666 for as_dir in $PATH
5668 IFS=$as_save_IFS
5669 test -z "$as_dir" && as_dir=.
5670 for ac_exec_ext in '' $ac_executable_extensions; do
5671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5672 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5673 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5674 break 2
5676 done
5677 done
5678 IFS=$as_save_IFS
5682 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5683 if test -n "$DSYMUTIL"; then
5684 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5685 $as_echo "$DSYMUTIL" >&6; }
5686 else
5687 { $as_echo "$as_me:$LINENO: result: no" >&5
5688 $as_echo "no" >&6; }
5693 if test -z "$ac_cv_prog_DSYMUTIL"; then
5694 ac_ct_DSYMUTIL=$DSYMUTIL
5695 # Extract the first word of "dsymutil", so it can be a program name with args.
5696 set dummy dsymutil; ac_word=$2
5697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5700 $as_echo_n "(cached) " >&6
5701 else
5702 if test -n "$ac_ct_DSYMUTIL"; then
5703 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5712 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5713 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5716 done
5717 done
5718 IFS=$as_save_IFS
5722 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5723 if test -n "$ac_ct_DSYMUTIL"; then
5724 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5725 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5726 else
5727 { $as_echo "$as_me:$LINENO: result: no" >&5
5728 $as_echo "no" >&6; }
5731 if test "x$ac_ct_DSYMUTIL" = x; then
5732 DSYMUTIL=":"
5733 else
5734 case $cross_compiling:$ac_tool_warned in
5735 yes:)
5736 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5737 whose name does not start with the host triplet. If you think this
5738 configuration is useful to you, please write to autoconf@gnu.org." >&5
5739 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5740 whose name does not start with the host triplet. If you think this
5741 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5742 ac_tool_warned=yes ;;
5743 esac
5744 DSYMUTIL=$ac_ct_DSYMUTIL
5746 else
5747 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5750 if test -n "$ac_tool_prefix"; then
5751 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5752 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5754 $as_echo_n "checking for $ac_word... " >&6; }
5755 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5756 $as_echo_n "(cached) " >&6
5757 else
5758 if test -n "$NMEDIT"; then
5759 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5760 else
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5768 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 break 2
5772 done
5773 done
5774 IFS=$as_save_IFS
5778 NMEDIT=$ac_cv_prog_NMEDIT
5779 if test -n "$NMEDIT"; then
5780 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5781 $as_echo "$NMEDIT" >&6; }
5782 else
5783 { $as_echo "$as_me:$LINENO: result: no" >&5
5784 $as_echo "no" >&6; }
5789 if test -z "$ac_cv_prog_NMEDIT"; then
5790 ac_ct_NMEDIT=$NMEDIT
5791 # Extract the first word of "nmedit", so it can be a program name with args.
5792 set dummy nmedit; ac_word=$2
5793 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5796 $as_echo_n "(cached) " >&6
5797 else
5798 if test -n "$ac_ct_NMEDIT"; then
5799 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5800 else
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5808 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5809 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 break 2
5812 done
5813 done
5814 IFS=$as_save_IFS
5818 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5819 if test -n "$ac_ct_NMEDIT"; then
5820 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5821 $as_echo "$ac_ct_NMEDIT" >&6; }
5822 else
5823 { $as_echo "$as_me:$LINENO: result: no" >&5
5824 $as_echo "no" >&6; }
5827 if test "x$ac_ct_NMEDIT" = x; then
5828 NMEDIT=":"
5829 else
5830 case $cross_compiling:$ac_tool_warned in
5831 yes:)
5832 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5833 whose name does not start with the host triplet. If you think this
5834 configuration is useful to you, please write to autoconf@gnu.org." >&5
5835 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5836 whose name does not start with the host triplet. If you think this
5837 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5838 ac_tool_warned=yes ;;
5839 esac
5840 NMEDIT=$ac_ct_NMEDIT
5842 else
5843 NMEDIT="$ac_cv_prog_NMEDIT"
5846 if test -n "$ac_tool_prefix"; then
5847 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5848 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5849 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_prog_LIPO+set}" = set; then
5852 $as_echo_n "(cached) " >&6
5853 else
5854 if test -n "$LIPO"; then
5855 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5865 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5868 done
5869 done
5870 IFS=$as_save_IFS
5874 LIPO=$ac_cv_prog_LIPO
5875 if test -n "$LIPO"; then
5876 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5877 $as_echo "$LIPO" >&6; }
5878 else
5879 { $as_echo "$as_me:$LINENO: result: no" >&5
5880 $as_echo "no" >&6; }
5885 if test -z "$ac_cv_prog_LIPO"; then
5886 ac_ct_LIPO=$LIPO
5887 # Extract the first word of "lipo", so it can be a program name with args.
5888 set dummy lipo; ac_word=$2
5889 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5892 $as_echo_n "(cached) " >&6
5893 else
5894 if test -n "$ac_ct_LIPO"; then
5895 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5900 IFS=$as_save_IFS
5901 test -z "$as_dir" && as_dir=.
5902 for ac_exec_ext in '' $ac_executable_extensions; do
5903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904 ac_cv_prog_ac_ct_LIPO="lipo"
5905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906 break 2
5908 done
5909 done
5910 IFS=$as_save_IFS
5914 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5915 if test -n "$ac_ct_LIPO"; then
5916 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5917 $as_echo "$ac_ct_LIPO" >&6; }
5918 else
5919 { $as_echo "$as_me:$LINENO: result: no" >&5
5920 $as_echo "no" >&6; }
5923 if test "x$ac_ct_LIPO" = x; then
5924 LIPO=":"
5925 else
5926 case $cross_compiling:$ac_tool_warned in
5927 yes:)
5928 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5929 whose name does not start with the host triplet. If you think this
5930 configuration is useful to you, please write to autoconf@gnu.org." >&5
5931 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5932 whose name does not start with the host triplet. If you think this
5933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5934 ac_tool_warned=yes ;;
5935 esac
5936 LIPO=$ac_ct_LIPO
5938 else
5939 LIPO="$ac_cv_prog_LIPO"
5942 if test -n "$ac_tool_prefix"; then
5943 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5944 set dummy ${ac_tool_prefix}otool; ac_word=$2
5945 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if test "${ac_cv_prog_OTOOL+set}" = set; then
5948 $as_echo_n "(cached) " >&6
5949 else
5950 if test -n "$OTOOL"; then
5951 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5952 else
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5961 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5964 done
5965 done
5966 IFS=$as_save_IFS
5970 OTOOL=$ac_cv_prog_OTOOL
5971 if test -n "$OTOOL"; then
5972 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5973 $as_echo "$OTOOL" >&6; }
5974 else
5975 { $as_echo "$as_me:$LINENO: result: no" >&5
5976 $as_echo "no" >&6; }
5981 if test -z "$ac_cv_prog_OTOOL"; then
5982 ac_ct_OTOOL=$OTOOL
5983 # Extract the first word of "otool", so it can be a program name with args.
5984 set dummy otool; ac_word=$2
5985 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5986 $as_echo_n "checking for $ac_word... " >&6; }
5987 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5988 $as_echo_n "(cached) " >&6
5989 else
5990 if test -n "$ac_ct_OTOOL"; then
5991 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5992 else
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5996 IFS=$as_save_IFS
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6000 ac_cv_prog_ac_ct_OTOOL="otool"
6001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 break 2
6004 done
6005 done
6006 IFS=$as_save_IFS
6010 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6011 if test -n "$ac_ct_OTOOL"; then
6012 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6013 $as_echo "$ac_ct_OTOOL" >&6; }
6014 else
6015 { $as_echo "$as_me:$LINENO: result: no" >&5
6016 $as_echo "no" >&6; }
6019 if test "x$ac_ct_OTOOL" = x; then
6020 OTOOL=":"
6021 else
6022 case $cross_compiling:$ac_tool_warned in
6023 yes:)
6024 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6025 whose name does not start with the host triplet. If you think this
6026 configuration is useful to you, please write to autoconf@gnu.org." >&5
6027 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6028 whose name does not start with the host triplet. If you think this
6029 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6030 ac_tool_warned=yes ;;
6031 esac
6032 OTOOL=$ac_ct_OTOOL
6034 else
6035 OTOOL="$ac_cv_prog_OTOOL"
6038 if test -n "$ac_tool_prefix"; then
6039 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6040 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6041 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6044 $as_echo_n "(cached) " >&6
6045 else
6046 if test -n "$OTOOL64"; then
6047 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6060 done
6061 done
6062 IFS=$as_save_IFS
6066 OTOOL64=$ac_cv_prog_OTOOL64
6067 if test -n "$OTOOL64"; then
6068 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6069 $as_echo "$OTOOL64" >&6; }
6070 else
6071 { $as_echo "$as_me:$LINENO: result: no" >&5
6072 $as_echo "no" >&6; }
6077 if test -z "$ac_cv_prog_OTOOL64"; then
6078 ac_ct_OTOOL64=$OTOOL64
6079 # Extract the first word of "otool64", so it can be a program name with args.
6080 set dummy otool64; ac_word=$2
6081 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6082 $as_echo_n "checking for $ac_word... " >&6; }
6083 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6084 $as_echo_n "(cached) " >&6
6085 else
6086 if test -n "$ac_ct_OTOOL64"; then
6087 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6092 IFS=$as_save_IFS
6093 test -z "$as_dir" && as_dir=.
6094 for ac_exec_ext in '' $ac_executable_extensions; do
6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6096 ac_cv_prog_ac_ct_OTOOL64="otool64"
6097 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6098 break 2
6100 done
6101 done
6102 IFS=$as_save_IFS
6106 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6107 if test -n "$ac_ct_OTOOL64"; then
6108 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6109 $as_echo "$ac_ct_OTOOL64" >&6; }
6110 else
6111 { $as_echo "$as_me:$LINENO: result: no" >&5
6112 $as_echo "no" >&6; }
6115 if test "x$ac_ct_OTOOL64" = x; then
6116 OTOOL64=":"
6117 else
6118 case $cross_compiling:$ac_tool_warned in
6119 yes:)
6120 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6121 whose name does not start with the host triplet. If you think this
6122 configuration is useful to you, please write to autoconf@gnu.org." >&5
6123 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6124 whose name does not start with the host triplet. If you think this
6125 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6126 ac_tool_warned=yes ;;
6127 esac
6128 OTOOL64=$ac_ct_OTOOL64
6130 else
6131 OTOOL64="$ac_cv_prog_OTOOL64"
6160 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6161 $as_echo_n "checking for -single_module linker flag... " >&6; }
6162 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6163 $as_echo_n "(cached) " >&6
6164 else
6165 lt_cv_apple_cc_single_mod=no
6166 if test -z "${LT_MULTI_MODULE}"; then
6167 # By default we will add the -single_module flag. You can override
6168 # by either setting the environment variable LT_MULTI_MODULE
6169 # non-empty at configure time, or by adding -multi_module to the
6170 # link flags.
6171 rm -rf libconftest.dylib*
6172 echo "int foo(void){return 1;}" > conftest.c
6173 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6174 -dynamiclib -Wl,-single_module conftest.c" >&5
6175 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6176 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6177 _lt_result=$?
6178 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6179 lt_cv_apple_cc_single_mod=yes
6180 else
6181 cat conftest.err >&5
6183 rm -rf libconftest.dylib*
6184 rm -f conftest.*
6187 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6188 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6189 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6190 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6191 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6192 $as_echo_n "(cached) " >&6
6193 else
6194 lt_cv_ld_exported_symbols_list=no
6195 save_LDFLAGS=$LDFLAGS
6196 echo "_main" > conftest.sym
6197 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6198 cat >conftest.$ac_ext <<_ACEOF
6199 /* confdefs.h. */
6200 _ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6206 main ()
6210 return 0;
6212 _ACEOF
6213 rm -f conftest.$ac_objext conftest$ac_exeext
6214 if { (ac_try="$ac_link"
6215 case "(($ac_try" in
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6218 esac
6219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6220 $as_echo "$ac_try_echo") >&5
6221 (eval "$ac_link") 2>conftest.er1
6222 ac_status=$?
6223 grep -v '^ *+' conftest.er1 >conftest.err
6224 rm -f conftest.er1
6225 cat conftest.err >&5
6226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } && {
6228 test -z "$ac_c_werror_flag" ||
6229 test ! -s conftest.err
6230 } && test -s conftest$ac_exeext && {
6231 test "$cross_compiling" = yes ||
6232 $as_test_x conftest$ac_exeext
6233 }; then
6234 lt_cv_ld_exported_symbols_list=yes
6235 else
6236 $as_echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6239 lt_cv_ld_exported_symbols_list=no
6242 rm -rf conftest.dSYM
6243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6244 conftest$ac_exeext conftest.$ac_ext
6245 LDFLAGS="$save_LDFLAGS"
6248 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6249 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6250 case $host_os in
6251 rhapsody* | darwin1.[012])
6252 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6253 darwin1.*)
6254 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6255 darwin*) # darwin 5.x on
6256 # if running on 10.5 or later, the deployment target defaults
6257 # to the OS version, if on x86, and 10.4, the deployment
6258 # target defaults to 10.4. Don't you love it?
6259 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6260 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6261 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6262 10.[012]*)
6263 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6264 10.*)
6265 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6266 esac
6268 esac
6269 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6270 _lt_dar_single_mod='$single_module'
6272 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6273 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6274 else
6275 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6277 if test "$DSYMUTIL" != ":"; then
6278 _lt_dsymutil='~$DSYMUTIL $lib || :'
6279 else
6280 _lt_dsymutil=
6283 esac
6285 ac_ext=c
6286 ac_cpp='$CPP $CPPFLAGS'
6287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6290 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6291 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6292 # On Suns, sometimes $CPP names a directory.
6293 if test -n "$CPP" && test -d "$CPP"; then
6294 CPP=
6296 if test -z "$CPP"; then
6297 if test "${ac_cv_prog_CPP+set}" = set; then
6298 $as_echo_n "(cached) " >&6
6299 else
6300 # Double quotes because CPP needs to be expanded
6301 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6303 ac_preproc_ok=false
6304 for ac_c_preproc_warn_flag in '' yes
6306 # Use a header file that comes with gcc, so configuring glibc
6307 # with a fresh cross-compiler works.
6308 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6309 # <limits.h> exists even on freestanding compilers.
6310 # On the NeXT, cc -E runs the code through the compiler's parser,
6311 # not just through cpp. "Syntax error" is here to catch this case.
6312 cat >conftest.$ac_ext <<_ACEOF
6313 /* confdefs.h. */
6314 _ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h. */
6318 #ifdef __STDC__
6319 # include <limits.h>
6320 #else
6321 # include <assert.h>
6322 #endif
6323 Syntax error
6324 _ACEOF
6325 if { (ac_try="$ac_cpp conftest.$ac_ext"
6326 case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329 esac
6330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6331 $as_echo "$ac_try_echo") >&5
6332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6333 ac_status=$?
6334 grep -v '^ *+' conftest.er1 >conftest.err
6335 rm -f conftest.er1
6336 cat conftest.err >&5
6337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } >/dev/null && {
6339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6340 test ! -s conftest.err
6341 }; then
6343 else
6344 $as_echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6347 # Broken: fails on valid input.
6348 continue
6351 rm -f conftest.err conftest.$ac_ext
6353 # OK, works on sane cases. Now check whether nonexistent headers
6354 # can be detected and how.
6355 cat >conftest.$ac_ext <<_ACEOF
6356 /* confdefs.h. */
6357 _ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6361 #include <ac_nonexistent.h>
6362 _ACEOF
6363 if { (ac_try="$ac_cpp conftest.$ac_ext"
6364 case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6367 esac
6368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6369 $as_echo "$ac_try_echo") >&5
6370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6371 ac_status=$?
6372 grep -v '^ *+' conftest.er1 >conftest.err
6373 rm -f conftest.er1
6374 cat conftest.err >&5
6375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } >/dev/null && {
6377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6378 test ! -s conftest.err
6379 }; then
6380 # Broken: success on invalid input.
6381 continue
6382 else
6383 $as_echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6386 # Passes both tests.
6387 ac_preproc_ok=:
6388 break
6391 rm -f conftest.err conftest.$ac_ext
6393 done
6394 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6395 rm -f conftest.err conftest.$ac_ext
6396 if $ac_preproc_ok; then
6397 break
6400 done
6401 ac_cv_prog_CPP=$CPP
6404 CPP=$ac_cv_prog_CPP
6405 else
6406 ac_cv_prog_CPP=$CPP
6408 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
6409 $as_echo "$CPP" >&6; }
6410 ac_preproc_ok=false
6411 for ac_c_preproc_warn_flag in '' yes
6413 # Use a header file that comes with gcc, so configuring glibc
6414 # with a fresh cross-compiler works.
6415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6416 # <limits.h> exists even on freestanding compilers.
6417 # On the NeXT, cc -E runs the code through the compiler's parser,
6418 # not just through cpp. "Syntax error" is here to catch this case.
6419 cat >conftest.$ac_ext <<_ACEOF
6420 /* confdefs.h. */
6421 _ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425 #ifdef __STDC__
6426 # include <limits.h>
6427 #else
6428 # include <assert.h>
6429 #endif
6430 Syntax error
6431 _ACEOF
6432 if { (ac_try="$ac_cpp conftest.$ac_ext"
6433 case "(($ac_try" in
6434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6435 *) ac_try_echo=$ac_try;;
6436 esac
6437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6438 $as_echo "$ac_try_echo") >&5
6439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6440 ac_status=$?
6441 grep -v '^ *+' conftest.er1 >conftest.err
6442 rm -f conftest.er1
6443 cat conftest.err >&5
6444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } >/dev/null && {
6446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6447 test ! -s conftest.err
6448 }; then
6450 else
6451 $as_echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6454 # Broken: fails on valid input.
6455 continue
6458 rm -f conftest.err conftest.$ac_ext
6460 # OK, works on sane cases. Now check whether nonexistent headers
6461 # can be detected and how.
6462 cat >conftest.$ac_ext <<_ACEOF
6463 /* confdefs.h. */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 #include <ac_nonexistent.h>
6469 _ACEOF
6470 if { (ac_try="$ac_cpp conftest.$ac_ext"
6471 case "(($ac_try" in
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6474 esac
6475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6476 $as_echo "$ac_try_echo") >&5
6477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6478 ac_status=$?
6479 grep -v '^ *+' conftest.er1 >conftest.err
6480 rm -f conftest.er1
6481 cat conftest.err >&5
6482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); } >/dev/null && {
6484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6485 test ! -s conftest.err
6486 }; then
6487 # Broken: success on invalid input.
6488 continue
6489 else
6490 $as_echo "$as_me: failed program was:" >&5
6491 sed 's/^/| /' conftest.$ac_ext >&5
6493 # Passes both tests.
6494 ac_preproc_ok=:
6495 break
6498 rm -f conftest.err conftest.$ac_ext
6500 done
6501 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6502 rm -f conftest.err conftest.$ac_ext
6503 if $ac_preproc_ok; then
6505 else
6506 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6507 See \`config.log' for more details." >&5
6508 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6509 See \`config.log' for more details." >&2;}
6510 { (exit 1); exit 1; }; }
6513 ac_ext=c
6514 ac_cpp='$CPP $CPPFLAGS'
6515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6520 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6521 $as_echo_n "checking for ANSI C header files... " >&6; }
6522 if test "${ac_cv_header_stdc+set}" = set; then
6523 $as_echo_n "(cached) " >&6
6524 else
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 #include <stdlib.h>
6532 #include <stdarg.h>
6533 #include <string.h>
6534 #include <float.h>
6537 main ()
6541 return 0;
6543 _ACEOF
6544 rm -f conftest.$ac_objext
6545 if { (ac_try="$ac_compile"
6546 case "(($ac_try" in
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6549 esac
6550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6551 $as_echo "$ac_try_echo") >&5
6552 (eval "$ac_compile") 2>conftest.er1
6553 ac_status=$?
6554 grep -v '^ *+' conftest.er1 >conftest.err
6555 rm -f conftest.er1
6556 cat conftest.err >&5
6557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && {
6559 test -z "$ac_c_werror_flag" ||
6560 test ! -s conftest.err
6561 } && test -s conftest.$ac_objext; then
6562 ac_cv_header_stdc=yes
6563 else
6564 $as_echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6567 ac_cv_header_stdc=no
6570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572 if test $ac_cv_header_stdc = yes; then
6573 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6574 cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h. */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h. */
6580 #include <string.h>
6582 _ACEOF
6583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6584 $EGREP "memchr" >/dev/null 2>&1; then
6586 else
6587 ac_cv_header_stdc=no
6589 rm -f conftest*
6593 if test $ac_cv_header_stdc = yes; then
6594 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6595 cat >conftest.$ac_ext <<_ACEOF
6596 /* confdefs.h. */
6597 _ACEOF
6598 cat confdefs.h >>conftest.$ac_ext
6599 cat >>conftest.$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 #include <stdlib.h>
6603 _ACEOF
6604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6605 $EGREP "free" >/dev/null 2>&1; then
6607 else
6608 ac_cv_header_stdc=no
6610 rm -f conftest*
6614 if test $ac_cv_header_stdc = yes; then
6615 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6616 if test "$cross_compiling" = yes; then
6618 else
6619 cat >conftest.$ac_ext <<_ACEOF
6620 /* confdefs.h. */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625 #include <ctype.h>
6626 #include <stdlib.h>
6627 #if ((' ' & 0x0FF) == 0x020)
6628 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6629 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6630 #else
6631 # define ISLOWER(c) \
6632 (('a' <= (c) && (c) <= 'i') \
6633 || ('j' <= (c) && (c) <= 'r') \
6634 || ('s' <= (c) && (c) <= 'z'))
6635 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6636 #endif
6638 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6640 main ()
6642 int i;
6643 for (i = 0; i < 256; i++)
6644 if (XOR (islower (i), ISLOWER (i))
6645 || toupper (i) != TOUPPER (i))
6646 return 2;
6647 return 0;
6649 _ACEOF
6650 rm -f conftest$ac_exeext
6651 if { (ac_try="$ac_link"
6652 case "(($ac_try" in
6653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6654 *) ac_try_echo=$ac_try;;
6655 esac
6656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6657 $as_echo "$ac_try_echo") >&5
6658 (eval "$ac_link") 2>&5
6659 ac_status=$?
6660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6662 { (case "(($ac_try" in
6663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6664 *) ac_try_echo=$ac_try;;
6665 esac
6666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6667 $as_echo "$ac_try_echo") >&5
6668 (eval "$ac_try") 2>&5
6669 ac_status=$?
6670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6673 else
6674 $as_echo "$as_me: program exited with status $ac_status" >&5
6675 $as_echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6678 ( exit $ac_status )
6679 ac_cv_header_stdc=no
6681 rm -rf conftest.dSYM
6682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6688 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6689 $as_echo "$ac_cv_header_stdc" >&6; }
6690 if test $ac_cv_header_stdc = yes; then
6692 cat >>confdefs.h <<\_ACEOF
6693 #define STDC_HEADERS 1
6694 _ACEOF
6698 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6708 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6709 inttypes.h stdint.h unistd.h
6711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6712 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6713 $as_echo_n "checking for $ac_header... " >&6; }
6714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6715 $as_echo_n "(cached) " >&6
6716 else
6717 cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h. */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 $ac_includes_default
6725 #include <$ac_header>
6726 _ACEOF
6727 rm -f conftest.$ac_objext
6728 if { (ac_try="$ac_compile"
6729 case "(($ac_try" in
6730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6731 *) ac_try_echo=$ac_try;;
6732 esac
6733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6734 $as_echo "$ac_try_echo") >&5
6735 (eval "$ac_compile") 2>conftest.er1
6736 ac_status=$?
6737 grep -v '^ *+' conftest.er1 >conftest.err
6738 rm -f conftest.er1
6739 cat conftest.err >&5
6740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741 (exit $ac_status); } && {
6742 test -z "$ac_c_werror_flag" ||
6743 test ! -s conftest.err
6744 } && test -s conftest.$ac_objext; then
6745 eval "$as_ac_Header=yes"
6746 else
6747 $as_echo "$as_me: failed program was:" >&5
6748 sed 's/^/| /' conftest.$ac_ext >&5
6750 eval "$as_ac_Header=no"
6753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6755 ac_res=`eval 'as_val=${'$as_ac_Header'}
6756 $as_echo "$as_val"'`
6757 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6758 $as_echo "$ac_res" >&6; }
6759 if test `eval 'as_val=${'$as_ac_Header'}
6760 $as_echo "$as_val"'` = yes; then
6761 cat >>confdefs.h <<_ACEOF
6762 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6763 _ACEOF
6767 done
6771 for ac_header in dlfcn.h
6773 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6774 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6775 $as_echo_n "checking for $ac_header... " >&6; }
6776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6777 $as_echo_n "(cached) " >&6
6778 else
6779 cat >conftest.$ac_ext <<_ACEOF
6780 /* confdefs.h. */
6781 _ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h. */
6785 $ac_includes_default
6787 #include <$ac_header>
6788 _ACEOF
6789 rm -f conftest.$ac_objext
6790 if { (ac_try="$ac_compile"
6791 case "(($ac_try" in
6792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6793 *) ac_try_echo=$ac_try;;
6794 esac
6795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6796 $as_echo "$ac_try_echo") >&5
6797 (eval "$ac_compile") 2>conftest.er1
6798 ac_status=$?
6799 grep -v '^ *+' conftest.er1 >conftest.err
6800 rm -f conftest.er1
6801 cat conftest.err >&5
6802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); } && {
6804 test -z "$ac_c_werror_flag" ||
6805 test ! -s conftest.err
6806 } && test -s conftest.$ac_objext; then
6807 eval "$as_ac_Header=yes"
6808 else
6809 $as_echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6812 eval "$as_ac_Header=no"
6815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6817 ac_res=`eval 'as_val=${'$as_ac_Header'}
6818 $as_echo "$as_val"'`
6819 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6820 $as_echo "$ac_res" >&6; }
6821 if test `eval 'as_val=${'$as_ac_Header'}
6822 $as_echo "$as_val"'` = yes; then
6823 cat >>confdefs.h <<_ACEOF
6824 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6825 _ACEOF
6829 done
6833 # Set options
6837 enable_dlopen=no
6840 enable_win32_dll=no
6843 # Check whether --enable-shared was given.
6844 if test "${enable_shared+set}" = set; then
6845 enableval=$enable_shared; p=${PACKAGE-default}
6846 case $enableval in
6847 yes) enable_shared=yes ;;
6848 no) enable_shared=no ;;
6850 enable_shared=no
6851 # Look at the argument we got. We use all the common list separators.
6852 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6853 for pkg in $enableval; do
6854 IFS="$lt_save_ifs"
6855 if test "X$pkg" = "X$p"; then
6856 enable_shared=yes
6858 done
6859 IFS="$lt_save_ifs"
6861 esac
6862 else
6863 enable_shared=yes
6874 # Check whether --enable-static was given.
6875 if test "${enable_static+set}" = set; then
6876 enableval=$enable_static; p=${PACKAGE-default}
6877 case $enableval in
6878 yes) enable_static=yes ;;
6879 no) enable_static=no ;;
6881 enable_static=no
6882 # Look at the argument we got. We use all the common list separators.
6883 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6884 for pkg in $enableval; do
6885 IFS="$lt_save_ifs"
6886 if test "X$pkg" = "X$p"; then
6887 enable_static=yes
6889 done
6890 IFS="$lt_save_ifs"
6892 esac
6893 else
6894 enable_static=yes
6906 # Check whether --with-pic was given.
6907 if test "${with_pic+set}" = set; then
6908 withval=$with_pic; pic_mode="$withval"
6909 else
6910 pic_mode=default
6914 test -z "$pic_mode" && pic_mode=default
6922 # Check whether --enable-fast-install was given.
6923 if test "${enable_fast_install+set}" = set; then
6924 enableval=$enable_fast_install; p=${PACKAGE-default}
6925 case $enableval in
6926 yes) enable_fast_install=yes ;;
6927 no) enable_fast_install=no ;;
6929 enable_fast_install=no
6930 # Look at the argument we got. We use all the common list separators.
6931 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6932 for pkg in $enableval; do
6933 IFS="$lt_save_ifs"
6934 if test "X$pkg" = "X$p"; then
6935 enable_fast_install=yes
6937 done
6938 IFS="$lt_save_ifs"
6940 esac
6941 else
6942 enable_fast_install=yes
6955 # This can be used to rebuild libtool when needed
6956 LIBTOOL_DEPS="$ltmain"
6958 # Always use our own libtool.
6959 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6985 test -z "$LN_S" && LN_S="ln -s"
7000 if test -n "${ZSH_VERSION+set}" ; then
7001 setopt NO_GLOB_SUBST
7004 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7005 $as_echo_n "checking for objdir... " >&6; }
7006 if test "${lt_cv_objdir+set}" = set; then
7007 $as_echo_n "(cached) " >&6
7008 else
7009 rm -f .libs 2>/dev/null
7010 mkdir .libs 2>/dev/null
7011 if test -d .libs; then
7012 lt_cv_objdir=.libs
7013 else
7014 # MS-DOS does not allow filenames that begin with a dot.
7015 lt_cv_objdir=_libs
7017 rmdir .libs 2>/dev/null
7019 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7020 $as_echo "$lt_cv_objdir" >&6; }
7021 objdir=$lt_cv_objdir
7027 cat >>confdefs.h <<_ACEOF
7028 #define LT_OBJDIR "$lt_cv_objdir/"
7029 _ACEOF
7047 case $host_os in
7048 aix3*)
7049 # AIX sometimes has problems with the GCC collect2 program. For some
7050 # reason, if we set the COLLECT_NAMES environment variable, the problems
7051 # vanish in a puff of smoke.
7052 if test "X${COLLECT_NAMES+set}" != Xset; then
7053 COLLECT_NAMES=
7054 export COLLECT_NAMES
7057 esac
7059 # Sed substitution that helps us do robust quoting. It backslashifies
7060 # metacharacters that are still active within double-quoted strings.
7061 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7063 # Same as above, but do not quote variable references.
7064 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7066 # Sed substitution to delay expansion of an escaped shell variable in a
7067 # double_quote_subst'ed string.
7068 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7070 # Sed substitution to delay expansion of an escaped single quote.
7071 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7073 # Sed substitution to avoid accidental globbing in evaled expressions
7074 no_glob_subst='s/\*/\\\*/g'
7076 # Global variables:
7077 ofile=libtool
7078 can_build_shared=yes
7080 # All known linkers require a `.a' archive for static linking (except MSVC,
7081 # which needs '.lib').
7082 libext=a
7084 with_gnu_ld="$lt_cv_prog_gnu_ld"
7086 old_CC="$CC"
7087 old_CFLAGS="$CFLAGS"
7089 # Set sane defaults for various variables
7090 test -z "$CC" && CC=cc
7091 test -z "$LTCC" && LTCC=$CC
7092 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7093 test -z "$LD" && LD=ld
7094 test -z "$ac_objext" && ac_objext=o
7096 for cc_temp in $compiler""; do
7097 case $cc_temp in
7098 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7099 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7100 \-*) ;;
7101 *) break;;
7102 esac
7103 done
7104 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7107 # Only perform the check for file, if the check method requires it
7108 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7109 case $deplibs_check_method in
7110 file_magic*)
7111 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7112 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7113 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7114 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7115 $as_echo_n "(cached) " >&6
7116 else
7117 case $MAGIC_CMD in
7118 [\\/*] | ?:[\\/]*)
7119 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7122 lt_save_MAGIC_CMD="$MAGIC_CMD"
7123 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7124 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7125 for ac_dir in $ac_dummy; do
7126 IFS="$lt_save_ifs"
7127 test -z "$ac_dir" && ac_dir=.
7128 if test -f $ac_dir/${ac_tool_prefix}file; then
7129 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7130 if test -n "$file_magic_test_file"; then
7131 case $deplibs_check_method in
7132 "file_magic "*)
7133 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7134 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7135 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7136 $EGREP "$file_magic_regex" > /dev/null; then
7138 else
7139 cat <<_LT_EOF 1>&2
7141 *** Warning: the command libtool uses to detect shared libraries,
7142 *** $file_magic_cmd, produces output that libtool cannot recognize.
7143 *** The result is that libtool may fail to recognize shared libraries
7144 *** as such. This will affect the creation of libtool libraries that
7145 *** depend on shared libraries, but programs linked with such libtool
7146 *** libraries will work regardless of this problem. Nevertheless, you
7147 *** may want to report the problem to your system manager and/or to
7148 *** bug-libtool@gnu.org
7150 _LT_EOF
7151 fi ;;
7152 esac
7154 break
7156 done
7157 IFS="$lt_save_ifs"
7158 MAGIC_CMD="$lt_save_MAGIC_CMD"
7160 esac
7163 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7164 if test -n "$MAGIC_CMD"; then
7165 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7166 $as_echo "$MAGIC_CMD" >&6; }
7167 else
7168 { $as_echo "$as_me:$LINENO: result: no" >&5
7169 $as_echo "no" >&6; }
7176 if test -z "$lt_cv_path_MAGIC_CMD"; then
7177 if test -n "$ac_tool_prefix"; then
7178 { $as_echo "$as_me:$LINENO: checking for file" >&5
7179 $as_echo_n "checking for file... " >&6; }
7180 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7181 $as_echo_n "(cached) " >&6
7182 else
7183 case $MAGIC_CMD in
7184 [\\/*] | ?:[\\/]*)
7185 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7188 lt_save_MAGIC_CMD="$MAGIC_CMD"
7189 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7190 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7191 for ac_dir in $ac_dummy; do
7192 IFS="$lt_save_ifs"
7193 test -z "$ac_dir" && ac_dir=.
7194 if test -f $ac_dir/file; then
7195 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7196 if test -n "$file_magic_test_file"; then
7197 case $deplibs_check_method in
7198 "file_magic "*)
7199 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7200 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7201 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7202 $EGREP "$file_magic_regex" > /dev/null; then
7204 else
7205 cat <<_LT_EOF 1>&2
7207 *** Warning: the command libtool uses to detect shared libraries,
7208 *** $file_magic_cmd, produces output that libtool cannot recognize.
7209 *** The result is that libtool may fail to recognize shared libraries
7210 *** as such. This will affect the creation of libtool libraries that
7211 *** depend on shared libraries, but programs linked with such libtool
7212 *** libraries will work regardless of this problem. Nevertheless, you
7213 *** may want to report the problem to your system manager and/or to
7214 *** bug-libtool@gnu.org
7216 _LT_EOF
7217 fi ;;
7218 esac
7220 break
7222 done
7223 IFS="$lt_save_ifs"
7224 MAGIC_CMD="$lt_save_MAGIC_CMD"
7226 esac
7229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7230 if test -n "$MAGIC_CMD"; then
7231 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7232 $as_echo "$MAGIC_CMD" >&6; }
7233 else
7234 { $as_echo "$as_me:$LINENO: result: no" >&5
7235 $as_echo "no" >&6; }
7239 else
7240 MAGIC_CMD=:
7246 esac
7248 # Use C for the default configuration in the libtool script
7250 lt_save_CC="$CC"
7251 ac_ext=c
7252 ac_cpp='$CPP $CPPFLAGS'
7253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7258 # Source file extension for C test sources.
7259 ac_ext=c
7261 # Object file extension for compiled C test sources.
7262 objext=o
7263 objext=$objext
7265 # Code to be used in simple compile tests
7266 lt_simple_compile_test_code="int some_variable = 0;"
7268 # Code to be used in simple link tests
7269 lt_simple_link_test_code='int main(){return(0);}'
7277 # If no C compiler was specified, use CC.
7278 LTCC=${LTCC-"$CC"}
7280 # If no C compiler flags were specified, use CFLAGS.
7281 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7283 # Allow CC to be a program name with arguments.
7284 compiler=$CC
7286 # Save the default compiler, since it gets overwritten when the other
7287 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7288 compiler_DEFAULT=$CC
7290 # save warnings/boilerplate of simple test code
7291 ac_outfile=conftest.$ac_objext
7292 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7293 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7294 _lt_compiler_boilerplate=`cat conftest.err`
7295 $RM conftest*
7297 ac_outfile=conftest.$ac_objext
7298 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7299 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7300 _lt_linker_boilerplate=`cat conftest.err`
7301 $RM -r conftest*
7304 if test -n "$compiler"; then
7306 lt_prog_compiler_no_builtin_flag=
7308 if test "$GCC" = yes; then
7309 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7311 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7312 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7313 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7314 $as_echo_n "(cached) " >&6
7315 else
7316 lt_cv_prog_compiler_rtti_exceptions=no
7317 ac_outfile=conftest.$ac_objext
7318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7319 lt_compiler_flag="-fno-rtti -fno-exceptions"
7320 # Insert the option either (1) after the last *FLAGS variable, or
7321 # (2) before a word containing "conftest.", or (3) at the end.
7322 # Note that $ac_compile itself does not contain backslashes and begins
7323 # with a dollar sign (not a hyphen), so the echo should work correctly.
7324 # The option is referenced via a variable to avoid confusing sed.
7325 lt_compile=`echo "$ac_compile" | $SED \
7326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7328 -e 's:$: $lt_compiler_flag:'`
7329 (eval echo "\"\$as_me:7329: $lt_compile\"" >&5)
7330 (eval "$lt_compile" 2>conftest.err)
7331 ac_status=$?
7332 cat conftest.err >&5
7333 echo "$as_me:7333: \$? = $ac_status" >&5
7334 if (exit $ac_status) && test -s "$ac_outfile"; then
7335 # The compiler can only warn and ignore the option if not recognized
7336 # So say no if there are warnings other than the usual output.
7337 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7339 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7340 lt_cv_prog_compiler_rtti_exceptions=yes
7343 $RM conftest*
7346 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7347 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7349 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7350 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7351 else
7362 lt_prog_compiler_wl=
7363 lt_prog_compiler_pic=
7364 lt_prog_compiler_static=
7366 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7367 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7369 if test "$GCC" = yes; then
7370 lt_prog_compiler_wl='-Wl,'
7371 lt_prog_compiler_static='-static'
7373 case $host_os in
7374 aix*)
7375 # All AIX code is PIC.
7376 if test "$host_cpu" = ia64; then
7377 # AIX 5 now supports IA64 processor
7378 lt_prog_compiler_static='-Bstatic'
7382 amigaos*)
7383 case $host_cpu in
7384 powerpc)
7385 # see comment about AmigaOS4 .so support
7386 lt_prog_compiler_pic='-fPIC'
7388 m68k)
7389 # FIXME: we need at least 68020 code to build shared libraries, but
7390 # adding the `-m68020' flag to GCC prevents building anything better,
7391 # like `-m68040'.
7392 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7394 esac
7397 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7398 # PIC is the default for these OSes.
7401 mingw* | cygwin* | pw32* | os2*)
7402 # This hack is so that the source file can tell whether it is being
7403 # built for inclusion in a dll (and should export symbols for example).
7404 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7405 # (--disable-auto-import) libraries
7406 lt_prog_compiler_pic='-DDLL_EXPORT'
7409 darwin* | rhapsody*)
7410 # PIC is the default on this platform
7411 # Common symbols not allowed in MH_DYLIB files
7412 lt_prog_compiler_pic='-fno-common'
7415 hpux*)
7416 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7417 # not for PA HP-UX.
7418 case $host_cpu in
7419 hppa*64*|ia64*)
7420 # +Z the default
7423 lt_prog_compiler_pic='-fPIC'
7425 esac
7428 interix[3-9]*)
7429 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7430 # Instead, we relocate shared libraries at runtime.
7433 msdosdjgpp*)
7434 # Just because we use GCC doesn't mean we suddenly get shared libraries
7435 # on systems that don't support them.
7436 lt_prog_compiler_can_build_shared=no
7437 enable_shared=no
7440 *nto* | *qnx*)
7441 # QNX uses GNU C++, but need to define -shared option too, otherwise
7442 # it will coredump.
7443 lt_prog_compiler_pic='-fPIC -shared'
7446 sysv4*MP*)
7447 if test -d /usr/nec; then
7448 lt_prog_compiler_pic=-Kconform_pic
7453 lt_prog_compiler_pic='-fPIC'
7455 esac
7456 else
7457 # PORTME Check for flag to pass linker flags through the system compiler.
7458 case $host_os in
7459 aix*)
7460 lt_prog_compiler_wl='-Wl,'
7461 if test "$host_cpu" = ia64; then
7462 # AIX 5 now supports IA64 processor
7463 lt_prog_compiler_static='-Bstatic'
7464 else
7465 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7469 mingw* | cygwin* | pw32* | os2*)
7470 # This hack is so that the source file can tell whether it is being
7471 # built for inclusion in a dll (and should export symbols for example).
7472 lt_prog_compiler_pic='-DDLL_EXPORT'
7475 hpux9* | hpux10* | hpux11*)
7476 lt_prog_compiler_wl='-Wl,'
7477 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7478 # not for PA HP-UX.
7479 case $host_cpu in
7480 hppa*64*|ia64*)
7481 # +Z the default
7484 lt_prog_compiler_pic='+Z'
7486 esac
7487 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7488 lt_prog_compiler_static='${wl}-a ${wl}archive'
7491 irix5* | irix6* | nonstopux*)
7492 lt_prog_compiler_wl='-Wl,'
7493 # PIC (with -KPIC) is the default.
7494 lt_prog_compiler_static='-non_shared'
7497 linux* | k*bsd*-gnu)
7498 case $cc_basename in
7499 icc* | ecc* | ifort*)
7500 lt_prog_compiler_wl='-Wl,'
7501 lt_prog_compiler_pic='-KPIC'
7502 lt_prog_compiler_static='-static'
7504 pgcc* | pgf77* | pgf90* | pgf95*)
7505 # Portland Group compilers (*not* the Pentium gcc compiler,
7506 # which looks to be a dead project)
7507 lt_prog_compiler_wl='-Wl,'
7508 lt_prog_compiler_pic='-fpic'
7509 lt_prog_compiler_static='-Bstatic'
7511 ccc*)
7512 lt_prog_compiler_wl='-Wl,'
7513 # All Alpha code is PIC.
7514 lt_prog_compiler_static='-non_shared'
7516 xl*)
7517 # IBM XL C 8.0/Fortran 10.1 on PPC
7518 lt_prog_compiler_wl='-Wl,'
7519 lt_prog_compiler_pic='-qpic'
7520 lt_prog_compiler_static='-qstaticlink'
7523 case `$CC -V 2>&1 | sed 5q` in
7524 *Sun\ C*)
7525 # Sun C 5.9
7526 lt_prog_compiler_pic='-KPIC'
7527 lt_prog_compiler_static='-Bstatic'
7528 lt_prog_compiler_wl='-Wl,'
7530 *Sun\ F*)
7531 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7532 lt_prog_compiler_pic='-KPIC'
7533 lt_prog_compiler_static='-Bstatic'
7534 lt_prog_compiler_wl=''
7536 esac
7538 esac
7541 newsos6)
7542 lt_prog_compiler_pic='-KPIC'
7543 lt_prog_compiler_static='-Bstatic'
7546 *nto* | *qnx*)
7547 # QNX uses GNU C++, but need to define -shared option too, otherwise
7548 # it will coredump.
7549 lt_prog_compiler_pic='-fPIC -shared'
7552 osf3* | osf4* | osf5*)
7553 lt_prog_compiler_wl='-Wl,'
7554 # All OSF/1 code is PIC.
7555 lt_prog_compiler_static='-non_shared'
7558 rdos*)
7559 lt_prog_compiler_static='-non_shared'
7562 solaris*)
7563 lt_prog_compiler_pic='-KPIC'
7564 lt_prog_compiler_static='-Bstatic'
7565 case $cc_basename in
7566 f77* | f90* | f95*)
7567 lt_prog_compiler_wl='-Qoption ld ';;
7569 lt_prog_compiler_wl='-Wl,';;
7570 esac
7573 sunos4*)
7574 lt_prog_compiler_wl='-Qoption ld '
7575 lt_prog_compiler_pic='-PIC'
7576 lt_prog_compiler_static='-Bstatic'
7579 sysv4 | sysv4.2uw2* | sysv4.3*)
7580 lt_prog_compiler_wl='-Wl,'
7581 lt_prog_compiler_pic='-KPIC'
7582 lt_prog_compiler_static='-Bstatic'
7585 sysv4*MP*)
7586 if test -d /usr/nec ;then
7587 lt_prog_compiler_pic='-Kconform_pic'
7588 lt_prog_compiler_static='-Bstatic'
7592 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7593 lt_prog_compiler_wl='-Wl,'
7594 lt_prog_compiler_pic='-KPIC'
7595 lt_prog_compiler_static='-Bstatic'
7598 unicos*)
7599 lt_prog_compiler_wl='-Wl,'
7600 lt_prog_compiler_can_build_shared=no
7603 uts4*)
7604 lt_prog_compiler_pic='-pic'
7605 lt_prog_compiler_static='-Bstatic'
7609 lt_prog_compiler_can_build_shared=no
7611 esac
7614 case $host_os in
7615 # For platforms which do not support PIC, -DPIC is meaningless:
7616 *djgpp*)
7617 lt_prog_compiler_pic=
7620 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7622 esac
7623 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7624 $as_echo "$lt_prog_compiler_pic" >&6; }
7632 # Check to make sure the PIC flag actually works.
7634 if test -n "$lt_prog_compiler_pic"; then
7635 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7636 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7637 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7638 $as_echo_n "(cached) " >&6
7639 else
7640 lt_cv_prog_compiler_pic_works=no
7641 ac_outfile=conftest.$ac_objext
7642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7643 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7644 # Insert the option either (1) after the last *FLAGS variable, or
7645 # (2) before a word containing "conftest.", or (3) at the end.
7646 # Note that $ac_compile itself does not contain backslashes and begins
7647 # with a dollar sign (not a hyphen), so the echo should work correctly.
7648 # The option is referenced via a variable to avoid confusing sed.
7649 lt_compile=`echo "$ac_compile" | $SED \
7650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7652 -e 's:$: $lt_compiler_flag:'`
7653 (eval echo "\"\$as_me:7653: $lt_compile\"" >&5)
7654 (eval "$lt_compile" 2>conftest.err)
7655 ac_status=$?
7656 cat conftest.err >&5
7657 echo "$as_me:7657: \$? = $ac_status" >&5
7658 if (exit $ac_status) && test -s "$ac_outfile"; then
7659 # The compiler can only warn and ignore the option if not recognized
7660 # So say no if there are warnings other than the usual output.
7661 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7663 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7664 lt_cv_prog_compiler_pic_works=yes
7667 $RM conftest*
7670 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7671 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7673 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7674 case $lt_prog_compiler_pic in
7675 "" | " "*) ;;
7676 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7677 esac
7678 else
7679 lt_prog_compiler_pic=
7680 lt_prog_compiler_can_build_shared=no
7691 # Check to make sure the static flag actually works.
7693 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7694 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7695 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7696 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7697 $as_echo_n "(cached) " >&6
7698 else
7699 lt_cv_prog_compiler_static_works=no
7700 save_LDFLAGS="$LDFLAGS"
7701 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7702 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7703 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7704 # The linker can only warn and ignore the option if not recognized
7705 # So say no if there are warnings
7706 if test -s conftest.err; then
7707 # Append any errors to the config.log.
7708 cat conftest.err 1>&5
7709 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7711 if diff conftest.exp conftest.er2 >/dev/null; then
7712 lt_cv_prog_compiler_static_works=yes
7714 else
7715 lt_cv_prog_compiler_static_works=yes
7718 $RM -r conftest*
7719 LDFLAGS="$save_LDFLAGS"
7722 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7723 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7725 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7727 else
7728 lt_prog_compiler_static=
7737 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7738 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7739 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7740 $as_echo_n "(cached) " >&6
7741 else
7742 lt_cv_prog_compiler_c_o=no
7743 $RM -r conftest 2>/dev/null
7744 mkdir conftest
7745 cd conftest
7746 mkdir out
7747 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7749 lt_compiler_flag="-o out/conftest2.$ac_objext"
7750 # Insert the option either (1) after the last *FLAGS variable, or
7751 # (2) before a word containing "conftest.", or (3) at the end.
7752 # Note that $ac_compile itself does not contain backslashes and begins
7753 # with a dollar sign (not a hyphen), so the echo should work correctly.
7754 lt_compile=`echo "$ac_compile" | $SED \
7755 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7756 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7757 -e 's:$: $lt_compiler_flag:'`
7758 (eval echo "\"\$as_me:7758: $lt_compile\"" >&5)
7759 (eval "$lt_compile" 2>out/conftest.err)
7760 ac_status=$?
7761 cat out/conftest.err >&5
7762 echo "$as_me:7762: \$? = $ac_status" >&5
7763 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7764 then
7765 # The compiler can only warn and ignore the option if not recognized
7766 # So say no if there are warnings
7767 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7768 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7769 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7770 lt_cv_prog_compiler_c_o=yes
7773 chmod u+w . 2>&5
7774 $RM conftest*
7775 # SGI C++ compiler will create directory out/ii_files/ for
7776 # template instantiation
7777 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7778 $RM out/* && rmdir out
7779 cd ..
7780 $RM -r conftest
7781 $RM conftest*
7784 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7785 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7792 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7793 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7794 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7795 $as_echo_n "(cached) " >&6
7796 else
7797 lt_cv_prog_compiler_c_o=no
7798 $RM -r conftest 2>/dev/null
7799 mkdir conftest
7800 cd conftest
7801 mkdir out
7802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7804 lt_compiler_flag="-o out/conftest2.$ac_objext"
7805 # Insert the option either (1) after the last *FLAGS variable, or
7806 # (2) before a word containing "conftest.", or (3) at the end.
7807 # Note that $ac_compile itself does not contain backslashes and begins
7808 # with a dollar sign (not a hyphen), so the echo should work correctly.
7809 lt_compile=`echo "$ac_compile" | $SED \
7810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7812 -e 's:$: $lt_compiler_flag:'`
7813 (eval echo "\"\$as_me:7813: $lt_compile\"" >&5)
7814 (eval "$lt_compile" 2>out/conftest.err)
7815 ac_status=$?
7816 cat out/conftest.err >&5
7817 echo "$as_me:7817: \$? = $ac_status" >&5
7818 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7819 then
7820 # The compiler can only warn and ignore the option if not recognized
7821 # So say no if there are warnings
7822 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7823 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7824 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7825 lt_cv_prog_compiler_c_o=yes
7828 chmod u+w . 2>&5
7829 $RM conftest*
7830 # SGI C++ compiler will create directory out/ii_files/ for
7831 # template instantiation
7832 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7833 $RM out/* && rmdir out
7834 cd ..
7835 $RM -r conftest
7836 $RM conftest*
7839 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7840 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7845 hard_links="nottested"
7846 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7847 # do not overwrite the value of need_locks provided by the user
7848 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7849 $as_echo_n "checking if we can lock with hard links... " >&6; }
7850 hard_links=yes
7851 $RM conftest*
7852 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7853 touch conftest.a
7854 ln conftest.a conftest.b 2>&5 || hard_links=no
7855 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7856 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7857 $as_echo "$hard_links" >&6; }
7858 if test "$hard_links" = no; then
7859 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7860 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7861 need_locks=warn
7863 else
7864 need_locks=no
7872 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7873 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7875 runpath_var=
7876 allow_undefined_flag=
7877 always_export_symbols=no
7878 archive_cmds=
7879 archive_expsym_cmds=
7880 compiler_needs_object=no
7881 enable_shared_with_static_runtimes=no
7882 export_dynamic_flag_spec=
7883 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7884 hardcode_automatic=no
7885 hardcode_direct=no
7886 hardcode_direct_absolute=no
7887 hardcode_libdir_flag_spec=
7888 hardcode_libdir_flag_spec_ld=
7889 hardcode_libdir_separator=
7890 hardcode_minus_L=no
7891 hardcode_shlibpath_var=unsupported
7892 inherit_rpath=no
7893 link_all_deplibs=unknown
7894 module_cmds=
7895 module_expsym_cmds=
7896 old_archive_from_new_cmds=
7897 old_archive_from_expsyms_cmds=
7898 thread_safe_flag_spec=
7899 whole_archive_flag_spec=
7900 # include_expsyms should be a list of space-separated symbols to be *always*
7901 # included in the symbol list
7902 include_expsyms=
7903 # exclude_expsyms can be an extended regexp of symbols to exclude
7904 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7905 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7906 # as well as any symbol that contains `d'.
7907 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7908 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7909 # platforms (ab)use it in PIC code, but their linkers get confused if
7910 # the symbol is explicitly referenced. Since portable code cannot
7911 # rely on this symbol name, it's probably fine to never include it in
7912 # preloaded symbol tables.
7913 # Exclude shared library initialization/finalization symbols.
7914 extract_expsyms_cmds=
7916 case $host_os in
7917 cygwin* | mingw* | pw32*)
7918 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7919 # When not using gcc, we currently assume that we are using
7920 # Microsoft Visual C++.
7921 if test "$GCC" != yes; then
7922 with_gnu_ld=no
7925 interix*)
7926 # we just hope/assume this is gcc and not c89 (= MSVC++)
7927 with_gnu_ld=yes
7929 openbsd*)
7930 with_gnu_ld=no
7932 esac
7934 ld_shlibs=yes
7935 if test "$with_gnu_ld" = yes; then
7936 # If archive_cmds runs LD, not CC, wlarc should be empty
7937 wlarc='${wl}'
7939 # Set some defaults for GNU ld with shared library support. These
7940 # are reset later if shared libraries are not supported. Putting them
7941 # here allows them to be overridden if necessary.
7942 runpath_var=LD_RUN_PATH
7943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7944 export_dynamic_flag_spec='${wl}--export-dynamic'
7945 # ancient GNU ld didn't support --whole-archive et. al.
7946 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7947 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7948 else
7949 whole_archive_flag_spec=
7951 supports_anon_versioning=no
7952 case `$LD -v 2>&1` in
7953 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7954 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7955 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7956 *\ 2.11.*) ;; # other 2.11 versions
7957 *) supports_anon_versioning=yes ;;
7958 esac
7960 # See if GNU ld supports shared libraries.
7961 case $host_os in
7962 aix[3-9]*)
7963 # On AIX/PPC, the GNU linker is very broken
7964 if test "$host_cpu" != ia64; then
7965 ld_shlibs=no
7966 cat <<_LT_EOF 1>&2
7968 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7969 *** to be unable to reliably create shared libraries on AIX.
7970 *** Therefore, libtool is disabling shared libraries support. If you
7971 *** really care for shared libraries, you may want to modify your PATH
7972 *** so that a non-GNU linker is found, and then restart.
7974 _LT_EOF
7978 amigaos*)
7979 case $host_cpu in
7980 powerpc)
7981 # see comment about AmigaOS4 .so support
7982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7983 archive_expsym_cmds=''
7985 m68k)
7986 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)'
7987 hardcode_libdir_flag_spec='-L$libdir'
7988 hardcode_minus_L=yes
7990 esac
7993 beos*)
7994 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7995 allow_undefined_flag=unsupported
7996 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7997 # support --undefined. This deserves some investigation. FIXME
7998 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7999 else
8000 ld_shlibs=no
8004 cygwin* | mingw* | pw32*)
8005 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8006 # as there is no search path for DLLs.
8007 hardcode_libdir_flag_spec='-L$libdir'
8008 allow_undefined_flag=unsupported
8009 always_export_symbols=no
8010 enable_shared_with_static_runtimes=yes
8011 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8013 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8015 # If the export-symbols file already is a .def file (1st line
8016 # is EXPORTS), use it as is; otherwise, prepend...
8017 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8018 cp $export_symbols $output_objdir/$soname.def;
8019 else
8020 echo EXPORTS > $output_objdir/$soname.def;
8021 cat $export_symbols >> $output_objdir/$soname.def;
8023 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8024 else
8025 ld_shlibs=no
8029 interix[3-9]*)
8030 hardcode_direct=no
8031 hardcode_shlibpath_var=no
8032 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8033 export_dynamic_flag_spec='${wl}-E'
8034 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8035 # Instead, shared libraries are loaded at an image base (0x10000000 by
8036 # default) and relocated if they conflict, which is a slow very memory
8037 # consuming and fragmenting process. To avoid this, we pick a random,
8038 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8039 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8040 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8041 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'
8044 gnu* | linux* | tpf* | k*bsd*-gnu)
8045 tmp_diet=no
8046 if test "$host_os" = linux-dietlibc; then
8047 case $cc_basename in
8048 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8049 esac
8051 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8052 && test "$tmp_diet" = no
8053 then
8054 tmp_addflag=
8055 tmp_sharedflag='-shared'
8056 case $cc_basename,$host_cpu in
8057 pgcc*) # Portland Group C compiler
8058 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8059 tmp_addflag=' $pic_flag'
8061 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8062 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8063 tmp_addflag=' $pic_flag -Mnomain' ;;
8064 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8065 tmp_addflag=' -i_dynamic' ;;
8066 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8067 tmp_addflag=' -i_dynamic -nofor_main' ;;
8068 ifc* | ifort*) # Intel Fortran compiler
8069 tmp_addflag=' -nofor_main' ;;
8070 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8071 tmp_sharedflag='-qmkshrobj'
8072 tmp_addflag= ;;
8073 esac
8074 case `$CC -V 2>&1 | sed 5q` in
8075 *Sun\ C*) # Sun C 5.9
8076 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8077 compiler_needs_object=yes
8078 tmp_sharedflag='-G' ;;
8079 *Sun\ F*) # Sun Fortran 8.3
8080 tmp_sharedflag='-G' ;;
8081 esac
8082 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8084 if test "x$supports_anon_versioning" = xyes; then
8085 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8086 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8087 echo "local: *; };" >> $output_objdir/$libname.ver~
8088 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8091 case $cc_basename in
8092 xlf*)
8093 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8094 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8095 hardcode_libdir_flag_spec=
8096 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8097 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8098 if test "x$supports_anon_versioning" = xyes; then
8099 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8100 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8101 echo "local: *; };" >> $output_objdir/$libname.ver~
8102 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8105 esac
8106 else
8107 ld_shlibs=no
8111 netbsd*)
8112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8113 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8114 wlarc=
8115 else
8116 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8117 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8121 solaris*)
8122 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8123 ld_shlibs=no
8124 cat <<_LT_EOF 1>&2
8126 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8127 *** create shared libraries on Solaris systems. Therefore, libtool
8128 *** is disabling shared libraries support. We urge you to upgrade GNU
8129 *** binutils to release 2.9.1 or newer. Another option is to modify
8130 *** your PATH or compiler configuration so that the native linker is
8131 *** used, and then restart.
8133 _LT_EOF
8134 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8136 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8137 else
8138 ld_shlibs=no
8142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8143 case `$LD -v 2>&1` in
8144 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8145 ld_shlibs=no
8146 cat <<_LT_EOF 1>&2
8148 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8149 *** reliably create shared libraries on SCO systems. Therefore, libtool
8150 *** is disabling shared libraries support. We urge you to upgrade GNU
8151 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8152 *** your PATH or compiler configuration so that the native linker is
8153 *** used, and then restart.
8155 _LT_EOF
8158 # For security reasons, it is highly recommended that you always
8159 # use absolute paths for naming shared libraries, and exclude the
8160 # DT_RUNPATH tag from executables and libraries. But doing so
8161 # requires that you compile everything twice, which is a pain.
8162 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8163 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8165 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8166 else
8167 ld_shlibs=no
8170 esac
8173 sunos4*)
8174 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8175 wlarc=
8176 hardcode_direct=yes
8177 hardcode_shlibpath_var=no
8181 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8183 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8184 else
8185 ld_shlibs=no
8188 esac
8190 if test "$ld_shlibs" = no; then
8191 runpath_var=
8192 hardcode_libdir_flag_spec=
8193 export_dynamic_flag_spec=
8194 whole_archive_flag_spec=
8196 else
8197 # PORTME fill in a description of your system's linker (not GNU ld)
8198 case $host_os in
8199 aix3*)
8200 allow_undefined_flag=unsupported
8201 always_export_symbols=yes
8202 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'
8203 # Note: this linker hardcodes the directories in LIBPATH if there
8204 # are no directories specified by -L.
8205 hardcode_minus_L=yes
8206 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8207 # Neither direct hardcoding nor static linking is supported with a
8208 # broken collect2.
8209 hardcode_direct=unsupported
8213 aix[4-9]*)
8214 if test "$host_cpu" = ia64; then
8215 # On IA64, the linker does run time linking by default, so we don't
8216 # have to do anything special.
8217 aix_use_runtimelinking=no
8218 exp_sym_flag='-Bexport'
8219 no_entry_flag=""
8220 else
8221 # If we're using GNU nm, then we don't want the "-C" option.
8222 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8223 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8224 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8225 else
8226 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'
8228 aix_use_runtimelinking=no
8230 # Test if we are trying to use run time linking or normal
8231 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8232 # need to do runtime linking.
8233 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8234 for ld_flag in $LDFLAGS; do
8235 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8236 aix_use_runtimelinking=yes
8237 break
8239 done
8241 esac
8243 exp_sym_flag='-bexport'
8244 no_entry_flag='-bnoentry'
8247 # When large executables or shared objects are built, AIX ld can
8248 # have problems creating the table of contents. If linking a library
8249 # or program results in "error TOC overflow" add -mminimal-toc to
8250 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8251 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8253 archive_cmds=''
8254 hardcode_direct=yes
8255 hardcode_direct_absolute=yes
8256 hardcode_libdir_separator=':'
8257 link_all_deplibs=yes
8258 file_list_spec='${wl}-f,'
8260 if test "$GCC" = yes; then
8261 case $host_os in aix4.[012]|aix4.[012].*)
8262 # We only want to do this on AIX 4.2 and lower, the check
8263 # below for broken collect2 doesn't work under 4.3+
8264 collect2name=`${CC} -print-prog-name=collect2`
8265 if test -f "$collect2name" &&
8266 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8267 then
8268 # We have reworked collect2
8270 else
8271 # We have old collect2
8272 hardcode_direct=unsupported
8273 # It fails to find uninstalled libraries when the uninstalled
8274 # path is not listed in the libpath. Setting hardcode_minus_L
8275 # to unsupported forces relinking
8276 hardcode_minus_L=yes
8277 hardcode_libdir_flag_spec='-L$libdir'
8278 hardcode_libdir_separator=
8281 esac
8282 shared_flag='-shared'
8283 if test "$aix_use_runtimelinking" = yes; then
8284 shared_flag="$shared_flag "'${wl}-G'
8286 else
8287 # not using gcc
8288 if test "$host_cpu" = ia64; then
8289 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8290 # chokes on -Wl,-G. The following line is correct:
8291 shared_flag='-G'
8292 else
8293 if test "$aix_use_runtimelinking" = yes; then
8294 shared_flag='${wl}-G'
8295 else
8296 shared_flag='${wl}-bM:SRE'
8301 # It seems that -bexpall does not export symbols beginning with
8302 # underscore (_), so it is better to generate a list of symbols to export.
8303 always_export_symbols=yes
8304 if test "$aix_use_runtimelinking" = yes; then
8305 # Warning - without using the other runtime loading flags (-brtl),
8306 # -berok will link without error, but may produce a broken library.
8307 allow_undefined_flag='-berok'
8308 # Determine the default libpath from the value encoded in an
8309 # empty executable.
8310 cat >conftest.$ac_ext <<_ACEOF
8311 /* confdefs.h. */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8318 main ()
8322 return 0;
8324 _ACEOF
8325 rm -f conftest.$ac_objext conftest$ac_exeext
8326 if { (ac_try="$ac_link"
8327 case "(($ac_try" in
8328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329 *) ac_try_echo=$ac_try;;
8330 esac
8331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8332 $as_echo "$ac_try_echo") >&5
8333 (eval "$ac_link") 2>conftest.er1
8334 ac_status=$?
8335 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -f conftest.er1
8337 cat conftest.err >&5
8338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } && {
8340 test -z "$ac_c_werror_flag" ||
8341 test ! -s conftest.err
8342 } && test -s conftest$ac_exeext && {
8343 test "$cross_compiling" = yes ||
8344 $as_test_x conftest$ac_exeext
8345 }; then
8347 lt_aix_libpath_sed='
8348 /Import File Strings/,/^$/ {
8349 /^0/ {
8350 s/^0 *\(.*\)$/\1/
8354 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8355 # Check for a 64-bit object if we didn't find anything.
8356 if test -z "$aix_libpath"; then
8357 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8359 else
8360 $as_echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8366 rm -rf conftest.dSYM
8367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8368 conftest$ac_exeext conftest.$ac_ext
8369 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8371 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8372 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8373 else
8374 if test "$host_cpu" = ia64; then
8375 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8376 allow_undefined_flag="-z nodefs"
8377 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"
8378 else
8379 # Determine the default libpath from the value encoded in an
8380 # empty executable.
8381 cat >conftest.$ac_ext <<_ACEOF
8382 /* confdefs.h. */
8383 _ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h. */
8389 main ()
8393 return 0;
8395 _ACEOF
8396 rm -f conftest.$ac_objext conftest$ac_exeext
8397 if { (ac_try="$ac_link"
8398 case "(($ac_try" in
8399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400 *) ac_try_echo=$ac_try;;
8401 esac
8402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8403 $as_echo "$ac_try_echo") >&5
8404 (eval "$ac_link") 2>conftest.er1
8405 ac_status=$?
8406 grep -v '^ *+' conftest.er1 >conftest.err
8407 rm -f conftest.er1
8408 cat conftest.err >&5
8409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); } && {
8411 test -z "$ac_c_werror_flag" ||
8412 test ! -s conftest.err
8413 } && test -s conftest$ac_exeext && {
8414 test "$cross_compiling" = yes ||
8415 $as_test_x conftest$ac_exeext
8416 }; then
8418 lt_aix_libpath_sed='
8419 /Import File Strings/,/^$/ {
8420 /^0/ {
8421 s/^0 *\(.*\)$/\1/
8425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8426 # Check for a 64-bit object if we didn't find anything.
8427 if test -z "$aix_libpath"; then
8428 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8430 else
8431 $as_echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.$ac_ext >&5
8437 rm -rf conftest.dSYM
8438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8439 conftest$ac_exeext conftest.$ac_ext
8440 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8442 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8443 # Warning - without using the other run time loading flags,
8444 # -berok will link without error, but may produce a broken library.
8445 no_undefined_flag=' ${wl}-bernotok'
8446 allow_undefined_flag=' ${wl}-berok'
8447 # Exported symbols can be pulled into shared objects from archives
8448 whole_archive_flag_spec='$convenience'
8449 archive_cmds_need_lc=yes
8450 # This is similar to how AIX traditionally builds its shared libraries.
8451 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'
8456 amigaos*)
8457 case $host_cpu in
8458 powerpc)
8459 # see comment about AmigaOS4 .so support
8460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8461 archive_expsym_cmds=''
8463 m68k)
8464 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)'
8465 hardcode_libdir_flag_spec='-L$libdir'
8466 hardcode_minus_L=yes
8468 esac
8471 bsdi[45]*)
8472 export_dynamic_flag_spec=-rdynamic
8475 cygwin* | mingw* | pw32*)
8476 # When not using gcc, we currently assume that we are using
8477 # Microsoft Visual C++.
8478 # hardcode_libdir_flag_spec is actually meaningless, as there is
8479 # no search path for DLLs.
8480 hardcode_libdir_flag_spec=' '
8481 allow_undefined_flag=unsupported
8482 # Tell ltmain to make .lib files, not .a files.
8483 libext=lib
8484 # Tell ltmain to make .dll files, not .so files.
8485 shrext_cmds=".dll"
8486 # FIXME: Setting linknames here is a bad hack.
8487 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8488 # The linker will automatically build a .lib file if we build a DLL.
8489 old_archive_from_new_cmds='true'
8490 # FIXME: Should let the user specify the lib program.
8491 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8492 fix_srcfile_path='`cygpath -w "$srcfile"`'
8493 enable_shared_with_static_runtimes=yes
8496 darwin* | rhapsody*)
8499 archive_cmds_need_lc=no
8500 hardcode_direct=no
8501 hardcode_automatic=yes
8502 hardcode_shlibpath_var=unsupported
8503 whole_archive_flag_spec=''
8504 link_all_deplibs=yes
8505 allow_undefined_flag="$_lt_dar_allow_undefined"
8506 if test "$GCC" = "yes"; then
8507 output_verbose_link_cmd=echo
8508 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8509 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8510 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}"
8511 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}"
8513 else
8514 ld_shlibs=no
8519 dgux*)
8520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8521 hardcode_libdir_flag_spec='-L$libdir'
8522 hardcode_shlibpath_var=no
8525 freebsd1*)
8526 ld_shlibs=no
8529 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8530 # support. Future versions do this automatically, but an explicit c++rt0.o
8531 # does not break anything, and helps significantly (at the cost of a little
8532 # extra space).
8533 freebsd2.2*)
8534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8535 hardcode_libdir_flag_spec='-R$libdir'
8536 hardcode_direct=yes
8537 hardcode_shlibpath_var=no
8540 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8541 freebsd2*)
8542 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8543 hardcode_direct=yes
8544 hardcode_minus_L=yes
8545 hardcode_shlibpath_var=no
8548 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8549 freebsd* | dragonfly*)
8550 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8551 hardcode_libdir_flag_spec='-R$libdir'
8552 hardcode_direct=yes
8553 hardcode_shlibpath_var=no
8556 hpux9*)
8557 if test "$GCC" = yes; then
8558 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'
8559 else
8560 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'
8562 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8563 hardcode_libdir_separator=:
8564 hardcode_direct=yes
8566 # hardcode_minus_L: Not really in the search PATH,
8567 # but as the default location of the library.
8568 hardcode_minus_L=yes
8569 export_dynamic_flag_spec='${wl}-E'
8572 hpux10*)
8573 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8574 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8575 else
8576 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8578 if test "$with_gnu_ld" = no; then
8579 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8580 hardcode_libdir_flag_spec_ld='+b $libdir'
8581 hardcode_libdir_separator=:
8582 hardcode_direct=yes
8583 hardcode_direct_absolute=yes
8584 export_dynamic_flag_spec='${wl}-E'
8585 # hardcode_minus_L: Not really in the search PATH,
8586 # but as the default location of the library.
8587 hardcode_minus_L=yes
8591 hpux11*)
8592 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8593 case $host_cpu in
8594 hppa*64*)
8595 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8597 ia64*)
8598 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8601 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8603 esac
8604 else
8605 case $host_cpu in
8606 hppa*64*)
8607 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8609 ia64*)
8610 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8613 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8615 esac
8617 if test "$with_gnu_ld" = no; then
8618 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8619 hardcode_libdir_separator=:
8621 case $host_cpu in
8622 hppa*64*|ia64*)
8623 hardcode_direct=no
8624 hardcode_shlibpath_var=no
8627 hardcode_direct=yes
8628 hardcode_direct_absolute=yes
8629 export_dynamic_flag_spec='${wl}-E'
8631 # hardcode_minus_L: Not really in the search PATH,
8632 # but as the default location of the library.
8633 hardcode_minus_L=yes
8635 esac
8639 irix5* | irix6* | nonstopux*)
8640 if test "$GCC" = yes; then
8641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8642 # Try to use the -exported_symbol ld option, if it does not
8643 # work, assume that -exports_file does not work either and
8644 # implicitly export all symbols.
8645 save_LDFLAGS="$LDFLAGS"
8646 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8647 cat >conftest.$ac_ext <<_ACEOF
8648 int foo(void) {}
8649 _ACEOF
8650 rm -f conftest.$ac_objext conftest$ac_exeext
8651 if { (ac_try="$ac_link"
8652 case "(($ac_try" in
8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8655 esac
8656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8657 $as_echo "$ac_try_echo") >&5
8658 (eval "$ac_link") 2>conftest.er1
8659 ac_status=$?
8660 grep -v '^ *+' conftest.er1 >conftest.err
8661 rm -f conftest.er1
8662 cat conftest.err >&5
8663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); } && {
8665 test -z "$ac_c_werror_flag" ||
8666 test ! -s conftest.err
8667 } && test -s conftest$ac_exeext && {
8668 test "$cross_compiling" = yes ||
8669 $as_test_x conftest$ac_exeext
8670 }; then
8671 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8673 else
8674 $as_echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8680 rm -rf conftest.dSYM
8681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8682 conftest$ac_exeext conftest.$ac_ext
8683 LDFLAGS="$save_LDFLAGS"
8684 else
8685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8686 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8688 archive_cmds_need_lc='no'
8689 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8690 hardcode_libdir_separator=:
8691 inherit_rpath=yes
8692 link_all_deplibs=yes
8695 netbsd*)
8696 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8697 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8698 else
8699 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8701 hardcode_libdir_flag_spec='-R$libdir'
8702 hardcode_direct=yes
8703 hardcode_shlibpath_var=no
8706 newsos6)
8707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8708 hardcode_direct=yes
8709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8710 hardcode_libdir_separator=:
8711 hardcode_shlibpath_var=no
8714 *nto* | *qnx*)
8717 openbsd*)
8718 if test -f /usr/libexec/ld.so; then
8719 hardcode_direct=yes
8720 hardcode_shlibpath_var=no
8721 hardcode_direct_absolute=yes
8722 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8723 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8724 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8725 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8726 export_dynamic_flag_spec='${wl}-E'
8727 else
8728 case $host_os in
8729 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8730 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8731 hardcode_libdir_flag_spec='-R$libdir'
8734 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8735 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8737 esac
8739 else
8740 ld_shlibs=no
8744 os2*)
8745 hardcode_libdir_flag_spec='-L$libdir'
8746 hardcode_minus_L=yes
8747 allow_undefined_flag=unsupported
8748 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'
8749 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8752 osf3*)
8753 if test "$GCC" = yes; then
8754 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8755 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8756 else
8757 allow_undefined_flag=' -expect_unresolved \*'
8758 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8760 archive_cmds_need_lc='no'
8761 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8762 hardcode_libdir_separator=:
8765 osf4* | osf5*) # as osf3* with the addition of -msym flag
8766 if test "$GCC" = yes; then
8767 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8768 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8769 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8770 else
8771 allow_undefined_flag=' -expect_unresolved \*'
8772 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8773 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~
8774 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8776 # Both c and cxx compiler support -rpath directly
8777 hardcode_libdir_flag_spec='-rpath $libdir'
8779 archive_cmds_need_lc='no'
8780 hardcode_libdir_separator=:
8783 solaris*)
8784 no_undefined_flag=' -z defs'
8785 if test "$GCC" = yes; then
8786 wlarc='${wl}'
8787 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8788 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8789 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8790 else
8791 case `$CC -V 2>&1` in
8792 *"Compilers 5.0"*)
8793 wlarc=''
8794 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8795 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8796 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8799 wlarc='${wl}'
8800 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8801 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8802 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8804 esac
8806 hardcode_libdir_flag_spec='-R$libdir'
8807 hardcode_shlibpath_var=no
8808 case $host_os in
8809 solaris2.[0-5] | solaris2.[0-5].*) ;;
8811 # The compiler driver will combine and reorder linker options,
8812 # but understands `-z linker_flag'. GCC discards it without `$wl',
8813 # but is careful enough not to reorder.
8814 # Supported since Solaris 2.6 (maybe 2.5.1?)
8815 if test "$GCC" = yes; then
8816 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8817 else
8818 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8821 esac
8822 link_all_deplibs=yes
8825 sunos4*)
8826 if test "x$host_vendor" = xsequent; then
8827 # Use $CC to link under sequent, because it throws in some extra .o
8828 # files that make .init and .fini sections work.
8829 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8830 else
8831 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8833 hardcode_libdir_flag_spec='-L$libdir'
8834 hardcode_direct=yes
8835 hardcode_minus_L=yes
8836 hardcode_shlibpath_var=no
8839 sysv4)
8840 case $host_vendor in
8841 sni)
8842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8843 hardcode_direct=yes # is this really true???
8845 siemens)
8846 ## LD is ld it makes a PLAMLIB
8847 ## CC just makes a GrossModule.
8848 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8849 reload_cmds='$CC -r -o $output$reload_objs'
8850 hardcode_direct=no
8852 motorola)
8853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8854 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8856 esac
8857 runpath_var='LD_RUN_PATH'
8858 hardcode_shlibpath_var=no
8861 sysv4.3*)
8862 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8863 hardcode_shlibpath_var=no
8864 export_dynamic_flag_spec='-Bexport'
8867 sysv4*MP*)
8868 if test -d /usr/nec; then
8869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8870 hardcode_shlibpath_var=no
8871 runpath_var=LD_RUN_PATH
8872 hardcode_runpath_var=yes
8873 ld_shlibs=yes
8877 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8878 no_undefined_flag='${wl}-z,text'
8879 archive_cmds_need_lc=no
8880 hardcode_shlibpath_var=no
8881 runpath_var='LD_RUN_PATH'
8883 if test "$GCC" = yes; then
8884 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8885 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8886 else
8887 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8888 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8892 sysv5* | sco3.2v5* | sco5v6*)
8893 # Note: We can NOT use -z defs as we might desire, because we do not
8894 # link with -lc, and that would cause any symbols used from libc to
8895 # always be unresolved, which means just about no library would
8896 # ever link correctly. If we're not using GNU ld we use -z text
8897 # though, which does catch some bad symbols but isn't as heavy-handed
8898 # as -z defs.
8899 no_undefined_flag='${wl}-z,text'
8900 allow_undefined_flag='${wl}-z,nodefs'
8901 archive_cmds_need_lc=no
8902 hardcode_shlibpath_var=no
8903 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8904 hardcode_libdir_separator=':'
8905 link_all_deplibs=yes
8906 export_dynamic_flag_spec='${wl}-Bexport'
8907 runpath_var='LD_RUN_PATH'
8909 if test "$GCC" = yes; then
8910 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8911 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8912 else
8913 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8914 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8918 uts4*)
8919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8920 hardcode_libdir_flag_spec='-L$libdir'
8921 hardcode_shlibpath_var=no
8925 ld_shlibs=no
8927 esac
8929 if test x$host_vendor = xsni; then
8930 case $host in
8931 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8932 export_dynamic_flag_spec='${wl}-Blargedynsym'
8934 esac
8938 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8939 $as_echo "$ld_shlibs" >&6; }
8940 test "$ld_shlibs" = no && can_build_shared=no
8942 with_gnu_ld=$with_gnu_ld
8959 # Do we need to explicitly link libc?
8961 case "x$archive_cmds_need_lc" in
8962 x|xyes)
8963 # Assume -lc should be added
8964 archive_cmds_need_lc=yes
8966 if test "$enable_shared" = yes && test "$GCC" = yes; then
8967 case $archive_cmds in
8968 *'~'*)
8969 # FIXME: we may have to deal with multi-command sequences.
8971 '$CC '*)
8972 # Test whether the compiler implicitly links with -lc since on some
8973 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8974 # to ld, don't add -lc before -lgcc.
8975 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8976 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8977 $RM conftest*
8978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8981 (eval $ac_compile) 2>&5
8982 ac_status=$?
8983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } 2>conftest.err; then
8985 soname=conftest
8986 lib=conftest
8987 libobjs=conftest.$ac_objext
8988 deplibs=
8989 wl=$lt_prog_compiler_wl
8990 pic_flag=$lt_prog_compiler_pic
8991 compiler_flags=-v
8992 linker_flags=-v
8993 verstring=
8994 output_objdir=.
8995 libname=conftest
8996 lt_save_allow_undefined_flag=$allow_undefined_flag
8997 allow_undefined_flag=
8998 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8999 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9000 ac_status=$?
9001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }
9003 then
9004 archive_cmds_need_lc=no
9005 else
9006 archive_cmds_need_lc=yes
9008 allow_undefined_flag=$lt_save_allow_undefined_flag
9009 else
9010 cat conftest.err 1>&5
9012 $RM conftest*
9013 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9014 $as_echo "$archive_cmds_need_lc" >&6; }
9016 esac
9019 esac
9177 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9178 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9180 if test "$GCC" = yes; then
9181 case $host_os in
9182 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9183 *) lt_awk_arg="/^libraries:/" ;;
9184 esac
9185 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9186 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9187 # if the path contains ";" then we assume it to be the separator
9188 # otherwise default to the standard path separator (i.e. ":") - it is
9189 # assumed that no part of a normal pathname contains ";" but that should
9190 # okay in the real world where ";" in dirpaths is itself problematic.
9191 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9192 else
9193 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9195 # Ok, now we have the path, separated by spaces, we can step through it
9196 # and add multilib dir if necessary.
9197 lt_tmp_lt_search_path_spec=
9198 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9199 for lt_sys_path in $lt_search_path_spec; do
9200 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9201 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9202 else
9203 test -d "$lt_sys_path" && \
9204 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9206 done
9207 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9208 BEGIN {RS=" "; FS="/|\n";} {
9209 lt_foo="";
9210 lt_count=0;
9211 for (lt_i = NF; lt_i > 0; lt_i--) {
9212 if ($lt_i != "" && $lt_i != ".") {
9213 if ($lt_i == "..") {
9214 lt_count++;
9215 } else {
9216 if (lt_count == 0) {
9217 lt_foo="/" $lt_i lt_foo;
9218 } else {
9219 lt_count--;
9224 if (lt_foo != "") { lt_freq[lt_foo]++; }
9225 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9227 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9228 else
9229 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9231 library_names_spec=
9232 libname_spec='lib$name'
9233 soname_spec=
9234 shrext_cmds=".so"
9235 postinstall_cmds=
9236 postuninstall_cmds=
9237 finish_cmds=
9238 finish_eval=
9239 shlibpath_var=
9240 shlibpath_overrides_runpath=unknown
9241 version_type=none
9242 dynamic_linker="$host_os ld.so"
9243 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9244 need_lib_prefix=unknown
9245 hardcode_into_libs=no
9247 # when you set need_version to no, make sure it does not cause -set_version
9248 # flags to be left without arguments
9249 need_version=unknown
9251 case $host_os in
9252 aix3*)
9253 version_type=linux
9254 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9255 shlibpath_var=LIBPATH
9257 # AIX 3 has no versioning support, so we append a major version to the name.
9258 soname_spec='${libname}${release}${shared_ext}$major'
9261 aix[4-9]*)
9262 version_type=linux
9263 need_lib_prefix=no
9264 need_version=no
9265 hardcode_into_libs=yes
9266 if test "$host_cpu" = ia64; then
9267 # AIX 5 supports IA64
9268 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9269 shlibpath_var=LD_LIBRARY_PATH
9270 else
9271 # With GCC up to 2.95.x, collect2 would create an import file
9272 # for dependence libraries. The import file would start with
9273 # the line `#! .'. This would cause the generated library to
9274 # depend on `.', always an invalid library. This was fixed in
9275 # development snapshots of GCC prior to 3.0.
9276 case $host_os in
9277 aix4 | aix4.[01] | aix4.[01].*)
9278 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9279 echo ' yes '
9280 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9282 else
9283 can_build_shared=no
9286 esac
9287 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9288 # soname into executable. Probably we can add versioning support to
9289 # collect2, so additional links can be useful in future.
9290 if test "$aix_use_runtimelinking" = yes; then
9291 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9292 # instead of lib<name>.a to let people know that these are not
9293 # typical AIX shared libraries.
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295 else
9296 # We preserve .a as extension for shared libraries through AIX4.2
9297 # and later when we are not doing run time linking.
9298 library_names_spec='${libname}${release}.a $libname.a'
9299 soname_spec='${libname}${release}${shared_ext}$major'
9301 shlibpath_var=LIBPATH
9305 amigaos*)
9306 case $host_cpu in
9307 powerpc)
9308 # Since July 2007 AmigaOS4 officially supports .so libraries.
9309 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9312 m68k)
9313 library_names_spec='$libname.ixlibrary $libname.a'
9314 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9315 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9317 esac
9320 beos*)
9321 library_names_spec='${libname}${shared_ext}'
9322 dynamic_linker="$host_os ld.so"
9323 shlibpath_var=LIBRARY_PATH
9326 bsdi[45]*)
9327 version_type=linux
9328 need_version=no
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9332 shlibpath_var=LD_LIBRARY_PATH
9333 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9334 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9335 # the default ld.so.conf also contains /usr/contrib/lib and
9336 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9337 # libtool to hard-code these into programs
9340 cygwin* | mingw* | pw32*)
9341 version_type=windows
9342 shrext_cmds=".dll"
9343 need_version=no
9344 need_lib_prefix=no
9346 case $GCC,$host_os in
9347 yes,cygwin* | yes,mingw* | yes,pw32*)
9348 library_names_spec='$libname.dll.a'
9349 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9350 postinstall_cmds='base_file=`basename \${file}`~
9351 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9352 dldir=$destdir/`dirname \$dlpath`~
9353 test -d \$dldir || mkdir -p \$dldir~
9354 $install_prog $dir/$dlname \$dldir/$dlname~
9355 chmod a+x \$dldir/$dlname~
9356 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9357 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9359 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9360 dlpath=$dir/\$dldll~
9361 $RM \$dlpath'
9362 shlibpath_overrides_runpath=yes
9364 case $host_os in
9365 cygwin*)
9366 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9367 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9368 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9370 mingw*)
9371 # MinGW DLLs use traditional 'lib' prefix
9372 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9373 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9374 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9375 # It is most probably a Windows format PATH printed by
9376 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9377 # path with ; separators, and with drive letters. We can handle the
9378 # drive letters (cygwin fileutils understands them), so leave them,
9379 # especially as we might pass files found there to a mingw objdump,
9380 # which wouldn't understand a cygwinified path. Ahh.
9381 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9382 else
9383 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9386 pw32*)
9387 # pw32 DLLs use 'pw' prefix rather than 'lib'
9388 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9390 esac
9394 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9396 esac
9397 dynamic_linker='Win32 ld.exe'
9398 # FIXME: first we should search . and the directory the executable is in
9399 shlibpath_var=PATH
9402 darwin* | rhapsody*)
9403 dynamic_linker="$host_os dyld"
9404 version_type=darwin
9405 need_lib_prefix=no
9406 need_version=no
9407 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9408 soname_spec='${libname}${release}${major}$shared_ext'
9409 shlibpath_overrides_runpath=yes
9410 shlibpath_var=DYLD_LIBRARY_PATH
9411 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9413 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9414 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9417 dgux*)
9418 version_type=linux
9419 need_lib_prefix=no
9420 need_version=no
9421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9422 soname_spec='${libname}${release}${shared_ext}$major'
9423 shlibpath_var=LD_LIBRARY_PATH
9426 freebsd1*)
9427 dynamic_linker=no
9430 freebsd* | dragonfly*)
9431 # DragonFly does not have aout. When/if they implement a new
9432 # versioning mechanism, adjust this.
9433 if test -x /usr/bin/objformat; then
9434 objformat=`/usr/bin/objformat`
9435 else
9436 case $host_os in
9437 freebsd[123]*) objformat=aout ;;
9438 *) objformat=elf ;;
9439 esac
9441 version_type=freebsd-$objformat
9442 case $version_type in
9443 freebsd-elf*)
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9445 need_version=no
9446 need_lib_prefix=no
9448 freebsd-*)
9449 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9450 need_version=yes
9452 esac
9453 shlibpath_var=LD_LIBRARY_PATH
9454 case $host_os in
9455 freebsd2*)
9456 shlibpath_overrides_runpath=yes
9458 freebsd3.[01]* | freebsdelf3.[01]*)
9459 shlibpath_overrides_runpath=yes
9460 hardcode_into_libs=yes
9462 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9463 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9464 shlibpath_overrides_runpath=no
9465 hardcode_into_libs=yes
9467 *) # from 4.6 on, and DragonFly
9468 shlibpath_overrides_runpath=yes
9469 hardcode_into_libs=yes
9471 esac
9474 gnu*)
9475 version_type=linux
9476 need_lib_prefix=no
9477 need_version=no
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9479 soname_spec='${libname}${release}${shared_ext}$major'
9480 shlibpath_var=LD_LIBRARY_PATH
9481 hardcode_into_libs=yes
9484 hpux9* | hpux10* | hpux11*)
9485 # Give a soname corresponding to the major version so that dld.sl refuses to
9486 # link against other versions.
9487 version_type=sunos
9488 need_lib_prefix=no
9489 need_version=no
9490 case $host_cpu in
9491 ia64*)
9492 shrext_cmds='.so'
9493 hardcode_into_libs=yes
9494 dynamic_linker="$host_os dld.so"
9495 shlibpath_var=LD_LIBRARY_PATH
9496 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9498 soname_spec='${libname}${release}${shared_ext}$major'
9499 if test "X$HPUX_IA64_MODE" = X32; then
9500 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9501 else
9502 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9504 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9506 hppa*64*)
9507 shrext_cmds='.sl'
9508 hardcode_into_libs=yes
9509 dynamic_linker="$host_os dld.sl"
9510 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9511 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513 soname_spec='${libname}${release}${shared_ext}$major'
9514 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9515 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9518 shrext_cmds='.sl'
9519 dynamic_linker="$host_os dld.sl"
9520 shlibpath_var=SHLIB_PATH
9521 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523 soname_spec='${libname}${release}${shared_ext}$major'
9525 esac
9526 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9527 postinstall_cmds='chmod 555 $lib'
9530 interix[3-9]*)
9531 version_type=linux
9532 need_lib_prefix=no
9533 need_version=no
9534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9535 soname_spec='${libname}${release}${shared_ext}$major'
9536 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9537 shlibpath_var=LD_LIBRARY_PATH
9538 shlibpath_overrides_runpath=no
9539 hardcode_into_libs=yes
9542 irix5* | irix6* | nonstopux*)
9543 case $host_os in
9544 nonstopux*) version_type=nonstopux ;;
9546 if test "$lt_cv_prog_gnu_ld" = yes; then
9547 version_type=linux
9548 else
9549 version_type=irix
9550 fi ;;
9551 esac
9552 need_lib_prefix=no
9553 need_version=no
9554 soname_spec='${libname}${release}${shared_ext}$major'
9555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9556 case $host_os in
9557 irix5* | nonstopux*)
9558 libsuff= shlibsuff=
9561 case $LD in # libtool.m4 will add one of these switches to LD
9562 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9563 libsuff= shlibsuff= libmagic=32-bit;;
9564 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9565 libsuff=32 shlibsuff=N32 libmagic=N32;;
9566 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9567 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9568 *) libsuff= shlibsuff= libmagic=never-match;;
9569 esac
9571 esac
9572 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9573 shlibpath_overrides_runpath=no
9574 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9575 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9576 hardcode_into_libs=yes
9579 # No shared lib support for Linux oldld, aout, or coff.
9580 linux*oldld* | linux*aout* | linux*coff*)
9581 dynamic_linker=no
9584 # This must be Linux ELF.
9585 linux* | k*bsd*-gnu)
9586 version_type=linux
9587 need_lib_prefix=no
9588 need_version=no
9589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9590 soname_spec='${libname}${release}${shared_ext}$major'
9591 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9592 shlibpath_var=LD_LIBRARY_PATH
9593 shlibpath_overrides_runpath=no
9594 # Some binutils ld are patched to set DT_RUNPATH
9595 save_LDFLAGS=$LDFLAGS
9596 save_libdir=$libdir
9597 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9598 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9599 cat >conftest.$ac_ext <<_ACEOF
9600 /* confdefs.h. */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9607 main ()
9611 return 0;
9613 _ACEOF
9614 rm -f conftest.$ac_objext conftest$ac_exeext
9615 if { (ac_try="$ac_link"
9616 case "(($ac_try" in
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9619 esac
9620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9621 $as_echo "$ac_try_echo") >&5
9622 (eval "$ac_link") 2>conftest.er1
9623 ac_status=$?
9624 grep -v '^ *+' conftest.er1 >conftest.err
9625 rm -f conftest.er1
9626 cat conftest.err >&5
9627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); } && {
9629 test -z "$ac_c_werror_flag" ||
9630 test ! -s conftest.err
9631 } && test -s conftest$ac_exeext && {
9632 test "$cross_compiling" = yes ||
9633 $as_test_x conftest$ac_exeext
9634 }; then
9635 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9636 shlibpath_overrides_runpath=yes
9639 else
9640 $as_echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.$ac_ext >&5
9646 rm -rf conftest.dSYM
9647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9648 conftest$ac_exeext conftest.$ac_ext
9649 LDFLAGS=$save_LDFLAGS
9650 libdir=$save_libdir
9652 # This implies no fast_install, which is unacceptable.
9653 # Some rework will be needed to allow for fast_install
9654 # before this can be enabled.
9655 hardcode_into_libs=yes
9657 # Append ld.so.conf contents to the search path
9658 if test -f /etc/ld.so.conf; then
9659 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;/^$/d' | tr '\n' ' '`
9660 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9663 # We used to test for /lib/ld.so.1 and disable shared libraries on
9664 # powerpc, because MkLinux only supported shared libraries with the
9665 # GNU dynamic linker. Since this was broken with cross compilers,
9666 # most powerpc-linux boxes support dynamic linking these days and
9667 # people can always --disable-shared, the test was removed, and we
9668 # assume the GNU/Linux dynamic linker is in use.
9669 dynamic_linker='GNU/Linux ld.so'
9672 netbsd*)
9673 version_type=sunos
9674 need_lib_prefix=no
9675 need_version=no
9676 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9679 dynamic_linker='NetBSD (a.out) ld.so'
9680 else
9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9682 soname_spec='${libname}${release}${shared_ext}$major'
9683 dynamic_linker='NetBSD ld.elf_so'
9685 shlibpath_var=LD_LIBRARY_PATH
9686 shlibpath_overrides_runpath=yes
9687 hardcode_into_libs=yes
9690 newsos6)
9691 version_type=linux
9692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9693 shlibpath_var=LD_LIBRARY_PATH
9694 shlibpath_overrides_runpath=yes
9697 *nto* | *qnx*)
9698 version_type=qnx
9699 need_lib_prefix=no
9700 need_version=no
9701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9702 soname_spec='${libname}${release}${shared_ext}$major'
9703 shlibpath_var=LD_LIBRARY_PATH
9704 shlibpath_overrides_runpath=no
9705 hardcode_into_libs=yes
9706 dynamic_linker='ldqnx.so'
9709 openbsd*)
9710 version_type=sunos
9711 sys_lib_dlsearch_path_spec="/usr/lib"
9712 need_lib_prefix=no
9713 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9714 case $host_os in
9715 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9716 *) need_version=no ;;
9717 esac
9718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9720 shlibpath_var=LD_LIBRARY_PATH
9721 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9722 case $host_os in
9723 openbsd2.[89] | openbsd2.[89].*)
9724 shlibpath_overrides_runpath=no
9727 shlibpath_overrides_runpath=yes
9729 esac
9730 else
9731 shlibpath_overrides_runpath=yes
9735 os2*)
9736 libname_spec='$name'
9737 shrext_cmds=".dll"
9738 need_lib_prefix=no
9739 library_names_spec='$libname${shared_ext} $libname.a'
9740 dynamic_linker='OS/2 ld.exe'
9741 shlibpath_var=LIBPATH
9744 osf3* | osf4* | osf5*)
9745 version_type=osf
9746 need_lib_prefix=no
9747 need_version=no
9748 soname_spec='${libname}${release}${shared_ext}$major'
9749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9750 shlibpath_var=LD_LIBRARY_PATH
9751 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9752 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9755 rdos*)
9756 dynamic_linker=no
9759 solaris*)
9760 version_type=linux
9761 need_lib_prefix=no
9762 need_version=no
9763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9764 soname_spec='${libname}${release}${shared_ext}$major'
9765 shlibpath_var=LD_LIBRARY_PATH
9766 shlibpath_overrides_runpath=yes
9767 hardcode_into_libs=yes
9768 # ldd complains unless libraries are executable
9769 postinstall_cmds='chmod +x $lib'
9772 sunos4*)
9773 version_type=sunos
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9775 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9776 shlibpath_var=LD_LIBRARY_PATH
9777 shlibpath_overrides_runpath=yes
9778 if test "$with_gnu_ld" = yes; then
9779 need_lib_prefix=no
9781 need_version=yes
9784 sysv4 | sysv4.3*)
9785 version_type=linux
9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787 soname_spec='${libname}${release}${shared_ext}$major'
9788 shlibpath_var=LD_LIBRARY_PATH
9789 case $host_vendor in
9790 sni)
9791 shlibpath_overrides_runpath=no
9792 need_lib_prefix=no
9793 runpath_var=LD_RUN_PATH
9795 siemens)
9796 need_lib_prefix=no
9798 motorola)
9799 need_lib_prefix=no
9800 need_version=no
9801 shlibpath_overrides_runpath=no
9802 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9804 esac
9807 sysv4*MP*)
9808 if test -d /usr/nec ;then
9809 version_type=linux
9810 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9811 soname_spec='$libname${shared_ext}.$major'
9812 shlibpath_var=LD_LIBRARY_PATH
9816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9817 version_type=freebsd-elf
9818 need_lib_prefix=no
9819 need_version=no
9820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9821 soname_spec='${libname}${release}${shared_ext}$major'
9822 shlibpath_var=LD_LIBRARY_PATH
9823 shlibpath_overrides_runpath=yes
9824 hardcode_into_libs=yes
9825 if test "$with_gnu_ld" = yes; then
9826 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9827 else
9828 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9829 case $host_os in
9830 sco3.2v5*)
9831 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9833 esac
9835 sys_lib_dlsearch_path_spec='/usr/lib'
9838 tpf*)
9839 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9840 version_type=linux
9841 need_lib_prefix=no
9842 need_version=no
9843 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844 shlibpath_var=LD_LIBRARY_PATH
9845 shlibpath_overrides_runpath=no
9846 hardcode_into_libs=yes
9849 uts4*)
9850 version_type=linux
9851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9852 soname_spec='${libname}${release}${shared_ext}$major'
9853 shlibpath_var=LD_LIBRARY_PATH
9857 dynamic_linker=no
9859 esac
9860 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9861 $as_echo "$dynamic_linker" >&6; }
9862 test "$dynamic_linker" = no && can_build_shared=no
9864 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9865 if test "$GCC" = yes; then
9866 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9869 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9870 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9872 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9873 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9962 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9963 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9964 hardcode_action=
9965 if test -n "$hardcode_libdir_flag_spec" ||
9966 test -n "$runpath_var" ||
9967 test "X$hardcode_automatic" = "Xyes" ; then
9969 # We can hardcode non-existent directories.
9970 if test "$hardcode_direct" != no &&
9971 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9972 # have to relink, otherwise we might link with an installed library
9973 # when we should be linking with a yet-to-be-installed one
9974 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9975 test "$hardcode_minus_L" != no; then
9976 # Linking always hardcodes the temporary library directory.
9977 hardcode_action=relink
9978 else
9979 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9980 hardcode_action=immediate
9982 else
9983 # We cannot hardcode anything, or else we can only hardcode existing
9984 # directories.
9985 hardcode_action=unsupported
9987 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9988 $as_echo "$hardcode_action" >&6; }
9990 if test "$hardcode_action" = relink ||
9991 test "$inherit_rpath" = yes; then
9992 # Fast installation is not supported
9993 enable_fast_install=no
9994 elif test "$shlibpath_overrides_runpath" = yes ||
9995 test "$enable_shared" = no; then
9996 # Fast installation is not necessary
9997 enable_fast_install=needless
10005 if test "x$enable_dlopen" != xyes; then
10006 enable_dlopen=unknown
10007 enable_dlopen_self=unknown
10008 enable_dlopen_self_static=unknown
10009 else
10010 lt_cv_dlopen=no
10011 lt_cv_dlopen_libs=
10013 case $host_os in
10014 beos*)
10015 lt_cv_dlopen="load_add_on"
10016 lt_cv_dlopen_libs=
10017 lt_cv_dlopen_self=yes
10020 mingw* | pw32*)
10021 lt_cv_dlopen="LoadLibrary"
10022 lt_cv_dlopen_libs=
10025 cygwin*)
10026 lt_cv_dlopen="dlopen"
10027 lt_cv_dlopen_libs=
10030 darwin*)
10031 # if libdl is installed we need to link against it
10032 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10033 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10034 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10035 $as_echo_n "(cached) " >&6
10036 else
10037 ac_check_lib_save_LIBS=$LIBS
10038 LIBS="-ldl $LIBS"
10039 cat >conftest.$ac_ext <<_ACEOF
10040 /* confdefs.h. */
10041 _ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10046 /* Override any GCC internal prototype to avoid an error.
10047 Use char because int might match the return type of a GCC
10048 builtin and then its argument prototype would still apply. */
10049 #ifdef __cplusplus
10050 extern "C"
10051 #endif
10052 char dlopen ();
10054 main ()
10056 return dlopen ();
10058 return 0;
10060 _ACEOF
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (ac_try="$ac_link"
10063 case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10066 esac
10067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10068 $as_echo "$ac_try_echo") >&5
10069 (eval "$ac_link") 2>conftest.er1
10070 ac_status=$?
10071 grep -v '^ *+' conftest.er1 >conftest.err
10072 rm -f conftest.er1
10073 cat conftest.err >&5
10074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); } && {
10076 test -z "$ac_c_werror_flag" ||
10077 test ! -s conftest.err
10078 } && test -s conftest$ac_exeext && {
10079 test "$cross_compiling" = yes ||
10080 $as_test_x conftest$ac_exeext
10081 }; then
10082 ac_cv_lib_dl_dlopen=yes
10083 else
10084 $as_echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10087 ac_cv_lib_dl_dlopen=no
10090 rm -rf conftest.dSYM
10091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10092 conftest$ac_exeext conftest.$ac_ext
10093 LIBS=$ac_check_lib_save_LIBS
10095 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10096 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10097 if test $ac_cv_lib_dl_dlopen = yes; then
10098 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10099 else
10101 lt_cv_dlopen="dyld"
10102 lt_cv_dlopen_libs=
10103 lt_cv_dlopen_self=yes
10110 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10111 $as_echo_n "checking for shl_load... " >&6; }
10112 if test "${ac_cv_func_shl_load+set}" = set; then
10113 $as_echo_n "(cached) " >&6
10114 else
10115 cat >conftest.$ac_ext <<_ACEOF
10116 /* confdefs.h. */
10117 _ACEOF
10118 cat confdefs.h >>conftest.$ac_ext
10119 cat >>conftest.$ac_ext <<_ACEOF
10120 /* end confdefs.h. */
10121 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10123 #define shl_load innocuous_shl_load
10125 /* System header to define __stub macros and hopefully few prototypes,
10126 which can conflict with char shl_load (); below.
10127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10128 <limits.h> exists even on freestanding compilers. */
10130 #ifdef __STDC__
10131 # include <limits.h>
10132 #else
10133 # include <assert.h>
10134 #endif
10136 #undef shl_load
10138 /* Override any GCC internal prototype to avoid an error.
10139 Use char because int might match the return type of a GCC
10140 builtin and then its argument prototype would still apply. */
10141 #ifdef __cplusplus
10142 extern "C"
10143 #endif
10144 char shl_load ();
10145 /* The GNU C library defines this for functions which it implements
10146 to always fail with ENOSYS. Some functions are actually named
10147 something starting with __ and the normal name is an alias. */
10148 #if defined __stub_shl_load || defined __stub___shl_load
10149 choke me
10150 #endif
10153 main ()
10155 return shl_load ();
10157 return 0;
10159 _ACEOF
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (ac_try="$ac_link"
10162 case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10165 esac
10166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10167 $as_echo "$ac_try_echo") >&5
10168 (eval "$ac_link") 2>conftest.er1
10169 ac_status=$?
10170 grep -v '^ *+' conftest.er1 >conftest.err
10171 rm -f conftest.er1
10172 cat conftest.err >&5
10173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } && {
10175 test -z "$ac_c_werror_flag" ||
10176 test ! -s conftest.err
10177 } && test -s conftest$ac_exeext && {
10178 test "$cross_compiling" = yes ||
10179 $as_test_x conftest$ac_exeext
10180 }; then
10181 ac_cv_func_shl_load=yes
10182 else
10183 $as_echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10186 ac_cv_func_shl_load=no
10189 rm -rf conftest.dSYM
10190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10191 conftest$ac_exeext conftest.$ac_ext
10193 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10194 $as_echo "$ac_cv_func_shl_load" >&6; }
10195 if test $ac_cv_func_shl_load = yes; then
10196 lt_cv_dlopen="shl_load"
10197 else
10198 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10199 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10200 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10201 $as_echo_n "(cached) " >&6
10202 else
10203 ac_check_lib_save_LIBS=$LIBS
10204 LIBS="-ldld $LIBS"
10205 cat >conftest.$ac_ext <<_ACEOF
10206 /* confdefs.h. */
10207 _ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10212 /* Override any GCC internal prototype to avoid an error.
10213 Use char because int might match the return type of a GCC
10214 builtin and then its argument prototype would still apply. */
10215 #ifdef __cplusplus
10216 extern "C"
10217 #endif
10218 char shl_load ();
10220 main ()
10222 return shl_load ();
10224 return 0;
10226 _ACEOF
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (ac_try="$ac_link"
10229 case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232 esac
10233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10234 $as_echo "$ac_try_echo") >&5
10235 (eval "$ac_link") 2>conftest.er1
10236 ac_status=$?
10237 grep -v '^ *+' conftest.er1 >conftest.err
10238 rm -f conftest.er1
10239 cat conftest.err >&5
10240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } && {
10242 test -z "$ac_c_werror_flag" ||
10243 test ! -s conftest.err
10244 } && test -s conftest$ac_exeext && {
10245 test "$cross_compiling" = yes ||
10246 $as_test_x conftest$ac_exeext
10247 }; then
10248 ac_cv_lib_dld_shl_load=yes
10249 else
10250 $as_echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10253 ac_cv_lib_dld_shl_load=no
10256 rm -rf conftest.dSYM
10257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10258 conftest$ac_exeext conftest.$ac_ext
10259 LIBS=$ac_check_lib_save_LIBS
10261 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10262 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10263 if test $ac_cv_lib_dld_shl_load = yes; then
10264 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10265 else
10266 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10267 $as_echo_n "checking for dlopen... " >&6; }
10268 if test "${ac_cv_func_dlopen+set}" = set; then
10269 $as_echo_n "(cached) " >&6
10270 else
10271 cat >conftest.$ac_ext <<_ACEOF
10272 /* confdefs.h. */
10273 _ACEOF
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h. */
10277 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10278 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10279 #define dlopen innocuous_dlopen
10281 /* System header to define __stub macros and hopefully few prototypes,
10282 which can conflict with char dlopen (); below.
10283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10284 <limits.h> exists even on freestanding compilers. */
10286 #ifdef __STDC__
10287 # include <limits.h>
10288 #else
10289 # include <assert.h>
10290 #endif
10292 #undef dlopen
10294 /* Override any GCC internal prototype to avoid an error.
10295 Use char because int might match the return type of a GCC
10296 builtin and then its argument prototype would still apply. */
10297 #ifdef __cplusplus
10298 extern "C"
10299 #endif
10300 char dlopen ();
10301 /* The GNU C library defines this for functions which it implements
10302 to always fail with ENOSYS. Some functions are actually named
10303 something starting with __ and the normal name is an alias. */
10304 #if defined __stub_dlopen || defined __stub___dlopen
10305 choke me
10306 #endif
10309 main ()
10311 return dlopen ();
10313 return 0;
10315 _ACEOF
10316 rm -f conftest.$ac_objext conftest$ac_exeext
10317 if { (ac_try="$ac_link"
10318 case "(($ac_try" in
10319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10320 *) ac_try_echo=$ac_try;;
10321 esac
10322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10323 $as_echo "$ac_try_echo") >&5
10324 (eval "$ac_link") 2>conftest.er1
10325 ac_status=$?
10326 grep -v '^ *+' conftest.er1 >conftest.err
10327 rm -f conftest.er1
10328 cat conftest.err >&5
10329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); } && {
10331 test -z "$ac_c_werror_flag" ||
10332 test ! -s conftest.err
10333 } && test -s conftest$ac_exeext && {
10334 test "$cross_compiling" = yes ||
10335 $as_test_x conftest$ac_exeext
10336 }; then
10337 ac_cv_func_dlopen=yes
10338 else
10339 $as_echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.$ac_ext >&5
10342 ac_cv_func_dlopen=no
10345 rm -rf conftest.dSYM
10346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10347 conftest$ac_exeext conftest.$ac_ext
10349 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10350 $as_echo "$ac_cv_func_dlopen" >&6; }
10351 if test $ac_cv_func_dlopen = yes; then
10352 lt_cv_dlopen="dlopen"
10353 else
10354 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10355 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10356 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10357 $as_echo_n "(cached) " >&6
10358 else
10359 ac_check_lib_save_LIBS=$LIBS
10360 LIBS="-ldl $LIBS"
10361 cat >conftest.$ac_ext <<_ACEOF
10362 /* confdefs.h. */
10363 _ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10368 /* Override any GCC internal prototype to avoid an error.
10369 Use char because int might match the return type of a GCC
10370 builtin and then its argument prototype would still apply. */
10371 #ifdef __cplusplus
10372 extern "C"
10373 #endif
10374 char dlopen ();
10376 main ()
10378 return dlopen ();
10380 return 0;
10382 _ACEOF
10383 rm -f conftest.$ac_objext conftest$ac_exeext
10384 if { (ac_try="$ac_link"
10385 case "(($ac_try" in
10386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10387 *) ac_try_echo=$ac_try;;
10388 esac
10389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10390 $as_echo "$ac_try_echo") >&5
10391 (eval "$ac_link") 2>conftest.er1
10392 ac_status=$?
10393 grep -v '^ *+' conftest.er1 >conftest.err
10394 rm -f conftest.er1
10395 cat conftest.err >&5
10396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } && {
10398 test -z "$ac_c_werror_flag" ||
10399 test ! -s conftest.err
10400 } && test -s conftest$ac_exeext && {
10401 test "$cross_compiling" = yes ||
10402 $as_test_x conftest$ac_exeext
10403 }; then
10404 ac_cv_lib_dl_dlopen=yes
10405 else
10406 $as_echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10409 ac_cv_lib_dl_dlopen=no
10412 rm -rf conftest.dSYM
10413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10414 conftest$ac_exeext conftest.$ac_ext
10415 LIBS=$ac_check_lib_save_LIBS
10417 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10418 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10419 if test $ac_cv_lib_dl_dlopen = yes; then
10420 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10421 else
10422 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10423 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10424 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10425 $as_echo_n "(cached) " >&6
10426 else
10427 ac_check_lib_save_LIBS=$LIBS
10428 LIBS="-lsvld $LIBS"
10429 cat >conftest.$ac_ext <<_ACEOF
10430 /* confdefs.h. */
10431 _ACEOF
10432 cat confdefs.h >>conftest.$ac_ext
10433 cat >>conftest.$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10436 /* Override any GCC internal prototype to avoid an error.
10437 Use char because int might match the return type of a GCC
10438 builtin and then its argument prototype would still apply. */
10439 #ifdef __cplusplus
10440 extern "C"
10441 #endif
10442 char dlopen ();
10444 main ()
10446 return dlopen ();
10448 return 0;
10450 _ACEOF
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10456 esac
10457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10458 $as_echo "$ac_try_echo") >&5
10459 (eval "$ac_link") 2>conftest.er1
10460 ac_status=$?
10461 grep -v '^ *+' conftest.er1 >conftest.err
10462 rm -f conftest.er1
10463 cat conftest.err >&5
10464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && {
10466 test -z "$ac_c_werror_flag" ||
10467 test ! -s conftest.err
10468 } && test -s conftest$ac_exeext && {
10469 test "$cross_compiling" = yes ||
10470 $as_test_x conftest$ac_exeext
10471 }; then
10472 ac_cv_lib_svld_dlopen=yes
10473 else
10474 $as_echo "$as_me: failed program was:" >&5
10475 sed 's/^/| /' conftest.$ac_ext >&5
10477 ac_cv_lib_svld_dlopen=no
10480 rm -rf conftest.dSYM
10481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10482 conftest$ac_exeext conftest.$ac_ext
10483 LIBS=$ac_check_lib_save_LIBS
10485 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10486 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10487 if test $ac_cv_lib_svld_dlopen = yes; then
10488 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10489 else
10490 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10491 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10492 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10493 $as_echo_n "(cached) " >&6
10494 else
10495 ac_check_lib_save_LIBS=$LIBS
10496 LIBS="-ldld $LIBS"
10497 cat >conftest.$ac_ext <<_ACEOF
10498 /* confdefs.h. */
10499 _ACEOF
10500 cat confdefs.h >>conftest.$ac_ext
10501 cat >>conftest.$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10504 /* Override any GCC internal prototype to avoid an error.
10505 Use char because int might match the return type of a GCC
10506 builtin and then its argument prototype would still apply. */
10507 #ifdef __cplusplus
10508 extern "C"
10509 #endif
10510 char dld_link ();
10512 main ()
10514 return dld_link ();
10516 return 0;
10518 _ACEOF
10519 rm -f conftest.$ac_objext conftest$ac_exeext
10520 if { (ac_try="$ac_link"
10521 case "(($ac_try" in
10522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523 *) ac_try_echo=$ac_try;;
10524 esac
10525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10526 $as_echo "$ac_try_echo") >&5
10527 (eval "$ac_link") 2>conftest.er1
10528 ac_status=$?
10529 grep -v '^ *+' conftest.er1 >conftest.err
10530 rm -f conftest.er1
10531 cat conftest.err >&5
10532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } && {
10534 test -z "$ac_c_werror_flag" ||
10535 test ! -s conftest.err
10536 } && test -s conftest$ac_exeext && {
10537 test "$cross_compiling" = yes ||
10538 $as_test_x conftest$ac_exeext
10539 }; then
10540 ac_cv_lib_dld_dld_link=yes
10541 else
10542 $as_echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10545 ac_cv_lib_dld_dld_link=no
10548 rm -rf conftest.dSYM
10549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10550 conftest$ac_exeext conftest.$ac_ext
10551 LIBS=$ac_check_lib_save_LIBS
10553 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10554 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10555 if test $ac_cv_lib_dld_dld_link = yes; then
10556 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10575 esac
10577 if test "x$lt_cv_dlopen" != xno; then
10578 enable_dlopen=yes
10579 else
10580 enable_dlopen=no
10583 case $lt_cv_dlopen in
10584 dlopen)
10585 save_CPPFLAGS="$CPPFLAGS"
10586 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10588 save_LDFLAGS="$LDFLAGS"
10589 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10591 save_LIBS="$LIBS"
10592 LIBS="$lt_cv_dlopen_libs $LIBS"
10594 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10595 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10596 if test "${lt_cv_dlopen_self+set}" = set; then
10597 $as_echo_n "(cached) " >&6
10598 else
10599 if test "$cross_compiling" = yes; then :
10600 lt_cv_dlopen_self=cross
10601 else
10602 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10603 lt_status=$lt_dlunknown
10604 cat > conftest.$ac_ext <<_LT_EOF
10605 #line 10605 "configure"
10606 #include "confdefs.h"
10608 #if HAVE_DLFCN_H
10609 #include <dlfcn.h>
10610 #endif
10612 #include <stdio.h>
10614 #ifdef RTLD_GLOBAL
10615 # define LT_DLGLOBAL RTLD_GLOBAL
10616 #else
10617 # ifdef DL_GLOBAL
10618 # define LT_DLGLOBAL DL_GLOBAL
10619 # else
10620 # define LT_DLGLOBAL 0
10621 # endif
10622 #endif
10624 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10625 find out it does not work in some platform. */
10626 #ifndef LT_DLLAZY_OR_NOW
10627 # ifdef RTLD_LAZY
10628 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10629 # else
10630 # ifdef DL_LAZY
10631 # define LT_DLLAZY_OR_NOW DL_LAZY
10632 # else
10633 # ifdef RTLD_NOW
10634 # define LT_DLLAZY_OR_NOW RTLD_NOW
10635 # else
10636 # ifdef DL_NOW
10637 # define LT_DLLAZY_OR_NOW DL_NOW
10638 # else
10639 # define LT_DLLAZY_OR_NOW 0
10640 # endif
10641 # endif
10642 # endif
10643 # endif
10644 #endif
10646 #ifdef __cplusplus
10647 extern "C" void exit (int);
10648 #endif
10650 void fnord() { int i=42;}
10651 int main ()
10653 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10654 int status = $lt_dlunknown;
10656 if (self)
10658 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10659 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10660 /* dlclose (self); */
10662 else
10663 puts (dlerror ());
10665 exit (status);
10667 _LT_EOF
10668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10669 (eval $ac_link) 2>&5
10670 ac_status=$?
10671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10673 (./conftest; exit; ) >&5 2>/dev/null
10674 lt_status=$?
10675 case x$lt_status in
10676 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10677 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10678 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10679 esac
10680 else :
10681 # compilation failed
10682 lt_cv_dlopen_self=no
10685 rm -fr conftest*
10689 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10690 $as_echo "$lt_cv_dlopen_self" >&6; }
10692 if test "x$lt_cv_dlopen_self" = xyes; then
10693 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10694 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10695 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10696 if test "${lt_cv_dlopen_self_static+set}" = set; then
10697 $as_echo_n "(cached) " >&6
10698 else
10699 if test "$cross_compiling" = yes; then :
10700 lt_cv_dlopen_self_static=cross
10701 else
10702 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10703 lt_status=$lt_dlunknown
10704 cat > conftest.$ac_ext <<_LT_EOF
10705 #line 10705 "configure"
10706 #include "confdefs.h"
10708 #if HAVE_DLFCN_H
10709 #include <dlfcn.h>
10710 #endif
10712 #include <stdio.h>
10714 #ifdef RTLD_GLOBAL
10715 # define LT_DLGLOBAL RTLD_GLOBAL
10716 #else
10717 # ifdef DL_GLOBAL
10718 # define LT_DLGLOBAL DL_GLOBAL
10719 # else
10720 # define LT_DLGLOBAL 0
10721 # endif
10722 #endif
10724 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10725 find out it does not work in some platform. */
10726 #ifndef LT_DLLAZY_OR_NOW
10727 # ifdef RTLD_LAZY
10728 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10729 # else
10730 # ifdef DL_LAZY
10731 # define LT_DLLAZY_OR_NOW DL_LAZY
10732 # else
10733 # ifdef RTLD_NOW
10734 # define LT_DLLAZY_OR_NOW RTLD_NOW
10735 # else
10736 # ifdef DL_NOW
10737 # define LT_DLLAZY_OR_NOW DL_NOW
10738 # else
10739 # define LT_DLLAZY_OR_NOW 0
10740 # endif
10741 # endif
10742 # endif
10743 # endif
10744 #endif
10746 #ifdef __cplusplus
10747 extern "C" void exit (int);
10748 #endif
10750 void fnord() { int i=42;}
10751 int main ()
10753 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10754 int status = $lt_dlunknown;
10756 if (self)
10758 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10759 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10760 /* dlclose (self); */
10762 else
10763 puts (dlerror ());
10765 exit (status);
10767 _LT_EOF
10768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10769 (eval $ac_link) 2>&5
10770 ac_status=$?
10771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10773 (./conftest; exit; ) >&5 2>/dev/null
10774 lt_status=$?
10775 case x$lt_status in
10776 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10777 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10778 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10779 esac
10780 else :
10781 # compilation failed
10782 lt_cv_dlopen_self_static=no
10785 rm -fr conftest*
10789 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10790 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10793 CPPFLAGS="$save_CPPFLAGS"
10794 LDFLAGS="$save_LDFLAGS"
10795 LIBS="$save_LIBS"
10797 esac
10799 case $lt_cv_dlopen_self in
10800 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10801 *) enable_dlopen_self=unknown ;;
10802 esac
10804 case $lt_cv_dlopen_self_static in
10805 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10806 *) enable_dlopen_self_static=unknown ;;
10807 esac
10826 striplib=
10827 old_striplib=
10828 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10829 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10830 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10831 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10832 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10833 { $as_echo "$as_me:$LINENO: result: yes" >&5
10834 $as_echo "yes" >&6; }
10835 else
10836 # FIXME - insert some real tests, host_os isn't really good enough
10837 case $host_os in
10838 darwin*)
10839 if test -n "$STRIP" ; then
10840 striplib="$STRIP -x"
10841 old_striplib="$STRIP -S"
10842 { $as_echo "$as_me:$LINENO: result: yes" >&5
10843 $as_echo "yes" >&6; }
10844 else
10845 { $as_echo "$as_me:$LINENO: result: no" >&5
10846 $as_echo "no" >&6; }
10850 { $as_echo "$as_me:$LINENO: result: no" >&5
10851 $as_echo "no" >&6; }
10853 esac
10867 # Report which library types will actually be built
10868 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10869 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10870 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10871 $as_echo "$can_build_shared" >&6; }
10873 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10874 $as_echo_n "checking whether to build shared libraries... " >&6; }
10875 test "$can_build_shared" = "no" && enable_shared=no
10877 # On AIX, shared libraries and static libraries use the same namespace, and
10878 # are all built from PIC.
10879 case $host_os in
10880 aix3*)
10881 test "$enable_shared" = yes && enable_static=no
10882 if test -n "$RANLIB"; then
10883 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10884 postinstall_cmds='$RANLIB $lib'
10888 aix[4-9]*)
10889 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10890 test "$enable_shared" = yes && enable_static=no
10893 esac
10894 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10895 $as_echo "$enable_shared" >&6; }
10897 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10898 $as_echo_n "checking whether to build static libraries... " >&6; }
10899 # Make sure either enable_shared or enable_static is yes.
10900 test "$enable_shared" = yes || enable_static=yes
10901 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10902 $as_echo "$enable_static" >&6; }
10908 ac_ext=c
10909 ac_cpp='$CPP $CPPFLAGS'
10910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10914 CC="$lt_save_CC"
10928 ac_config_commands="$ac_config_commands libtool"
10933 # Only expand once:
10937 # e_ident[EI_DATA] = ELFDATA2LSB = 1 if little_endian
10938 # e_ident[EI_DATA] = ELFDATA2MSB = 2 if big_endian
10940 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10941 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10942 if test "${ac_cv_c_bigendian+set}" = set; then
10943 $as_echo_n "(cached) " >&6
10944 else
10945 ac_cv_c_bigendian=unknown
10947 if test $ac_cv_c_bigendian = unknown; then
10948 # See if sys/param.h defines the BYTE_ORDER macro.
10949 cat >conftest.$ac_ext <<_ACEOF
10950 /* confdefs.h. */
10951 _ACEOF
10952 cat confdefs.h >>conftest.$ac_ext
10953 cat >>conftest.$ac_ext <<_ACEOF
10954 /* end confdefs.h. */
10955 #include <sys/types.h>
10956 #include <sys/param.h>
10959 main ()
10961 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10962 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10963 && LITTLE_ENDIAN)
10964 bogus endian macros
10965 #endif
10968 return 0;
10970 _ACEOF
10971 rm -f conftest.$ac_objext
10972 if { (ac_try="$ac_compile"
10973 case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10976 esac
10977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10978 $as_echo "$ac_try_echo") >&5
10979 (eval "$ac_compile") 2>conftest.er1
10980 ac_status=$?
10981 grep -v '^ *+' conftest.er1 >conftest.err
10982 rm -f conftest.er1
10983 cat conftest.err >&5
10984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } && {
10986 test -z "$ac_c_werror_flag" ||
10987 test ! -s conftest.err
10988 } && test -s conftest.$ac_objext; then
10989 # It does; now see whether it defined to BIG_ENDIAN or not.
10990 cat >conftest.$ac_ext <<_ACEOF
10991 /* confdefs.h. */
10992 _ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
10996 #include <sys/types.h>
10997 #include <sys/param.h>
11000 main ()
11002 #if BYTE_ORDER != BIG_ENDIAN
11003 not big endian
11004 #endif
11007 return 0;
11009 _ACEOF
11010 rm -f conftest.$ac_objext
11011 if { (ac_try="$ac_compile"
11012 case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11015 esac
11016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11017 $as_echo "$ac_try_echo") >&5
11018 (eval "$ac_compile") 2>conftest.er1
11019 ac_status=$?
11020 grep -v '^ *+' conftest.er1 >conftest.err
11021 rm -f conftest.er1
11022 cat conftest.err >&5
11023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } && {
11025 test -z "$ac_c_werror_flag" ||
11026 test ! -s conftest.err
11027 } && test -s conftest.$ac_objext; then
11028 ac_cv_c_bigendian=yes
11029 else
11030 $as_echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11033 ac_cv_c_bigendian=no
11036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11037 else
11038 $as_echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11046 if test $ac_cv_c_bigendian = unknown; then
11047 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11048 cat >conftest.$ac_ext <<_ACEOF
11049 /* confdefs.h. */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11054 #include <limits.h>
11057 main ()
11059 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11060 bogus endian macros
11061 #endif
11064 return 0;
11066 _ACEOF
11067 rm -f conftest.$ac_objext
11068 if { (ac_try="$ac_compile"
11069 case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11072 esac
11073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11074 $as_echo "$ac_try_echo") >&5
11075 (eval "$ac_compile") 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } && {
11082 test -z "$ac_c_werror_flag" ||
11083 test ! -s conftest.err
11084 } && test -s conftest.$ac_objext; then
11085 # It does; now see whether it defined to _BIG_ENDIAN or not.
11086 cat >conftest.$ac_ext <<_ACEOF
11087 /* confdefs.h. */
11088 _ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11092 #include <limits.h>
11095 main ()
11097 #ifndef _BIG_ENDIAN
11098 not big endian
11099 #endif
11102 return 0;
11104 _ACEOF
11105 rm -f conftest.$ac_objext
11106 if { (ac_try="$ac_compile"
11107 case "(($ac_try" in
11108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11109 *) ac_try_echo=$ac_try;;
11110 esac
11111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11112 $as_echo "$ac_try_echo") >&5
11113 (eval "$ac_compile") 2>conftest.er1
11114 ac_status=$?
11115 grep -v '^ *+' conftest.er1 >conftest.err
11116 rm -f conftest.er1
11117 cat conftest.err >&5
11118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119 (exit $ac_status); } && {
11120 test -z "$ac_c_werror_flag" ||
11121 test ! -s conftest.err
11122 } && test -s conftest.$ac_objext; then
11123 ac_cv_c_bigendian=yes
11124 else
11125 $as_echo "$as_me: failed program was:" >&5
11126 sed 's/^/| /' conftest.$ac_ext >&5
11128 ac_cv_c_bigendian=no
11131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11132 else
11133 $as_echo "$as_me: failed program was:" >&5
11134 sed 's/^/| /' conftest.$ac_ext >&5
11139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11141 if test $ac_cv_c_bigendian = unknown; then
11142 # Compile a test program.
11143 if test "$cross_compiling" = yes; then
11144 # Try to guess by grepping values from an object file.
11145 cat >conftest.$ac_ext <<_ACEOF
11146 /* confdefs.h. */
11147 _ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h. */
11151 short int ascii_mm[] =
11152 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11153 short int ascii_ii[] =
11154 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11155 int use_ascii (int i) {
11156 return ascii_mm[i] + ascii_ii[i];
11158 short int ebcdic_ii[] =
11159 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11160 short int ebcdic_mm[] =
11161 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11162 int use_ebcdic (int i) {
11163 return ebcdic_mm[i] + ebcdic_ii[i];
11165 extern int foo;
11168 main ()
11170 return use_ascii (foo) == use_ebcdic (foo);
11172 return 0;
11174 _ACEOF
11175 rm -f conftest.$ac_objext
11176 if { (ac_try="$ac_compile"
11177 case "(($ac_try" in
11178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179 *) ac_try_echo=$ac_try;;
11180 esac
11181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11182 $as_echo "$ac_try_echo") >&5
11183 (eval "$ac_compile") 2>conftest.er1
11184 ac_status=$?
11185 grep -v '^ *+' conftest.er1 >conftest.err
11186 rm -f conftest.er1
11187 cat conftest.err >&5
11188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } && {
11190 test -z "$ac_c_werror_flag" ||
11191 test ! -s conftest.err
11192 } && test -s conftest.$ac_objext; then
11193 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11194 ac_cv_c_bigendian=yes
11196 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11197 if test "$ac_cv_c_bigendian" = unknown; then
11198 ac_cv_c_bigendian=no
11199 else
11200 # finding both strings is unlikely to happen, but who knows?
11201 ac_cv_c_bigendian=unknown
11204 else
11205 $as_echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.$ac_ext >&5
11211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11212 else
11213 cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h. */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219 $ac_includes_default
11221 main ()
11224 /* Are we little or big endian? From Harbison&Steele. */
11225 union
11227 long int l;
11228 char c[sizeof (long int)];
11229 } u;
11230 u.l = 1;
11231 return u.c[sizeof (long int) - 1] == 1;
11234 return 0;
11236 _ACEOF
11237 rm -f conftest$ac_exeext
11238 if { (ac_try="$ac_link"
11239 case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11242 esac
11243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11244 $as_echo "$ac_try_echo") >&5
11245 (eval "$ac_link") 2>&5
11246 ac_status=$?
11247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11249 { (case "(($ac_try" in
11250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251 *) ac_try_echo=$ac_try;;
11252 esac
11253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11254 $as_echo "$ac_try_echo") >&5
11255 (eval "$ac_try") 2>&5
11256 ac_status=$?
11257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }; }; then
11259 ac_cv_c_bigendian=no
11260 else
11261 $as_echo "$as_me: program exited with status $ac_status" >&5
11262 $as_echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 ( exit $ac_status )
11266 ac_cv_c_bigendian=yes
11268 rm -rf conftest.dSYM
11269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11275 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11276 $as_echo "$ac_cv_c_bigendian" >&6; }
11277 case $ac_cv_c_bigendian in #(
11278 yes)
11279 cat >>confdefs.h <<\_ACEOF
11280 #define HOST_ENDIANNESS 2
11281 _ACEOF
11282 ;; #(
11284 cat >>confdefs.h <<\_ACEOF
11285 #define HOST_ENDIANNESS 1
11286 _ACEOF
11287 ;; #(
11288 universal)
11289 ;; #(
11291 { { $as_echo "$as_me:$LINENO: error: unknown endianness
11292 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11293 $as_echo "$as_me: error: unknown endianness
11294 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11295 { (exit 1); exit 1; }; } ;;
11296 esac
11299 # Check whether --enable-local-libelf was given.
11300 if test "${enable_local_libelf+set}" = set; then
11301 enableval=$enable_local_libelf;
11305 if test "x${enable_local_libelf}" != xno; then
11306 OPT_LIBELF_FLAGS_TRUE=
11307 OPT_LIBELF_FLAGS_FALSE='#'
11308 else
11309 OPT_LIBELF_FLAGS_TRUE='#'
11310 OPT_LIBELF_FLAGS_FALSE=
11313 if test "x${enable_local_libelf}" != xno; then
11314 if test "x$CONFIG_SITE" != x; then
11315 if test ! -d libelf; then
11316 mkdir libelf
11318 cd libelf
11319 if test ! -f $CONFIG_SITE; then
11320 { { $as_echo "$as_me:$LINENO: error: expected an absolute file name for \$CONFIG_SITE" >&5
11321 $as_echo "$as_me: error: expected an absolute file name for \$CONFIG_SITE" >&2;}
11322 { (exit 1); exit 1; }; }
11324 cd -
11328 subdirs="$subdirs libelf"
11330 OPT_LIBELF="libelf"
11334 ac_config_files="$ac_config_files Makefile"
11336 cat >confcache <<\_ACEOF
11337 # This file is a shell script that caches the results of configure
11338 # tests run on this system so they can be shared between configure
11339 # scripts and configure runs, see configure's option --config-cache.
11340 # It is not useful on other systems. If it contains results you don't
11341 # want to keep, you may remove or edit it.
11343 # config.status only pays attention to the cache file if you give it
11344 # the --recheck option to rerun configure.
11346 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11347 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11348 # following values.
11350 _ACEOF
11352 # The following way of writing the cache mishandles newlines in values,
11353 # but we know of no workaround that is simple, portable, and efficient.
11354 # So, we kill variables containing newlines.
11355 # Ultrix sh set writes to stderr and can't be redirected directly,
11356 # and sets the high bit in the cache file unless we assign to the vars.
11358 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11359 eval ac_val=\$$ac_var
11360 case $ac_val in #(
11361 *${as_nl}*)
11362 case $ac_var in #(
11363 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11364 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11365 esac
11366 case $ac_var in #(
11367 _ | IFS | as_nl) ;; #(
11368 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11369 *) $as_unset $ac_var ;;
11370 esac ;;
11371 esac
11372 done
11374 (set) 2>&1 |
11375 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11376 *${as_nl}ac_space=\ *)
11377 # `set' does not quote correctly, so add quotes (double-quote
11378 # substitution turns \\\\ into \\, and sed turns \\ into \).
11379 sed -n \
11380 "s/'/'\\\\''/g;
11381 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11382 ;; #(
11384 # `set' quotes correctly as required by POSIX, so do not add quotes.
11385 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11387 esac |
11388 sort
11390 sed '
11391 /^ac_cv_env_/b end
11392 t clear
11393 :clear
11394 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11395 t end
11396 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11397 :end' >>confcache
11398 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11399 if test -w "$cache_file"; then
11400 test "x$cache_file" != "x/dev/null" &&
11401 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11402 $as_echo "$as_me: updating cache $cache_file" >&6;}
11403 cat confcache >$cache_file
11404 else
11405 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11406 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11409 rm -f confcache
11411 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11412 # Let make expand exec_prefix.
11413 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11415 # Transform confdefs.h into DEFS.
11416 # Protect against shell expansion while executing Makefile rules.
11417 # Protect against Makefile macro expansion.
11419 # If the first sed substitution is executed (which looks for macros that
11420 # take arguments), then branch to the quote section. Otherwise,
11421 # look for a macro that doesn't take arguments.
11422 ac_script='
11423 :mline
11424 /\\$/{
11426 s,\\\n,,
11427 b mline
11429 t clear
11430 :clear
11431 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11432 t quote
11433 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11434 t quote
11435 b any
11436 :quote
11437 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11438 s/\[/\\&/g
11439 s/\]/\\&/g
11440 s/\$/$$/g
11442 :any
11445 s/^\n//
11446 s/\n/ /g
11450 DEFS=`sed -n "$ac_script" confdefs.h`
11453 ac_libobjs=
11454 ac_ltlibobjs=
11455 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11456 # 1. Remove the extension, and $U if already installed.
11457 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11458 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11459 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11460 # will be set to the directory where LIBOBJS objects are built.
11461 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11462 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11463 done
11464 LIBOBJS=$ac_libobjs
11466 LTLIBOBJS=$ac_ltlibobjs
11469 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11470 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11471 Usually this means the macro was only invoked conditionally." >&5
11472 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11473 Usually this means the macro was only invoked conditionally." >&2;}
11474 { (exit 1); exit 1; }; }
11476 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11477 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11478 Usually this means the macro was only invoked conditionally." >&5
11479 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11480 Usually this means the macro was only invoked conditionally." >&2;}
11481 { (exit 1); exit 1; }; }
11483 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11484 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11485 Usually this means the macro was only invoked conditionally." >&5
11486 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11487 Usually this means the macro was only invoked conditionally." >&2;}
11488 { (exit 1); exit 1; }; }
11490 if test -z "${OPT_LIBELF_FLAGS_TRUE}" && test -z "${OPT_LIBELF_FLAGS_FALSE}"; then
11491 { { $as_echo "$as_me:$LINENO: error: conditional \"OPT_LIBELF_FLAGS\" was never defined.
11492 Usually this means the macro was only invoked conditionally." >&5
11493 $as_echo "$as_me: error: conditional \"OPT_LIBELF_FLAGS\" was never defined.
11494 Usually this means the macro was only invoked conditionally." >&2;}
11495 { (exit 1); exit 1; }; }
11498 : ${CONFIG_STATUS=./config.status}
11499 ac_write_fail=0
11500 ac_clean_files_save=$ac_clean_files
11501 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11502 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11503 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11504 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11505 #! $SHELL
11506 # Generated by $as_me.
11507 # Run this file to recreate the current configuration.
11508 # Compiler output produced by configure, useful for debugging
11509 # configure, is in config.log if it exists.
11511 debug=false
11512 ac_cs_recheck=false
11513 ac_cs_silent=false
11514 SHELL=\${CONFIG_SHELL-$SHELL}
11515 _ACEOF
11517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11518 ## --------------------- ##
11519 ## M4sh Initialization. ##
11520 ## --------------------- ##
11522 # Be more Bourne compatible
11523 DUALCASE=1; export DUALCASE # for MKS sh
11524 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11525 emulate sh
11526 NULLCMD=:
11527 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11528 # is contrary to our usage. Disable this feature.
11529 alias -g '${1+"$@"}'='"$@"'
11530 setopt NO_GLOB_SUBST
11531 else
11532 case `(set -o) 2>/dev/null` in
11533 *posix*) set -o posix ;;
11534 esac
11541 # PATH needs CR
11542 # Avoid depending upon Character Ranges.
11543 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11544 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11545 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11546 as_cr_digits='0123456789'
11547 as_cr_alnum=$as_cr_Letters$as_cr_digits
11549 as_nl='
11551 export as_nl
11552 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11553 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11554 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11555 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11556 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11557 as_echo='printf %s\n'
11558 as_echo_n='printf %s'
11559 else
11560 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11561 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11562 as_echo_n='/usr/ucb/echo -n'
11563 else
11564 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11565 as_echo_n_body='eval
11566 arg=$1;
11567 case $arg in
11568 *"$as_nl"*)
11569 expr "X$arg" : "X\\(.*\\)$as_nl";
11570 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11571 esac;
11572 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11574 export as_echo_n_body
11575 as_echo_n='sh -c $as_echo_n_body as_echo'
11577 export as_echo_body
11578 as_echo='sh -c $as_echo_body as_echo'
11581 # The user is always right.
11582 if test "${PATH_SEPARATOR+set}" != set; then
11583 PATH_SEPARATOR=:
11584 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11585 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11586 PATH_SEPARATOR=';'
11590 # Support unset when possible.
11591 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11592 as_unset=unset
11593 else
11594 as_unset=false
11598 # IFS
11599 # We need space, tab and new line, in precisely that order. Quoting is
11600 # there to prevent editors from complaining about space-tab.
11601 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11602 # splitting by setting IFS to empty value.)
11603 IFS=" "" $as_nl"
11605 # Find who we are. Look in the path if we contain no directory separator.
11606 case $0 in
11607 *[\\/]* ) as_myself=$0 ;;
11608 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609 for as_dir in $PATH
11611 IFS=$as_save_IFS
11612 test -z "$as_dir" && as_dir=.
11613 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11614 done
11615 IFS=$as_save_IFS
11618 esac
11619 # We did not find ourselves, most probably we were run as `sh COMMAND'
11620 # in which case we are not to be found in the path.
11621 if test "x$as_myself" = x; then
11622 as_myself=$0
11624 if test ! -f "$as_myself"; then
11625 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11626 { (exit 1); exit 1; }
11629 # Work around bugs in pre-3.0 UWIN ksh.
11630 for as_var in ENV MAIL MAILPATH
11631 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11632 done
11633 PS1='$ '
11634 PS2='> '
11635 PS4='+ '
11637 # NLS nuisances.
11638 LC_ALL=C
11639 export LC_ALL
11640 LANGUAGE=C
11641 export LANGUAGE
11643 # Required to use basename.
11644 if expr a : '\(a\)' >/dev/null 2>&1 &&
11645 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11646 as_expr=expr
11647 else
11648 as_expr=false
11651 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11652 as_basename=basename
11653 else
11654 as_basename=false
11658 # Name of the executable.
11659 as_me=`$as_basename -- "$0" ||
11660 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11661 X"$0" : 'X\(//\)$' \| \
11662 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11663 $as_echo X/"$0" |
11664 sed '/^.*\/\([^/][^/]*\)\/*$/{
11665 s//\1/
11668 /^X\/\(\/\/\)$/{
11669 s//\1/
11672 /^X\/\(\/\).*/{
11673 s//\1/
11676 s/.*/./; q'`
11678 # CDPATH.
11679 $as_unset CDPATH
11683 as_lineno_1=$LINENO
11684 as_lineno_2=$LINENO
11685 test "x$as_lineno_1" != "x$as_lineno_2" &&
11686 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11688 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11689 # uniformly replaced by the line number. The first 'sed' inserts a
11690 # line-number line after each line using $LINENO; the second 'sed'
11691 # does the real work. The second script uses 'N' to pair each
11692 # line-number line with the line containing $LINENO, and appends
11693 # trailing '-' during substitution so that $LINENO is not a special
11694 # case at line end.
11695 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11696 # scripts with optimization help from Paolo Bonzini. Blame Lee
11697 # E. McMahon (1931-1989) for sed's syntax. :-)
11698 sed -n '
11700 /[$]LINENO/=
11701 ' <$as_myself |
11702 sed '
11703 s/[$]LINENO.*/&-/
11704 t lineno
11706 :lineno
11708 :loop
11709 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11710 t loop
11711 s/-\n.*//
11712 ' >$as_me.lineno &&
11713 chmod +x "$as_me.lineno" ||
11714 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11715 { (exit 1); exit 1; }; }
11717 # Don't try to exec as it changes $[0], causing all sort of problems
11718 # (the dirname of $[0] is not the place where we might find the
11719 # original and so on. Autoconf is especially sensitive to this).
11720 . "./$as_me.lineno"
11721 # Exit status is that of the last command.
11722 exit
11726 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11727 as_dirname=dirname
11728 else
11729 as_dirname=false
11732 ECHO_C= ECHO_N= ECHO_T=
11733 case `echo -n x` in
11734 -n*)
11735 case `echo 'x\c'` in
11736 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11737 *) ECHO_C='\c';;
11738 esac;;
11740 ECHO_N='-n';;
11741 esac
11742 if expr a : '\(a\)' >/dev/null 2>&1 &&
11743 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11744 as_expr=expr
11745 else
11746 as_expr=false
11749 rm -f conf$$ conf$$.exe conf$$.file
11750 if test -d conf$$.dir; then
11751 rm -f conf$$.dir/conf$$.file
11752 else
11753 rm -f conf$$.dir
11754 mkdir conf$$.dir 2>/dev/null
11756 if (echo >conf$$.file) 2>/dev/null; then
11757 if ln -s conf$$.file conf$$ 2>/dev/null; then
11758 as_ln_s='ln -s'
11759 # ... but there are two gotchas:
11760 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11761 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11762 # In both cases, we have to default to `cp -p'.
11763 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11764 as_ln_s='cp -p'
11765 elif ln conf$$.file conf$$ 2>/dev/null; then
11766 as_ln_s=ln
11767 else
11768 as_ln_s='cp -p'
11770 else
11771 as_ln_s='cp -p'
11773 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11774 rmdir conf$$.dir 2>/dev/null
11776 if mkdir -p . 2>/dev/null; then
11777 as_mkdir_p=:
11778 else
11779 test -d ./-p && rmdir ./-p
11780 as_mkdir_p=false
11783 if test -x / >/dev/null 2>&1; then
11784 as_test_x='test -x'
11785 else
11786 if ls -dL / >/dev/null 2>&1; then
11787 as_ls_L_option=L
11788 else
11789 as_ls_L_option=
11791 as_test_x='
11792 eval sh -c '\''
11793 if test -d "$1"; then
11794 test -d "$1/.";
11795 else
11796 case $1 in
11797 -*)set "./$1";;
11798 esac;
11799 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11800 ???[sx]*):;;*)false;;esac;fi
11801 '\'' sh
11804 as_executable_p=$as_test_x
11806 # Sed expression to map a string onto a valid CPP name.
11807 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11809 # Sed expression to map a string onto a valid variable name.
11810 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11813 exec 6>&1
11815 # Save the log message, to keep $[0] and so on meaningful, and to
11816 # report actual input values of CONFIG_FILES etc. instead of their
11817 # values after options handling.
11818 ac_log="
11819 This file was extended by libmeminfo $as_me 0.1, which was
11820 generated by GNU Autoconf 2.62. Invocation command line was
11822 CONFIG_FILES = $CONFIG_FILES
11823 CONFIG_HEADERS = $CONFIG_HEADERS
11824 CONFIG_LINKS = $CONFIG_LINKS
11825 CONFIG_COMMANDS = $CONFIG_COMMANDS
11826 $ $0 $@
11828 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11831 _ACEOF
11833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11834 # Files that config.status was made for.
11835 config_files="$ac_config_files"
11836 config_commands="$ac_config_commands"
11838 _ACEOF
11840 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11841 ac_cs_usage="\
11842 \`$as_me' instantiates files from templates according to the
11843 current configuration.
11845 Usage: $0 [OPTIONS] [FILE]...
11847 -h, --help print this help, then exit
11848 -V, --version print version number and configuration settings, then exit
11849 -q, --quiet do not print progress messages
11850 -d, --debug don't remove temporary files
11851 --recheck update $as_me by reconfiguring in the same conditions
11852 --file=FILE[:TEMPLATE]
11853 instantiate the configuration file FILE
11855 Configuration files:
11856 $config_files
11858 Configuration commands:
11859 $config_commands
11861 Report bugs to <bug-autoconf@gnu.org>."
11863 _ACEOF
11864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11865 ac_cs_version="\\
11866 libmeminfo config.status 0.1
11867 configured by $0, generated by GNU Autoconf 2.62,
11868 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11870 Copyright (C) 2008 Free Software Foundation, Inc.
11871 This config.status script is free software; the Free Software Foundation
11872 gives unlimited permission to copy, distribute and modify it."
11874 ac_pwd='$ac_pwd'
11875 srcdir='$srcdir'
11876 INSTALL='$INSTALL'
11877 MKDIR_P='$MKDIR_P'
11878 AWK='$AWK'
11879 test -n "\$AWK" || AWK=awk
11880 _ACEOF
11882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11883 # The default lists apply if the user does not specify any file.
11884 ac_need_defaults=:
11885 while test $# != 0
11887 case $1 in
11888 --*=*)
11889 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11890 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11891 ac_shift=:
11894 ac_option=$1
11895 ac_optarg=$2
11896 ac_shift=shift
11898 esac
11900 case $ac_option in
11901 # Handling of the options.
11902 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11903 ac_cs_recheck=: ;;
11904 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11905 $as_echo "$ac_cs_version"; exit ;;
11906 --debug | --debu | --deb | --de | --d | -d )
11907 debug=: ;;
11908 --file | --fil | --fi | --f )
11909 $ac_shift
11910 case $ac_optarg in
11911 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11912 esac
11913 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
11914 ac_need_defaults=false;;
11915 --he | --h | --help | --hel | -h )
11916 $as_echo "$ac_cs_usage"; exit ;;
11917 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11918 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11919 ac_cs_silent=: ;;
11921 # This is an error.
11922 -*) { $as_echo "$as_me: error: unrecognized option: $1
11923 Try \`$0 --help' for more information." >&2
11924 { (exit 1); exit 1; }; } ;;
11926 *) ac_config_targets="$ac_config_targets $1"
11927 ac_need_defaults=false ;;
11929 esac
11930 shift
11931 done
11933 ac_configure_extra_args=
11935 if $ac_cs_silent; then
11936 exec 6>/dev/null
11937 ac_configure_extra_args="$ac_configure_extra_args --silent"
11940 _ACEOF
11941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11942 if \$ac_cs_recheck; then
11943 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11944 shift
11945 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11946 CONFIG_SHELL='$SHELL'
11947 export CONFIG_SHELL
11948 exec "\$@"
11951 _ACEOF
11952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11953 exec 5>>config.log
11955 echo
11956 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11957 ## Running $as_me. ##
11958 _ASBOX
11959 $as_echo "$ac_log"
11960 } >&5
11962 _ACEOF
11963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11965 # INIT-COMMANDS
11967 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11970 # The HP-UX ksh and POSIX shell print the target directory to stdout
11971 # if CDPATH is set.
11972 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11974 sed_quote_subst='$sed_quote_subst'
11975 double_quote_subst='$double_quote_subst'
11976 delay_variable_subst='$delay_variable_subst'
11977 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11978 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11979 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11980 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11981 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11982 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11983 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11984 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11985 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11986 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11987 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11988 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11989 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11990 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11991 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11992 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11993 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11994 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11995 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11996 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11997 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11998 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11999 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12000 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12001 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12002 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12003 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12004 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12005 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12006 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12007 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12008 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12009 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12010 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12011 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12012 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12013 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12014 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12015 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12016 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12017 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12018 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12019 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12020 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12021 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12022 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12023 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12024 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12025 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12026 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12027 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12028 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12029 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12030 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12031 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12032 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12033 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12034 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12035 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12036 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12037 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12038 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12039 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12040 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12041 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12042 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12043 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12044 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12045 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12046 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12047 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12048 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12049 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12050 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12051 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12052 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12053 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12054 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12055 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12056 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12057 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12058 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12059 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12060 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12061 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12062 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12063 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12064 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12065 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12066 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12067 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12068 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12069 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12070 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12071 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12072 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12073 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12074 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12075 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12076 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12077 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12078 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12079 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12080 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12081 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12082 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12083 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12084 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12085 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12086 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12087 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12088 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12089 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12090 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12091 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12092 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12093 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12095 LTCC='$LTCC'
12096 LTCFLAGS='$LTCFLAGS'
12097 compiler='$compiler_DEFAULT'
12099 # Quote evaled strings.
12100 for var in SED \
12101 GREP \
12102 EGREP \
12103 FGREP \
12104 LD \
12105 NM \
12106 LN_S \
12107 lt_SP2NL \
12108 lt_NL2SP \
12109 reload_flag \
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 SHELL \
12124 ECHO \
12125 lt_prog_compiler_no_builtin_flag \
12126 lt_prog_compiler_wl \
12127 lt_prog_compiler_pic \
12128 lt_prog_compiler_static \
12129 lt_cv_prog_compiler_c_o \
12130 need_locks \
12131 DSYMUTIL \
12132 NMEDIT \
12133 LIPO \
12134 OTOOL \
12135 OTOOL64 \
12136 shrext_cmds \
12137 export_dynamic_flag_spec \
12138 whole_archive_flag_spec \
12139 compiler_needs_object \
12140 with_gnu_ld \
12141 allow_undefined_flag \
12142 no_undefined_flag \
12143 hardcode_libdir_flag_spec \
12144 hardcode_libdir_flag_spec_ld \
12145 hardcode_libdir_separator \
12146 fix_srcfile_path \
12147 exclude_expsyms \
12148 include_expsyms \
12149 file_list_spec \
12150 variables_saved_for_relink \
12151 libname_spec \
12152 library_names_spec \
12153 soname_spec \
12154 finish_eval \
12155 old_striplib \
12156 striplib; do
12157 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12158 *[\\\\\\\`\\"\\\$]*)
12159 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12162 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12164 esac
12165 done
12167 # Double-quote double-evaled strings.
12168 for var in reload_cmds \
12169 old_postinstall_cmds \
12170 old_postuninstall_cmds \
12171 old_archive_cmds \
12172 extract_expsyms_cmds \
12173 old_archive_from_new_cmds \
12174 old_archive_from_expsyms_cmds \
12175 archive_cmds \
12176 archive_expsym_cmds \
12177 module_cmds \
12178 module_expsym_cmds \
12179 export_symbols_cmds \
12180 prelink_cmds \
12181 postinstall_cmds \
12182 postuninstall_cmds \
12183 finish_cmds \
12184 sys_lib_search_path_spec \
12185 sys_lib_dlsearch_path_spec; do
12186 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12187 *[\\\\\\\`\\"\\\$]*)
12188 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12191 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12193 esac
12194 done
12196 # Fix-up fallback echo if it was mangled by the above quoting rules.
12197 case \$lt_ECHO in
12198 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12200 esac
12202 ac_aux_dir='$ac_aux_dir'
12203 xsi_shell='$xsi_shell'
12204 lt_shell_append='$lt_shell_append'
12206 # See if we are running on zsh, and set the options which allow our
12207 # commands through without removal of \ escapes INIT.
12208 if test -n "\${ZSH_VERSION+set}" ; then
12209 setopt NO_GLOB_SUBST
12213 PACKAGE='$PACKAGE'
12214 VERSION='$VERSION'
12215 TIMESTAMP='$TIMESTAMP'
12216 RM='$RM'
12217 ofile='$ofile'
12222 _ACEOF
12224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12226 # Handling of arguments.
12227 for ac_config_target in $ac_config_targets
12229 case $ac_config_target in
12230 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12231 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12232 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12234 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12235 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12236 { (exit 1); exit 1; }; };;
12237 esac
12238 done
12241 # If the user did not use the arguments to specify the items to instantiate,
12242 # then the envvar interface is used. Set only those that are not.
12243 # We use the long form for the default assignment because of an extremely
12244 # bizarre bug on SunOS 4.1.3.
12245 if $ac_need_defaults; then
12246 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12247 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12250 # Have a temporary directory for convenience. Make it in the build tree
12251 # simply because there is no reason against having it here, and in addition,
12252 # creating and moving files from /tmp can sometimes cause problems.
12253 # Hook for its removal unless debugging.
12254 # Note that there is a small window in which the directory will not be cleaned:
12255 # after its creation but before its name has been assigned to `$tmp'.
12256 $debug ||
12258 tmp=
12259 trap 'exit_status=$?
12260 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12262 trap '{ (exit 1); exit 1; }' 1 2 13 15
12264 # Create a (secure) tmp directory for tmp files.
12267 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12268 test -n "$tmp" && test -d "$tmp"
12269 } ||
12271 tmp=./conf$$-$RANDOM
12272 (umask 077 && mkdir "$tmp")
12273 } ||
12275 $as_echo "$as_me: cannot create a temporary directory in ." >&2
12276 { (exit 1); exit 1; }
12279 # Set up the scripts for CONFIG_FILES section.
12280 # No need to generate them if there are no CONFIG_FILES.
12281 # This happens for instance with `./config.status config.h'.
12282 if test -n "$CONFIG_FILES"; then
12285 ac_cr=' '
12286 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12287 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12288 ac_cs_awk_cr='\\r'
12289 else
12290 ac_cs_awk_cr=$ac_cr
12293 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12294 _ACEOF
12298 echo "cat >conf$$subs.awk <<_ACEOF" &&
12299 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12300 echo "_ACEOF"
12301 } >conf$$subs.sh ||
12302 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12303 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12304 { (exit 1); exit 1; }; }
12305 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12306 ac_delim='%!_!# '
12307 for ac_last_try in false false false false false :; do
12308 . ./conf$$subs.sh ||
12309 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12310 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12311 { (exit 1); exit 1; }; }
12313 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
12314 break
12315 elif $ac_last_try; then
12316 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12317 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12318 { (exit 1); exit 1; }; }
12319 else
12320 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12322 done
12323 rm -f conf$$subs.sh
12325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12326 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12327 _ACEOF
12328 sed -n '
12330 s/^/S["/; s/!.*/"]=/
12333 s/^[^!]*!//
12334 :repl
12335 t repl
12336 s/'"$ac_delim"'$//
12337 t delim
12340 s/\(.\{148\}\).*/\1/
12341 t more1
12342 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12345 b repl
12346 :more1
12347 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12350 s/.\{148\}//
12351 t nl
12352 :delim
12354 s/\(.\{148\}\).*/\1/
12355 t more2
12356 s/["\\]/\\&/g; s/^/"/; s/$/"/
12359 :more2
12360 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12363 s/.\{148\}//
12364 t delim
12365 ' <conf$$subs.awk | sed '
12366 /^[^""]/{
12368 s/\n//
12370 ' >>$CONFIG_STATUS || ac_write_fail=1
12371 rm -f conf$$subs.awk
12372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12373 _ACAWK
12374 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12375 for (key in S) S_is_set[key] = 1
12376 FS = "\a"
12380 line = $ 0
12381 nfields = split(line, field, "@")
12382 substed = 0
12383 len = length(field[1])
12384 for (i = 2; i < nfields; i++) {
12385 key = field[i]
12386 keylen = length(key)
12387 if (S_is_set[key]) {
12388 value = S[key]
12389 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12390 len += length(value) + length(field[++i])
12391 substed = 1
12392 } else
12393 len += 1 + keylen
12396 print line
12399 _ACAWK
12400 _ACEOF
12401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12402 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12403 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12404 else
12406 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12407 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12408 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
12409 { (exit 1); exit 1; }; }
12410 _ACEOF
12412 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12413 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12414 # trailing colons and then remove the whole line if VPATH becomes empty
12415 # (actually we leave an empty line to preserve line numbers).
12416 if test "x$srcdir" = x.; then
12417 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12418 s/:*\$(srcdir):*/:/
12419 s/:*\${srcdir}:*/:/
12420 s/:*@srcdir@:*/:/
12421 s/^\([^=]*=[ ]*\):*/\1/
12422 s/:*$//
12423 s/^[^=]*=[ ]*$//
12427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12428 fi # test -n "$CONFIG_FILES"
12431 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12432 shift
12433 for ac_tag
12435 case $ac_tag in
12436 :[FHLC]) ac_mode=$ac_tag; continue;;
12437 esac
12438 case $ac_mode$ac_tag in
12439 :[FHL]*:*);;
12440 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12441 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12442 { (exit 1); exit 1; }; };;
12443 :[FH]-) ac_tag=-:-;;
12444 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12445 esac
12446 ac_save_IFS=$IFS
12447 IFS=:
12448 set x $ac_tag
12449 IFS=$ac_save_IFS
12450 shift
12451 ac_file=$1
12452 shift
12454 case $ac_mode in
12455 :L) ac_source=$1;;
12456 :[FH])
12457 ac_file_inputs=
12458 for ac_f
12460 case $ac_f in
12461 -) ac_f="$tmp/stdin";;
12462 *) # Look for the file first in the build tree, then in the source tree
12463 # (if the path is not absolute). The absolute path cannot be DOS-style,
12464 # because $ac_f cannot contain `:'.
12465 test -f "$ac_f" ||
12466 case $ac_f in
12467 [\\/$]*) false;;
12468 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12469 esac ||
12470 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12471 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12472 { (exit 1); exit 1; }; };;
12473 esac
12474 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12475 ac_file_inputs="$ac_file_inputs '$ac_f'"
12476 done
12478 # Let's still pretend it is `configure' which instantiates (i.e., don't
12479 # use $as_me), people would be surprised to read:
12480 # /* config.h. Generated by config.status. */
12481 configure_input='Generated from '`
12482 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12483 `' by configure.'
12484 if test x"$ac_file" != x-; then
12485 configure_input="$ac_file. $configure_input"
12486 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12487 $as_echo "$as_me: creating $ac_file" >&6;}
12489 # Neutralize special characters interpreted by sed in replacement strings.
12490 case $configure_input in #(
12491 *\&* | *\|* | *\\* )
12492 ac_sed_conf_input=`$as_echo "$configure_input" |
12493 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12494 *) ac_sed_conf_input=$configure_input;;
12495 esac
12497 case $ac_tag in
12498 *:-:* | *:-) cat >"$tmp/stdin" \
12499 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12500 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12501 { (exit 1); exit 1; }; } ;;
12502 esac
12504 esac
12506 ac_dir=`$as_dirname -- "$ac_file" ||
12507 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12508 X"$ac_file" : 'X\(//\)[^/]' \| \
12509 X"$ac_file" : 'X\(//\)$' \| \
12510 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12511 $as_echo X"$ac_file" |
12512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12513 s//\1/
12516 /^X\(\/\/\)[^/].*/{
12517 s//\1/
12520 /^X\(\/\/\)$/{
12521 s//\1/
12524 /^X\(\/\).*/{
12525 s//\1/
12528 s/.*/./; q'`
12529 { as_dir="$ac_dir"
12530 case $as_dir in #(
12531 -*) as_dir=./$as_dir;;
12532 esac
12533 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12534 as_dirs=
12535 while :; do
12536 case $as_dir in #(
12537 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12538 *) as_qdir=$as_dir;;
12539 esac
12540 as_dirs="'$as_qdir' $as_dirs"
12541 as_dir=`$as_dirname -- "$as_dir" ||
12542 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12543 X"$as_dir" : 'X\(//\)[^/]' \| \
12544 X"$as_dir" : 'X\(//\)$' \| \
12545 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12546 $as_echo X"$as_dir" |
12547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12548 s//\1/
12551 /^X\(\/\/\)[^/].*/{
12552 s//\1/
12555 /^X\(\/\/\)$/{
12556 s//\1/
12559 /^X\(\/\).*/{
12560 s//\1/
12563 s/.*/./; q'`
12564 test -d "$as_dir" && break
12565 done
12566 test -z "$as_dirs" || eval "mkdir $as_dirs"
12567 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12568 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12569 { (exit 1); exit 1; }; }; }
12570 ac_builddir=.
12572 case "$ac_dir" in
12573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12575 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12576 # A ".." for each directory in $ac_dir_suffix.
12577 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12578 case $ac_top_builddir_sub in
12579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12581 esac ;;
12582 esac
12583 ac_abs_top_builddir=$ac_pwd
12584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12585 # for backward compatibility:
12586 ac_top_builddir=$ac_top_build_prefix
12588 case $srcdir in
12589 .) # We are building in place.
12590 ac_srcdir=.
12591 ac_top_srcdir=$ac_top_builddir_sub
12592 ac_abs_top_srcdir=$ac_pwd ;;
12593 [\\/]* | ?:[\\/]* ) # Absolute name.
12594 ac_srcdir=$srcdir$ac_dir_suffix;
12595 ac_top_srcdir=$srcdir
12596 ac_abs_top_srcdir=$srcdir ;;
12597 *) # Relative name.
12598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12599 ac_top_srcdir=$ac_top_build_prefix$srcdir
12600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12601 esac
12602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12605 case $ac_mode in
12608 # CONFIG_FILE
12611 case $INSTALL in
12612 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12613 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12614 esac
12615 ac_MKDIR_P=$MKDIR_P
12616 case $MKDIR_P in
12617 [\\/$]* | ?:[\\/]* ) ;;
12618 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12619 esac
12620 _ACEOF
12622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12623 # If the template does not know about datarootdir, expand it.
12624 # FIXME: This hack should be removed a few years after 2.60.
12625 ac_datarootdir_hack=; ac_datarootdir_seen=
12627 ac_sed_dataroot='
12628 /datarootdir/ {
12632 /@datadir@/p
12633 /@docdir@/p
12634 /@infodir@/p
12635 /@localedir@/p
12636 /@mandir@/p
12638 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12639 *datarootdir*) ac_datarootdir_seen=yes;;
12640 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12641 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12642 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12643 _ACEOF
12644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12645 ac_datarootdir_hack='
12646 s&@datadir@&$datadir&g
12647 s&@docdir@&$docdir&g
12648 s&@infodir@&$infodir&g
12649 s&@localedir@&$localedir&g
12650 s&@mandir@&$mandir&g
12651 s&\\\${datarootdir}&$datarootdir&g' ;;
12652 esac
12653 _ACEOF
12655 # Neutralize VPATH when `$srcdir' = `.'.
12656 # Shell code in configure.ac might set extrasub.
12657 # FIXME: do we really want to maintain this feature?
12658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12659 ac_sed_extra="$ac_vpsub
12660 $extrasub
12661 _ACEOF
12662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12664 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12665 s|@configure_input@|$ac_sed_conf_input|;t t
12666 s&@top_builddir@&$ac_top_builddir_sub&;t t
12667 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12668 s&@srcdir@&$ac_srcdir&;t t
12669 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12670 s&@top_srcdir@&$ac_top_srcdir&;t t
12671 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12672 s&@builddir@&$ac_builddir&;t t
12673 s&@abs_builddir@&$ac_abs_builddir&;t t
12674 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12675 s&@INSTALL@&$ac_INSTALL&;t t
12676 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12677 $ac_datarootdir_hack
12679 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12680 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12681 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12682 { (exit 1); exit 1; }; }
12684 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12685 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12686 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12687 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12688 which seems to be undefined. Please make sure it is defined." >&5
12689 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12690 which seems to be undefined. Please make sure it is defined." >&2;}
12692 rm -f "$tmp/stdin"
12693 case $ac_file in
12694 -) cat "$tmp/out" && rm -f "$tmp/out";;
12695 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12696 esac \
12697 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12698 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12699 { (exit 1); exit 1; }; }
12703 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
12704 $as_echo "$as_me: executing $ac_file commands" >&6;}
12706 esac
12709 case $ac_file$ac_mode in
12710 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12711 # Strip MF so we end up with the name of the file.
12712 mf=`echo "$mf" | sed -e 's/:.*$//'`
12713 # Check whether this is an Automake generated Makefile or not.
12714 # We used to match only the files named `Makefile.in', but
12715 # some people rename them; so instead we look at the file content.
12716 # Grep'ing the first line is not enough: some people post-process
12717 # each Makefile.in and add a new line on top of each file to say so.
12718 # Grep'ing the whole file is not good either: AIX grep has a line
12719 # limit of 2048, but all sed's we know have understand at least 4000.
12720 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12721 dirpart=`$as_dirname -- "$mf" ||
12722 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12723 X"$mf" : 'X\(//\)[^/]' \| \
12724 X"$mf" : 'X\(//\)$' \| \
12725 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12726 $as_echo X"$mf" |
12727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12728 s//\1/
12731 /^X\(\/\/\)[^/].*/{
12732 s//\1/
12735 /^X\(\/\/\)$/{
12736 s//\1/
12739 /^X\(\/\).*/{
12740 s//\1/
12743 s/.*/./; q'`
12744 else
12745 continue
12747 # Extract the definition of DEPDIR, am__include, and am__quote
12748 # from the Makefile without running `make'.
12749 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12750 test -z "$DEPDIR" && continue
12751 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12752 test -z "am__include" && continue
12753 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12754 # When using ansi2knr, U may be empty or an underscore; expand it
12755 U=`sed -n 's/^U = //p' < "$mf"`
12756 # Find all dependency output files, they are included files with
12757 # $(DEPDIR) in their names. We invoke sed twice because it is the
12758 # simplest approach to changing $(DEPDIR) to its actual value in the
12759 # expansion.
12760 for file in `sed -n "
12761 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12762 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12763 # Make sure the directory exists.
12764 test -f "$dirpart/$file" && continue
12765 fdir=`$as_dirname -- "$file" ||
12766 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12767 X"$file" : 'X\(//\)[^/]' \| \
12768 X"$file" : 'X\(//\)$' \| \
12769 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12770 $as_echo X"$file" |
12771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12772 s//\1/
12775 /^X\(\/\/\)[^/].*/{
12776 s//\1/
12779 /^X\(\/\/\)$/{
12780 s//\1/
12783 /^X\(\/\).*/{
12784 s//\1/
12787 s/.*/./; q'`
12788 { as_dir=$dirpart/$fdir
12789 case $as_dir in #(
12790 -*) as_dir=./$as_dir;;
12791 esac
12792 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12793 as_dirs=
12794 while :; do
12795 case $as_dir in #(
12796 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12797 *) as_qdir=$as_dir;;
12798 esac
12799 as_dirs="'$as_qdir' $as_dirs"
12800 as_dir=`$as_dirname -- "$as_dir" ||
12801 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12802 X"$as_dir" : 'X\(//\)[^/]' \| \
12803 X"$as_dir" : 'X\(//\)$' \| \
12804 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12805 $as_echo X"$as_dir" |
12806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12807 s//\1/
12810 /^X\(\/\/\)[^/].*/{
12811 s//\1/
12814 /^X\(\/\/\)$/{
12815 s//\1/
12818 /^X\(\/\).*/{
12819 s//\1/
12822 s/.*/./; q'`
12823 test -d "$as_dir" && break
12824 done
12825 test -z "$as_dirs" || eval "mkdir $as_dirs"
12826 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12827 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12828 { (exit 1); exit 1; }; }; }
12829 # echo "creating $dirpart/$file"
12830 echo '# dummy' > "$dirpart/$file"
12831 done
12832 done
12834 "libtool":C)
12836 # See if we are running on zsh, and set the options which allow our
12837 # commands through without removal of \ escapes.
12838 if test -n "${ZSH_VERSION+set}" ; then
12839 setopt NO_GLOB_SUBST
12842 cfgfile="${ofile}T"
12843 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12844 $RM "$cfgfile"
12846 cat <<_LT_EOF >> "$cfgfile"
12847 #! $SHELL
12849 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12850 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12851 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12852 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12854 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12855 # 2006, 2007, 2008 Free Software Foundation, Inc.
12856 # Written by Gordon Matzigkeit, 1996
12858 # This file is part of GNU Libtool.
12860 # GNU Libtool is free software; you can redistribute it and/or
12861 # modify it under the terms of the GNU General Public License as
12862 # published by the Free Software Foundation; either version 2 of
12863 # the License, or (at your option) any later version.
12865 # As a special exception to the GNU General Public License,
12866 # if you distribute this file as part of a program or library that
12867 # is built using GNU Libtool, you may include this file under the
12868 # same distribution terms that you use for the rest of that program.
12870 # GNU Libtool is distributed in the hope that it will be useful,
12871 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12872 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12873 # GNU General Public License for more details.
12875 # You should have received a copy of the GNU General Public License
12876 # along with GNU Libtool; see the file COPYING. If not, a copy
12877 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12878 # obtained by writing to the Free Software Foundation, Inc.,
12879 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12882 # The names of the tagged configurations supported by this script.
12883 available_tags=""
12885 # ### BEGIN LIBTOOL CONFIG
12887 # Which release of libtool.m4 was used?
12888 macro_version=$macro_version
12889 macro_revision=$macro_revision
12891 # Whether or not to build shared libraries.
12892 build_libtool_libs=$enable_shared
12894 # Whether or not to build static libraries.
12895 build_old_libs=$enable_static
12897 # What type of objects to build.
12898 pic_mode=$pic_mode
12900 # Whether or not to optimize for fast installation.
12901 fast_install=$enable_fast_install
12903 # The host system.
12904 host_alias=$host_alias
12905 host=$host
12906 host_os=$host_os
12908 # The build system.
12909 build_alias=$build_alias
12910 build=$build
12911 build_os=$build_os
12913 # A sed program that does not truncate output.
12914 SED=$lt_SED
12916 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12917 Xsed="\$SED -e 1s/^X//"
12919 # A grep program that handles long lines.
12920 GREP=$lt_GREP
12922 # An ERE matcher.
12923 EGREP=$lt_EGREP
12925 # A literal string matcher.
12926 FGREP=$lt_FGREP
12928 # A BSD- or MS-compatible name lister.
12929 NM=$lt_NM
12931 # Whether we need soft or hard links.
12932 LN_S=$lt_LN_S
12934 # What is the maximum length of a command?
12935 max_cmd_len=$max_cmd_len
12937 # Object file suffix (normally "o").
12938 objext=$ac_objext
12940 # Executable file suffix (normally "").
12941 exeext=$exeext
12943 # whether the shell understands "unset".
12944 lt_unset=$lt_unset
12946 # turn spaces into newlines.
12947 SP2NL=$lt_lt_SP2NL
12949 # turn newlines into spaces.
12950 NL2SP=$lt_lt_NL2SP
12952 # How to create reloadable object files.
12953 reload_flag=$lt_reload_flag
12954 reload_cmds=$lt_reload_cmds
12956 # Method to check whether dependent libraries are shared objects.
12957 deplibs_check_method=$lt_deplibs_check_method
12959 # Command to use when deplibs_check_method == "file_magic".
12960 file_magic_cmd=$lt_file_magic_cmd
12962 # The archiver.
12963 AR=$lt_AR
12964 AR_FLAGS=$lt_AR_FLAGS
12966 # A symbol stripping program.
12967 STRIP=$lt_STRIP
12969 # Commands used to install an old-style archive.
12970 RANLIB=$lt_RANLIB
12971 old_postinstall_cmds=$lt_old_postinstall_cmds
12972 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12974 # A C compiler.
12975 LTCC=$lt_CC
12977 # LTCC compiler flags.
12978 LTCFLAGS=$lt_CFLAGS
12980 # Take the output of nm and produce a listing of raw symbols and C names.
12981 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12983 # Transform the output of nm in a proper C declaration.
12984 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12986 # Transform the output of nm in a C name address pair.
12987 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12989 # Transform the output of nm in a C name address pair when lib prefix is needed.
12990 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12992 # The name of the directory that contains temporary libtool files.
12993 objdir=$objdir
12995 # Shell to use when invoking shell scripts.
12996 SHELL=$lt_SHELL
12998 # An echo program that does not interpret backslashes.
12999 ECHO=$lt_ECHO
13001 # Used to examine libraries when file_magic_cmd begins with "file".
13002 MAGIC_CMD=$MAGIC_CMD
13004 # Must we lock files when doing compilation?
13005 need_locks=$lt_need_locks
13007 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13008 DSYMUTIL=$lt_DSYMUTIL
13010 # Tool to change global to local symbols on Mac OS X.
13011 NMEDIT=$lt_NMEDIT
13013 # Tool to manipulate fat objects and archives on Mac OS X.
13014 LIPO=$lt_LIPO
13016 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13017 OTOOL=$lt_OTOOL
13019 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13020 OTOOL64=$lt_OTOOL64
13022 # Old archive suffix (normally "a").
13023 libext=$libext
13025 # Shared library suffix (normally ".so").
13026 shrext_cmds=$lt_shrext_cmds
13028 # The commands to extract the exported symbol list from a shared archive.
13029 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13031 # Variables whose values should be saved in libtool wrapper scripts and
13032 # restored at link time.
13033 variables_saved_for_relink=$lt_variables_saved_for_relink
13035 # Do we need the "lib" prefix for modules?
13036 need_lib_prefix=$need_lib_prefix
13038 # Do we need a version for libraries?
13039 need_version=$need_version
13041 # Library versioning type.
13042 version_type=$version_type
13044 # Shared library runtime path variable.
13045 runpath_var=$runpath_var
13047 # Shared library path variable.
13048 shlibpath_var=$shlibpath_var
13050 # Is shlibpath searched before the hard-coded library search path?
13051 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13053 # Format of library name prefix.
13054 libname_spec=$lt_libname_spec
13056 # List of archive names. First name is the real one, the rest are links.
13057 # The last name is the one that the linker finds with -lNAME
13058 library_names_spec=$lt_library_names_spec
13060 # The coded name of the library, if different from the real name.
13061 soname_spec=$lt_soname_spec
13063 # Command to use after installation of a shared archive.
13064 postinstall_cmds=$lt_postinstall_cmds
13066 # Command to use after uninstallation of a shared archive.
13067 postuninstall_cmds=$lt_postuninstall_cmds
13069 # Commands used to finish a libtool library installation in a directory.
13070 finish_cmds=$lt_finish_cmds
13072 # As "finish_cmds", except a single script fragment to be evaled but
13073 # not shown.
13074 finish_eval=$lt_finish_eval
13076 # Whether we should hardcode library paths into libraries.
13077 hardcode_into_libs=$hardcode_into_libs
13079 # Compile-time system search path for libraries.
13080 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13082 # Run-time system search path for libraries.
13083 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13085 # Whether dlopen is supported.
13086 dlopen_support=$enable_dlopen
13088 # Whether dlopen of programs is supported.
13089 dlopen_self=$enable_dlopen_self
13091 # Whether dlopen of statically linked programs is supported.
13092 dlopen_self_static=$enable_dlopen_self_static
13094 # Commands to strip libraries.
13095 old_striplib=$lt_old_striplib
13096 striplib=$lt_striplib
13099 # The linker used to build libraries.
13100 LD=$lt_LD
13102 # Commands used to build an old-style archive.
13103 old_archive_cmds=$lt_old_archive_cmds
13105 # A language specific compiler.
13106 CC=$lt_compiler
13108 # Is the compiler the GNU compiler?
13109 with_gcc=$GCC
13111 # Compiler flag to turn off builtin functions.
13112 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13114 # How to pass a linker flag through the compiler.
13115 wl=$lt_lt_prog_compiler_wl
13117 # Additional compiler flags for building library objects.
13118 pic_flag=$lt_lt_prog_compiler_pic
13120 # Compiler flag to prevent dynamic linking.
13121 link_static_flag=$lt_lt_prog_compiler_static
13123 # Does compiler simultaneously support -c and -o options?
13124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13126 # Whether or not to add -lc for building shared libraries.
13127 build_libtool_need_lc=$archive_cmds_need_lc
13129 # Whether or not to disallow shared libs when runtime libs are static.
13130 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13132 # Compiler flag to allow reflexive dlopens.
13133 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13135 # Compiler flag to generate shared objects directly from archives.
13136 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13138 # Whether the compiler copes with passing no objects directly.
13139 compiler_needs_object=$lt_compiler_needs_object
13141 # Create an old-style archive from a shared archive.
13142 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13144 # Create a temporary old-style archive to link instead of a shared archive.
13145 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13147 # Commands used to build a shared archive.
13148 archive_cmds=$lt_archive_cmds
13149 archive_expsym_cmds=$lt_archive_expsym_cmds
13151 # Commands used to build a loadable module if different from building
13152 # a shared archive.
13153 module_cmds=$lt_module_cmds
13154 module_expsym_cmds=$lt_module_expsym_cmds
13156 # Whether we are building with GNU ld or not.
13157 with_gnu_ld=$lt_with_gnu_ld
13159 # Flag that allows shared libraries with undefined symbols to be built.
13160 allow_undefined_flag=$lt_allow_undefined_flag
13162 # Flag that enforces no undefined symbols.
13163 no_undefined_flag=$lt_no_undefined_flag
13165 # Flag to hardcode \$libdir into a binary during linking.
13166 # This must work even if \$libdir does not exist
13167 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13169 # If ld is used when linking, flag to hardcode \$libdir into a binary
13170 # during linking. This must work even if \$libdir does not exist.
13171 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13173 # Whether we need a single "-rpath" flag with a separated argument.
13174 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13176 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13177 # DIR into the resulting binary.
13178 hardcode_direct=$hardcode_direct
13180 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13181 # DIR into the resulting binary and the resulting library dependency is
13182 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13183 # library is relocated.
13184 hardcode_direct_absolute=$hardcode_direct_absolute
13186 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13187 # into the resulting binary.
13188 hardcode_minus_L=$hardcode_minus_L
13190 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13191 # into the resulting binary.
13192 hardcode_shlibpath_var=$hardcode_shlibpath_var
13194 # Set to "yes" if building a shared library automatically hardcodes DIR
13195 # into the library and all subsequent libraries and executables linked
13196 # against it.
13197 hardcode_automatic=$hardcode_automatic
13199 # Set to yes if linker adds runtime paths of dependent libraries
13200 # to runtime path list.
13201 inherit_rpath=$inherit_rpath
13203 # Whether libtool must link a program against all its dependency libraries.
13204 link_all_deplibs=$link_all_deplibs
13206 # Fix the shell variable \$srcfile for the compiler.
13207 fix_srcfile_path=$lt_fix_srcfile_path
13209 # Set to "yes" if exported symbols are required.
13210 always_export_symbols=$always_export_symbols
13212 # The commands to list exported symbols.
13213 export_symbols_cmds=$lt_export_symbols_cmds
13215 # Symbols that should not be listed in the preloaded symbols.
13216 exclude_expsyms=$lt_exclude_expsyms
13218 # Symbols that must always be exported.
13219 include_expsyms=$lt_include_expsyms
13221 # Commands necessary for linking programs (against libraries) with templates.
13222 prelink_cmds=$lt_prelink_cmds
13224 # Specify filename containing input files.
13225 file_list_spec=$lt_file_list_spec
13227 # How to hardcode a shared library path into an executable.
13228 hardcode_action=$hardcode_action
13230 # ### END LIBTOOL CONFIG
13232 _LT_EOF
13234 case $host_os in
13235 aix3*)
13236 cat <<\_LT_EOF >> "$cfgfile"
13237 # AIX sometimes has problems with the GCC collect2 program. For some
13238 # reason, if we set the COLLECT_NAMES environment variable, the problems
13239 # vanish in a puff of smoke.
13240 if test "X${COLLECT_NAMES+set}" != Xset; then
13241 COLLECT_NAMES=
13242 export COLLECT_NAMES
13244 _LT_EOF
13246 esac
13249 ltmain="$ac_aux_dir/ltmain.sh"
13252 # We use sed instead of cat because bash on DJGPP gets confused if
13253 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13254 # text mode, it properly converts lines to CR/LF. This bash problem
13255 # is reportedly fixed, but why not run on old versions too?
13256 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13257 || (rm -f "$cfgfile"; exit 1)
13259 case $xsi_shell in
13260 yes)
13261 cat << \_LT_EOF >> "$cfgfile"
13263 # func_dirname file append nondir_replacement
13264 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13265 # otherwise set result to NONDIR_REPLACEMENT.
13266 func_dirname ()
13268 case ${1} in
13269 */*) func_dirname_result="${1%/*}${2}" ;;
13270 * ) func_dirname_result="${3}" ;;
13271 esac
13274 # func_basename file
13275 func_basename ()
13277 func_basename_result="${1##*/}"
13280 # func_dirname_and_basename file append nondir_replacement
13281 # perform func_basename and func_dirname in a single function
13282 # call:
13283 # dirname: Compute the dirname of FILE. If nonempty,
13284 # add APPEND to the result, otherwise set result
13285 # to NONDIR_REPLACEMENT.
13286 # value returned in "$func_dirname_result"
13287 # basename: Compute filename of FILE.
13288 # value retuned in "$func_basename_result"
13289 # Implementation must be kept synchronized with func_dirname
13290 # and func_basename. For efficiency, we do not delegate to
13291 # those functions but instead duplicate the functionality here.
13292 func_dirname_and_basename ()
13294 case ${1} in
13295 */*) func_dirname_result="${1%/*}${2}" ;;
13296 * ) func_dirname_result="${3}" ;;
13297 esac
13298 func_basename_result="${1##*/}"
13301 # func_stripname prefix suffix name
13302 # strip PREFIX and SUFFIX off of NAME.
13303 # PREFIX and SUFFIX must not contain globbing or regex special
13304 # characters, hashes, percent signs, but SUFFIX may contain a leading
13305 # dot (in which case that matches only a dot).
13306 func_stripname ()
13308 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13309 # positional parameters, so assign one to ordinary parameter first.
13310 func_stripname_result=${3}
13311 func_stripname_result=${func_stripname_result#"${1}"}
13312 func_stripname_result=${func_stripname_result%"${2}"}
13315 # func_opt_split
13316 func_opt_split ()
13318 func_opt_split_opt=${1%%=*}
13319 func_opt_split_arg=${1#*=}
13322 # func_lo2o object
13323 func_lo2o ()
13325 case ${1} in
13326 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13327 *) func_lo2o_result=${1} ;;
13328 esac
13331 # func_xform libobj-or-source
13332 func_xform ()
13334 func_xform_result=${1%.*}.lo
13337 # func_arith arithmetic-term...
13338 func_arith ()
13340 func_arith_result=$(( $* ))
13343 # func_len string
13344 # STRING may not start with a hyphen.
13345 func_len ()
13347 func_len_result=${#1}
13350 _LT_EOF
13352 *) # Bourne compatible functions.
13353 cat << \_LT_EOF >> "$cfgfile"
13355 # func_dirname file append nondir_replacement
13356 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13357 # otherwise set result to NONDIR_REPLACEMENT.
13358 func_dirname ()
13360 # Extract subdirectory from the argument.
13361 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13362 if test "X$func_dirname_result" = "X${1}"; then
13363 func_dirname_result="${3}"
13364 else
13365 func_dirname_result="$func_dirname_result${2}"
13369 # func_basename file
13370 func_basename ()
13372 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13376 # func_stripname prefix suffix name
13377 # strip PREFIX and SUFFIX off of NAME.
13378 # PREFIX and SUFFIX must not contain globbing or regex special
13379 # characters, hashes, percent signs, but SUFFIX may contain a leading
13380 # dot (in which case that matches only a dot).
13381 # func_strip_suffix prefix name
13382 func_stripname ()
13384 case ${2} in
13385 .*) func_stripname_result=`$ECHO "X${3}" \
13386 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13387 *) func_stripname_result=`$ECHO "X${3}" \
13388 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13389 esac
13392 # sed scripts:
13393 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13394 my_sed_long_arg='1s/^-[^=]*=//'
13396 # func_opt_split
13397 func_opt_split ()
13399 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13400 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13403 # func_lo2o object
13404 func_lo2o ()
13406 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13409 # func_xform libobj-or-source
13410 func_xform ()
13412 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13415 # func_arith arithmetic-term...
13416 func_arith ()
13418 func_arith_result=`expr "$@"`
13421 # func_len string
13422 # STRING may not start with a hyphen.
13423 func_len ()
13425 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13428 _LT_EOF
13429 esac
13431 case $lt_shell_append in
13432 yes)
13433 cat << \_LT_EOF >> "$cfgfile"
13435 # func_append var value
13436 # Append VALUE to the end of shell variable VAR.
13437 func_append ()
13439 eval "$1+=\$2"
13441 _LT_EOF
13444 cat << \_LT_EOF >> "$cfgfile"
13446 # func_append var value
13447 # Append VALUE to the end of shell variable VAR.
13448 func_append ()
13450 eval "$1=\$$1\$2"
13453 _LT_EOF
13455 esac
13458 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13459 || (rm -f "$cfgfile"; exit 1)
13461 mv -f "$cfgfile" "$ofile" ||
13462 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13463 chmod +x "$ofile"
13467 esac
13468 done # for ac_tag
13471 { (exit 0); exit 0; }
13472 _ACEOF
13473 chmod +x $CONFIG_STATUS
13474 ac_clean_files=$ac_clean_files_save
13476 test $ac_write_fail = 0 ||
13477 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13478 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13479 { (exit 1); exit 1; }; }
13482 # configure is writing to config.log, and then calls config.status.
13483 # config.status does its own redirection, appending to config.log.
13484 # Unfortunately, on DOS this fails, as config.log is still kept open
13485 # by configure, so config.status won't be able to write to it; its
13486 # output is simply discarded. So we exec the FD to /dev/null,
13487 # effectively closing config.log, so it can be properly (re)opened and
13488 # appended to by config.status. When coming back to configure, we
13489 # need to make the FD available again.
13490 if test "$no_create" != yes; then
13491 ac_cs_success=:
13492 ac_config_status_args=
13493 test "$silent" = yes &&
13494 ac_config_status_args="$ac_config_status_args --quiet"
13495 exec 5>/dev/null
13496 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13497 exec 5>>config.log
13498 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13499 # would make configure fail if this is the last instruction.
13500 $ac_cs_success || { (exit 1); exit 1; }
13504 # CONFIG_SUBDIRS section.
13506 if test "$no_recursion" != yes; then
13508 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
13509 # so they do not pile up.
13510 ac_sub_configure_args=
13511 ac_prev=
13512 eval "set x $ac_configure_args"
13513 shift
13514 for ac_arg
13516 if test -n "$ac_prev"; then
13517 ac_prev=
13518 continue
13520 case $ac_arg in
13521 -cache-file | --cache-file | --cache-fil | --cache-fi \
13522 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
13523 ac_prev=cache_file ;;
13524 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
13525 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
13526 | --c=*)
13528 --config-cache | -C)
13530 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
13531 ac_prev=srcdir ;;
13532 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13534 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
13535 ac_prev=prefix ;;
13536 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13538 --disable-option-checking)
13541 case $ac_arg in
13542 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13543 esac
13544 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
13545 esac
13546 done
13548 # Always prepend --prefix to ensure using the same prefix
13549 # in subdir configurations.
13550 ac_arg="--prefix=$prefix"
13551 case $ac_arg in
13552 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13553 esac
13554 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
13556 # Pass --silent
13557 if test "$silent" = yes; then
13558 ac_sub_configure_args="--silent $ac_sub_configure_args"
13561 # Always prepend --disable-option-checking to silence warnings, since
13562 # different subdirs can have different --enable and --with options.
13563 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
13565 ac_popdir=`pwd`
13566 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
13568 # Do not complain, so a configure script can configure whichever
13569 # parts of a large source tree are present.
13570 test -d "$srcdir/$ac_dir" || continue
13572 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
13573 $as_echo "$as_me:$LINENO: $ac_msg" >&5
13574 $as_echo "$ac_msg" >&6
13575 { as_dir="$ac_dir"
13576 case $as_dir in #(
13577 -*) as_dir=./$as_dir;;
13578 esac
13579 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13580 as_dirs=
13581 while :; do
13582 case $as_dir in #(
13583 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13584 *) as_qdir=$as_dir;;
13585 esac
13586 as_dirs="'$as_qdir' $as_dirs"
13587 as_dir=`$as_dirname -- "$as_dir" ||
13588 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13589 X"$as_dir" : 'X\(//\)[^/]' \| \
13590 X"$as_dir" : 'X\(//\)$' \| \
13591 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13592 $as_echo X"$as_dir" |
13593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13594 s//\1/
13597 /^X\(\/\/\)[^/].*/{
13598 s//\1/
13601 /^X\(\/\/\)$/{
13602 s//\1/
13605 /^X\(\/\).*/{
13606 s//\1/
13609 s/.*/./; q'`
13610 test -d "$as_dir" && break
13611 done
13612 test -z "$as_dirs" || eval "mkdir $as_dirs"
13613 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13614 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13615 { (exit 1); exit 1; }; }; }
13616 ac_builddir=.
13618 case "$ac_dir" in
13619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13622 # A ".." for each directory in $ac_dir_suffix.
13623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13624 case $ac_top_builddir_sub in
13625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13627 esac ;;
13628 esac
13629 ac_abs_top_builddir=$ac_pwd
13630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13631 # for backward compatibility:
13632 ac_top_builddir=$ac_top_build_prefix
13634 case $srcdir in
13635 .) # We are building in place.
13636 ac_srcdir=.
13637 ac_top_srcdir=$ac_top_builddir_sub
13638 ac_abs_top_srcdir=$ac_pwd ;;
13639 [\\/]* | ?:[\\/]* ) # Absolute name.
13640 ac_srcdir=$srcdir$ac_dir_suffix;
13641 ac_top_srcdir=$srcdir
13642 ac_abs_top_srcdir=$srcdir ;;
13643 *) # Relative name.
13644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13645 ac_top_srcdir=$ac_top_build_prefix$srcdir
13646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13647 esac
13648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13651 cd "$ac_dir"
13653 # Check for guested configure; otherwise get Cygnus style configure.
13654 if test -f "$ac_srcdir/configure.gnu"; then
13655 ac_sub_configure=$ac_srcdir/configure.gnu
13656 elif test -f "$ac_srcdir/configure"; then
13657 ac_sub_configure=$ac_srcdir/configure
13658 elif test -f "$ac_srcdir/configure.in"; then
13659 # This should be Cygnus configure.
13660 ac_sub_configure=$ac_aux_dir/configure
13661 else
13662 { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
13663 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
13664 ac_sub_configure=
13667 # The recursion is here.
13668 if test -n "$ac_sub_configure"; then
13669 # Make the cache file name correct relative to the subdirectory.
13670 case $cache_file in
13671 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
13672 *) # Relative name.
13673 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
13674 esac
13676 { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
13677 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
13678 # The eval makes quoting arguments work.
13679 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
13680 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
13681 { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
13682 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
13683 { (exit 1); exit 1; }; }
13686 cd "$ac_popdir"
13687 done
13689 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13690 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
13691 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}