Release 0.3
[liblqr.git] / configure
blob312876e57913e41df8923e510415a95840307542
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for liblqr-1 0.3.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
556 case X$lt_ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
561 esac
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<_LT_EOF
583 _LT_EOF
584 exit 0
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598 then
599 break
601 done
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
608 else
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
613 # So, first we look for a working echo in the user's PATH.
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
617 IFS="$lt_save_ifs"
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
622 ECHO="$dir/echo"
623 break
625 done
626 IFS="$lt_save_ifs"
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
634 ECHO='print -r'
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
641 export CONFIG_SHELL
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643 else
644 # Try using printf.
645 ECHO='printf %s\n'
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 # Cool, printf works
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656 export CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
658 export SHELL
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 else
666 # maybe with a smaller string...
667 prev=:
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671 then
672 break
674 prev="$cmd"
675 done
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681 else
682 # Oops. We lost completely, so just stick with echo.
683 ECHO=echo
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 exec 7<&0 </dev/null 6>&1
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
709 # Initializations.
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
721 # Identity of this package.
722 PACKAGE_NAME='liblqr-1'
723 PACKAGE_TARNAME='liblqr-1'
724 PACKAGE_VERSION='0.3.0'
725 PACKAGE_STRING='liblqr-1 0.3.0'
726 PACKAGE_BUGREPORT=''
728 ac_unique_file="lqr/lqr_carver.c"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 # include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 # include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 LIBRARY_BASE_NAME
803 API_VERSION
804 LIBRARY_NAME
805 LIBRARY_SNAME
806 LTVERSION
807 INSTALL_PROGRAM
808 INSTALL_SCRIPT
809 INSTALL_DATA
810 CYGPATH_W
811 PACKAGE
812 VERSION
813 ACLOCAL
814 AUTOCONF
815 AUTOMAKE
816 AUTOHEADER
817 MAKEINFO
818 install_sh
819 STRIP
820 INSTALL_STRIP_PROGRAM
821 mkdir_p
823 SET_MAKE
824 am__leading_dot
825 AMTAR
826 am__tar
827 am__untar
829 CFLAGS
830 LDFLAGS
831 CPPFLAGS
832 ac_ct_CC
833 EXEEXT
834 OBJEXT
835 DEPDIR
836 am__include
837 am__quote
838 AMDEP_TRUE
839 AMDEP_FALSE
840 AMDEPBACKSLASH
841 CCDEPMODE
842 am__fastdepCC_TRUE
843 am__fastdepCC_FALSE
845 GREP
846 EGREP
847 LIBTOOL
848 build
849 build_cpu
850 build_vendor
851 build_os
852 host
853 host_cpu
854 host_vendor
855 host_os
857 FGREP
859 DUMPBIN
860 ac_ct_DUMPBIN
862 LN_S
864 RANLIB
865 lt_ECHO
866 DSYMUTIL
867 NMEDIT
868 LIPO
869 OTOOL
870 OTOOL64
871 MAINTAINER_MODE_TRUE
872 MAINTAINER_MODE_FALSE
873 MAINT
874 PKG_CONFIG
875 GLIB_CFLAGS
876 GLIB_LIBS
877 GLIB_DIR
878 DATADIR
879 INSTMAN_TRUE
880 INSTMAN_FALSE
881 LIBOBJS
882 LTLIBOBJS'
883 ac_subst_files=''
884 ac_precious_vars='build_alias
885 host_alias
886 target_alias
888 CFLAGS
889 LDFLAGS
890 LIBS
891 CPPFLAGS
893 PKG_CONFIG
894 GLIB_CFLAGS
895 GLIB_LIBS'
898 # Initialize some variables set by options.
899 ac_init_help=
900 ac_init_version=false
901 # The variables have the same names as the options, with
902 # dashes changed to underlines.
903 cache_file=/dev/null
904 exec_prefix=NONE
905 no_create=
906 no_recursion=
907 prefix=NONE
908 program_prefix=NONE
909 program_suffix=NONE
910 program_transform_name=s,x,x,
911 silent=
912 site=
913 srcdir=
914 verbose=
915 x_includes=NONE
916 x_libraries=NONE
918 # Installation directory options.
919 # These are left unexpanded so users can "make install exec_prefix=/foo"
920 # and all the variables that are supposed to be based on exec_prefix
921 # by default will actually change.
922 # Use braces instead of parens because sh, perl, etc. also accept them.
923 # (The list follows the same order as the GNU Coding Standards.)
924 bindir='${exec_prefix}/bin'
925 sbindir='${exec_prefix}/sbin'
926 libexecdir='${exec_prefix}/libexec'
927 datarootdir='${prefix}/share'
928 datadir='${datarootdir}'
929 sysconfdir='${prefix}/etc'
930 sharedstatedir='${prefix}/com'
931 localstatedir='${prefix}/var'
932 includedir='${prefix}/include'
933 oldincludedir='/usr/include'
934 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
935 infodir='${datarootdir}/info'
936 htmldir='${docdir}'
937 dvidir='${docdir}'
938 pdfdir='${docdir}'
939 psdir='${docdir}'
940 libdir='${exec_prefix}/lib'
941 localedir='${datarootdir}/locale'
942 mandir='${datarootdir}/man'
944 ac_prev=
945 ac_dashdash=
946 for ac_option
948 # If the previous option needs an argument, assign it.
949 if test -n "$ac_prev"; then
950 eval $ac_prev=\$ac_option
951 ac_prev=
952 continue
955 case $ac_option in
956 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957 *) ac_optarg=yes ;;
958 esac
960 # Accept the important Cygnus configure options, so we can diagnose typos.
962 case $ac_dashdash$ac_option in
964 ac_dashdash=yes ;;
966 -bindir | --bindir | --bindi | --bind | --bin | --bi)
967 ac_prev=bindir ;;
968 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969 bindir=$ac_optarg ;;
971 -build | --build | --buil | --bui | --bu)
972 ac_prev=build_alias ;;
973 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974 build_alias=$ac_optarg ;;
976 -cache-file | --cache-file | --cache-fil | --cache-fi \
977 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978 ac_prev=cache_file ;;
979 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981 cache_file=$ac_optarg ;;
983 --config-cache | -C)
984 cache_file=config.cache ;;
986 -datadir | --datadir | --datadi | --datad)
987 ac_prev=datadir ;;
988 -datadir=* | --datadir=* | --datadi=* | --datad=*)
989 datadir=$ac_optarg ;;
991 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992 | --dataroo | --dataro | --datar)
993 ac_prev=datarootdir ;;
994 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996 datarootdir=$ac_optarg ;;
998 -disable-* | --disable-*)
999 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1002 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1003 { (exit 1); exit 1; }; }
1004 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1005 eval enable_$ac_feature=no ;;
1007 -docdir | --docdir | --docdi | --doc | --do)
1008 ac_prev=docdir ;;
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 ac_prev=dvidir ;;
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
1017 -enable-* | --enable-*)
1018 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1024 eval enable_$ac_feature=\$ac_optarg ;;
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
1033 exec_prefix=$ac_optarg ;;
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1037 with_gas=yes ;;
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
1046 -host | --host | --hos | --ho)
1047 ac_prev=host_alias ;;
1048 -host=* | --host=* | --hos=* | --ho=*)
1049 host_alias=$ac_optarg ;;
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 ac_prev=htmldir ;;
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 | --ht=*)
1055 htmldir=$ac_optarg ;;
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
1062 includedir=$ac_optarg ;;
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 ac_prev=infodir ;;
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067 infodir=$ac_optarg ;;
1069 -libdir | --libdir | --libdi | --libd)
1070 ac_prev=libdir ;;
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072 libdir=$ac_optarg ;;
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
1079 libexecdir=$ac_optarg ;;
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
1087 | --localstate | --localstat | --localsta | --localst | --locals)
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091 localstatedir=$ac_optarg ;;
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 ac_prev=mandir ;;
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096 mandir=$ac_optarg ;;
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1100 with_fp=no ;;
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103 | --no-cr | --no-c | -n)
1104 no_create=yes ;;
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 no_recursion=yes ;;
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117 oldincludedir=$ac_optarg ;;
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 ac_prev=prefix ;;
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122 prefix=$ac_optarg ;;
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129 program_prefix=$ac_optarg ;;
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136 program_suffix=$ac_optarg ;;
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
1146 -program-transform-name=* | --program-transform-name=* \
1147 | --program-transform-nam=* | --program-transform-na=* \
1148 | --program-transform-n=* | --program-transform-=* \
1149 | --program-transform=* | --program-transfor=* \
1150 | --program-transfo=* | --program-transf=* \
1151 | --program-trans=* | --program-tran=* \
1152 | --progr-tra=* | --program-tr=* | --program-t=*)
1153 program_transform_name=$ac_optarg ;;
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 ac_prev=pdfdir ;;
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1160 -psdir | --psdir | --psdi | --psd | --ps)
1161 ac_prev=psdir ;;
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 psdir=$ac_optarg ;;
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1167 silent=yes ;;
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 ac_prev=sbindir ;;
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 | --sbi=* | --sb=*)
1173 sbindir=$ac_optarg ;;
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1178 | --sha | --sh)
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 | --sha=* | --sh=*)
1184 sharedstatedir=$ac_optarg ;;
1186 -site | --site | --sit)
1187 ac_prev=site ;;
1188 -site=* | --site=* | --sit=*)
1189 site=$ac_optarg ;;
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 ac_prev=srcdir ;;
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 verbose=yes ;;
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1214 -with-* | --with-*)
1215 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 { echo "$as_me: error: invalid package name: $ac_package" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1221 eval with_$ac_package=\$ac_optarg ;;
1223 -without-* | --without-*)
1224 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 { echo "$as_me: error: invalid package name: $ac_package" >&2
1228 { (exit 1); exit 1; }; }
1229 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1230 eval with_$ac_package=no ;;
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1250 -*) { echo "$as_me: error: unrecognized option: $ac_option
1251 Try \`$0 --help' for more information." >&2
1252 { (exit 1); exit 1; }; }
1255 *=*)
1256 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1259 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1260 { (exit 1); exit 1; }; }
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1265 # FIXME: should be removed in autoconf 3.0.
1266 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1272 esac
1273 done
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 { echo "$as_me: error: missing argument to $ac_option" >&2
1278 { (exit 1); exit 1; }; }
1281 # Be sure to have absolute directory names.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1287 eval ac_val=\$$ac_var
1288 case $ac_val in
1289 [\\/$]* | ?:[\\/]* ) continue;;
1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 esac
1292 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1293 { (exit 1); exit 1; }; }
1294 done
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1299 build=$build_alias
1300 host=$host_alias
1301 target=$target_alias
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1308 If a cross compiler is detected then cross compile mode will be used." >&2
1309 elif test "x$build_alias" != "x$host_alias"; then
1310 cross_compiling=yes
1314 ac_tool_prefix=
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317 test "$silent" = yes && exec 6>/dev/null
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 { echo "$as_me: error: Working directory cannot be determined" >&2
1324 { (exit 1); exit 1; }; }
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 { echo "$as_me: error: pwd does not report name of working directory" >&2
1327 { (exit 1); exit 1; }; }
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$0" ||
1335 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$0" : 'X\(//\)[^/]' \| \
1337 X"$0" : 'X\(//\)$' \| \
1338 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1339 echo X"$0" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1348 /^X\(\/\/\)$/{
1349 s//\1/
1352 /^X\(\/\).*/{
1353 s//\1/
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1361 else
1362 ac_srcdir_defaulted=no
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1367 { (exit 1); exit 1; }; }
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1372 { (exit 1); exit 1; }; }
1373 pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1392 # Report the --help message.
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398 \`configure' configures liblqr-1 0.3.0 to adapt to many kinds of systems.
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1405 Defaults for the options are specified in brackets.
1407 Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1429 For better control, use the options below.
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/liblqr-1]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451 _ACEOF
1453 cat <<\_ACEOF
1455 Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1460 System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 _ACEOF
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of liblqr-1 0.3.0:";;
1469 esac
1470 cat <<\_ACEOF
1472 Optional Features:
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --disable-dependency-tracking speeds up one-time build
1476 --enable-dependency-tracking do not reject slow dependency extractors
1477 --enable-static[=PKGS] build static libraries [default=no]
1478 --enable-shared[=PKGS] build shared libraries [default=yes]
1479 --enable-fast-install[=PKGS]
1480 optimize for fast installation [default=yes]
1481 --disable-libtool-lock avoid locking (might break parallel builds)
1482 --enable-maintainer-mode enable make rules and dependencies not useful
1483 (and sometimes confusing) to the casual installer
1484 --enable-install-man Install man pages
1486 Optional Packages:
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1489 --with-pic try to use only PIC/non-PIC objects [default=use
1490 both]
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493 Some influential environment variables:
1494 CC C compiler command
1495 CFLAGS C compiler flags
1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1497 nonstandard directory <lib dir>
1498 LIBS libraries to pass to the linker, e.g. -l<library>
1499 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1500 you have headers in a nonstandard directory <include dir>
1501 CPP C preprocessor
1502 PKG_CONFIG path to pkg-config utility
1503 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1504 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1506 Use these variables to override the choices made by `configure' or to help
1507 it to find libraries and programs with nonstandard names/locations.
1509 _ACEOF
1510 ac_status=$?
1513 if test "$ac_init_help" = "recursive"; then
1514 # If there are subdirs, report their specific --help.
1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516 test -d "$ac_dir" || continue
1517 ac_builddir=.
1519 case "$ac_dir" in
1520 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1523 # A ".." for each directory in $ac_dir_suffix.
1524 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1525 case $ac_top_builddir_sub in
1526 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 esac ;;
1529 esac
1530 ac_abs_top_builddir=$ac_pwd
1531 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1532 # for backward compatibility:
1533 ac_top_builddir=$ac_top_build_prefix
1535 case $srcdir in
1536 .) # We are building in place.
1537 ac_srcdir=.
1538 ac_top_srcdir=$ac_top_builddir_sub
1539 ac_abs_top_srcdir=$ac_pwd ;;
1540 [\\/]* | ?:[\\/]* ) # Absolute name.
1541 ac_srcdir=$srcdir$ac_dir_suffix;
1542 ac_top_srcdir=$srcdir
1543 ac_abs_top_srcdir=$srcdir ;;
1544 *) # Relative name.
1545 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1546 ac_top_srcdir=$ac_top_build_prefix$srcdir
1547 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1548 esac
1549 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551 cd "$ac_dir" || { ac_status=$?; continue; }
1552 # Check for guested configure.
1553 if test -f "$ac_srcdir/configure.gnu"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1556 elif test -f "$ac_srcdir/configure"; then
1557 echo &&
1558 $SHELL "$ac_srcdir/configure" --help=recursive
1559 else
1560 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1561 fi || ac_status=$?
1562 cd "$ac_pwd" || { ac_status=$?; break; }
1563 done
1566 test -n "$ac_init_help" && exit $ac_status
1567 if $ac_init_version; then
1568 cat <<\_ACEOF
1569 liblqr-1 configure 0.3.0
1570 generated by GNU Autoconf 2.61
1572 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1573 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1574 This configure script is free software; the Free Software Foundation
1575 gives unlimited permission to copy, distribute and modify it.
1576 _ACEOF
1577 exit
1579 cat >config.log <<_ACEOF
1580 This file contains any messages produced by compilers while
1581 running configure, to aid debugging if configure makes a mistake.
1583 It was created by liblqr-1 $as_me 0.3.0, which was
1584 generated by GNU Autoconf 2.61. Invocation command line was
1586 $ $0 $@
1588 _ACEOF
1589 exec 5>>config.log
1591 cat <<_ASUNAME
1592 ## --------- ##
1593 ## Platform. ##
1594 ## --------- ##
1596 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1597 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1598 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1599 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1600 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1603 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1605 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1606 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1607 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1608 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1609 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1610 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1611 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1613 _ASUNAME
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616 for as_dir in $PATH
1618 IFS=$as_save_IFS
1619 test -z "$as_dir" && as_dir=.
1620 echo "PATH: $as_dir"
1621 done
1622 IFS=$as_save_IFS
1624 } >&5
1626 cat >&5 <<_ACEOF
1629 ## ----------- ##
1630 ## Core tests. ##
1631 ## ----------- ##
1633 _ACEOF
1636 # Keep a trace of the command line.
1637 # Strip out --no-create and --no-recursion so they do not pile up.
1638 # Strip out --silent because we don't want to record it for future runs.
1639 # Also quote any args containing shell meta-characters.
1640 # Make two passes to allow for proper duplicate-argument suppression.
1641 ac_configure_args=
1642 ac_configure_args0=
1643 ac_configure_args1=
1644 ac_must_keep_next=false
1645 for ac_pass in 1 2
1647 for ac_arg
1649 case $ac_arg in
1650 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1652 | -silent | --silent | --silen | --sile | --sil)
1653 continue ;;
1654 *\'*)
1655 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1656 esac
1657 case $ac_pass in
1658 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1661 if test $ac_must_keep_next = true; then
1662 ac_must_keep_next=false # Got value, back to normal.
1663 else
1664 case $ac_arg in
1665 *=* | --config-cache | -C | -disable-* | --disable-* \
1666 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1667 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1668 | -with-* | --with-* | -without-* | --without-* | --x)
1669 case "$ac_configure_args0 " in
1670 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1671 esac
1673 -* ) ac_must_keep_next=true ;;
1674 esac
1676 ac_configure_args="$ac_configure_args '$ac_arg'"
1678 esac
1679 done
1680 done
1681 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1682 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684 # When interrupted or exit'd, cleanup temporary files, and complete
1685 # config.log. We remove comments because anyway the quotes in there
1686 # would cause problems or look ugly.
1687 # WARNING: Use '\'' to represent an apostrophe within the trap.
1688 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1689 trap 'exit_status=$?
1690 # Save into config.log some information that might help in debugging.
1692 echo
1694 cat <<\_ASBOX
1695 ## ---------------- ##
1696 ## Cache variables. ##
1697 ## ---------------- ##
1698 _ASBOX
1699 echo
1700 # The following way of writing the cache mishandles newlines in values,
1702 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1703 eval ac_val=\$$ac_var
1704 case $ac_val in #(
1705 *${as_nl}*)
1706 case $ac_var in #(
1707 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1708 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1709 esac
1710 case $ac_var in #(
1711 _ | IFS | as_nl) ;; #(
1712 *) $as_unset $ac_var ;;
1713 esac ;;
1714 esac
1715 done
1716 (set) 2>&1 |
1717 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1718 *${as_nl}ac_space=\ *)
1719 sed -n \
1720 "s/'\''/'\''\\\\'\'''\''/g;
1721 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1722 ;; #(
1724 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1726 esac |
1727 sort
1729 echo
1731 cat <<\_ASBOX
1732 ## ----------------- ##
1733 ## Output variables. ##
1734 ## ----------------- ##
1735 _ASBOX
1736 echo
1737 for ac_var in $ac_subst_vars
1739 eval ac_val=\$$ac_var
1740 case $ac_val in
1741 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1742 esac
1743 echo "$ac_var='\''$ac_val'\''"
1744 done | sort
1745 echo
1747 if test -n "$ac_subst_files"; then
1748 cat <<\_ASBOX
1749 ## ------------------- ##
1750 ## File substitutions. ##
1751 ## ------------------- ##
1752 _ASBOX
1753 echo
1754 for ac_var in $ac_subst_files
1756 eval ac_val=\$$ac_var
1757 case $ac_val in
1758 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759 esac
1760 echo "$ac_var='\''$ac_val'\''"
1761 done | sort
1762 echo
1765 if test -s confdefs.h; then
1766 cat <<\_ASBOX
1767 ## ----------- ##
1768 ## confdefs.h. ##
1769 ## ----------- ##
1770 _ASBOX
1771 echo
1772 cat confdefs.h
1773 echo
1775 test "$ac_signal" != 0 &&
1776 echo "$as_me: caught signal $ac_signal"
1777 echo "$as_me: exit $exit_status"
1778 } >&5
1779 rm -f core *.core core.conftest.* &&
1780 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1781 exit $exit_status
1783 for ac_signal in 1 2 13 15; do
1784 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1785 done
1786 ac_signal=0
1788 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1789 rm -f -r conftest* confdefs.h
1791 # Predefined preprocessor variables.
1793 cat >>confdefs.h <<_ACEOF
1794 #define PACKAGE_NAME "$PACKAGE_NAME"
1795 _ACEOF
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1800 _ACEOF
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1805 _ACEOF
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_STRING "$PACKAGE_STRING"
1810 _ACEOF
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1815 _ACEOF
1818 # Let the site file select an alternate cache file if it wants to.
1819 # Prefer explicitly selected file to automatically selected ones.
1820 if test -n "$CONFIG_SITE"; then
1821 set x "$CONFIG_SITE"
1822 elif test "x$prefix" != xNONE; then
1823 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1824 else
1825 set x "$ac_default_prefix/share/config.site" \
1826 "$ac_default_prefix/etc/config.site"
1828 shift
1829 for ac_site_file
1831 if test -r "$ac_site_file"; then
1832 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1833 echo "$as_me: loading site script $ac_site_file" >&6;}
1834 sed 's/^/| /' "$ac_site_file" >&5
1835 . "$ac_site_file"
1837 done
1839 if test -r "$cache_file"; then
1840 # Some versions of bash will fail to source /dev/null (special
1841 # files actually), so we avoid doing that.
1842 if test -f "$cache_file"; then
1843 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1844 echo "$as_me: loading cache $cache_file" >&6;}
1845 case $cache_file in
1846 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1847 *) . "./$cache_file";;
1848 esac
1850 else
1851 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1852 echo "$as_me: creating cache $cache_file" >&6;}
1853 >$cache_file
1856 # Check that the precious variables saved in the cache have kept the same
1857 # value.
1858 ac_cache_corrupted=false
1859 for ac_var in $ac_precious_vars; do
1860 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1861 eval ac_new_set=\$ac_env_${ac_var}_set
1862 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1863 eval ac_new_val=\$ac_env_${ac_var}_value
1864 case $ac_old_set,$ac_new_set in
1865 set,)
1866 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1867 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1868 ac_cache_corrupted=: ;;
1869 ,set)
1870 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1871 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1872 ac_cache_corrupted=: ;;
1873 ,);;
1875 if test "x$ac_old_val" != "x$ac_new_val"; then
1876 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1877 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1878 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1879 echo "$as_me: former value: $ac_old_val" >&2;}
1880 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1881 echo "$as_me: current value: $ac_new_val" >&2;}
1882 ac_cache_corrupted=:
1883 fi;;
1884 esac
1885 # Pass precious variables to config.status.
1886 if test "$ac_new_set" = set; then
1887 case $ac_new_val in
1888 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1889 *) ac_arg=$ac_var=$ac_new_val ;;
1890 esac
1891 case " $ac_configure_args " in
1892 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1893 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1894 esac
1896 done
1897 if $ac_cache_corrupted; then
1898 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1899 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1900 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1901 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1902 { (exit 1); exit 1; }; }
1929 ac_ext=c
1930 ac_cpp='$CPP $CPPFLAGS'
1931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1938 cat >>confdefs.h <<\_ACEOF
1939 #define LIBRARY_NAME PACKAGE_NAME
1940 _ACEOF
1944 cat >>confdefs.h <<\_ACEOF
1945 #define PACKAGE_MAJOR_VERSION 0
1946 _ACEOF
1949 cat >>confdefs.h <<\_ACEOF
1950 #define PACKAGE_MINOR_VERSION 3
1951 _ACEOF
1954 cat >>confdefs.h <<\_ACEOF
1955 #define PACKAGE_MICRO_VERSION 0
1956 _ACEOF
1960 cat >>confdefs.h <<\_ACEOF
1961 #define LTVERSION_CURRENT 2
1962 _ACEOF
1965 cat >>confdefs.h <<\_ACEOF
1966 #define LTVERSION_REVISON 0
1967 _ACEOF
1970 cat >>confdefs.h <<\_ACEOF
1971 #define LTVERSION_AGE 2
1972 _ACEOF
1975 LIBRARY_BASE_NAME=lqr
1977 API_VERSION=1
1979 LIBRARY_NAME=liblqr-1
1981 LIBRARY_SNAME=lqr-1
1984 PACKAGE_VERSION=0.3.0
1987 LTVERSION=2:0:2
1991 ac_config_headers="$ac_config_headers config.h"
1996 am__api_version="1.9"
1997 ac_aux_dir=
1998 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1999 if test -f "$ac_dir/install-sh"; then
2000 ac_aux_dir=$ac_dir
2001 ac_install_sh="$ac_aux_dir/install-sh -c"
2002 break
2003 elif test -f "$ac_dir/install.sh"; then
2004 ac_aux_dir=$ac_dir
2005 ac_install_sh="$ac_aux_dir/install.sh -c"
2006 break
2007 elif test -f "$ac_dir/shtool"; then
2008 ac_aux_dir=$ac_dir
2009 ac_install_sh="$ac_aux_dir/shtool install -c"
2010 break
2012 done
2013 if test -z "$ac_aux_dir"; then
2014 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2015 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2016 { (exit 1); exit 1; }; }
2019 # These three variables are undocumented and unsupported,
2020 # and are intended to be withdrawn in a future Autoconf release.
2021 # They can cause serious problems if a builder's source tree is in a directory
2022 # whose full name contains unusual characters.
2023 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2024 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2025 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2028 # Find a good install program. We prefer a C program (faster),
2029 # so one script is as good as another. But avoid the broken or
2030 # incompatible versions:
2031 # SysV /etc/install, /usr/sbin/install
2032 # SunOS /usr/etc/install
2033 # IRIX /sbin/install
2034 # AIX /bin/install
2035 # AmigaOS /C/install, which installs bootblocks on floppy discs
2036 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2037 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2038 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2039 # OS/2's system install, which has a completely different semantic
2040 # ./install, which can be erroneously created by make from ./install.sh.
2041 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2042 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2043 if test -z "$INSTALL"; then
2044 if test "${ac_cv_path_install+set}" = set; then
2045 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 else
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2050 IFS=$as_save_IFS
2051 test -z "$as_dir" && as_dir=.
2052 # Account for people who put trailing slashes in PATH elements.
2053 case $as_dir/ in
2054 ./ | .// | /cC/* | \
2055 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2056 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2057 /usr/ucb/* ) ;;
2059 # OSF1 and SCO ODT 3.0 have their own names for install.
2060 # Don't use installbsd from OSF since it installs stuff as root
2061 # by default.
2062 for ac_prog in ginstall scoinst install; do
2063 for ac_exec_ext in '' $ac_executable_extensions; do
2064 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2065 if test $ac_prog = install &&
2066 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2067 # AIX install. It has an incompatible calling convention.
2069 elif test $ac_prog = install &&
2070 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2071 # program-specific install script used by HP pwplus--don't use.
2073 else
2074 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2075 break 3
2078 done
2079 done
2081 esac
2082 done
2083 IFS=$as_save_IFS
2087 if test "${ac_cv_path_install+set}" = set; then
2088 INSTALL=$ac_cv_path_install
2089 else
2090 # As a last resort, use the slow shell script. Don't cache a
2091 # value for INSTALL within a source directory, because that will
2092 # break other packages using the cache if that directory is
2093 # removed, or if the value is a relative name.
2094 INSTALL=$ac_install_sh
2097 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2098 echo "${ECHO_T}$INSTALL" >&6; }
2100 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2101 # It thinks the first close brace ends the variable substitution.
2102 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2104 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2106 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2108 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2109 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2110 # Just in case
2111 sleep 1
2112 echo timestamp > conftest.file
2113 # Do `set' in a subshell so we don't clobber the current shell's
2114 # arguments. Must try -L first in case configure is actually a
2115 # symlink; some systems play weird games with the mod time of symlinks
2116 # (eg FreeBSD returns the mod time of the symlink's containing
2117 # directory).
2118 if (
2119 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2120 if test "$*" = "X"; then
2121 # -L didn't work.
2122 set X `ls -t $srcdir/configure conftest.file`
2124 rm -f conftest.file
2125 if test "$*" != "X $srcdir/configure conftest.file" \
2126 && test "$*" != "X conftest.file $srcdir/configure"; then
2128 # If neither matched, then we have a broken ls. This can happen
2129 # if, for instance, CONFIG_SHELL is bash and it inherits a
2130 # broken ls alias from the environment. This has actually
2131 # happened. Such a system could not be considered "sane".
2132 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2133 alias in your environment" >&5
2134 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2135 alias in your environment" >&2;}
2136 { (exit 1); exit 1; }; }
2139 test "$2" = conftest.file
2141 then
2142 # Ok.
2144 else
2145 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2146 Check your system clock" >&5
2147 echo "$as_me: error: newly created file is older than distributed files!
2148 Check your system clock" >&2;}
2149 { (exit 1); exit 1; }; }
2151 { echo "$as_me:$LINENO: result: yes" >&5
2152 echo "${ECHO_T}yes" >&6; }
2153 test "$program_prefix" != NONE &&
2154 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2155 # Use a double $ so make ignores it.
2156 test "$program_suffix" != NONE &&
2157 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2158 # Double any \ or $. echo might interpret backslashes.
2159 # By default was `s,x,x', remove it if useless.
2160 cat <<\_ACEOF >conftest.sed
2161 s/[\\$]/&&/g;s/;s,x,x,$//
2162 _ACEOF
2163 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2164 rm -f conftest.sed
2166 # expand $ac_aux_dir to an absolute path
2167 am_aux_dir=`cd $ac_aux_dir && pwd`
2169 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2170 # Use eval to expand $SHELL
2171 if eval "$MISSING --run true"; then
2172 am_missing_run="$MISSING --run "
2173 else
2174 am_missing_run=
2175 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2176 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2179 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2180 # We used to keeping the `.' as first argument, in order to
2181 # allow $(mkdir_p) to be used without argument. As in
2182 # $(mkdir_p) $(somedir)
2183 # where $(somedir) is conditionally defined. However this is wrong
2184 # for two reasons:
2185 # 1. if the package is installed by a user who cannot write `.'
2186 # make install will fail,
2187 # 2. the above comment should most certainly read
2188 # $(mkdir_p) $(DESTDIR)$(somedir)
2189 # so it does not work when $(somedir) is undefined and
2190 # $(DESTDIR) is not.
2191 # To support the latter case, we have to write
2192 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2193 # so the `.' trick is pointless.
2194 mkdir_p='mkdir -p --'
2195 else
2196 # On NextStep and OpenStep, the `mkdir' command does not
2197 # recognize any option. It will interpret all options as
2198 # directories to create, and then abort because `.' already
2199 # exists.
2200 for d in ./-p ./--version;
2202 test -d $d && rmdir $d
2203 done
2204 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2205 if test -f "$ac_aux_dir/mkinstalldirs"; then
2206 mkdir_p='$(mkinstalldirs)'
2207 else
2208 mkdir_p='$(install_sh) -d'
2212 for ac_prog in gawk mawk nawk awk
2214 # Extract the first word of "$ac_prog", so it can be a program name with args.
2215 set dummy $ac_prog; ac_word=$2
2216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2218 if test "${ac_cv_prog_AWK+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221 if test -n "$AWK"; then
2222 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2223 else
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 for ac_exec_ext in '' $ac_executable_extensions; do
2230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2231 ac_cv_prog_AWK="$ac_prog"
2232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233 break 2
2235 done
2236 done
2237 IFS=$as_save_IFS
2241 AWK=$ac_cv_prog_AWK
2242 if test -n "$AWK"; then
2243 { echo "$as_me:$LINENO: result: $AWK" >&5
2244 echo "${ECHO_T}$AWK" >&6; }
2245 else
2246 { echo "$as_me:$LINENO: result: no" >&5
2247 echo "${ECHO_T}no" >&6; }
2251 test -n "$AWK" && break
2252 done
2254 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2255 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2256 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2257 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2258 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 else
2260 cat >conftest.make <<\_ACEOF
2261 SHELL = /bin/sh
2262 all:
2263 @echo '@@@%%%=$(MAKE)=@@@%%%'
2264 _ACEOF
2265 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2266 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2267 *@@@%%%=?*=@@@%%%*)
2268 eval ac_cv_prog_make_${ac_make}_set=yes;;
2270 eval ac_cv_prog_make_${ac_make}_set=no;;
2271 esac
2272 rm -f conftest.make
2274 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2275 { echo "$as_me:$LINENO: result: yes" >&5
2276 echo "${ECHO_T}yes" >&6; }
2277 SET_MAKE=
2278 else
2279 { echo "$as_me:$LINENO: result: no" >&5
2280 echo "${ECHO_T}no" >&6; }
2281 SET_MAKE="MAKE=${MAKE-make}"
2284 rm -rf .tst 2>/dev/null
2285 mkdir .tst 2>/dev/null
2286 if test -d .tst; then
2287 am__leading_dot=.
2288 else
2289 am__leading_dot=_
2291 rmdir .tst 2>/dev/null
2293 # test to see if srcdir already configured
2294 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2295 test -f $srcdir/config.status; then
2296 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2297 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2298 { (exit 1); exit 1; }; }
2301 # test whether we have cygpath
2302 if test -z "$CYGPATH_W"; then
2303 if (cygpath --version) >/dev/null 2>/dev/null; then
2304 CYGPATH_W='cygpath -w'
2305 else
2306 CYGPATH_W=echo
2311 # Define the identity of the package.
2312 PACKAGE='liblqr-1'
2313 VERSION='0.3.0'
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE "$PACKAGE"
2318 _ACEOF
2321 cat >>confdefs.h <<_ACEOF
2322 #define VERSION "$VERSION"
2323 _ACEOF
2325 # Some tools Automake needs.
2327 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2330 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2333 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2336 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2339 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2341 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2343 # Installed binaries are usually stripped using `strip' when the user
2344 # run `make install-strip'. However `strip' might not be the right
2345 # tool to use in cross-compilation environments, therefore Automake
2346 # will honor the `STRIP' environment variable to overrule this program.
2347 if test "$cross_compiling" != no; then
2348 if test -n "$ac_tool_prefix"; then
2349 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2350 set dummy ${ac_tool_prefix}strip; ac_word=$2
2351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2353 if test "${ac_cv_prog_STRIP+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356 if test -n "$STRIP"; then
2357 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2358 else
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 break 2
2370 done
2371 done
2372 IFS=$as_save_IFS
2376 STRIP=$ac_cv_prog_STRIP
2377 if test -n "$STRIP"; then
2378 { echo "$as_me:$LINENO: result: $STRIP" >&5
2379 echo "${ECHO_T}$STRIP" >&6; }
2380 else
2381 { echo "$as_me:$LINENO: result: no" >&5
2382 echo "${ECHO_T}no" >&6; }
2387 if test -z "$ac_cv_prog_STRIP"; then
2388 ac_ct_STRIP=$STRIP
2389 # Extract the first word of "strip", so it can be a program name with args.
2390 set dummy strip; ac_word=$2
2391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2393 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 else
2396 if test -n "$ac_ct_STRIP"; then
2397 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2398 else
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 for as_dir in $PATH
2402 IFS=$as_save_IFS
2403 test -z "$as_dir" && as_dir=.
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2406 ac_cv_prog_ac_ct_STRIP="strip"
2407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 break 2
2410 done
2411 done
2412 IFS=$as_save_IFS
2416 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2417 if test -n "$ac_ct_STRIP"; then
2418 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2419 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2420 else
2421 { echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6; }
2425 if test "x$ac_ct_STRIP" = x; then
2426 STRIP=":"
2427 else
2428 case $cross_compiling:$ac_tool_warned in
2429 yes:)
2430 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2431 whose name does not start with the host triplet. If you think this
2432 configuration is useful to you, please write to autoconf@gnu.org." >&5
2433 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2434 whose name does not start with the host triplet. If you think this
2435 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2436 ac_tool_warned=yes ;;
2437 esac
2438 STRIP=$ac_ct_STRIP
2440 else
2441 STRIP="$ac_cv_prog_STRIP"
2445 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2447 # We need awk for the "check" target. The system "awk" is bad on
2448 # some platforms.
2449 # Always define AMTAR for backward compatibility.
2451 AMTAR=${AMTAR-"${am_missing_run}tar"}
2453 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2460 DEPDIR="${am__leading_dot}deps"
2462 ac_config_commands="$ac_config_commands depfiles"
2465 am_make=${MAKE-make}
2466 cat > confinc << 'END'
2467 am__doit:
2468 @echo done
2469 .PHONY: am__doit
2471 # If we don't find an include directive, just comment out the code.
2472 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2473 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2474 am__include="#"
2475 am__quote=
2476 _am_result=none
2477 # First try GNU make style include.
2478 echo "include confinc" > confmf
2479 # We grep out `Entering directory' and `Leaving directory'
2480 # messages which can occur if `w' ends up in MAKEFLAGS.
2481 # In particular we don't look at `^make:' because GNU make might
2482 # be invoked under some other name (usually "gmake"), in which
2483 # case it prints its new name instead of `make'.
2484 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2485 am__include=include
2486 am__quote=
2487 _am_result=GNU
2489 # Now try BSD make style include.
2490 if test "$am__include" = "#"; then
2491 echo '.include "confinc"' > confmf
2492 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2493 am__include=.include
2494 am__quote="\""
2495 _am_result=BSD
2500 { echo "$as_me:$LINENO: result: $_am_result" >&5
2501 echo "${ECHO_T}$_am_result" >&6; }
2502 rm -f confinc confmf
2504 # Check whether --enable-dependency-tracking was given.
2505 if test "${enable_dependency_tracking+set}" = set; then
2506 enableval=$enable_dependency_tracking;
2509 if test "x$enable_dependency_tracking" != xno; then
2510 am_depcomp="$ac_aux_dir/depcomp"
2511 AMDEPBACKSLASH='\'
2515 if test "x$enable_dependency_tracking" != xno; then
2516 AMDEP_TRUE=
2517 AMDEP_FALSE='#'
2518 else
2519 AMDEP_TRUE='#'
2520 AMDEP_FALSE=
2525 ac_ext=c
2526 ac_cpp='$CPP $CPPFLAGS'
2527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2530 if test -n "$ac_tool_prefix"; then
2531 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2532 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2535 if test "${ac_cv_prog_CC+set}" = set; then
2536 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 else
2538 if test -n "$CC"; then
2539 ac_cv_prog_CC="$CC" # Let the user override the test.
2540 else
2541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2542 for as_dir in $PATH
2544 IFS=$as_save_IFS
2545 test -z "$as_dir" && as_dir=.
2546 for ac_exec_ext in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2550 break 2
2552 done
2553 done
2554 IFS=$as_save_IFS
2558 CC=$ac_cv_prog_CC
2559 if test -n "$CC"; then
2560 { echo "$as_me:$LINENO: result: $CC" >&5
2561 echo "${ECHO_T}$CC" >&6; }
2562 else
2563 { echo "$as_me:$LINENO: result: no" >&5
2564 echo "${ECHO_T}no" >&6; }
2569 if test -z "$ac_cv_prog_CC"; then
2570 ac_ct_CC=$CC
2571 # Extract the first word of "gcc", so it can be a program name with args.
2572 set dummy gcc; ac_word=$2
2573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2575 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578 if test -n "$ac_ct_CC"; then
2579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2580 else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2588 ac_cv_prog_ac_ct_CC="gcc"
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2592 done
2593 done
2594 IFS=$as_save_IFS
2598 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2599 if test -n "$ac_ct_CC"; then
2600 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2601 echo "${ECHO_T}$ac_ct_CC" >&6; }
2602 else
2603 { echo "$as_me:$LINENO: result: no" >&5
2604 echo "${ECHO_T}no" >&6; }
2607 if test "x$ac_ct_CC" = x; then
2608 CC=""
2609 else
2610 case $cross_compiling:$ac_tool_warned in
2611 yes:)
2612 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2613 whose name does not start with the host triplet. If you think this
2614 configuration is useful to you, please write to autoconf@gnu.org." >&5
2615 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2616 whose name does not start with the host triplet. If you think this
2617 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2618 ac_tool_warned=yes ;;
2619 esac
2620 CC=$ac_ct_CC
2622 else
2623 CC="$ac_cv_prog_CC"
2626 if test -z "$CC"; then
2627 if test -n "$ac_tool_prefix"; then
2628 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2629 set dummy ${ac_tool_prefix}cc; ac_word=$2
2630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2632 if test "${ac_cv_prog_CC+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635 if test -n "$CC"; then
2636 ac_cv_prog_CC="$CC" # Let the user override the test.
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645 ac_cv_prog_CC="${ac_tool_prefix}cc"
2646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 break 2
2649 done
2650 done
2651 IFS=$as_save_IFS
2655 CC=$ac_cv_prog_CC
2656 if test -n "$CC"; then
2657 { echo "$as_me:$LINENO: result: $CC" >&5
2658 echo "${ECHO_T}$CC" >&6; }
2659 else
2660 { echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6; }
2667 if test -z "$CC"; then
2668 # Extract the first word of "cc", so it can be a program name with args.
2669 set dummy cc; ac_word=$2
2670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2672 if test "${ac_cv_prog_CC+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 else
2675 if test -n "$CC"; then
2676 ac_cv_prog_CC="$CC" # Let the user override the test.
2677 else
2678 ac_prog_rejected=no
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2682 IFS=$as_save_IFS
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2686 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2687 ac_prog_rejected=yes
2688 continue
2690 ac_cv_prog_CC="cc"
2691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 break 2
2694 done
2695 done
2696 IFS=$as_save_IFS
2698 if test $ac_prog_rejected = yes; then
2699 # We found a bogon in the path, so make sure we never use it.
2700 set dummy $ac_cv_prog_CC
2701 shift
2702 if test $# != 0; then
2703 # We chose a different compiler from the bogus one.
2704 # However, it has the same basename, so the bogon will be chosen
2705 # first if we set CC to just the basename; use the full file name.
2706 shift
2707 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2712 CC=$ac_cv_prog_CC
2713 if test -n "$CC"; then
2714 { echo "$as_me:$LINENO: result: $CC" >&5
2715 echo "${ECHO_T}$CC" >&6; }
2716 else
2717 { echo "$as_me:$LINENO: result: no" >&5
2718 echo "${ECHO_T}no" >&6; }
2723 if test -z "$CC"; then
2724 if test -n "$ac_tool_prefix"; then
2725 for ac_prog in cl.exe
2727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2728 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2731 if test "${ac_cv_prog_CC+set}" = set; then
2732 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 else
2734 if test -n "$CC"; then
2735 ac_cv_prog_CC="$CC" # Let the user override the test.
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 break 2
2748 done
2749 done
2750 IFS=$as_save_IFS
2754 CC=$ac_cv_prog_CC
2755 if test -n "$CC"; then
2756 { echo "$as_me:$LINENO: result: $CC" >&5
2757 echo "${ECHO_T}$CC" >&6; }
2758 else
2759 { echo "$as_me:$LINENO: result: no" >&5
2760 echo "${ECHO_T}no" >&6; }
2764 test -n "$CC" && break
2765 done
2767 if test -z "$CC"; then
2768 ac_ct_CC=$CC
2769 for ac_prog in cl.exe
2771 # Extract the first word of "$ac_prog", so it can be a program name with args.
2772 set dummy $ac_prog; ac_word=$2
2773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2775 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 if test -n "$ac_ct_CC"; then
2779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 for ac_exec_ext in '' $ac_executable_extensions; do
2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2788 ac_cv_prog_ac_ct_CC="$ac_prog"
2789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 break 2
2792 done
2793 done
2794 IFS=$as_save_IFS
2798 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2799 if test -n "$ac_ct_CC"; then
2800 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2801 echo "${ECHO_T}$ac_ct_CC" >&6; }
2802 else
2803 { echo "$as_me:$LINENO: result: no" >&5
2804 echo "${ECHO_T}no" >&6; }
2808 test -n "$ac_ct_CC" && break
2809 done
2811 if test "x$ac_ct_CC" = x; then
2812 CC=""
2813 else
2814 case $cross_compiling:$ac_tool_warned in
2815 yes:)
2816 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2817 whose name does not start with the host triplet. If you think this
2818 configuration is useful to you, please write to autoconf@gnu.org." >&5
2819 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2820 whose name does not start with the host triplet. If you think this
2821 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2822 ac_tool_warned=yes ;;
2823 esac
2824 CC=$ac_ct_CC
2831 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2832 See \`config.log' for more details." >&5
2833 echo "$as_me: error: no acceptable C compiler found in \$PATH
2834 See \`config.log' for more details." >&2;}
2835 { (exit 1); exit 1; }; }
2837 # Provide some information about the compiler.
2838 echo "$as_me:$LINENO: checking for C compiler version" >&5
2839 ac_compiler=`set X $ac_compile; echo $2`
2840 { (ac_try="$ac_compiler --version >&5"
2841 case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844 esac
2845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2846 (eval "$ac_compiler --version >&5") 2>&5
2847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }
2850 { (ac_try="$ac_compiler -v >&5"
2851 case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854 esac
2855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856 (eval "$ac_compiler -v >&5") 2>&5
2857 ac_status=$?
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }
2860 { (ac_try="$ac_compiler -V >&5"
2861 case "(($ac_try" in
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2864 esac
2865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2866 (eval "$ac_compiler -V >&5") 2>&5
2867 ac_status=$?
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }
2871 cat >conftest.$ac_ext <<_ACEOF
2872 /* confdefs.h. */
2873 _ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2879 main ()
2883 return 0;
2885 _ACEOF
2886 ac_clean_files_save=$ac_clean_files
2887 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2888 # Try to create an executable without -o first, disregard a.out.
2889 # It will help us diagnose broken compilers, and finding out an intuition
2890 # of exeext.
2891 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2892 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2893 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2895 # List of possible output files, starting from the most likely.
2896 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2897 # only as a last resort. b.out is created by i960 compilers.
2898 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2900 # The IRIX 6 linker writes into existing files which may not be
2901 # executable, retaining their permissions. Remove them first so a
2902 # subsequent execution test works.
2903 ac_rmfiles=
2904 for ac_file in $ac_files
2906 case $ac_file in
2907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2908 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2909 esac
2910 done
2911 rm -f $ac_rmfiles
2913 if { (ac_try="$ac_link_default"
2914 case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917 esac
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919 (eval "$ac_link_default") 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; then
2923 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2924 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2925 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2926 # so that the user can short-circuit this test for compilers unknown to
2927 # Autoconf.
2928 for ac_file in $ac_files ''
2930 test -f "$ac_file" || continue
2931 case $ac_file in
2932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2934 [ab].out )
2935 # We found the default executable, but exeext='' is most
2936 # certainly right.
2937 break;;
2938 *.* )
2939 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2940 then :; else
2941 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2943 # We set ac_cv_exeext here because the later test for it is not
2944 # safe: cross compilers may not add the suffix if given an `-o'
2945 # argument, so we may need to know it at that point already.
2946 # Even if this section looks crufty: it has the advantage of
2947 # actually working.
2948 break;;
2950 break;;
2951 esac
2952 done
2953 test "$ac_cv_exeext" = no && ac_cv_exeext=
2955 else
2956 ac_file=''
2959 { echo "$as_me:$LINENO: result: $ac_file" >&5
2960 echo "${ECHO_T}$ac_file" >&6; }
2961 if test -z "$ac_file"; then
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2965 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2966 See \`config.log' for more details." >&5
2967 echo "$as_me: error: C compiler cannot create executables
2968 See \`config.log' for more details." >&2;}
2969 { (exit 77); exit 77; }; }
2972 ac_exeext=$ac_cv_exeext
2974 # Check that the compiler produces executables we can run. If not, either
2975 # the compiler is broken, or we cross compile.
2976 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2977 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2978 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2979 # If not cross compiling, check that we can run a simple program.
2980 if test "$cross_compiling" != yes; then
2981 if { ac_try='./$ac_file'
2982 { (case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985 esac
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_try") 2>&5
2988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; }; then
2991 cross_compiling=no
2992 else
2993 if test "$cross_compiling" = maybe; then
2994 cross_compiling=yes
2995 else
2996 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2997 If you meant to cross compile, use \`--host'.
2998 See \`config.log' for more details." >&5
2999 echo "$as_me: error: cannot run C compiled programs.
3000 If you meant to cross compile, use \`--host'.
3001 See \`config.log' for more details." >&2;}
3002 { (exit 1); exit 1; }; }
3006 { echo "$as_me:$LINENO: result: yes" >&5
3007 echo "${ECHO_T}yes" >&6; }
3009 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3010 ac_clean_files=$ac_clean_files_save
3011 # Check that the compiler produces executables we can run. If not, either
3012 # the compiler is broken, or we cross compile.
3013 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3014 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3015 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3016 echo "${ECHO_T}$cross_compiling" >&6; }
3018 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3019 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3020 if { (ac_try="$ac_link"
3021 case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024 esac
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_link") 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; then
3030 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3031 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3032 # work properly (i.e., refer to `conftest.exe'), while it won't with
3033 # `rm'.
3034 for ac_file in conftest.exe conftest conftest.*; do
3035 test -f "$ac_file" || continue
3036 case $ac_file in
3037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3038 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3039 break;;
3040 * ) break;;
3041 esac
3042 done
3043 else
3044 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3045 See \`config.log' for more details." >&5
3046 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3047 See \`config.log' for more details." >&2;}
3048 { (exit 1); exit 1; }; }
3051 rm -f conftest$ac_cv_exeext
3052 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3053 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3055 rm -f conftest.$ac_ext
3056 EXEEXT=$ac_cv_exeext
3057 ac_exeext=$EXEEXT
3058 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3059 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3060 if test "${ac_cv_objext+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063 cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h. */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3071 main ()
3075 return 0;
3077 _ACEOF
3078 rm -f conftest.o conftest.obj
3079 if { (ac_try="$ac_compile"
3080 case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083 esac
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_compile") 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; then
3089 for ac_file in conftest.o conftest.obj conftest.*; do
3090 test -f "$ac_file" || continue;
3091 case $ac_file in
3092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3093 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3094 break;;
3095 esac
3096 done
3097 else
3098 echo "$as_me: failed program was:" >&5
3099 sed 's/^/| /' conftest.$ac_ext >&5
3101 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3102 See \`config.log' for more details." >&5
3103 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3104 See \`config.log' for more details." >&2;}
3105 { (exit 1); exit 1; }; }
3108 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3110 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3111 echo "${ECHO_T}$ac_cv_objext" >&6; }
3112 OBJEXT=$ac_cv_objext
3113 ac_objext=$OBJEXT
3114 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3115 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3116 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 else
3119 cat >conftest.$ac_ext <<_ACEOF
3120 /* confdefs.h. */
3121 _ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3127 main ()
3129 #ifndef __GNUC__
3130 choke me
3131 #endif
3134 return 0;
3136 _ACEOF
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3139 case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_compile") 2>conftest.er1
3145 ac_status=$?
3146 grep -v '^ *+' conftest.er1 >conftest.err
3147 rm -f conftest.er1
3148 cat conftest.err >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } && {
3151 test -z "$ac_c_werror_flag" ||
3152 test ! -s conftest.err
3153 } && test -s conftest.$ac_objext; then
3154 ac_compiler_gnu=yes
3155 else
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 ac_compiler_gnu=no
3162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3166 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3167 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3168 GCC=`test $ac_compiler_gnu = yes && echo yes`
3169 ac_test_CFLAGS=${CFLAGS+set}
3170 ac_save_CFLAGS=$CFLAGS
3171 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3172 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3173 if test "${ac_cv_prog_cc_g+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 else
3176 ac_save_c_werror_flag=$ac_c_werror_flag
3177 ac_c_werror_flag=yes
3178 ac_cv_prog_cc_g=no
3179 CFLAGS="-g"
3180 cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h. */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3188 main ()
3192 return 0;
3194 _ACEOF
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_compile") 2>conftest.er1
3203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } && {
3209 test -z "$ac_c_werror_flag" ||
3210 test ! -s conftest.err
3211 } && test -s conftest.$ac_objext; then
3212 ac_cv_prog_cc_g=yes
3213 else
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3217 CFLAGS=""
3218 cat >conftest.$ac_ext <<_ACEOF
3219 /* confdefs.h. */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3226 main ()
3230 return 0;
3232 _ACEOF
3233 rm -f conftest.$ac_objext
3234 if { (ac_try="$ac_compile"
3235 case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238 esac
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_compile") 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } && {
3247 test -z "$ac_c_werror_flag" ||
3248 test ! -s conftest.err
3249 } && test -s conftest.$ac_objext; then
3251 else
3252 echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3255 ac_c_werror_flag=$ac_save_c_werror_flag
3256 CFLAGS="-g"
3257 cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h. */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3265 main ()
3269 return 0;
3271 _ACEOF
3272 rm -f conftest.$ac_objext
3273 if { (ac_try="$ac_compile"
3274 case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277 esac
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279 (eval "$ac_compile") 2>conftest.er1
3280 ac_status=$?
3281 grep -v '^ *+' conftest.er1 >conftest.err
3282 rm -f conftest.er1
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } && {
3286 test -z "$ac_c_werror_flag" ||
3287 test ! -s conftest.err
3288 } && test -s conftest.$ac_objext; then
3289 ac_cv_prog_cc_g=yes
3290 else
3291 echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304 ac_c_werror_flag=$ac_save_c_werror_flag
3306 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3307 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3308 if test "$ac_test_CFLAGS" = set; then
3309 CFLAGS=$ac_save_CFLAGS
3310 elif test $ac_cv_prog_cc_g = yes; then
3311 if test "$GCC" = yes; then
3312 CFLAGS="-g -O2"
3313 else
3314 CFLAGS="-g"
3316 else
3317 if test "$GCC" = yes; then
3318 CFLAGS="-O2"
3319 else
3320 CFLAGS=
3323 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3324 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3325 if test "${ac_cv_prog_cc_c89+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328 ac_cv_prog_cc_c89=no
3329 ac_save_CC=$CC
3330 cat >conftest.$ac_ext <<_ACEOF
3331 /* confdefs.h. */
3332 _ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h. */
3336 #include <stdarg.h>
3337 #include <stdio.h>
3338 #include <sys/types.h>
3339 #include <sys/stat.h>
3340 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3341 struct buf { int x; };
3342 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3343 static char *e (p, i)
3344 char **p;
3345 int i;
3347 return p[i];
3349 static char *f (char * (*g) (char **, int), char **p, ...)
3351 char *s;
3352 va_list v;
3353 va_start (v,p);
3354 s = g (p, va_arg (v,int));
3355 va_end (v);
3356 return s;
3359 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3360 function prototypes and stuff, but not '\xHH' hex character constants.
3361 These don't provoke an error unfortunately, instead are silently treated
3362 as 'x'. The following induces an error, until -std is added to get
3363 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3364 array size at least. It's necessary to write '\x00'==0 to get something
3365 that's true only with -std. */
3366 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3368 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3369 inside strings and character constants. */
3370 #define FOO(x) 'x'
3371 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3373 int test (int i, double x);
3374 struct s1 {int (*f) (int a);};
3375 struct s2 {int (*f) (double a);};
3376 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3377 int argc;
3378 char **argv;
3380 main ()
3382 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3384 return 0;
3386 _ACEOF
3387 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3388 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3390 CC="$ac_save_CC $ac_arg"
3391 rm -f conftest.$ac_objext
3392 if { (ac_try="$ac_compile"
3393 case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396 esac
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398 (eval "$ac_compile") 2>conftest.er1
3399 ac_status=$?
3400 grep -v '^ *+' conftest.er1 >conftest.err
3401 rm -f conftest.er1
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } && {
3405 test -z "$ac_c_werror_flag" ||
3406 test ! -s conftest.err
3407 } && test -s conftest.$ac_objext; then
3408 ac_cv_prog_cc_c89=$ac_arg
3409 else
3410 echo "$as_me: failed program was:" >&5
3411 sed 's/^/| /' conftest.$ac_ext >&5
3416 rm -f core conftest.err conftest.$ac_objext
3417 test "x$ac_cv_prog_cc_c89" != "xno" && break
3418 done
3419 rm -f conftest.$ac_ext
3420 CC=$ac_save_CC
3423 # AC_CACHE_VAL
3424 case "x$ac_cv_prog_cc_c89" in
3426 { echo "$as_me:$LINENO: result: none needed" >&5
3427 echo "${ECHO_T}none needed" >&6; } ;;
3428 xno)
3429 { echo "$as_me:$LINENO: result: unsupported" >&5
3430 echo "${ECHO_T}unsupported" >&6; } ;;
3432 CC="$CC $ac_cv_prog_cc_c89"
3433 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3434 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3435 esac
3438 ac_ext=c
3439 ac_cpp='$CPP $CPPFLAGS'
3440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444 depcc="$CC" am_compiler_list=
3446 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3447 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3448 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 else
3451 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3452 # We make a subdir and do the tests there. Otherwise we can end up
3453 # making bogus files that we don't know about and never remove. For
3454 # instance it was reported that on HP-UX the gcc test will end up
3455 # making a dummy file named `D' -- because `-MD' means `put the output
3456 # in D'.
3457 mkdir conftest.dir
3458 # Copy depcomp to subdir because otherwise we won't find it if we're
3459 # using a relative directory.
3460 cp "$am_depcomp" conftest.dir
3461 cd conftest.dir
3462 # We will build objects and dependencies in a subdirectory because
3463 # it helps to detect inapplicable dependency modes. For instance
3464 # both Tru64's cc and ICC support -MD to output dependencies as a
3465 # side effect of compilation, but ICC will put the dependencies in
3466 # the current directory while Tru64 will put them in the object
3467 # directory.
3468 mkdir sub
3470 am_cv_CC_dependencies_compiler_type=none
3471 if test "$am_compiler_list" = ""; then
3472 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3474 for depmode in $am_compiler_list; do
3475 # Setup a source with many dependencies, because some compilers
3476 # like to wrap large dependency lists on column 80 (with \), and
3477 # we should not choose a depcomp mode which is confused by this.
3479 # We need to recreate these files for each test, as the compiler may
3480 # overwrite some of them when testing with obscure command lines.
3481 # This happens at least with the AIX C compiler.
3482 : > sub/conftest.c
3483 for i in 1 2 3 4 5 6; do
3484 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3485 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3486 # Solaris 8's {/usr,}/bin/sh.
3487 touch sub/conftst$i.h
3488 done
3489 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3491 case $depmode in
3492 nosideeffect)
3493 # after this tag, mechanisms are not by side-effect, so they'll
3494 # only be used when explicitly requested
3495 if test "x$enable_dependency_tracking" = xyes; then
3496 continue
3497 else
3498 break
3501 none) break ;;
3502 esac
3503 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3504 # mode. It turns out that the SunPro C++ compiler does not properly
3505 # handle `-M -o', and we need to detect this.
3506 if depmode=$depmode \
3507 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3508 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3509 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3510 >/dev/null 2>conftest.err &&
3511 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3512 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3513 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3514 # icc doesn't choke on unknown options, it will just issue warnings
3515 # or remarks (even with -Werror). So we grep stderr for any message
3516 # that says an option was ignored or not supported.
3517 # When given -MP, icc 7.0 and 7.1 complain thusly:
3518 # icc: Command line warning: ignoring option '-M'; no argument required
3519 # The diagnosis changed in icc 8.0:
3520 # icc: Command line remark: option '-MP' not supported
3521 if (grep 'ignoring option' conftest.err ||
3522 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3523 am_cv_CC_dependencies_compiler_type=$depmode
3524 break
3527 done
3529 cd ..
3530 rm -rf conftest.dir
3531 else
3532 am_cv_CC_dependencies_compiler_type=none
3536 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3537 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3538 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3543 test "x$enable_dependency_tracking" != xno \
3544 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3545 am__fastdepCC_TRUE=
3546 am__fastdepCC_FALSE='#'
3547 else
3548 am__fastdepCC_TRUE='#'
3549 am__fastdepCC_FALSE=
3554 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3555 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3556 if test "${ac_cv_search_strerror+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559 ac_func_search_save_LIBS=$LIBS
3560 cat >conftest.$ac_ext <<_ACEOF
3561 /* confdefs.h. */
3562 _ACEOF
3563 cat confdefs.h >>conftest.$ac_ext
3564 cat >>conftest.$ac_ext <<_ACEOF
3565 /* end confdefs.h. */
3567 /* Override any GCC internal prototype to avoid an error.
3568 Use char because int might match the return type of a GCC
3569 builtin and then its argument prototype would still apply. */
3570 #ifdef __cplusplus
3571 extern "C"
3572 #endif
3573 char strerror ();
3575 main ()
3577 return strerror ();
3579 return 0;
3581 _ACEOF
3582 for ac_lib in '' cposix; do
3583 if test -z "$ac_lib"; then
3584 ac_res="none required"
3585 else
3586 ac_res=-l$ac_lib
3587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3589 rm -f conftest.$ac_objext conftest$ac_exeext
3590 if { (ac_try="$ac_link"
3591 case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_link") 2>conftest.er1
3597 ac_status=$?
3598 grep -v '^ *+' conftest.er1 >conftest.err
3599 rm -f conftest.er1
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } && {
3603 test -z "$ac_c_werror_flag" ||
3604 test ! -s conftest.err
3605 } && test -s conftest$ac_exeext &&
3606 $as_test_x conftest$ac_exeext; then
3607 ac_cv_search_strerror=$ac_res
3608 else
3609 echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3616 conftest$ac_exeext
3617 if test "${ac_cv_search_strerror+set}" = set; then
3618 break
3620 done
3621 if test "${ac_cv_search_strerror+set}" = set; then
3623 else
3624 ac_cv_search_strerror=no
3626 rm conftest.$ac_ext
3627 LIBS=$ac_func_search_save_LIBS
3629 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3630 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3631 ac_res=$ac_cv_search_strerror
3632 if test "$ac_res" != no; then
3633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3637 ac_ext=c
3638 ac_cpp='$CPP $CPPFLAGS'
3639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3642 if test -n "$ac_tool_prefix"; then
3643 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3644 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3647 if test "${ac_cv_prog_CC+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 else
3650 if test -n "$CC"; then
3651 ac_cv_prog_CC="$CC" # Let the user override the test.
3652 else
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3656 IFS=$as_save_IFS
3657 test -z "$as_dir" && as_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3660 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3662 break 2
3664 done
3665 done
3666 IFS=$as_save_IFS
3670 CC=$ac_cv_prog_CC
3671 if test -n "$CC"; then
3672 { echo "$as_me:$LINENO: result: $CC" >&5
3673 echo "${ECHO_T}$CC" >&6; }
3674 else
3675 { echo "$as_me:$LINENO: result: no" >&5
3676 echo "${ECHO_T}no" >&6; }
3681 if test -z "$ac_cv_prog_CC"; then
3682 ac_ct_CC=$CC
3683 # Extract the first word of "gcc", so it can be a program name with args.
3684 set dummy gcc; ac_word=$2
3685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3687 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690 if test -n "$ac_ct_CC"; then
3691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3692 else
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3700 ac_cv_prog_ac_ct_CC="gcc"
3701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 break 2
3704 done
3705 done
3706 IFS=$as_save_IFS
3710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3711 if test -n "$ac_ct_CC"; then
3712 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3713 echo "${ECHO_T}$ac_ct_CC" >&6; }
3714 else
3715 { echo "$as_me:$LINENO: result: no" >&5
3716 echo "${ECHO_T}no" >&6; }
3719 if test "x$ac_ct_CC" = x; then
3720 CC=""
3721 else
3722 case $cross_compiling:$ac_tool_warned in
3723 yes:)
3724 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3725 whose name does not start with the host triplet. If you think this
3726 configuration is useful to you, please write to autoconf@gnu.org." >&5
3727 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3728 whose name does not start with the host triplet. If you think this
3729 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3730 ac_tool_warned=yes ;;
3731 esac
3732 CC=$ac_ct_CC
3734 else
3735 CC="$ac_cv_prog_CC"
3738 if test -z "$CC"; then
3739 if test -n "$ac_tool_prefix"; then
3740 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3741 set dummy ${ac_tool_prefix}cc; ac_word=$2
3742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3744 if test "${ac_cv_prog_CC+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746 else
3747 if test -n "$CC"; then
3748 ac_cv_prog_CC="$CC" # Let the user override the test.
3749 else
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3753 IFS=$as_save_IFS
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3757 ac_cv_prog_CC="${ac_tool_prefix}cc"
3758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759 break 2
3761 done
3762 done
3763 IFS=$as_save_IFS
3767 CC=$ac_cv_prog_CC
3768 if test -n "$CC"; then
3769 { echo "$as_me:$LINENO: result: $CC" >&5
3770 echo "${ECHO_T}$CC" >&6; }
3771 else
3772 { echo "$as_me:$LINENO: result: no" >&5
3773 echo "${ECHO_T}no" >&6; }
3779 if test -z "$CC"; then
3780 # Extract the first word of "cc", so it can be a program name with args.
3781 set dummy cc; ac_word=$2
3782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3784 if test "${ac_cv_prog_CC+set}" = set; then
3785 echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787 if test -n "$CC"; then
3788 ac_cv_prog_CC="$CC" # Let the user override the test.
3789 else
3790 ac_prog_rejected=no
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 for as_dir in $PATH
3794 IFS=$as_save_IFS
3795 test -z "$as_dir" && as_dir=.
3796 for ac_exec_ext in '' $ac_executable_extensions; do
3797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3798 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3799 ac_prog_rejected=yes
3800 continue
3802 ac_cv_prog_CC="cc"
3803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3806 done
3807 done
3808 IFS=$as_save_IFS
3810 if test $ac_prog_rejected = yes; then
3811 # We found a bogon in the path, so make sure we never use it.
3812 set dummy $ac_cv_prog_CC
3813 shift
3814 if test $# != 0; then
3815 # We chose a different compiler from the bogus one.
3816 # However, it has the same basename, so the bogon will be chosen
3817 # first if we set CC to just the basename; use the full file name.
3818 shift
3819 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3824 CC=$ac_cv_prog_CC
3825 if test -n "$CC"; then
3826 { echo "$as_me:$LINENO: result: $CC" >&5
3827 echo "${ECHO_T}$CC" >&6; }
3828 else
3829 { echo "$as_me:$LINENO: result: no" >&5
3830 echo "${ECHO_T}no" >&6; }
3835 if test -z "$CC"; then
3836 if test -n "$ac_tool_prefix"; then
3837 for ac_prog in cl.exe
3839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3843 if test "${ac_cv_prog_CC+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846 if test -n "$CC"; then
3847 ac_cv_prog_CC="$CC" # Let the user override the test.
3848 else
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $PATH
3852 IFS=$as_save_IFS
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3856 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3858 break 2
3860 done
3861 done
3862 IFS=$as_save_IFS
3866 CC=$ac_cv_prog_CC
3867 if test -n "$CC"; then
3868 { echo "$as_me:$LINENO: result: $CC" >&5
3869 echo "${ECHO_T}$CC" >&6; }
3870 else
3871 { echo "$as_me:$LINENO: result: no" >&5
3872 echo "${ECHO_T}no" >&6; }
3876 test -n "$CC" && break
3877 done
3879 if test -z "$CC"; then
3880 ac_ct_CC=$CC
3881 for ac_prog in cl.exe
3883 # Extract the first word of "$ac_prog", so it can be a program name with args.
3884 set dummy $ac_prog; ac_word=$2
3885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3887 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890 if test -n "$ac_ct_CC"; then
3891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3892 else
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894 for as_dir in $PATH
3896 IFS=$as_save_IFS
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3900 ac_cv_prog_ac_ct_CC="$ac_prog"
3901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3902 break 2
3904 done
3905 done
3906 IFS=$as_save_IFS
3910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3911 if test -n "$ac_ct_CC"; then
3912 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3913 echo "${ECHO_T}$ac_ct_CC" >&6; }
3914 else
3915 { echo "$as_me:$LINENO: result: no" >&5
3916 echo "${ECHO_T}no" >&6; }
3920 test -n "$ac_ct_CC" && break
3921 done
3923 if test "x$ac_ct_CC" = x; then
3924 CC=""
3925 else
3926 case $cross_compiling:$ac_tool_warned in
3927 yes:)
3928 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3929 whose name does not start with the host triplet. If you think this
3930 configuration is useful to you, please write to autoconf@gnu.org." >&5
3931 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3932 whose name does not start with the host triplet. If you think this
3933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3934 ac_tool_warned=yes ;;
3935 esac
3936 CC=$ac_ct_CC
3943 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3944 See \`config.log' for more details." >&5
3945 echo "$as_me: error: no acceptable C compiler found in \$PATH
3946 See \`config.log' for more details." >&2;}
3947 { (exit 1); exit 1; }; }
3949 # Provide some information about the compiler.
3950 echo "$as_me:$LINENO: checking for C compiler version" >&5
3951 ac_compiler=`set X $ac_compile; echo $2`
3952 { (ac_try="$ac_compiler --version >&5"
3953 case "(($ac_try" in
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3956 esac
3957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958 (eval "$ac_compiler --version >&5") 2>&5
3959 ac_status=$?
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }
3962 { (ac_try="$ac_compiler -v >&5"
3963 case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966 esac
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968 (eval "$ac_compiler -v >&5") 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); }
3972 { (ac_try="$ac_compiler -V >&5"
3973 case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976 esac
3977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978 (eval "$ac_compiler -V >&5") 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }
3983 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3984 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3985 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 else
3988 cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h. */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3996 main ()
3998 #ifndef __GNUC__
3999 choke me
4000 #endif
4003 return 0;
4005 _ACEOF
4006 rm -f conftest.$ac_objext
4007 if { (ac_try="$ac_compile"
4008 case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4011 esac
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_compile") 2>conftest.er1
4014 ac_status=$?
4015 grep -v '^ *+' conftest.er1 >conftest.err
4016 rm -f conftest.er1
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } && {
4020 test -z "$ac_c_werror_flag" ||
4021 test ! -s conftest.err
4022 } && test -s conftest.$ac_objext; then
4023 ac_compiler_gnu=yes
4024 else
4025 echo "$as_me: failed program was:" >&5
4026 sed 's/^/| /' conftest.$ac_ext >&5
4028 ac_compiler_gnu=no
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4035 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4036 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4037 GCC=`test $ac_compiler_gnu = yes && echo yes`
4038 ac_test_CFLAGS=${CFLAGS+set}
4039 ac_save_CFLAGS=$CFLAGS
4040 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4041 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4042 if test "${ac_cv_prog_cc_g+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 else
4045 ac_save_c_werror_flag=$ac_c_werror_flag
4046 ac_c_werror_flag=yes
4047 ac_cv_prog_cc_g=no
4048 CFLAGS="-g"
4049 cat >conftest.$ac_ext <<_ACEOF
4050 /* confdefs.h. */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4057 main ()
4061 return 0;
4063 _ACEOF
4064 rm -f conftest.$ac_objext
4065 if { (ac_try="$ac_compile"
4066 case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069 esac
4070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_compile") 2>conftest.er1
4072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077 (exit $ac_status); } && {
4078 test -z "$ac_c_werror_flag" ||
4079 test ! -s conftest.err
4080 } && test -s conftest.$ac_objext; then
4081 ac_cv_prog_cc_g=yes
4082 else
4083 echo "$as_me: failed program was:" >&5
4084 sed 's/^/| /' conftest.$ac_ext >&5
4086 CFLAGS=""
4087 cat >conftest.$ac_ext <<_ACEOF
4088 /* confdefs.h. */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h. */
4095 main ()
4099 return 0;
4101 _ACEOF
4102 rm -f conftest.$ac_objext
4103 if { (ac_try="$ac_compile"
4104 case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107 esac
4108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109 (eval "$ac_compile") 2>conftest.er1
4110 ac_status=$?
4111 grep -v '^ *+' conftest.er1 >conftest.err
4112 rm -f conftest.er1
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } && {
4116 test -z "$ac_c_werror_flag" ||
4117 test ! -s conftest.err
4118 } && test -s conftest.$ac_objext; then
4120 else
4121 echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4124 ac_c_werror_flag=$ac_save_c_werror_flag
4125 CFLAGS="-g"
4126 cat >conftest.$ac_ext <<_ACEOF
4127 /* confdefs.h. */
4128 _ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4134 main ()
4138 return 0;
4140 _ACEOF
4141 rm -f conftest.$ac_objext
4142 if { (ac_try="$ac_compile"
4143 case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146 esac
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_compile") 2>conftest.er1
4149 ac_status=$?
4150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } && {
4155 test -z "$ac_c_werror_flag" ||
4156 test ! -s conftest.err
4157 } && test -s conftest.$ac_objext; then
4158 ac_cv_prog_cc_g=yes
4159 else
4160 echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173 ac_c_werror_flag=$ac_save_c_werror_flag
4175 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4176 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4177 if test "$ac_test_CFLAGS" = set; then
4178 CFLAGS=$ac_save_CFLAGS
4179 elif test $ac_cv_prog_cc_g = yes; then
4180 if test "$GCC" = yes; then
4181 CFLAGS="-g -O2"
4182 else
4183 CFLAGS="-g"
4185 else
4186 if test "$GCC" = yes; then
4187 CFLAGS="-O2"
4188 else
4189 CFLAGS=
4192 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4193 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4194 if test "${ac_cv_prog_cc_c89+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 ac_cv_prog_cc_c89=no
4198 ac_save_CC=$CC
4199 cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h. */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4205 #include <stdarg.h>
4206 #include <stdio.h>
4207 #include <sys/types.h>
4208 #include <sys/stat.h>
4209 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4210 struct buf { int x; };
4211 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4212 static char *e (p, i)
4213 char **p;
4214 int i;
4216 return p[i];
4218 static char *f (char * (*g) (char **, int), char **p, ...)
4220 char *s;
4221 va_list v;
4222 va_start (v,p);
4223 s = g (p, va_arg (v,int));
4224 va_end (v);
4225 return s;
4228 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4229 function prototypes and stuff, but not '\xHH' hex character constants.
4230 These don't provoke an error unfortunately, instead are silently treated
4231 as 'x'. The following induces an error, until -std is added to get
4232 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4233 array size at least. It's necessary to write '\x00'==0 to get something
4234 that's true only with -std. */
4235 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4237 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4238 inside strings and character constants. */
4239 #define FOO(x) 'x'
4240 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4242 int test (int i, double x);
4243 struct s1 {int (*f) (int a);};
4244 struct s2 {int (*f) (double a);};
4245 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4246 int argc;
4247 char **argv;
4249 main ()
4251 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4253 return 0;
4255 _ACEOF
4256 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4257 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4259 CC="$ac_save_CC $ac_arg"
4260 rm -f conftest.$ac_objext
4261 if { (ac_try="$ac_compile"
4262 case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265 esac
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_compile") 2>conftest.er1
4268 ac_status=$?
4269 grep -v '^ *+' conftest.er1 >conftest.err
4270 rm -f conftest.er1
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } && {
4274 test -z "$ac_c_werror_flag" ||
4275 test ! -s conftest.err
4276 } && test -s conftest.$ac_objext; then
4277 ac_cv_prog_cc_c89=$ac_arg
4278 else
4279 echo "$as_me: failed program was:" >&5
4280 sed 's/^/| /' conftest.$ac_ext >&5
4285 rm -f core conftest.err conftest.$ac_objext
4286 test "x$ac_cv_prog_cc_c89" != "xno" && break
4287 done
4288 rm -f conftest.$ac_ext
4289 CC=$ac_save_CC
4292 # AC_CACHE_VAL
4293 case "x$ac_cv_prog_cc_c89" in
4295 { echo "$as_me:$LINENO: result: none needed" >&5
4296 echo "${ECHO_T}none needed" >&6; } ;;
4297 xno)
4298 { echo "$as_me:$LINENO: result: unsupported" >&5
4299 echo "${ECHO_T}unsupported" >&6; } ;;
4301 CC="$CC $ac_cv_prog_cc_c89"
4302 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4303 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4304 esac
4307 ac_ext=c
4308 ac_cpp='$CPP $CPPFLAGS'
4309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4313 depcc="$CC" am_compiler_list=
4315 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4316 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4317 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 else
4320 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4321 # We make a subdir and do the tests there. Otherwise we can end up
4322 # making bogus files that we don't know about and never remove. For
4323 # instance it was reported that on HP-UX the gcc test will end up
4324 # making a dummy file named `D' -- because `-MD' means `put the output
4325 # in D'.
4326 mkdir conftest.dir
4327 # Copy depcomp to subdir because otherwise we won't find it if we're
4328 # using a relative directory.
4329 cp "$am_depcomp" conftest.dir
4330 cd conftest.dir
4331 # We will build objects and dependencies in a subdirectory because
4332 # it helps to detect inapplicable dependency modes. For instance
4333 # both Tru64's cc and ICC support -MD to output dependencies as a
4334 # side effect of compilation, but ICC will put the dependencies in
4335 # the current directory while Tru64 will put them in the object
4336 # directory.
4337 mkdir sub
4339 am_cv_CC_dependencies_compiler_type=none
4340 if test "$am_compiler_list" = ""; then
4341 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4343 for depmode in $am_compiler_list; do
4344 # Setup a source with many dependencies, because some compilers
4345 # like to wrap large dependency lists on column 80 (with \), and
4346 # we should not choose a depcomp mode which is confused by this.
4348 # We need to recreate these files for each test, as the compiler may
4349 # overwrite some of them when testing with obscure command lines.
4350 # This happens at least with the AIX C compiler.
4351 : > sub/conftest.c
4352 for i in 1 2 3 4 5 6; do
4353 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4354 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4355 # Solaris 8's {/usr,}/bin/sh.
4356 touch sub/conftst$i.h
4357 done
4358 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4360 case $depmode in
4361 nosideeffect)
4362 # after this tag, mechanisms are not by side-effect, so they'll
4363 # only be used when explicitly requested
4364 if test "x$enable_dependency_tracking" = xyes; then
4365 continue
4366 else
4367 break
4370 none) break ;;
4371 esac
4372 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4373 # mode. It turns out that the SunPro C++ compiler does not properly
4374 # handle `-M -o', and we need to detect this.
4375 if depmode=$depmode \
4376 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4377 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4378 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4379 >/dev/null 2>conftest.err &&
4380 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4381 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4382 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4383 # icc doesn't choke on unknown options, it will just issue warnings
4384 # or remarks (even with -Werror). So we grep stderr for any message
4385 # that says an option was ignored or not supported.
4386 # When given -MP, icc 7.0 and 7.1 complain thusly:
4387 # icc: Command line warning: ignoring option '-M'; no argument required
4388 # The diagnosis changed in icc 8.0:
4389 # icc: Command line remark: option '-MP' not supported
4390 if (grep 'ignoring option' conftest.err ||
4391 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4392 am_cv_CC_dependencies_compiler_type=$depmode
4393 break
4396 done
4398 cd ..
4399 rm -rf conftest.dir
4400 else
4401 am_cv_CC_dependencies_compiler_type=none
4405 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4406 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4407 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4412 test "x$enable_dependency_tracking" != xno \
4413 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4414 am__fastdepCC_TRUE=
4415 am__fastdepCC_FALSE='#'
4416 else
4417 am__fastdepCC_TRUE='#'
4418 am__fastdepCC_FALSE=
4422 ac_ext=c
4423 ac_cpp='$CPP $CPPFLAGS'
4424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4427 if test -n "$ac_tool_prefix"; then
4428 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4429 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435 if test -n "$CC"; then
4436 ac_cv_prog_CC="$CC" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4441 IFS=$as_save_IFS
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 break 2
4449 done
4450 done
4451 IFS=$as_save_IFS
4455 CC=$ac_cv_prog_CC
4456 if test -n "$CC"; then
4457 { echo "$as_me:$LINENO: result: $CC" >&5
4458 echo "${ECHO_T}$CC" >&6; }
4459 else
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4466 if test -z "$ac_cv_prog_CC"; then
4467 ac_ct_CC=$CC
4468 # Extract the first word of "gcc", so it can be a program name with args.
4469 set dummy gcc; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475 if test -n "$ac_ct_CC"; then
4476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4477 else
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4481 IFS=$as_save_IFS
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4485 ac_cv_prog_ac_ct_CC="gcc"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 break 2
4489 done
4490 done
4491 IFS=$as_save_IFS
4495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4496 if test -n "$ac_ct_CC"; then
4497 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4498 echo "${ECHO_T}$ac_ct_CC" >&6; }
4499 else
4500 { echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6; }
4504 if test "x$ac_ct_CC" = x; then
4505 CC=""
4506 else
4507 case $cross_compiling:$ac_tool_warned in
4508 yes:)
4509 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4510 whose name does not start with the host triplet. If you think this
4511 configuration is useful to you, please write to autoconf@gnu.org." >&5
4512 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4513 whose name does not start with the host triplet. If you think this
4514 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4515 ac_tool_warned=yes ;;
4516 esac
4517 CC=$ac_ct_CC
4519 else
4520 CC="$ac_cv_prog_CC"
4523 if test -z "$CC"; then
4524 if test -n "$ac_tool_prefix"; then
4525 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4526 set dummy ${ac_tool_prefix}cc; ac_word=$2
4527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4529 if test "${ac_cv_prog_CC+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 else
4532 if test -n "$CC"; then
4533 ac_cv_prog_CC="$CC" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_prog_CC="${ac_tool_prefix}cc"
4543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4546 done
4547 done
4548 IFS=$as_save_IFS
4552 CC=$ac_cv_prog_CC
4553 if test -n "$CC"; then
4554 { echo "$as_me:$LINENO: result: $CC" >&5
4555 echo "${ECHO_T}$CC" >&6; }
4556 else
4557 { echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6; }
4564 if test -z "$CC"; then
4565 # Extract the first word of "cc", so it can be a program name with args.
4566 set dummy cc; ac_word=$2
4567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4569 if test "${ac_cv_prog_CC+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572 if test -n "$CC"; then
4573 ac_cv_prog_CC="$CC" # Let the user override the test.
4574 else
4575 ac_prog_rejected=no
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4583 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4584 ac_prog_rejected=yes
4585 continue
4587 ac_cv_prog_CC="cc"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4591 done
4592 done
4593 IFS=$as_save_IFS
4595 if test $ac_prog_rejected = yes; then
4596 # We found a bogon in the path, so make sure we never use it.
4597 set dummy $ac_cv_prog_CC
4598 shift
4599 if test $# != 0; then
4600 # We chose a different compiler from the bogus one.
4601 # However, it has the same basename, so the bogon will be chosen
4602 # first if we set CC to just the basename; use the full file name.
4603 shift
4604 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4609 CC=$ac_cv_prog_CC
4610 if test -n "$CC"; then
4611 { echo "$as_me:$LINENO: result: $CC" >&5
4612 echo "${ECHO_T}$CC" >&6; }
4613 else
4614 { echo "$as_me:$LINENO: result: no" >&5
4615 echo "${ECHO_T}no" >&6; }
4620 if test -z "$CC"; then
4621 if test -n "$ac_tool_prefix"; then
4622 for ac_prog in cl.exe
4624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4628 if test "${ac_cv_prog_CC+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 else
4631 if test -n "$CC"; then
4632 ac_cv_prog_CC="$CC" # Let the user override the test.
4633 else
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4641 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 break 2
4645 done
4646 done
4647 IFS=$as_save_IFS
4651 CC=$ac_cv_prog_CC
4652 if test -n "$CC"; then
4653 { echo "$as_me:$LINENO: result: $CC" >&5
4654 echo "${ECHO_T}$CC" >&6; }
4655 else
4656 { echo "$as_me:$LINENO: result: no" >&5
4657 echo "${ECHO_T}no" >&6; }
4661 test -n "$CC" && break
4662 done
4664 if test -z "$CC"; then
4665 ac_ct_CC=$CC
4666 for ac_prog in cl.exe
4668 # Extract the first word of "$ac_prog", so it can be a program name with args.
4669 set dummy $ac_prog; ac_word=$2
4670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4672 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4673 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675 if test -n "$ac_ct_CC"; then
4676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_exec_ext in '' $ac_executable_extensions; do
4684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685 ac_cv_prog_ac_ct_CC="$ac_prog"
4686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687 break 2
4689 done
4690 done
4691 IFS=$as_save_IFS
4695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4696 if test -n "$ac_ct_CC"; then
4697 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4698 echo "${ECHO_T}$ac_ct_CC" >&6; }
4699 else
4700 { echo "$as_me:$LINENO: result: no" >&5
4701 echo "${ECHO_T}no" >&6; }
4705 test -n "$ac_ct_CC" && break
4706 done
4708 if test "x$ac_ct_CC" = x; then
4709 CC=""
4710 else
4711 case $cross_compiling:$ac_tool_warned in
4712 yes:)
4713 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4714 whose name does not start with the host triplet. If you think this
4715 configuration is useful to you, please write to autoconf@gnu.org." >&5
4716 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4717 whose name does not start with the host triplet. If you think this
4718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4719 ac_tool_warned=yes ;;
4720 esac
4721 CC=$ac_ct_CC
4728 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4729 See \`config.log' for more details." >&5
4730 echo "$as_me: error: no acceptable C compiler found in \$PATH
4731 See \`config.log' for more details." >&2;}
4732 { (exit 1); exit 1; }; }
4734 # Provide some information about the compiler.
4735 echo "$as_me:$LINENO: checking for C compiler version" >&5
4736 ac_compiler=`set X $ac_compile; echo $2`
4737 { (ac_try="$ac_compiler --version >&5"
4738 case "(($ac_try" in
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4741 esac
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743 (eval "$ac_compiler --version >&5") 2>&5
4744 ac_status=$?
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }
4747 { (ac_try="$ac_compiler -v >&5"
4748 case "(($ac_try" in
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4751 esac
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753 (eval "$ac_compiler -v >&5") 2>&5
4754 ac_status=$?
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }
4757 { (ac_try="$ac_compiler -V >&5"
4758 case "(($ac_try" in
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4761 esac
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_compiler -V >&5") 2>&5
4764 ac_status=$?
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }
4768 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4769 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4770 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773 cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h. */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4781 main ()
4783 #ifndef __GNUC__
4784 choke me
4785 #endif
4788 return 0;
4790 _ACEOF
4791 rm -f conftest.$ac_objext
4792 if { (ac_try="$ac_compile"
4793 case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4796 esac
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_compile") 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && {
4805 test -z "$ac_c_werror_flag" ||
4806 test ! -s conftest.err
4807 } && test -s conftest.$ac_objext; then
4808 ac_compiler_gnu=yes
4809 else
4810 echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4813 ac_compiler_gnu=no
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4820 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4821 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4822 GCC=`test $ac_compiler_gnu = yes && echo yes`
4823 ac_test_CFLAGS=${CFLAGS+set}
4824 ac_save_CFLAGS=$CFLAGS
4825 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4826 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4827 if test "${ac_cv_prog_cc_g+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830 ac_save_c_werror_flag=$ac_c_werror_flag
4831 ac_c_werror_flag=yes
4832 ac_cv_prog_cc_g=no
4833 CFLAGS="-g"
4834 cat >conftest.$ac_ext <<_ACEOF
4835 /* confdefs.h. */
4836 _ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4842 main ()
4846 return 0;
4848 _ACEOF
4849 rm -f conftest.$ac_objext
4850 if { (ac_try="$ac_compile"
4851 case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854 esac
4855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4856 (eval "$ac_compile") 2>conftest.er1
4857 ac_status=$?
4858 grep -v '^ *+' conftest.er1 >conftest.err
4859 rm -f conftest.er1
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } && {
4863 test -z "$ac_c_werror_flag" ||
4864 test ! -s conftest.err
4865 } && test -s conftest.$ac_objext; then
4866 ac_cv_prog_cc_g=yes
4867 else
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4871 CFLAGS=""
4872 cat >conftest.$ac_ext <<_ACEOF
4873 /* confdefs.h. */
4874 _ACEOF
4875 cat confdefs.h >>conftest.$ac_ext
4876 cat >>conftest.$ac_ext <<_ACEOF
4877 /* end confdefs.h. */
4880 main ()
4884 return 0;
4886 _ACEOF
4887 rm -f conftest.$ac_objext
4888 if { (ac_try="$ac_compile"
4889 case "(($ac_try" in
4890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4891 *) ac_try_echo=$ac_try;;
4892 esac
4893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4894 (eval "$ac_compile") 2>conftest.er1
4895 ac_status=$?
4896 grep -v '^ *+' conftest.er1 >conftest.err
4897 rm -f conftest.er1
4898 cat conftest.err >&5
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); } && {
4901 test -z "$ac_c_werror_flag" ||
4902 test ! -s conftest.err
4903 } && test -s conftest.$ac_objext; then
4905 else
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4909 ac_c_werror_flag=$ac_save_c_werror_flag
4910 CFLAGS="-g"
4911 cat >conftest.$ac_ext <<_ACEOF
4912 /* confdefs.h. */
4913 _ACEOF
4914 cat confdefs.h >>conftest.$ac_ext
4915 cat >>conftest.$ac_ext <<_ACEOF
4916 /* end confdefs.h. */
4919 main ()
4923 return 0;
4925 _ACEOF
4926 rm -f conftest.$ac_objext
4927 if { (ac_try="$ac_compile"
4928 case "(($ac_try" in
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4931 esac
4932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933 (eval "$ac_compile") 2>conftest.er1
4934 ac_status=$?
4935 grep -v '^ *+' conftest.er1 >conftest.err
4936 rm -f conftest.er1
4937 cat conftest.err >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } && {
4940 test -z "$ac_c_werror_flag" ||
4941 test ! -s conftest.err
4942 } && test -s conftest.$ac_objext; then
4943 ac_cv_prog_cc_g=yes
4944 else
4945 echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 ac_c_werror_flag=$ac_save_c_werror_flag
4960 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4961 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4962 if test "$ac_test_CFLAGS" = set; then
4963 CFLAGS=$ac_save_CFLAGS
4964 elif test $ac_cv_prog_cc_g = yes; then
4965 if test "$GCC" = yes; then
4966 CFLAGS="-g -O2"
4967 else
4968 CFLAGS="-g"
4970 else
4971 if test "$GCC" = yes; then
4972 CFLAGS="-O2"
4973 else
4974 CFLAGS=
4977 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4978 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4979 if test "${ac_cv_prog_cc_c89+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982 ac_cv_prog_cc_c89=no
4983 ac_save_CC=$CC
4984 cat >conftest.$ac_ext <<_ACEOF
4985 /* confdefs.h. */
4986 _ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4990 #include <stdarg.h>
4991 #include <stdio.h>
4992 #include <sys/types.h>
4993 #include <sys/stat.h>
4994 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4995 struct buf { int x; };
4996 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4997 static char *e (p, i)
4998 char **p;
4999 int i;
5001 return p[i];
5003 static char *f (char * (*g) (char **, int), char **p, ...)
5005 char *s;
5006 va_list v;
5007 va_start (v,p);
5008 s = g (p, va_arg (v,int));
5009 va_end (v);
5010 return s;
5013 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5014 function prototypes and stuff, but not '\xHH' hex character constants.
5015 These don't provoke an error unfortunately, instead are silently treated
5016 as 'x'. The following induces an error, until -std is added to get
5017 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5018 array size at least. It's necessary to write '\x00'==0 to get something
5019 that's true only with -std. */
5020 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5022 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5023 inside strings and character constants. */
5024 #define FOO(x) 'x'
5025 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5027 int test (int i, double x);
5028 struct s1 {int (*f) (int a);};
5029 struct s2 {int (*f) (double a);};
5030 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5031 int argc;
5032 char **argv;
5034 main ()
5036 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5038 return 0;
5040 _ACEOF
5041 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5042 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5044 CC="$ac_save_CC $ac_arg"
5045 rm -f conftest.$ac_objext
5046 if { (ac_try="$ac_compile"
5047 case "(($ac_try" in
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5050 esac
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_compile") 2>conftest.er1
5053 ac_status=$?
5054 grep -v '^ *+' conftest.er1 >conftest.err
5055 rm -f conftest.er1
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } && {
5059 test -z "$ac_c_werror_flag" ||
5060 test ! -s conftest.err
5061 } && test -s conftest.$ac_objext; then
5062 ac_cv_prog_cc_c89=$ac_arg
5063 else
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5070 rm -f core conftest.err conftest.$ac_objext
5071 test "x$ac_cv_prog_cc_c89" != "xno" && break
5072 done
5073 rm -f conftest.$ac_ext
5074 CC=$ac_save_CC
5077 # AC_CACHE_VAL
5078 case "x$ac_cv_prog_cc_c89" in
5080 { echo "$as_me:$LINENO: result: none needed" >&5
5081 echo "${ECHO_T}none needed" >&6; } ;;
5082 xno)
5083 { echo "$as_me:$LINENO: result: unsupported" >&5
5084 echo "${ECHO_T}unsupported" >&6; } ;;
5086 CC="$CC $ac_cv_prog_cc_c89"
5087 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5088 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5089 esac
5092 ac_ext=c
5093 ac_cpp='$CPP $CPPFLAGS'
5094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5098 depcc="$CC" am_compiler_list=
5100 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5101 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5102 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5106 # We make a subdir and do the tests there. Otherwise we can end up
5107 # making bogus files that we don't know about and never remove. For
5108 # instance it was reported that on HP-UX the gcc test will end up
5109 # making a dummy file named `D' -- because `-MD' means `put the output
5110 # in D'.
5111 mkdir conftest.dir
5112 # Copy depcomp to subdir because otherwise we won't find it if we're
5113 # using a relative directory.
5114 cp "$am_depcomp" conftest.dir
5115 cd conftest.dir
5116 # We will build objects and dependencies in a subdirectory because
5117 # it helps to detect inapplicable dependency modes. For instance
5118 # both Tru64's cc and ICC support -MD to output dependencies as a
5119 # side effect of compilation, but ICC will put the dependencies in
5120 # the current directory while Tru64 will put them in the object
5121 # directory.
5122 mkdir sub
5124 am_cv_CC_dependencies_compiler_type=none
5125 if test "$am_compiler_list" = ""; then
5126 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5128 for depmode in $am_compiler_list; do
5129 # Setup a source with many dependencies, because some compilers
5130 # like to wrap large dependency lists on column 80 (with \), and
5131 # we should not choose a depcomp mode which is confused by this.
5133 # We need to recreate these files for each test, as the compiler may
5134 # overwrite some of them when testing with obscure command lines.
5135 # This happens at least with the AIX C compiler.
5136 : > sub/conftest.c
5137 for i in 1 2 3 4 5 6; do
5138 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5139 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5140 # Solaris 8's {/usr,}/bin/sh.
5141 touch sub/conftst$i.h
5142 done
5143 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5145 case $depmode in
5146 nosideeffect)
5147 # after this tag, mechanisms are not by side-effect, so they'll
5148 # only be used when explicitly requested
5149 if test "x$enable_dependency_tracking" = xyes; then
5150 continue
5151 else
5152 break
5155 none) break ;;
5156 esac
5157 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5158 # mode. It turns out that the SunPro C++ compiler does not properly
5159 # handle `-M -o', and we need to detect this.
5160 if depmode=$depmode \
5161 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5162 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5163 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5164 >/dev/null 2>conftest.err &&
5165 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5166 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5167 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5168 # icc doesn't choke on unknown options, it will just issue warnings
5169 # or remarks (even with -Werror). So we grep stderr for any message
5170 # that says an option was ignored or not supported.
5171 # When given -MP, icc 7.0 and 7.1 complain thusly:
5172 # icc: Command line warning: ignoring option '-M'; no argument required
5173 # The diagnosis changed in icc 8.0:
5174 # icc: Command line remark: option '-MP' not supported
5175 if (grep 'ignoring option' conftest.err ||
5176 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5177 am_cv_CC_dependencies_compiler_type=$depmode
5178 break
5181 done
5183 cd ..
5184 rm -rf conftest.dir
5185 else
5186 am_cv_CC_dependencies_compiler_type=none
5190 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5191 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5192 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5197 test "x$enable_dependency_tracking" != xno \
5198 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5199 am__fastdepCC_TRUE=
5200 am__fastdepCC_FALSE='#'
5201 else
5202 am__fastdepCC_TRUE='#'
5203 am__fastdepCC_FALSE=
5208 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5210 ac_ext=c
5211 ac_cpp='$CPP $CPPFLAGS'
5212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5215 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5216 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5217 # On Suns, sometimes $CPP names a directory.
5218 if test -n "$CPP" && test -d "$CPP"; then
5219 CPP=
5221 if test -z "$CPP"; then
5222 if test "${ac_cv_prog_CPP+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225 # Double quotes because CPP needs to be expanded
5226 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5228 ac_preproc_ok=false
5229 for ac_c_preproc_warn_flag in '' yes
5231 # Use a header file that comes with gcc, so configuring glibc
5232 # with a fresh cross-compiler works.
5233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5234 # <limits.h> exists even on freestanding compilers.
5235 # On the NeXT, cc -E runs the code through the compiler's parser,
5236 # not just through cpp. "Syntax error" is here to catch this case.
5237 cat >conftest.$ac_ext <<_ACEOF
5238 /* confdefs.h. */
5239 _ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5243 #ifdef __STDC__
5244 # include <limits.h>
5245 #else
5246 # include <assert.h>
5247 #endif
5248 Syntax error
5249 _ACEOF
5250 if { (ac_try="$ac_cpp conftest.$ac_ext"
5251 case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254 esac
5255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5257 ac_status=$?
5258 grep -v '^ *+' conftest.er1 >conftest.err
5259 rm -f conftest.er1
5260 cat conftest.err >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } >/dev/null && {
5263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5264 test ! -s conftest.err
5265 }; then
5267 else
5268 echo "$as_me: failed program was:" >&5
5269 sed 's/^/| /' conftest.$ac_ext >&5
5271 # Broken: fails on valid input.
5272 continue
5275 rm -f conftest.err conftest.$ac_ext
5277 # OK, works on sane cases. Now check whether nonexistent headers
5278 # can be detected and how.
5279 cat >conftest.$ac_ext <<_ACEOF
5280 /* confdefs.h. */
5281 _ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5285 #include <ac_nonexistent.h>
5286 _ACEOF
5287 if { (ac_try="$ac_cpp conftest.$ac_ext"
5288 case "(($ac_try" in
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5291 esac
5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5294 ac_status=$?
5295 grep -v '^ *+' conftest.er1 >conftest.err
5296 rm -f conftest.er1
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } >/dev/null && {
5300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5301 test ! -s conftest.err
5302 }; then
5303 # Broken: success on invalid input.
5304 continue
5305 else
5306 echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5309 # Passes both tests.
5310 ac_preproc_ok=:
5311 break
5314 rm -f conftest.err conftest.$ac_ext
5316 done
5317 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5318 rm -f conftest.err conftest.$ac_ext
5319 if $ac_preproc_ok; then
5320 break
5323 done
5324 ac_cv_prog_CPP=$CPP
5327 CPP=$ac_cv_prog_CPP
5328 else
5329 ac_cv_prog_CPP=$CPP
5331 { echo "$as_me:$LINENO: result: $CPP" >&5
5332 echo "${ECHO_T}$CPP" >&6; }
5333 ac_preproc_ok=false
5334 for ac_c_preproc_warn_flag in '' yes
5336 # Use a header file that comes with gcc, so configuring glibc
5337 # with a fresh cross-compiler works.
5338 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5339 # <limits.h> exists even on freestanding compilers.
5340 # On the NeXT, cc -E runs the code through the compiler's parser,
5341 # not just through cpp. "Syntax error" is here to catch this case.
5342 cat >conftest.$ac_ext <<_ACEOF
5343 /* confdefs.h. */
5344 _ACEOF
5345 cat confdefs.h >>conftest.$ac_ext
5346 cat >>conftest.$ac_ext <<_ACEOF
5347 /* end confdefs.h. */
5348 #ifdef __STDC__
5349 # include <limits.h>
5350 #else
5351 # include <assert.h>
5352 #endif
5353 Syntax error
5354 _ACEOF
5355 if { (ac_try="$ac_cpp conftest.$ac_ext"
5356 case "(($ac_try" in
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5359 esac
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5362 ac_status=$?
5363 grep -v '^ *+' conftest.er1 >conftest.err
5364 rm -f conftest.er1
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } >/dev/null && {
5368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5369 test ! -s conftest.err
5370 }; then
5372 else
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.$ac_ext >&5
5376 # Broken: fails on valid input.
5377 continue
5380 rm -f conftest.err conftest.$ac_ext
5382 # OK, works on sane cases. Now check whether nonexistent headers
5383 # can be detected and how.
5384 cat >conftest.$ac_ext <<_ACEOF
5385 /* confdefs.h. */
5386 _ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 #include <ac_nonexistent.h>
5391 _ACEOF
5392 if { (ac_try="$ac_cpp conftest.$ac_ext"
5393 case "(($ac_try" in
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5396 esac
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5399 ac_status=$?
5400 grep -v '^ *+' conftest.er1 >conftest.err
5401 rm -f conftest.er1
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } >/dev/null && {
5405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5406 test ! -s conftest.err
5407 }; then
5408 # Broken: success on invalid input.
5409 continue
5410 else
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5414 # Passes both tests.
5415 ac_preproc_ok=:
5416 break
5419 rm -f conftest.err conftest.$ac_ext
5421 done
5422 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5423 rm -f conftest.err conftest.$ac_ext
5424 if $ac_preproc_ok; then
5426 else
5427 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5428 See \`config.log' for more details." >&5
5429 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5430 See \`config.log' for more details." >&2;}
5431 { (exit 1); exit 1; }; }
5434 ac_ext=c
5435 ac_cpp='$CPP $CPPFLAGS'
5436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5441 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5442 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5443 if test "${ac_cv_path_GREP+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446 # Extract the first word of "grep ggrep" to use in msg output
5447 if test -z "$GREP"; then
5448 set dummy grep ggrep; ac_prog_name=$2
5449 if test "${ac_cv_path_GREP+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 else
5452 ac_path_GREP_found=false
5453 # Loop through the user's path and test for each of PROGNAME-LIST
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5457 IFS=$as_save_IFS
5458 test -z "$as_dir" && as_dir=.
5459 for ac_prog in grep ggrep; do
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5462 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5463 # Check for GNU ac_path_GREP and select it if it is found.
5464 # Check for GNU $ac_path_GREP
5465 case `"$ac_path_GREP" --version 2>&1` in
5466 *GNU*)
5467 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5469 ac_count=0
5470 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5471 while :
5473 cat "conftest.in" "conftest.in" >"conftest.tmp"
5474 mv "conftest.tmp" "conftest.in"
5475 cp "conftest.in" "conftest.nl"
5476 echo 'GREP' >> "conftest.nl"
5477 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5478 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5479 ac_count=`expr $ac_count + 1`
5480 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5481 # Best one so far, save it but keep looking for a better one
5482 ac_cv_path_GREP="$ac_path_GREP"
5483 ac_path_GREP_max=$ac_count
5485 # 10*(2^10) chars as input seems more than enough
5486 test $ac_count -gt 10 && break
5487 done
5488 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5489 esac
5492 $ac_path_GREP_found && break 3
5493 done
5494 done
5496 done
5497 IFS=$as_save_IFS
5502 GREP="$ac_cv_path_GREP"
5503 if test -z "$GREP"; then
5504 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5505 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5506 { (exit 1); exit 1; }; }
5509 else
5510 ac_cv_path_GREP=$GREP
5515 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5516 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5517 GREP="$ac_cv_path_GREP"
5520 { echo "$as_me:$LINENO: checking for egrep" >&5
5521 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5522 if test "${ac_cv_path_EGREP+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 else
5525 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5526 then ac_cv_path_EGREP="$GREP -E"
5527 else
5528 # Extract the first word of "egrep" to use in msg output
5529 if test -z "$EGREP"; then
5530 set dummy egrep; ac_prog_name=$2
5531 if test "${ac_cv_path_EGREP+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534 ac_path_EGREP_found=false
5535 # Loop through the user's path and test for each of PROGNAME-LIST
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
5541 for ac_prog in egrep; do
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5544 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5545 # Check for GNU ac_path_EGREP and select it if it is found.
5546 # Check for GNU $ac_path_EGREP
5547 case `"$ac_path_EGREP" --version 2>&1` in
5548 *GNU*)
5549 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5551 ac_count=0
5552 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5553 while :
5555 cat "conftest.in" "conftest.in" >"conftest.tmp"
5556 mv "conftest.tmp" "conftest.in"
5557 cp "conftest.in" "conftest.nl"
5558 echo 'EGREP' >> "conftest.nl"
5559 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5560 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5561 ac_count=`expr $ac_count + 1`
5562 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5563 # Best one so far, save it but keep looking for a better one
5564 ac_cv_path_EGREP="$ac_path_EGREP"
5565 ac_path_EGREP_max=$ac_count
5567 # 10*(2^10) chars as input seems more than enough
5568 test $ac_count -gt 10 && break
5569 done
5570 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5571 esac
5574 $ac_path_EGREP_found && break 3
5575 done
5576 done
5578 done
5579 IFS=$as_save_IFS
5584 EGREP="$ac_cv_path_EGREP"
5585 if test -z "$EGREP"; then
5586 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5587 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5588 { (exit 1); exit 1; }; }
5591 else
5592 ac_cv_path_EGREP=$EGREP
5598 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5599 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5600 EGREP="$ac_cv_path_EGREP"
5603 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5604 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5605 if test "${ac_cv_header_stdc+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 else
5608 cat >conftest.$ac_ext <<_ACEOF
5609 /* confdefs.h. */
5610 _ACEOF
5611 cat confdefs.h >>conftest.$ac_ext
5612 cat >>conftest.$ac_ext <<_ACEOF
5613 /* end confdefs.h. */
5614 #include <stdlib.h>
5615 #include <stdarg.h>
5616 #include <string.h>
5617 #include <float.h>
5620 main ()
5624 return 0;
5626 _ACEOF
5627 rm -f conftest.$ac_objext
5628 if { (ac_try="$ac_compile"
5629 case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5632 esac
5633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634 (eval "$ac_compile") 2>conftest.er1
5635 ac_status=$?
5636 grep -v '^ *+' conftest.er1 >conftest.err
5637 rm -f conftest.er1
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } && {
5641 test -z "$ac_c_werror_flag" ||
5642 test ! -s conftest.err
5643 } && test -s conftest.$ac_objext; then
5644 ac_cv_header_stdc=yes
5645 else
5646 echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5649 ac_cv_header_stdc=no
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5654 if test $ac_cv_header_stdc = yes; then
5655 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5656 cat >conftest.$ac_ext <<_ACEOF
5657 /* confdefs.h. */
5658 _ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5662 #include <string.h>
5664 _ACEOF
5665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5666 $EGREP "memchr" >/dev/null 2>&1; then
5668 else
5669 ac_cv_header_stdc=no
5671 rm -f conftest*
5675 if test $ac_cv_header_stdc = yes; then
5676 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5677 cat >conftest.$ac_ext <<_ACEOF
5678 /* confdefs.h. */
5679 _ACEOF
5680 cat confdefs.h >>conftest.$ac_ext
5681 cat >>conftest.$ac_ext <<_ACEOF
5682 /* end confdefs.h. */
5683 #include <stdlib.h>
5685 _ACEOF
5686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5687 $EGREP "free" >/dev/null 2>&1; then
5689 else
5690 ac_cv_header_stdc=no
5692 rm -f conftest*
5696 if test $ac_cv_header_stdc = yes; then
5697 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5698 if test "$cross_compiling" = yes; then
5700 else
5701 cat >conftest.$ac_ext <<_ACEOF
5702 /* confdefs.h. */
5703 _ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5707 #include <ctype.h>
5708 #include <stdlib.h>
5709 #if ((' ' & 0x0FF) == 0x020)
5710 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5711 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5712 #else
5713 # define ISLOWER(c) \
5714 (('a' <= (c) && (c) <= 'i') \
5715 || ('j' <= (c) && (c) <= 'r') \
5716 || ('s' <= (c) && (c) <= 'z'))
5717 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5718 #endif
5720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5722 main ()
5724 int i;
5725 for (i = 0; i < 256; i++)
5726 if (XOR (islower (i), ISLOWER (i))
5727 || toupper (i) != TOUPPER (i))
5728 return 2;
5729 return 0;
5731 _ACEOF
5732 rm -f conftest$ac_exeext
5733 if { (ac_try="$ac_link"
5734 case "(($ac_try" in
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5737 esac
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_link") 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5743 { (case "(($ac_try" in
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5746 esac
5747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748 (eval "$ac_try") 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5753 else
5754 echo "$as_me: program exited with status $ac_status" >&5
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5758 ( exit $ac_status )
5759 ac_cv_header_stdc=no
5761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5767 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5768 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5769 if test $ac_cv_header_stdc = yes; then
5771 cat >>confdefs.h <<\_ACEOF
5772 #define STDC_HEADERS 1
5773 _ACEOF
5778 # Check whether --enable-static was given.
5779 if test "${enable_static+set}" = set; then
5780 enableval=$enable_static; p=${PACKAGE-default}
5781 case $enableval in
5782 yes) enable_static=yes ;;
5783 no) enable_static=no ;;
5785 enable_static=no
5786 # Look at the argument we got. We use all the common list separators.
5787 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5788 for pkg in $enableval; do
5789 IFS="$lt_save_ifs"
5790 if test "X$pkg" = "X$p"; then
5791 enable_static=yes
5793 done
5794 IFS="$lt_save_ifs"
5796 esac
5797 else
5798 enable_static=no
5809 case `pwd` in
5810 *\ * | *\ *)
5811 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5812 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5813 esac
5817 macro_version='2.2.4'
5818 macro_revision='1.2976'
5832 ltmain="$ac_aux_dir/ltmain.sh"
5834 # Make sure we can run config.sub.
5835 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5836 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5837 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5838 { (exit 1); exit 1; }; }
5840 { echo "$as_me:$LINENO: checking build system type" >&5
5841 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5842 if test "${ac_cv_build+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845 ac_build_alias=$build_alias
5846 test "x$ac_build_alias" = x &&
5847 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5848 test "x$ac_build_alias" = x &&
5849 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5850 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5851 { (exit 1); exit 1; }; }
5852 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5853 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5854 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5855 { (exit 1); exit 1; }; }
5858 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5859 echo "${ECHO_T}$ac_cv_build" >&6; }
5860 case $ac_cv_build in
5861 *-*-*) ;;
5862 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5863 echo "$as_me: error: invalid value of canonical build" >&2;}
5864 { (exit 1); exit 1; }; };;
5865 esac
5866 build=$ac_cv_build
5867 ac_save_IFS=$IFS; IFS='-'
5868 set x $ac_cv_build
5869 shift
5870 build_cpu=$1
5871 build_vendor=$2
5872 shift; shift
5873 # Remember, the first character of IFS is used to create $*,
5874 # except with old shells:
5875 build_os=$*
5876 IFS=$ac_save_IFS
5877 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5880 { echo "$as_me:$LINENO: checking host system type" >&5
5881 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5882 if test "${ac_cv_host+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885 if test "x$host_alias" = x; then
5886 ac_cv_host=$ac_cv_build
5887 else
5888 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5889 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5890 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5891 { (exit 1); exit 1; }; }
5895 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5896 echo "${ECHO_T}$ac_cv_host" >&6; }
5897 case $ac_cv_host in
5898 *-*-*) ;;
5899 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5900 echo "$as_me: error: invalid value of canonical host" >&2;}
5901 { (exit 1); exit 1; }; };;
5902 esac
5903 host=$ac_cv_host
5904 ac_save_IFS=$IFS; IFS='-'
5905 set x $ac_cv_host
5906 shift
5907 host_cpu=$1
5908 host_vendor=$2
5909 shift; shift
5910 # Remember, the first character of IFS is used to create $*,
5911 # except with old shells:
5912 host_os=$*
5913 IFS=$ac_save_IFS
5914 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5917 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5918 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5919 if test "${ac_cv_path_SED+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5923 for ac_i in 1 2 3 4 5 6 7; do
5924 ac_script="$ac_script$as_nl$ac_script"
5925 done
5926 echo "$ac_script" | sed 99q >conftest.sed
5927 $as_unset ac_script || ac_script=
5928 # Extract the first word of "sed gsed" to use in msg output
5929 if test -z "$SED"; then
5930 set dummy sed gsed; ac_prog_name=$2
5931 if test "${ac_cv_path_SED+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934 ac_path_SED_found=false
5935 # Loop through the user's path and test for each of PROGNAME-LIST
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_prog in sed gsed; do
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5944 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5945 # Check for GNU ac_path_SED and select it if it is found.
5946 # Check for GNU $ac_path_SED
5947 case `"$ac_path_SED" --version 2>&1` in
5948 *GNU*)
5949 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5951 ac_count=0
5952 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5953 while :
5955 cat "conftest.in" "conftest.in" >"conftest.tmp"
5956 mv "conftest.tmp" "conftest.in"
5957 cp "conftest.in" "conftest.nl"
5958 echo '' >> "conftest.nl"
5959 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5960 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5961 ac_count=`expr $ac_count + 1`
5962 if test $ac_count -gt ${ac_path_SED_max-0}; then
5963 # Best one so far, save it but keep looking for a better one
5964 ac_cv_path_SED="$ac_path_SED"
5965 ac_path_SED_max=$ac_count
5967 # 10*(2^10) chars as input seems more than enough
5968 test $ac_count -gt 10 && break
5969 done
5970 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5971 esac
5974 $ac_path_SED_found && break 3
5975 done
5976 done
5978 done
5979 IFS=$as_save_IFS
5984 SED="$ac_cv_path_SED"
5985 if test -z "$SED"; then
5986 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5987 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5988 { (exit 1); exit 1; }; }
5991 else
5992 ac_cv_path_SED=$SED
5996 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5997 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5998 SED="$ac_cv_path_SED"
5999 rm -f conftest.sed
6001 test -z "$SED" && SED=sed
6002 Xsed="$SED -e 1s/^X//"
6014 { echo "$as_me:$LINENO: checking for fgrep" >&5
6015 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
6016 if test "${ac_cv_path_FGREP+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 else
6019 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6020 then ac_cv_path_FGREP="$GREP -F"
6021 else
6022 # Extract the first word of "fgrep" to use in msg output
6023 if test -z "$FGREP"; then
6024 set dummy fgrep; ac_prog_name=$2
6025 if test "${ac_cv_path_FGREP+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028 ac_path_FGREP_found=false
6029 # Loop through the user's path and test for each of PROGNAME-LIST
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6033 IFS=$as_save_IFS
6034 test -z "$as_dir" && as_dir=.
6035 for ac_prog in fgrep; do
6036 for ac_exec_ext in '' $ac_executable_extensions; do
6037 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6038 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6039 # Check for GNU ac_path_FGREP and select it if it is found.
6040 # Check for GNU $ac_path_FGREP
6041 case `"$ac_path_FGREP" --version 2>&1` in
6042 *GNU*)
6043 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6045 ac_count=0
6046 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6047 while :
6049 cat "conftest.in" "conftest.in" >"conftest.tmp"
6050 mv "conftest.tmp" "conftest.in"
6051 cp "conftest.in" "conftest.nl"
6052 echo 'FGREP' >> "conftest.nl"
6053 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6055 ac_count=`expr $ac_count + 1`
6056 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6057 # Best one so far, save it but keep looking for a better one
6058 ac_cv_path_FGREP="$ac_path_FGREP"
6059 ac_path_FGREP_max=$ac_count
6061 # 10*(2^10) chars as input seems more than enough
6062 test $ac_count -gt 10 && break
6063 done
6064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6065 esac
6068 $ac_path_FGREP_found && break 3
6069 done
6070 done
6072 done
6073 IFS=$as_save_IFS
6078 FGREP="$ac_cv_path_FGREP"
6079 if test -z "$FGREP"; then
6080 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6081 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6082 { (exit 1); exit 1; }; }
6085 else
6086 ac_cv_path_FGREP=$FGREP
6092 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
6093 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
6094 FGREP="$ac_cv_path_FGREP"
6097 test -z "$GREP" && GREP=grep
6117 # Check whether --with-gnu-ld was given.
6118 if test "${with_gnu_ld+set}" = set; then
6119 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6120 else
6121 with_gnu_ld=no
6124 ac_prog=ld
6125 if test "$GCC" = yes; then
6126 # Check if gcc -print-prog-name=ld gives a path.
6127 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6128 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6129 case $host in
6130 *-*-mingw*)
6131 # gcc leaves a trailing carriage return which upsets mingw
6132 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6134 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6135 esac
6136 case $ac_prog in
6137 # Accept absolute paths.
6138 [\\/]* | ?:[\\/]*)
6139 re_direlt='/[^/][^/]*/\.\./'
6140 # Canonicalize the pathname of ld
6141 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6142 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6143 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6144 done
6145 test -z "$LD" && LD="$ac_prog"
6148 # If it fails, then pretend we aren't using GCC.
6149 ac_prog=ld
6152 # If it is relative, then search for the first ld in PATH.
6153 with_gnu_ld=unknown
6155 esac
6156 elif test "$with_gnu_ld" = yes; then
6157 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6158 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6159 else
6160 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6161 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6163 if test "${lt_cv_path_LD+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166 if test -z "$LD"; then
6167 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6168 for ac_dir in $PATH; do
6169 IFS="$lt_save_ifs"
6170 test -z "$ac_dir" && ac_dir=.
6171 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6172 lt_cv_path_LD="$ac_dir/$ac_prog"
6173 # Check to see if the program is GNU ld. I'd rather use --version,
6174 # but apparently some variants of GNU ld only accept -v.
6175 # Break only if it was the GNU/non-GNU ld that we prefer.
6176 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6177 *GNU* | *'with BFD'*)
6178 test "$with_gnu_ld" != no && break
6181 test "$with_gnu_ld" != yes && break
6183 esac
6185 done
6186 IFS="$lt_save_ifs"
6187 else
6188 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6192 LD="$lt_cv_path_LD"
6193 if test -n "$LD"; then
6194 { echo "$as_me:$LINENO: result: $LD" >&5
6195 echo "${ECHO_T}$LD" >&6; }
6196 else
6197 { echo "$as_me:$LINENO: result: no" >&5
6198 echo "${ECHO_T}no" >&6; }
6200 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6201 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6202 { (exit 1); exit 1; }; }
6203 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6204 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6205 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 else
6208 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6209 case `$LD -v 2>&1 </dev/null` in
6210 *GNU* | *'with BFD'*)
6211 lt_cv_prog_gnu_ld=yes
6214 lt_cv_prog_gnu_ld=no
6216 esac
6218 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6219 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6220 with_gnu_ld=$lt_cv_prog_gnu_ld
6230 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6231 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
6232 if test "${lt_cv_path_NM+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235 if test -n "$NM"; then
6236 # Let the user override the test.
6237 lt_cv_path_NM="$NM"
6238 else
6239 lt_nm_to_check="${ac_tool_prefix}nm"
6240 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6241 lt_nm_to_check="$lt_nm_to_check nm"
6243 for lt_tmp_nm in $lt_nm_to_check; do
6244 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6245 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6246 IFS="$lt_save_ifs"
6247 test -z "$ac_dir" && ac_dir=.
6248 tmp_nm="$ac_dir/$lt_tmp_nm"
6249 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6250 # Check to see if the nm accepts a BSD-compat flag.
6251 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6252 # nm: unknown option "B" ignored
6253 # Tru64's nm complains that /dev/null is an invalid object file
6254 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6255 */dev/null* | *'Invalid file or object type'*)
6256 lt_cv_path_NM="$tmp_nm -B"
6257 break
6260 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6261 */dev/null*)
6262 lt_cv_path_NM="$tmp_nm -p"
6263 break
6266 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6267 continue # so that we can try to find one that supports BSD flags
6269 esac
6271 esac
6273 done
6274 IFS="$lt_save_ifs"
6275 done
6276 : ${lt_cv_path_NM=no}
6279 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6280 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6281 if test "$lt_cv_path_NM" != "no"; then
6282 NM="$lt_cv_path_NM"
6283 else
6284 # Didn't find any BSD compatible name lister, look for dumpbin.
6285 if test -n "$ac_tool_prefix"; then
6286 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6292 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295 if test -n "$DUMPBIN"; then
6296 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 break 2
6309 done
6310 done
6311 IFS=$as_save_IFS
6315 DUMPBIN=$ac_cv_prog_DUMPBIN
6316 if test -n "$DUMPBIN"; then
6317 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6318 echo "${ECHO_T}$DUMPBIN" >&6; }
6319 else
6320 { echo "$as_me:$LINENO: result: no" >&5
6321 echo "${ECHO_T}no" >&6; }
6325 test -n "$DUMPBIN" && break
6326 done
6328 if test -z "$DUMPBIN"; then
6329 ac_ct_DUMPBIN=$DUMPBIN
6330 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6332 # Extract the first word of "$ac_prog", so it can be a program name with args.
6333 set dummy $ac_prog; ac_word=$2
6334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6336 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6338 else
6339 if test -n "$ac_ct_DUMPBIN"; then
6340 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6349 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6353 done
6354 done
6355 IFS=$as_save_IFS
6359 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6360 if test -n "$ac_ct_DUMPBIN"; then
6361 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6362 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
6363 else
6364 { echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6; }
6369 test -n "$ac_ct_DUMPBIN" && break
6370 done
6372 if test "x$ac_ct_DUMPBIN" = x; then
6373 DUMPBIN=":"
6374 else
6375 case $cross_compiling:$ac_tool_warned in
6376 yes:)
6377 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6378 whose name does not start with the host triplet. If you think this
6379 configuration is useful to you, please write to autoconf@gnu.org." >&5
6380 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6381 whose name does not start with the host triplet. If you think this
6382 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6383 ac_tool_warned=yes ;;
6384 esac
6385 DUMPBIN=$ac_ct_DUMPBIN
6390 if test "$DUMPBIN" != ":"; then
6391 NM="$DUMPBIN"
6394 test -z "$NM" && NM=nm
6401 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6402 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
6403 if test "${lt_cv_nm_interface+set}" = set; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406 lt_cv_nm_interface="BSD nm"
6407 echo "int some_variable = 0;" > conftest.$ac_ext
6408 (eval echo "\"\$as_me:6408: $ac_compile\"" >&5)
6409 (eval "$ac_compile" 2>conftest.err)
6410 cat conftest.err >&5
6411 (eval echo "\"\$as_me:6411: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6412 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6413 cat conftest.err >&5
6414 (eval echo "\"\$as_me:6414: output\"" >&5)
6415 cat conftest.out >&5
6416 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6417 lt_cv_nm_interface="MS dumpbin"
6419 rm -f conftest*
6421 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6422 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6424 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6425 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6426 LN_S=$as_ln_s
6427 if test "$LN_S" = "ln -s"; then
6428 { echo "$as_me:$LINENO: result: yes" >&5
6429 echo "${ECHO_T}yes" >&6; }
6430 else
6431 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6432 echo "${ECHO_T}no, using $LN_S" >&6; }
6435 # find the maximum length of command line arguments
6436 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6437 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6438 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6440 else
6442 teststring="ABCD"
6444 case $build_os in
6445 msdosdjgpp*)
6446 # On DJGPP, this test can blow up pretty badly due to problems in libc
6447 # (any single argument exceeding 2000 bytes causes a buffer overrun
6448 # during glob expansion). Even if it were fixed, the result of this
6449 # check would be larger than it should be.
6450 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6453 gnu*)
6454 # Under GNU Hurd, this test is not required because there is
6455 # no limit to the length of command line arguments.
6456 # Libtool will interpret -1 as no limit whatsoever
6457 lt_cv_sys_max_cmd_len=-1;
6460 cygwin* | mingw*)
6461 # On Win9x/ME, this test blows up -- it succeeds, but takes
6462 # about 5 minutes as the teststring grows exponentially.
6463 # Worse, since 9x/ME are not pre-emptively multitasking,
6464 # you end up with a "frozen" computer, even though with patience
6465 # the test eventually succeeds (with a max line length of 256k).
6466 # Instead, let's just punt: use the minimum linelength reported by
6467 # all of the supported platforms: 8192 (on NT/2K/XP).
6468 lt_cv_sys_max_cmd_len=8192;
6471 amigaos*)
6472 # On AmigaOS with pdksh, this test takes hours, literally.
6473 # So we just punt and use a minimum line length of 8192.
6474 lt_cv_sys_max_cmd_len=8192;
6477 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6478 # This has been around since 386BSD, at least. Likely further.
6479 if test -x /sbin/sysctl; then
6480 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6481 elif test -x /usr/sbin/sysctl; then
6482 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6483 else
6484 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6486 # And add a safety zone
6487 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6488 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6491 interix*)
6492 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6493 lt_cv_sys_max_cmd_len=196608
6496 osf*)
6497 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6498 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6499 # nice to cause kernel panics so lets avoid the loop below.
6500 # First set a reasonable default.
6501 lt_cv_sys_max_cmd_len=16384
6503 if test -x /sbin/sysconfig; then
6504 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6505 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6506 esac
6509 sco3.2v5*)
6510 lt_cv_sys_max_cmd_len=102400
6512 sysv5* | sco5v6* | sysv4.2uw2*)
6513 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6514 if test -n "$kargmax"; then
6515 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6516 else
6517 lt_cv_sys_max_cmd_len=32768
6521 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6522 if test -n "$lt_cv_sys_max_cmd_len"; then
6523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6524 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6525 else
6526 # Make teststring a little bigger before we do anything with it.
6527 # a 1K string should be a reasonable start.
6528 for i in 1 2 3 4 5 6 7 8 ; do
6529 teststring=$teststring$teststring
6530 done
6531 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6532 # If test is not a shell built-in, we'll probably end up computing a
6533 # maximum length that is only half of the actual maximum length, but
6534 # we can't tell.
6535 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6536 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6537 test $i != 17 # 1/2 MB should be enough
6539 i=`expr $i + 1`
6540 teststring=$teststring$teststring
6541 done
6542 # Only check the string length outside the loop.
6543 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6544 teststring=
6545 # Add a significant safety factor because C++ compilers can tack on
6546 # massive amounts of additional arguments before passing them to the
6547 # linker. It appears as though 1/2 is a usable value.
6548 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6551 esac
6555 if test -n $lt_cv_sys_max_cmd_len ; then
6556 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6557 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6558 else
6559 { echo "$as_me:$LINENO: result: none" >&5
6560 echo "${ECHO_T}none" >&6; }
6562 max_cmd_len=$lt_cv_sys_max_cmd_len
6569 : ${CP="cp -f"}
6570 : ${MV="mv -f"}
6571 : ${RM="rm -f"}
6573 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6574 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6575 # Try some XSI features
6576 xsi_shell=no
6577 ( _lt_dummy="a/b/c"
6578 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6579 = c,a/b,, \
6580 && eval 'test $(( 1 + 1 )) -eq 2 \
6581 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6582 && xsi_shell=yes
6583 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6584 echo "${ECHO_T}$xsi_shell" >&6; }
6587 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6588 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6589 lt_shell_append=no
6590 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6591 >/dev/null 2>&1 \
6592 && lt_shell_append=yes
6593 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6594 echo "${ECHO_T}$lt_shell_append" >&6; }
6597 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6598 lt_unset=unset
6599 else
6600 lt_unset=false
6607 # test EBCDIC or ASCII
6608 case `echo X|tr X '\101'` in
6609 A) # ASCII based system
6610 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6611 lt_SP2NL='tr \040 \012'
6612 lt_NL2SP='tr \015\012 \040\040'
6614 *) # EBCDIC based system
6615 lt_SP2NL='tr \100 \n'
6616 lt_NL2SP='tr \r\n \100\100'
6618 esac
6628 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6629 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6630 if test "${lt_cv_ld_reload_flag+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 else
6633 lt_cv_ld_reload_flag='-r'
6635 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6636 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6637 reload_flag=$lt_cv_ld_reload_flag
6638 case $reload_flag in
6639 "" | " "*) ;;
6640 *) reload_flag=" $reload_flag" ;;
6641 esac
6642 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6643 case $host_os in
6644 darwin*)
6645 if test "$GCC" = yes; then
6646 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6647 else
6648 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6651 esac
6662 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6663 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6664 if test "${lt_cv_deplibs_check_method+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667 lt_cv_file_magic_cmd='$MAGIC_CMD'
6668 lt_cv_file_magic_test_file=
6669 lt_cv_deplibs_check_method='unknown'
6670 # Need to set the preceding variable on all platforms that support
6671 # interlibrary dependencies.
6672 # 'none' -- dependencies not supported.
6673 # `unknown' -- same as none, but documents that we really don't know.
6674 # 'pass_all' -- all dependencies passed with no checks.
6675 # 'test_compile' -- check by making test program.
6676 # 'file_magic [[regex]]' -- check by looking for files in library path
6677 # which responds to the $file_magic_cmd with a given extended regex.
6678 # If you have `file' or equivalent on your system and you're not sure
6679 # whether `pass_all' will *always* work, you probably want this one.
6681 case $host_os in
6682 aix[4-9]*)
6683 lt_cv_deplibs_check_method=pass_all
6686 beos*)
6687 lt_cv_deplibs_check_method=pass_all
6690 bsdi[45]*)
6691 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6692 lt_cv_file_magic_cmd='/usr/bin/file -L'
6693 lt_cv_file_magic_test_file=/shlib/libc.so
6696 cygwin*)
6697 # func_win32_libid is a shell function defined in ltmain.sh
6698 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6699 lt_cv_file_magic_cmd='func_win32_libid'
6702 mingw* | pw32*)
6703 # Base MSYS/MinGW do not provide the 'file' command needed by
6704 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6705 # unless we find 'file', for example because we are cross-compiling.
6706 if ( file / ) >/dev/null 2>&1; then
6707 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6708 lt_cv_file_magic_cmd='func_win32_libid'
6709 else
6710 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6711 lt_cv_file_magic_cmd='$OBJDUMP -f'
6715 darwin* | rhapsody*)
6716 lt_cv_deplibs_check_method=pass_all
6719 freebsd* | dragonfly*)
6720 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6721 case $host_cpu in
6722 i*86 )
6723 # Not sure whether the presence of OpenBSD here was a mistake.
6724 # Let's accept both of them until this is cleared up.
6725 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6726 lt_cv_file_magic_cmd=/usr/bin/file
6727 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6729 esac
6730 else
6731 lt_cv_deplibs_check_method=pass_all
6735 gnu*)
6736 lt_cv_deplibs_check_method=pass_all
6739 hpux10.20* | hpux11*)
6740 lt_cv_file_magic_cmd=/usr/bin/file
6741 case $host_cpu in
6742 ia64*)
6743 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6744 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6746 hppa*64*)
6747 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]'
6748 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6751 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6752 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6754 esac
6757 interix[3-9]*)
6758 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6759 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6762 irix5* | irix6* | nonstopux*)
6763 case $LD in
6764 *-32|*"-32 ") libmagic=32-bit;;
6765 *-n32|*"-n32 ") libmagic=N32;;
6766 *-64|*"-64 ") libmagic=64-bit;;
6767 *) libmagic=never-match;;
6768 esac
6769 lt_cv_deplibs_check_method=pass_all
6772 # This must be Linux ELF.
6773 linux* | k*bsd*-gnu)
6774 lt_cv_deplibs_check_method=pass_all
6777 netbsd* | netbsdelf*-gnu)
6778 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6779 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6780 else
6781 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6785 newos6*)
6786 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6787 lt_cv_file_magic_cmd=/usr/bin/file
6788 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6791 *nto* | *qnx*)
6792 lt_cv_deplibs_check_method=pass_all
6795 openbsd*)
6796 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6797 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6798 else
6799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6803 osf3* | osf4* | osf5*)
6804 lt_cv_deplibs_check_method=pass_all
6807 rdos*)
6808 lt_cv_deplibs_check_method=pass_all
6811 solaris*)
6812 lt_cv_deplibs_check_method=pass_all
6815 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6816 lt_cv_deplibs_check_method=pass_all
6819 sysv4 | sysv4.3*)
6820 case $host_vendor in
6821 motorola)
6822 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]'
6823 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6825 ncr)
6826 lt_cv_deplibs_check_method=pass_all
6828 sequent)
6829 lt_cv_file_magic_cmd='/bin/file'
6830 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6832 sni)
6833 lt_cv_file_magic_cmd='/bin/file'
6834 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6835 lt_cv_file_magic_test_file=/lib/libc.so
6837 siemens)
6838 lt_cv_deplibs_check_method=pass_all
6841 lt_cv_deplibs_check_method=pass_all
6843 esac
6846 tpf*)
6847 lt_cv_deplibs_check_method=pass_all
6849 esac
6852 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6853 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6854 file_magic_cmd=$lt_cv_file_magic_cmd
6855 deplibs_check_method=$lt_cv_deplibs_check_method
6856 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6869 if test -n "$ac_tool_prefix"; then
6870 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6871 set dummy ${ac_tool_prefix}ar; ac_word=$2
6872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6874 if test "${ac_cv_prog_AR+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877 if test -n "$AR"; then
6878 ac_cv_prog_AR="$AR" # Let the user override the test.
6879 else
6880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6883 IFS=$as_save_IFS
6884 test -z "$as_dir" && as_dir=.
6885 for ac_exec_ext in '' $ac_executable_extensions; do
6886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6887 ac_cv_prog_AR="${ac_tool_prefix}ar"
6888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 break 2
6891 done
6892 done
6893 IFS=$as_save_IFS
6897 AR=$ac_cv_prog_AR
6898 if test -n "$AR"; then
6899 { echo "$as_me:$LINENO: result: $AR" >&5
6900 echo "${ECHO_T}$AR" >&6; }
6901 else
6902 { echo "$as_me:$LINENO: result: no" >&5
6903 echo "${ECHO_T}no" >&6; }
6908 if test -z "$ac_cv_prog_AR"; then
6909 ac_ct_AR=$AR
6910 # Extract the first word of "ar", so it can be a program name with args.
6911 set dummy ar; ac_word=$2
6912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6914 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6916 else
6917 if test -n "$ac_ct_AR"; then
6918 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6919 else
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6927 ac_cv_prog_ac_ct_AR="ar"
6928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 break 2
6931 done
6932 done
6933 IFS=$as_save_IFS
6937 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6938 if test -n "$ac_ct_AR"; then
6939 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6940 echo "${ECHO_T}$ac_ct_AR" >&6; }
6941 else
6942 { echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6; }
6946 if test "x$ac_ct_AR" = x; then
6947 AR="false"
6948 else
6949 case $cross_compiling:$ac_tool_warned in
6950 yes:)
6951 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6952 whose name does not start with the host triplet. If you think this
6953 configuration is useful to you, please write to autoconf@gnu.org." >&5
6954 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6955 whose name does not start with the host triplet. If you think this
6956 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6957 ac_tool_warned=yes ;;
6958 esac
6959 AR=$ac_ct_AR
6961 else
6962 AR="$ac_cv_prog_AR"
6965 test -z "$AR" && AR=ar
6966 test -z "$AR_FLAGS" && AR_FLAGS=cru
6978 if test -n "$ac_tool_prefix"; then
6979 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6980 set dummy ${ac_tool_prefix}strip; ac_word=$2
6981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6983 if test "${ac_cv_prog_STRIP+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986 if test -n "$STRIP"; then
6987 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6988 else
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6990 for as_dir in $PATH
6992 IFS=$as_save_IFS
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6996 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 break 2
7000 done
7001 done
7002 IFS=$as_save_IFS
7006 STRIP=$ac_cv_prog_STRIP
7007 if test -n "$STRIP"; then
7008 { echo "$as_me:$LINENO: result: $STRIP" >&5
7009 echo "${ECHO_T}$STRIP" >&6; }
7010 else
7011 { echo "$as_me:$LINENO: result: no" >&5
7012 echo "${ECHO_T}no" >&6; }
7017 if test -z "$ac_cv_prog_STRIP"; then
7018 ac_ct_STRIP=$STRIP
7019 # Extract the first word of "strip", so it can be a program name with args.
7020 set dummy strip; ac_word=$2
7021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7023 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026 if test -n "$ac_ct_STRIP"; then
7027 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7028 else
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_prog_ac_ct_STRIP="strip"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 break 2
7040 done
7041 done
7042 IFS=$as_save_IFS
7046 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7047 if test -n "$ac_ct_STRIP"; then
7048 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7049 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7050 else
7051 { echo "$as_me:$LINENO: result: no" >&5
7052 echo "${ECHO_T}no" >&6; }
7055 if test "x$ac_ct_STRIP" = x; then
7056 STRIP=":"
7057 else
7058 case $cross_compiling:$ac_tool_warned in
7059 yes:)
7060 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7061 whose name does not start with the host triplet. If you think this
7062 configuration is useful to you, please write to autoconf@gnu.org." >&5
7063 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7064 whose name does not start with the host triplet. If you think this
7065 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7066 ac_tool_warned=yes ;;
7067 esac
7068 STRIP=$ac_ct_STRIP
7070 else
7071 STRIP="$ac_cv_prog_STRIP"
7074 test -z "$STRIP" && STRIP=:
7081 if test -n "$ac_tool_prefix"; then
7082 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7083 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7086 if test "${ac_cv_prog_RANLIB+set}" = set; then
7087 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089 if test -n "$RANLIB"; then
7090 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7091 else
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7095 IFS=$as_save_IFS
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7099 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 break 2
7103 done
7104 done
7105 IFS=$as_save_IFS
7109 RANLIB=$ac_cv_prog_RANLIB
7110 if test -n "$RANLIB"; then
7111 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7112 echo "${ECHO_T}$RANLIB" >&6; }
7113 else
7114 { echo "$as_me:$LINENO: result: no" >&5
7115 echo "${ECHO_T}no" >&6; }
7120 if test -z "$ac_cv_prog_RANLIB"; then
7121 ac_ct_RANLIB=$RANLIB
7122 # Extract the first word of "ranlib", so it can be a program name with args.
7123 set dummy ranlib; ac_word=$2
7124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129 if test -n "$ac_ct_RANLIB"; then
7130 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7131 else
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7139 ac_cv_prog_ac_ct_RANLIB="ranlib"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 break 2
7143 done
7144 done
7145 IFS=$as_save_IFS
7149 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7150 if test -n "$ac_ct_RANLIB"; then
7151 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7152 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7153 else
7154 { echo "$as_me:$LINENO: result: no" >&5
7155 echo "${ECHO_T}no" >&6; }
7158 if test "x$ac_ct_RANLIB" = x; then
7159 RANLIB=":"
7160 else
7161 case $cross_compiling:$ac_tool_warned in
7162 yes:)
7163 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7164 whose name does not start with the host triplet. If you think this
7165 configuration is useful to you, please write to autoconf@gnu.org." >&5
7166 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7167 whose name does not start with the host triplet. If you think this
7168 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7169 ac_tool_warned=yes ;;
7170 esac
7171 RANLIB=$ac_ct_RANLIB
7173 else
7174 RANLIB="$ac_cv_prog_RANLIB"
7177 test -z "$RANLIB" && RANLIB=:
7184 # Determine commands to create old-style static archives.
7185 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7186 old_postinstall_cmds='chmod 644 $oldlib'
7187 old_postuninstall_cmds=
7189 if test -n "$RANLIB"; then
7190 case $host_os in
7191 openbsd*)
7192 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7195 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7197 esac
7198 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7234 # If no C compiler was specified, use CC.
7235 LTCC=${LTCC-"$CC"}
7237 # If no C compiler flags were specified, use CFLAGS.
7238 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7240 # Allow CC to be a program name with arguments.
7241 compiler=$CC
7244 # Check for command to grab the raw symbol name followed by C symbol from nm.
7245 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7246 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7247 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 else
7251 # These are sane defaults that work on at least a few old systems.
7252 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7254 # Character class describing NM global symbol codes.
7255 symcode='[BCDEGRST]'
7257 # Regexp to match symbols that can be accessed directly from C.
7258 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7260 # Define system-specific variables.
7261 case $host_os in
7262 aix*)
7263 symcode='[BCDT]'
7265 cygwin* | mingw* | pw32*)
7266 symcode='[ABCDGISTW]'
7268 hpux*)
7269 if test "$host_cpu" = ia64; then
7270 symcode='[ABCDEGRST]'
7273 irix* | nonstopux*)
7274 symcode='[BCDEGRST]'
7276 osf*)
7277 symcode='[BCDEGQRST]'
7279 solaris*)
7280 symcode='[BDRT]'
7282 sco3.2v5*)
7283 symcode='[DT]'
7285 sysv4.2uw2*)
7286 symcode='[DT]'
7288 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7289 symcode='[ABDT]'
7291 sysv4)
7292 symcode='[DFNSTU]'
7294 esac
7296 # If we're using GNU nm, then use its standard symbol codes.
7297 case `$NM -V 2>&1` in
7298 *GNU* | *'with BFD'*)
7299 symcode='[ABCDGIRSTW]' ;;
7300 esac
7302 # Transform an extracted symbol line into a proper C declaration.
7303 # Some systems (esp. on ia64) link data and code symbols differently,
7304 # so use this general approach.
7305 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7307 # Transform an extracted symbol line into symbol name and symbol address
7308 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7309 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'"
7311 # Handle CRLF in mingw tool chain
7312 opt_cr=
7313 case $build_os in
7314 mingw*)
7315 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7317 esac
7319 # Try without a prefix underscore, then with it.
7320 for ac_symprfx in "" "_"; do
7322 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7323 symxfrm="\\1 $ac_symprfx\\2 \\2"
7325 # Write the raw and C identifiers.
7326 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7327 # Fake it for dumpbin and say T for any non-static function
7328 # and D for any global variable.
7329 # Also find C++ and __fastcall symbols from MSVC++,
7330 # which start with @ or ?.
7331 lt_cv_sys_global_symbol_pipe="$AWK '"\
7332 " {last_section=section; section=\$ 3};"\
7333 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7334 " \$ 0!~/External *\|/{next};"\
7335 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7336 " {if(hide[section]) next};"\
7337 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7338 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7339 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7340 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7341 " ' prfx=^$ac_symprfx"
7342 else
7343 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7346 # Check to see that the pipe works correctly.
7347 pipe_works=no
7349 rm -f conftest*
7350 cat > conftest.$ac_ext <<_LT_EOF
7351 #ifdef __cplusplus
7352 extern "C" {
7353 #endif
7354 char nm_test_var;
7355 void nm_test_func(void);
7356 void nm_test_func(void){}
7357 #ifdef __cplusplus
7359 #endif
7360 int main(){nm_test_var='a';nm_test_func();return(0);}
7361 _LT_EOF
7363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7364 (eval $ac_compile) 2>&5
7365 ac_status=$?
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); }; then
7368 # Now try to grab the symbols.
7369 nlist=conftest.nm
7370 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7371 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7372 ac_status=$?
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } && test -s "$nlist"; then
7375 # Try sorting and uniquifying the output.
7376 if sort "$nlist" | uniq > "$nlist"T; then
7377 mv -f "$nlist"T "$nlist"
7378 else
7379 rm -f "$nlist"T
7382 # Make sure that we snagged all the symbols we need.
7383 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7384 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7385 cat <<_LT_EOF > conftest.$ac_ext
7386 #ifdef __cplusplus
7387 extern "C" {
7388 #endif
7390 _LT_EOF
7391 # Now generate the symbol file.
7392 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7394 cat <<_LT_EOF >> conftest.$ac_ext
7396 /* The mapping between symbol names and symbols. */
7397 const struct {
7398 const char *name;
7399 void *address;
7401 lt__PROGRAM__LTX_preloaded_symbols[] =
7403 { "@PROGRAM@", (void *) 0 },
7404 _LT_EOF
7405 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7406 cat <<\_LT_EOF >> conftest.$ac_ext
7407 {0, (void *) 0}
7410 /* This works around a problem in FreeBSD linker */
7411 #ifdef FREEBSD_WORKAROUND
7412 static const void *lt_preloaded_setup() {
7413 return lt__PROGRAM__LTX_preloaded_symbols;
7415 #endif
7417 #ifdef __cplusplus
7419 #endif
7420 _LT_EOF
7421 # Now try linking the two files.
7422 mv conftest.$ac_objext conftstm.$ac_objext
7423 lt_save_LIBS="$LIBS"
7424 lt_save_CFLAGS="$CFLAGS"
7425 LIBS="conftstm.$ac_objext"
7426 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7428 (eval $ac_link) 2>&5
7429 ac_status=$?
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7432 pipe_works=yes
7434 LIBS="$lt_save_LIBS"
7435 CFLAGS="$lt_save_CFLAGS"
7436 else
7437 echo "cannot find nm_test_func in $nlist" >&5
7439 else
7440 echo "cannot find nm_test_var in $nlist" >&5
7442 else
7443 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7445 else
7446 echo "$progname: failed program was:" >&5
7447 cat conftest.$ac_ext >&5
7449 rm -rf conftest* conftst*
7451 # Do not use the global_symbol_pipe unless it works.
7452 if test "$pipe_works" = yes; then
7453 break
7454 else
7455 lt_cv_sys_global_symbol_pipe=
7457 done
7461 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7462 lt_cv_sys_global_symbol_to_cdecl=
7464 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7465 { echo "$as_me:$LINENO: result: failed" >&5
7466 echo "${ECHO_T}failed" >&6; }
7467 else
7468 { echo "$as_me:$LINENO: result: ok" >&5
7469 echo "${ECHO_T}ok" >&6; }
7493 # Check whether --enable-libtool-lock was given.
7494 if test "${enable_libtool_lock+set}" = set; then
7495 enableval=$enable_libtool_lock;
7498 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7500 # Some flags need to be propagated to the compiler or linker for good
7501 # libtool support.
7502 case $host in
7503 ia64-*-hpux*)
7504 # Find out which ABI we are using.
7505 echo 'int i;' > conftest.$ac_ext
7506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7507 (eval $ac_compile) 2>&5
7508 ac_status=$?
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); }; then
7511 case `/usr/bin/file conftest.$ac_objext` in
7512 *ELF-32*)
7513 HPUX_IA64_MODE="32"
7515 *ELF-64*)
7516 HPUX_IA64_MODE="64"
7518 esac
7520 rm -rf conftest*
7522 *-*-irix6*)
7523 # Find out which ABI we are using.
7524 echo '#line 7524 "configure"' > conftest.$ac_ext
7525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7526 (eval $ac_compile) 2>&5
7527 ac_status=$?
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; then
7530 if test "$lt_cv_prog_gnu_ld" = yes; then
7531 case `/usr/bin/file conftest.$ac_objext` in
7532 *32-bit*)
7533 LD="${LD-ld} -melf32bsmip"
7535 *N32*)
7536 LD="${LD-ld} -melf32bmipn32"
7538 *64-bit*)
7539 LD="${LD-ld} -melf64bmip"
7541 esac
7542 else
7543 case `/usr/bin/file conftest.$ac_objext` in
7544 *32-bit*)
7545 LD="${LD-ld} -32"
7547 *N32*)
7548 LD="${LD-ld} -n32"
7550 *64-bit*)
7551 LD="${LD-ld} -64"
7553 esac
7556 rm -rf conftest*
7559 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7560 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7561 # Find out which ABI we are using.
7562 echo 'int i;' > conftest.$ac_ext
7563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7564 (eval $ac_compile) 2>&5
7565 ac_status=$?
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); }; then
7568 case `/usr/bin/file conftest.o` in
7569 *32-bit*)
7570 case $host in
7571 x86_64-*kfreebsd*-gnu)
7572 LD="${LD-ld} -m elf_i386_fbsd"
7574 x86_64-*linux*)
7575 LD="${LD-ld} -m elf_i386"
7577 ppc64-*linux*|powerpc64-*linux*)
7578 LD="${LD-ld} -m elf32ppclinux"
7580 s390x-*linux*)
7581 LD="${LD-ld} -m elf_s390"
7583 sparc64-*linux*)
7584 LD="${LD-ld} -m elf32_sparc"
7586 esac
7588 *64-bit*)
7589 case $host in
7590 x86_64-*kfreebsd*-gnu)
7591 LD="${LD-ld} -m elf_x86_64_fbsd"
7593 x86_64-*linux*)
7594 LD="${LD-ld} -m elf_x86_64"
7596 ppc*-*linux*|powerpc*-*linux*)
7597 LD="${LD-ld} -m elf64ppc"
7599 s390*-*linux*|s390*-*tpf*)
7600 LD="${LD-ld} -m elf64_s390"
7602 sparc*-*linux*)
7603 LD="${LD-ld} -m elf64_sparc"
7605 esac
7607 esac
7609 rm -rf conftest*
7612 *-*-sco3.2v5*)
7613 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7614 SAVE_CFLAGS="$CFLAGS"
7615 CFLAGS="$CFLAGS -belf"
7616 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7617 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7618 if test "${lt_cv_cc_needs_belf+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 else
7621 ac_ext=c
7622 ac_cpp='$CPP $CPPFLAGS'
7623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7627 cat >conftest.$ac_ext <<_ACEOF
7628 /* confdefs.h. */
7629 _ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7635 main ()
7639 return 0;
7641 _ACEOF
7642 rm -f conftest.$ac_objext conftest$ac_exeext
7643 if { (ac_try="$ac_link"
7644 case "(($ac_try" in
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7647 esac
7648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649 (eval "$ac_link") 2>conftest.er1
7650 ac_status=$?
7651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } && {
7656 test -z "$ac_c_werror_flag" ||
7657 test ! -s conftest.err
7658 } && test -s conftest$ac_exeext &&
7659 $as_test_x conftest$ac_exeext; then
7660 lt_cv_cc_needs_belf=yes
7661 else
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7665 lt_cv_cc_needs_belf=no
7668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7669 conftest$ac_exeext conftest.$ac_ext
7670 ac_ext=c
7671 ac_cpp='$CPP $CPPFLAGS'
7672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7677 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7678 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7679 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7680 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7681 CFLAGS="$SAVE_CFLAGS"
7684 sparc*-*solaris*)
7685 # Find out which ABI we are using.
7686 echo 'int i;' > conftest.$ac_ext
7687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7688 (eval $ac_compile) 2>&5
7689 ac_status=$?
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; then
7692 case `/usr/bin/file conftest.o` in
7693 *64-bit*)
7694 case $lt_cv_prog_gnu_ld in
7695 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7697 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7698 LD="${LD-ld} -64"
7701 esac
7703 esac
7705 rm -rf conftest*
7707 esac
7709 need_locks="$enable_libtool_lock"
7712 case $host_os in
7713 rhapsody* | darwin*)
7714 if test -n "$ac_tool_prefix"; then
7715 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7716 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7719 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 else
7722 if test -n "$DSYMUTIL"; then
7723 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7724 else
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7726 for as_dir in $PATH
7728 IFS=$as_save_IFS
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7732 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7734 break 2
7736 done
7737 done
7738 IFS=$as_save_IFS
7742 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7743 if test -n "$DSYMUTIL"; then
7744 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7745 echo "${ECHO_T}$DSYMUTIL" >&6; }
7746 else
7747 { echo "$as_me:$LINENO: result: no" >&5
7748 echo "${ECHO_T}no" >&6; }
7753 if test -z "$ac_cv_prog_DSYMUTIL"; then
7754 ac_ct_DSYMUTIL=$DSYMUTIL
7755 # Extract the first word of "dsymutil", so it can be a program name with args.
7756 set dummy dsymutil; ac_word=$2
7757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7759 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7761 else
7762 if test -n "$ac_ct_DSYMUTIL"; then
7763 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7764 else
7765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 for as_dir in $PATH
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7772 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 break 2
7776 done
7777 done
7778 IFS=$as_save_IFS
7782 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7783 if test -n "$ac_ct_DSYMUTIL"; then
7784 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7785 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7786 else
7787 { echo "$as_me:$LINENO: result: no" >&5
7788 echo "${ECHO_T}no" >&6; }
7791 if test "x$ac_ct_DSYMUTIL" = x; then
7792 DSYMUTIL=":"
7793 else
7794 case $cross_compiling:$ac_tool_warned in
7795 yes:)
7796 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7797 whose name does not start with the host triplet. If you think this
7798 configuration is useful to you, please write to autoconf@gnu.org." >&5
7799 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7800 whose name does not start with the host triplet. If you think this
7801 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7802 ac_tool_warned=yes ;;
7803 esac
7804 DSYMUTIL=$ac_ct_DSYMUTIL
7806 else
7807 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7810 if test -n "$ac_tool_prefix"; then
7811 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7812 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7815 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 else
7818 if test -n "$NMEDIT"; then
7819 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7828 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7830 break 2
7832 done
7833 done
7834 IFS=$as_save_IFS
7838 NMEDIT=$ac_cv_prog_NMEDIT
7839 if test -n "$NMEDIT"; then
7840 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7841 echo "${ECHO_T}$NMEDIT" >&6; }
7842 else
7843 { echo "$as_me:$LINENO: result: no" >&5
7844 echo "${ECHO_T}no" >&6; }
7849 if test -z "$ac_cv_prog_NMEDIT"; then
7850 ac_ct_NMEDIT=$NMEDIT
7851 # Extract the first word of "nmedit", so it can be a program name with args.
7852 set dummy nmedit; ac_word=$2
7853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7855 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 else
7858 if test -n "$ac_ct_NMEDIT"; then
7859 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7860 else
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH
7864 IFS=$as_save_IFS
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7868 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 break 2
7872 done
7873 done
7874 IFS=$as_save_IFS
7878 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7879 if test -n "$ac_ct_NMEDIT"; then
7880 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7881 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7882 else
7883 { echo "$as_me:$LINENO: result: no" >&5
7884 echo "${ECHO_T}no" >&6; }
7887 if test "x$ac_ct_NMEDIT" = x; then
7888 NMEDIT=":"
7889 else
7890 case $cross_compiling:$ac_tool_warned in
7891 yes:)
7892 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7893 whose name does not start with the host triplet. If you think this
7894 configuration is useful to you, please write to autoconf@gnu.org." >&5
7895 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7896 whose name does not start with the host triplet. If you think this
7897 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7898 ac_tool_warned=yes ;;
7899 esac
7900 NMEDIT=$ac_ct_NMEDIT
7902 else
7903 NMEDIT="$ac_cv_prog_NMEDIT"
7906 if test -n "$ac_tool_prefix"; then
7907 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7908 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7911 if test "${ac_cv_prog_LIPO+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 else
7914 if test -n "$LIPO"; then
7915 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7916 else
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 for as_dir in $PATH
7920 IFS=$as_save_IFS
7921 test -z "$as_dir" && as_dir=.
7922 for ac_exec_ext in '' $ac_executable_extensions; do
7923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7924 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7926 break 2
7928 done
7929 done
7930 IFS=$as_save_IFS
7934 LIPO=$ac_cv_prog_LIPO
7935 if test -n "$LIPO"; then
7936 { echo "$as_me:$LINENO: result: $LIPO" >&5
7937 echo "${ECHO_T}$LIPO" >&6; }
7938 else
7939 { echo "$as_me:$LINENO: result: no" >&5
7940 echo "${ECHO_T}no" >&6; }
7945 if test -z "$ac_cv_prog_LIPO"; then
7946 ac_ct_LIPO=$LIPO
7947 # Extract the first word of "lipo", so it can be a program name with args.
7948 set dummy lipo; ac_word=$2
7949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7951 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7953 else
7954 if test -n "$ac_ct_LIPO"; then
7955 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7956 else
7957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7958 for as_dir in $PATH
7960 IFS=$as_save_IFS
7961 test -z "$as_dir" && as_dir=.
7962 for ac_exec_ext in '' $ac_executable_extensions; do
7963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7964 ac_cv_prog_ac_ct_LIPO="lipo"
7965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 break 2
7968 done
7969 done
7970 IFS=$as_save_IFS
7974 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7975 if test -n "$ac_ct_LIPO"; then
7976 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7977 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7978 else
7979 { echo "$as_me:$LINENO: result: no" >&5
7980 echo "${ECHO_T}no" >&6; }
7983 if test "x$ac_ct_LIPO" = x; then
7984 LIPO=":"
7985 else
7986 case $cross_compiling:$ac_tool_warned in
7987 yes:)
7988 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7989 whose name does not start with the host triplet. If you think this
7990 configuration is useful to you, please write to autoconf@gnu.org." >&5
7991 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7992 whose name does not start with the host triplet. If you think this
7993 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7994 ac_tool_warned=yes ;;
7995 esac
7996 LIPO=$ac_ct_LIPO
7998 else
7999 LIPO="$ac_cv_prog_LIPO"
8002 if test -n "$ac_tool_prefix"; then
8003 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8004 set dummy ${ac_tool_prefix}otool; ac_word=$2
8005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8007 if test "${ac_cv_prog_OTOOL+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 else
8010 if test -n "$OTOOL"; then
8011 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8012 else
8013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014 for as_dir in $PATH
8016 IFS=$as_save_IFS
8017 test -z "$as_dir" && as_dir=.
8018 for ac_exec_ext in '' $ac_executable_extensions; do
8019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8020 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8022 break 2
8024 done
8025 done
8026 IFS=$as_save_IFS
8030 OTOOL=$ac_cv_prog_OTOOL
8031 if test -n "$OTOOL"; then
8032 { echo "$as_me:$LINENO: result: $OTOOL" >&5
8033 echo "${ECHO_T}$OTOOL" >&6; }
8034 else
8035 { echo "$as_me:$LINENO: result: no" >&5
8036 echo "${ECHO_T}no" >&6; }
8041 if test -z "$ac_cv_prog_OTOOL"; then
8042 ac_ct_OTOOL=$OTOOL
8043 # Extract the first word of "otool", so it can be a program name with args.
8044 set dummy otool; ac_word=$2
8045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8047 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 else
8050 if test -n "$ac_ct_OTOOL"; then
8051 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8052 else
8053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8054 for as_dir in $PATH
8056 IFS=$as_save_IFS
8057 test -z "$as_dir" && as_dir=.
8058 for ac_exec_ext in '' $ac_executable_extensions; do
8059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8060 ac_cv_prog_ac_ct_OTOOL="otool"
8061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8062 break 2
8064 done
8065 done
8066 IFS=$as_save_IFS
8070 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8071 if test -n "$ac_ct_OTOOL"; then
8072 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
8073 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
8074 else
8075 { echo "$as_me:$LINENO: result: no" >&5
8076 echo "${ECHO_T}no" >&6; }
8079 if test "x$ac_ct_OTOOL" = x; then
8080 OTOOL=":"
8081 else
8082 case $cross_compiling:$ac_tool_warned in
8083 yes:)
8084 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8085 whose name does not start with the host triplet. If you think this
8086 configuration is useful to you, please write to autoconf@gnu.org." >&5
8087 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8088 whose name does not start with the host triplet. If you think this
8089 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8090 ac_tool_warned=yes ;;
8091 esac
8092 OTOOL=$ac_ct_OTOOL
8094 else
8095 OTOOL="$ac_cv_prog_OTOOL"
8098 if test -n "$ac_tool_prefix"; then
8099 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8100 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8103 if test "${ac_cv_prog_OTOOL64+set}" = set; then
8104 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 else
8106 if test -n "$OTOOL64"; then
8107 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8108 else
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8112 IFS=$as_save_IFS
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8116 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 break 2
8120 done
8121 done
8122 IFS=$as_save_IFS
8126 OTOOL64=$ac_cv_prog_OTOOL64
8127 if test -n "$OTOOL64"; then
8128 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
8129 echo "${ECHO_T}$OTOOL64" >&6; }
8130 else
8131 { echo "$as_me:$LINENO: result: no" >&5
8132 echo "${ECHO_T}no" >&6; }
8137 if test -z "$ac_cv_prog_OTOOL64"; then
8138 ac_ct_OTOOL64=$OTOOL64
8139 # Extract the first word of "otool64", so it can be a program name with args.
8140 set dummy otool64; ac_word=$2
8141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8143 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 else
8146 if test -n "$ac_ct_OTOOL64"; then
8147 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8148 else
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8156 ac_cv_prog_ac_ct_OTOOL64="otool64"
8157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 break 2
8160 done
8161 done
8162 IFS=$as_save_IFS
8166 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8167 if test -n "$ac_ct_OTOOL64"; then
8168 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8169 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
8170 else
8171 { echo "$as_me:$LINENO: result: no" >&5
8172 echo "${ECHO_T}no" >&6; }
8175 if test "x$ac_ct_OTOOL64" = x; then
8176 OTOOL64=":"
8177 else
8178 case $cross_compiling:$ac_tool_warned in
8179 yes:)
8180 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8181 whose name does not start with the host triplet. If you think this
8182 configuration is useful to you, please write to autoconf@gnu.org." >&5
8183 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8184 whose name does not start with the host triplet. If you think this
8185 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8186 ac_tool_warned=yes ;;
8187 esac
8188 OTOOL64=$ac_ct_OTOOL64
8190 else
8191 OTOOL64="$ac_cv_prog_OTOOL64"
8220 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8221 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
8222 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 else
8225 lt_cv_apple_cc_single_mod=no
8226 if test -z "${LT_MULTI_MODULE}"; then
8227 # By default we will add the -single_module flag. You can override
8228 # by either setting the environment variable LT_MULTI_MODULE
8229 # non-empty at configure time, or by adding -multi_module to the
8230 # link flags.
8231 rm -rf libconftest.dylib*
8232 echo "int foo(void){return 1;}" > conftest.c
8233 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8234 -dynamiclib -Wl,-single_module conftest.c" >&5
8235 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8236 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8237 _lt_result=$?
8238 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8239 lt_cv_apple_cc_single_mod=yes
8240 else
8241 cat conftest.err >&5
8243 rm -rf libconftest.dylib*
8244 rm -f conftest.*
8247 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8248 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
8249 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8250 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
8251 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 else
8254 lt_cv_ld_exported_symbols_list=no
8255 save_LDFLAGS=$LDFLAGS
8256 echo "_main" > conftest.sym
8257 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8258 cat >conftest.$ac_ext <<_ACEOF
8259 /* confdefs.h. */
8260 _ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h. */
8266 main ()
8270 return 0;
8272 _ACEOF
8273 rm -f conftest.$ac_objext conftest$ac_exeext
8274 if { (ac_try="$ac_link"
8275 case "(($ac_try" in
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8278 esac
8279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280 (eval "$ac_link") 2>conftest.er1
8281 ac_status=$?
8282 grep -v '^ *+' conftest.er1 >conftest.err
8283 rm -f conftest.er1
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } && {
8287 test -z "$ac_c_werror_flag" ||
8288 test ! -s conftest.err
8289 } && test -s conftest$ac_exeext &&
8290 $as_test_x conftest$ac_exeext; then
8291 lt_cv_ld_exported_symbols_list=yes
8292 else
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8296 lt_cv_ld_exported_symbols_list=no
8299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8300 conftest$ac_exeext conftest.$ac_ext
8301 LDFLAGS="$save_LDFLAGS"
8304 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8305 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8306 case $host_os in
8307 rhapsody* | darwin1.[012])
8308 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8309 darwin1.*)
8310 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8311 darwin*) # darwin 5.x on
8312 # if running on 10.5 or later, the deployment target defaults
8313 # to the OS version, if on x86, and 10.4, the deployment
8314 # target defaults to 10.4. Don't you love it?
8315 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8316 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8317 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8318 10.[012]*)
8319 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8320 10.*)
8321 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8322 esac
8324 esac
8325 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8326 _lt_dar_single_mod='$single_module'
8328 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8329 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8330 else
8331 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8333 if test "$DSYMUTIL" != ":"; then
8334 _lt_dsymutil='~$DSYMUTIL $lib || :'
8335 else
8336 _lt_dsymutil=
8339 esac
8341 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8351 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8352 inttypes.h stdint.h unistd.h
8354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360 cat >conftest.$ac_ext <<_ACEOF
8361 /* confdefs.h. */
8362 _ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h. */
8366 $ac_includes_default
8368 #include <$ac_header>
8369 _ACEOF
8370 rm -f conftest.$ac_objext
8371 if { (ac_try="$ac_compile"
8372 case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8375 esac
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_compile") 2>conftest.er1
8378 ac_status=$?
8379 grep -v '^ *+' conftest.er1 >conftest.err
8380 rm -f conftest.er1
8381 cat conftest.err >&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } && {
8384 test -z "$ac_c_werror_flag" ||
8385 test ! -s conftest.err
8386 } && test -s conftest.$ac_objext; then
8387 eval "$as_ac_Header=yes"
8388 else
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8392 eval "$as_ac_Header=no"
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8397 ac_res=`eval echo '${'$as_ac_Header'}'`
8398 { echo "$as_me:$LINENO: result: $ac_res" >&5
8399 echo "${ECHO_T}$ac_res" >&6; }
8400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8401 cat >>confdefs.h <<_ACEOF
8402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8403 _ACEOF
8407 done
8411 for ac_header in dlfcn.h
8413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
8418 else
8419 cat >conftest.$ac_ext <<_ACEOF
8420 /* confdefs.h. */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h. */
8425 $ac_includes_default
8427 #include <$ac_header>
8428 _ACEOF
8429 rm -f conftest.$ac_objext
8430 if { (ac_try="$ac_compile"
8431 case "(($ac_try" in
8432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433 *) ac_try_echo=$ac_try;;
8434 esac
8435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8436 (eval "$ac_compile") 2>conftest.er1
8437 ac_status=$?
8438 grep -v '^ *+' conftest.er1 >conftest.err
8439 rm -f conftest.er1
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } && {
8443 test -z "$ac_c_werror_flag" ||
8444 test ! -s conftest.err
8445 } && test -s conftest.$ac_objext; then
8446 eval "$as_ac_Header=yes"
8447 else
8448 echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8451 eval "$as_ac_Header=no"
8454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 ac_res=`eval echo '${'$as_ac_Header'}'`
8457 { echo "$as_me:$LINENO: result: $ac_res" >&5
8458 echo "${ECHO_T}$ac_res" >&6; }
8459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8460 cat >>confdefs.h <<_ACEOF
8461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8462 _ACEOF
8466 done
8470 # Set options
8474 enable_dlopen=no
8477 enable_win32_dll=no
8480 # Check whether --enable-shared was given.
8481 if test "${enable_shared+set}" = set; then
8482 enableval=$enable_shared; p=${PACKAGE-default}
8483 case $enableval in
8484 yes) enable_shared=yes ;;
8485 no) enable_shared=no ;;
8487 enable_shared=no
8488 # Look at the argument we got. We use all the common list separators.
8489 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8490 for pkg in $enableval; do
8491 IFS="$lt_save_ifs"
8492 if test "X$pkg" = "X$p"; then
8493 enable_shared=yes
8495 done
8496 IFS="$lt_save_ifs"
8498 esac
8499 else
8500 enable_shared=yes
8513 # Check whether --with-pic was given.
8514 if test "${with_pic+set}" = set; then
8515 withval=$with_pic; pic_mode="$withval"
8516 else
8517 pic_mode=default
8521 test -z "$pic_mode" && pic_mode=default
8529 # Check whether --enable-fast-install was given.
8530 if test "${enable_fast_install+set}" = set; then
8531 enableval=$enable_fast_install; p=${PACKAGE-default}
8532 case $enableval in
8533 yes) enable_fast_install=yes ;;
8534 no) enable_fast_install=no ;;
8536 enable_fast_install=no
8537 # Look at the argument we got. We use all the common list separators.
8538 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8539 for pkg in $enableval; do
8540 IFS="$lt_save_ifs"
8541 if test "X$pkg" = "X$p"; then
8542 enable_fast_install=yes
8544 done
8545 IFS="$lt_save_ifs"
8547 esac
8548 else
8549 enable_fast_install=yes
8562 # This can be used to rebuild libtool when needed
8563 LIBTOOL_DEPS="$ltmain"
8565 # Always use our own libtool.
8566 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8592 test -z "$LN_S" && LN_S="ln -s"
8607 if test -n "${ZSH_VERSION+set}" ; then
8608 setopt NO_GLOB_SUBST
8611 { echo "$as_me:$LINENO: checking for objdir" >&5
8612 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8613 if test "${lt_cv_objdir+set}" = set; then
8614 echo $ECHO_N "(cached) $ECHO_C" >&6
8615 else
8616 rm -f .libs 2>/dev/null
8617 mkdir .libs 2>/dev/null
8618 if test -d .libs; then
8619 lt_cv_objdir=.libs
8620 else
8621 # MS-DOS does not allow filenames that begin with a dot.
8622 lt_cv_objdir=_libs
8624 rmdir .libs 2>/dev/null
8626 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8627 echo "${ECHO_T}$lt_cv_objdir" >&6; }
8628 objdir=$lt_cv_objdir
8634 cat >>confdefs.h <<_ACEOF
8635 #define LT_OBJDIR "$lt_cv_objdir/"
8636 _ACEOF
8654 case $host_os in
8655 aix3*)
8656 # AIX sometimes has problems with the GCC collect2 program. For some
8657 # reason, if we set the COLLECT_NAMES environment variable, the problems
8658 # vanish in a puff of smoke.
8659 if test "X${COLLECT_NAMES+set}" != Xset; then
8660 COLLECT_NAMES=
8661 export COLLECT_NAMES
8664 esac
8666 # Sed substitution that helps us do robust quoting. It backslashifies
8667 # metacharacters that are still active within double-quoted strings.
8668 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8670 # Same as above, but do not quote variable references.
8671 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8673 # Sed substitution to delay expansion of an escaped shell variable in a
8674 # double_quote_subst'ed string.
8675 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8677 # Sed substitution to delay expansion of an escaped single quote.
8678 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8680 # Sed substitution to avoid accidental globbing in evaled expressions
8681 no_glob_subst='s/\*/\\\*/g'
8683 # Global variables:
8684 ofile=libtool
8685 can_build_shared=yes
8687 # All known linkers require a `.a' archive for static linking (except MSVC,
8688 # which needs '.lib').
8689 libext=a
8691 with_gnu_ld="$lt_cv_prog_gnu_ld"
8693 old_CC="$CC"
8694 old_CFLAGS="$CFLAGS"
8696 # Set sane defaults for various variables
8697 test -z "$CC" && CC=cc
8698 test -z "$LTCC" && LTCC=$CC
8699 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8700 test -z "$LD" && LD=ld
8701 test -z "$ac_objext" && ac_objext=o
8703 for cc_temp in $compiler""; do
8704 case $cc_temp in
8705 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8706 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8707 \-*) ;;
8708 *) break;;
8709 esac
8710 done
8711 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8714 # Only perform the check for file, if the check method requires it
8715 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8716 case $deplibs_check_method in
8717 file_magic*)
8718 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8719 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8720 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8721 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 else
8724 case $MAGIC_CMD in
8725 [\\/*] | ?:[\\/]*)
8726 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8729 lt_save_MAGIC_CMD="$MAGIC_CMD"
8730 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8731 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8732 for ac_dir in $ac_dummy; do
8733 IFS="$lt_save_ifs"
8734 test -z "$ac_dir" && ac_dir=.
8735 if test -f $ac_dir/${ac_tool_prefix}file; then
8736 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8737 if test -n "$file_magic_test_file"; then
8738 case $deplibs_check_method in
8739 "file_magic "*)
8740 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8741 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8742 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8743 $EGREP "$file_magic_regex" > /dev/null; then
8745 else
8746 cat <<_LT_EOF 1>&2
8748 *** Warning: the command libtool uses to detect shared libraries,
8749 *** $file_magic_cmd, produces output that libtool cannot recognize.
8750 *** The result is that libtool may fail to recognize shared libraries
8751 *** as such. This will affect the creation of libtool libraries that
8752 *** depend on shared libraries, but programs linked with such libtool
8753 *** libraries will work regardless of this problem. Nevertheless, you
8754 *** may want to report the problem to your system manager and/or to
8755 *** bug-libtool@gnu.org
8757 _LT_EOF
8758 fi ;;
8759 esac
8761 break
8763 done
8764 IFS="$lt_save_ifs"
8765 MAGIC_CMD="$lt_save_MAGIC_CMD"
8767 esac
8770 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8771 if test -n "$MAGIC_CMD"; then
8772 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8773 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8774 else
8775 { echo "$as_me:$LINENO: result: no" >&5
8776 echo "${ECHO_T}no" >&6; }
8783 if test -z "$lt_cv_path_MAGIC_CMD"; then
8784 if test -n "$ac_tool_prefix"; then
8785 { echo "$as_me:$LINENO: checking for file" >&5
8786 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8787 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790 case $MAGIC_CMD in
8791 [\\/*] | ?:[\\/]*)
8792 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8795 lt_save_MAGIC_CMD="$MAGIC_CMD"
8796 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8797 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8798 for ac_dir in $ac_dummy; do
8799 IFS="$lt_save_ifs"
8800 test -z "$ac_dir" && ac_dir=.
8801 if test -f $ac_dir/file; then
8802 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8803 if test -n "$file_magic_test_file"; then
8804 case $deplibs_check_method in
8805 "file_magic "*)
8806 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8807 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8808 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8809 $EGREP "$file_magic_regex" > /dev/null; then
8811 else
8812 cat <<_LT_EOF 1>&2
8814 *** Warning: the command libtool uses to detect shared libraries,
8815 *** $file_magic_cmd, produces output that libtool cannot recognize.
8816 *** The result is that libtool may fail to recognize shared libraries
8817 *** as such. This will affect the creation of libtool libraries that
8818 *** depend on shared libraries, but programs linked with such libtool
8819 *** libraries will work regardless of this problem. Nevertheless, you
8820 *** may want to report the problem to your system manager and/or to
8821 *** bug-libtool@gnu.org
8823 _LT_EOF
8824 fi ;;
8825 esac
8827 break
8829 done
8830 IFS="$lt_save_ifs"
8831 MAGIC_CMD="$lt_save_MAGIC_CMD"
8833 esac
8836 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8837 if test -n "$MAGIC_CMD"; then
8838 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8839 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8840 else
8841 { echo "$as_me:$LINENO: result: no" >&5
8842 echo "${ECHO_T}no" >&6; }
8846 else
8847 MAGIC_CMD=:
8853 esac
8855 # Use C for the default configuration in the libtool script
8857 lt_save_CC="$CC"
8858 ac_ext=c
8859 ac_cpp='$CPP $CPPFLAGS'
8860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8865 # Source file extension for C test sources.
8866 ac_ext=c
8868 # Object file extension for compiled C test sources.
8869 objext=o
8870 objext=$objext
8872 # Code to be used in simple compile tests
8873 lt_simple_compile_test_code="int some_variable = 0;"
8875 # Code to be used in simple link tests
8876 lt_simple_link_test_code='int main(){return(0);}'
8884 # If no C compiler was specified, use CC.
8885 LTCC=${LTCC-"$CC"}
8887 # If no C compiler flags were specified, use CFLAGS.
8888 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8890 # Allow CC to be a program name with arguments.
8891 compiler=$CC
8893 # Save the default compiler, since it gets overwritten when the other
8894 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8895 compiler_DEFAULT=$CC
8897 # save warnings/boilerplate of simple test code
8898 ac_outfile=conftest.$ac_objext
8899 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8900 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8901 _lt_compiler_boilerplate=`cat conftest.err`
8902 $RM conftest*
8904 ac_outfile=conftest.$ac_objext
8905 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8906 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8907 _lt_linker_boilerplate=`cat conftest.err`
8908 $RM -r conftest*
8911 if test -n "$compiler"; then
8913 lt_prog_compiler_no_builtin_flag=
8915 if test "$GCC" = yes; then
8916 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8918 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8919 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8920 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8922 else
8923 lt_cv_prog_compiler_rtti_exceptions=no
8924 ac_outfile=conftest.$ac_objext
8925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8926 lt_compiler_flag="-fno-rtti -fno-exceptions"
8927 # Insert the option either (1) after the last *FLAGS variable, or
8928 # (2) before a word containing "conftest.", or (3) at the end.
8929 # Note that $ac_compile itself does not contain backslashes and begins
8930 # with a dollar sign (not a hyphen), so the echo should work correctly.
8931 # The option is referenced via a variable to avoid confusing sed.
8932 lt_compile=`echo "$ac_compile" | $SED \
8933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8935 -e 's:$: $lt_compiler_flag:'`
8936 (eval echo "\"\$as_me:8936: $lt_compile\"" >&5)
8937 (eval "$lt_compile" 2>conftest.err)
8938 ac_status=$?
8939 cat conftest.err >&5
8940 echo "$as_me:8940: \$? = $ac_status" >&5
8941 if (exit $ac_status) && test -s "$ac_outfile"; then
8942 # The compiler can only warn and ignore the option if not recognized
8943 # So say no if there are warnings other than the usual output.
8944 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8946 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8947 lt_cv_prog_compiler_rtti_exceptions=yes
8950 $RM conftest*
8953 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8954 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8956 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8957 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8958 else
8969 lt_prog_compiler_wl=
8970 lt_prog_compiler_pic=
8971 lt_prog_compiler_static=
8973 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8974 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8976 if test "$GCC" = yes; then
8977 lt_prog_compiler_wl='-Wl,'
8978 lt_prog_compiler_static='-static'
8980 case $host_os in
8981 aix*)
8982 # All AIX code is PIC.
8983 if test "$host_cpu" = ia64; then
8984 # AIX 5 now supports IA64 processor
8985 lt_prog_compiler_static='-Bstatic'
8989 amigaos*)
8990 case $host_cpu in
8991 powerpc)
8992 # see comment about AmigaOS4 .so support
8993 lt_prog_compiler_pic='-fPIC'
8995 m68k)
8996 # FIXME: we need at least 68020 code to build shared libraries, but
8997 # adding the `-m68020' flag to GCC prevents building anything better,
8998 # like `-m68040'.
8999 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9001 esac
9004 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9005 # PIC is the default for these OSes.
9008 mingw* | cygwin* | pw32* | os2*)
9009 # This hack is so that the source file can tell whether it is being
9010 # built for inclusion in a dll (and should export symbols for example).
9011 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9012 # (--disable-auto-import) libraries
9013 lt_prog_compiler_pic='-DDLL_EXPORT'
9016 darwin* | rhapsody*)
9017 # PIC is the default on this platform
9018 # Common symbols not allowed in MH_DYLIB files
9019 lt_prog_compiler_pic='-fno-common'
9022 hpux*)
9023 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9024 # not for PA HP-UX.
9025 case $host_cpu in
9026 hppa*64*|ia64*)
9027 # +Z the default
9030 lt_prog_compiler_pic='-fPIC'
9032 esac
9035 interix[3-9]*)
9036 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9037 # Instead, we relocate shared libraries at runtime.
9040 msdosdjgpp*)
9041 # Just because we use GCC doesn't mean we suddenly get shared libraries
9042 # on systems that don't support them.
9043 lt_prog_compiler_can_build_shared=no
9044 enable_shared=no
9047 *nto* | *qnx*)
9048 # QNX uses GNU C++, but need to define -shared option too, otherwise
9049 # it will coredump.
9050 lt_prog_compiler_pic='-fPIC -shared'
9053 sysv4*MP*)
9054 if test -d /usr/nec; then
9055 lt_prog_compiler_pic=-Kconform_pic
9060 lt_prog_compiler_pic='-fPIC'
9062 esac
9063 else
9064 # PORTME Check for flag to pass linker flags through the system compiler.
9065 case $host_os in
9066 aix*)
9067 lt_prog_compiler_wl='-Wl,'
9068 if test "$host_cpu" = ia64; then
9069 # AIX 5 now supports IA64 processor
9070 lt_prog_compiler_static='-Bstatic'
9071 else
9072 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9076 mingw* | cygwin* | pw32* | os2*)
9077 # This hack is so that the source file can tell whether it is being
9078 # built for inclusion in a dll (and should export symbols for example).
9079 lt_prog_compiler_pic='-DDLL_EXPORT'
9082 hpux9* | hpux10* | hpux11*)
9083 lt_prog_compiler_wl='-Wl,'
9084 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9085 # not for PA HP-UX.
9086 case $host_cpu in
9087 hppa*64*|ia64*)
9088 # +Z the default
9091 lt_prog_compiler_pic='+Z'
9093 esac
9094 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9095 lt_prog_compiler_static='${wl}-a ${wl}archive'
9098 irix5* | irix6* | nonstopux*)
9099 lt_prog_compiler_wl='-Wl,'
9100 # PIC (with -KPIC) is the default.
9101 lt_prog_compiler_static='-non_shared'
9104 linux* | k*bsd*-gnu)
9105 case $cc_basename in
9106 icc* | ecc* | ifort*)
9107 lt_prog_compiler_wl='-Wl,'
9108 lt_prog_compiler_pic='-KPIC'
9109 lt_prog_compiler_static='-static'
9111 pgcc* | pgf77* | pgf90* | pgf95*)
9112 # Portland Group compilers (*not* the Pentium gcc compiler,
9113 # which looks to be a dead project)
9114 lt_prog_compiler_wl='-Wl,'
9115 lt_prog_compiler_pic='-fpic'
9116 lt_prog_compiler_static='-Bstatic'
9118 ccc*)
9119 lt_prog_compiler_wl='-Wl,'
9120 # All Alpha code is PIC.
9121 lt_prog_compiler_static='-non_shared'
9123 xl*)
9124 # IBM XL C 8.0/Fortran 10.1 on PPC
9125 lt_prog_compiler_wl='-Wl,'
9126 lt_prog_compiler_pic='-qpic'
9127 lt_prog_compiler_static='-qstaticlink'
9130 case `$CC -V 2>&1 | sed 5q` in
9131 *Sun\ C*)
9132 # Sun C 5.9
9133 lt_prog_compiler_pic='-KPIC'
9134 lt_prog_compiler_static='-Bstatic'
9135 lt_prog_compiler_wl='-Wl,'
9137 *Sun\ F*)
9138 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9139 lt_prog_compiler_pic='-KPIC'
9140 lt_prog_compiler_static='-Bstatic'
9141 lt_prog_compiler_wl=''
9143 esac
9145 esac
9148 newsos6)
9149 lt_prog_compiler_pic='-KPIC'
9150 lt_prog_compiler_static='-Bstatic'
9153 *nto* | *qnx*)
9154 # QNX uses GNU C++, but need to define -shared option too, otherwise
9155 # it will coredump.
9156 lt_prog_compiler_pic='-fPIC -shared'
9159 osf3* | osf4* | osf5*)
9160 lt_prog_compiler_wl='-Wl,'
9161 # All OSF/1 code is PIC.
9162 lt_prog_compiler_static='-non_shared'
9165 rdos*)
9166 lt_prog_compiler_static='-non_shared'
9169 solaris*)
9170 lt_prog_compiler_pic='-KPIC'
9171 lt_prog_compiler_static='-Bstatic'
9172 case $cc_basename in
9173 f77* | f90* | f95*)
9174 lt_prog_compiler_wl='-Qoption ld ';;
9176 lt_prog_compiler_wl='-Wl,';;
9177 esac
9180 sunos4*)
9181 lt_prog_compiler_wl='-Qoption ld '
9182 lt_prog_compiler_pic='-PIC'
9183 lt_prog_compiler_static='-Bstatic'
9186 sysv4 | sysv4.2uw2* | sysv4.3*)
9187 lt_prog_compiler_wl='-Wl,'
9188 lt_prog_compiler_pic='-KPIC'
9189 lt_prog_compiler_static='-Bstatic'
9192 sysv4*MP*)
9193 if test -d /usr/nec ;then
9194 lt_prog_compiler_pic='-Kconform_pic'
9195 lt_prog_compiler_static='-Bstatic'
9199 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9200 lt_prog_compiler_wl='-Wl,'
9201 lt_prog_compiler_pic='-KPIC'
9202 lt_prog_compiler_static='-Bstatic'
9205 unicos*)
9206 lt_prog_compiler_wl='-Wl,'
9207 lt_prog_compiler_can_build_shared=no
9210 uts4*)
9211 lt_prog_compiler_pic='-pic'
9212 lt_prog_compiler_static='-Bstatic'
9216 lt_prog_compiler_can_build_shared=no
9218 esac
9221 case $host_os in
9222 # For platforms which do not support PIC, -DPIC is meaningless:
9223 *djgpp*)
9224 lt_prog_compiler_pic=
9227 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9229 esac
9230 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9231 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9239 # Check to make sure the PIC flag actually works.
9241 if test -n "$lt_prog_compiler_pic"; then
9242 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9243 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9244 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9246 else
9247 lt_cv_prog_compiler_pic_works=no
9248 ac_outfile=conftest.$ac_objext
9249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9250 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9251 # Insert the option either (1) after the last *FLAGS variable, or
9252 # (2) before a word containing "conftest.", or (3) at the end.
9253 # Note that $ac_compile itself does not contain backslashes and begins
9254 # with a dollar sign (not a hyphen), so the echo should work correctly.
9255 # The option is referenced via a variable to avoid confusing sed.
9256 lt_compile=`echo "$ac_compile" | $SED \
9257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9259 -e 's:$: $lt_compiler_flag:'`
9260 (eval echo "\"\$as_me:9260: $lt_compile\"" >&5)
9261 (eval "$lt_compile" 2>conftest.err)
9262 ac_status=$?
9263 cat conftest.err >&5
9264 echo "$as_me:9264: \$? = $ac_status" >&5
9265 if (exit $ac_status) && test -s "$ac_outfile"; then
9266 # The compiler can only warn and ignore the option if not recognized
9267 # So say no if there are warnings other than the usual output.
9268 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9269 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9270 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9271 lt_cv_prog_compiler_pic_works=yes
9274 $RM conftest*
9277 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9278 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9280 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9281 case $lt_prog_compiler_pic in
9282 "" | " "*) ;;
9283 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9284 esac
9285 else
9286 lt_prog_compiler_pic=
9287 lt_prog_compiler_can_build_shared=no
9298 # Check to make sure the static flag actually works.
9300 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9301 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9302 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9303 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9304 echo $ECHO_N "(cached) $ECHO_C" >&6
9305 else
9306 lt_cv_prog_compiler_static_works=no
9307 save_LDFLAGS="$LDFLAGS"
9308 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9309 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9310 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9311 # The linker can only warn and ignore the option if not recognized
9312 # So say no if there are warnings
9313 if test -s conftest.err; then
9314 # Append any errors to the config.log.
9315 cat conftest.err 1>&5
9316 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9318 if diff conftest.exp conftest.er2 >/dev/null; then
9319 lt_cv_prog_compiler_static_works=yes
9321 else
9322 lt_cv_prog_compiler_static_works=yes
9325 $RM -r conftest*
9326 LDFLAGS="$save_LDFLAGS"
9329 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9330 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9332 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9334 else
9335 lt_prog_compiler_static=
9344 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9345 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9346 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 else
9349 lt_cv_prog_compiler_c_o=no
9350 $RM -r conftest 2>/dev/null
9351 mkdir conftest
9352 cd conftest
9353 mkdir out
9354 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9356 lt_compiler_flag="-o out/conftest2.$ac_objext"
9357 # Insert the option either (1) after the last *FLAGS variable, or
9358 # (2) before a word containing "conftest.", or (3) at the end.
9359 # Note that $ac_compile itself does not contain backslashes and begins
9360 # with a dollar sign (not a hyphen), so the echo should work correctly.
9361 lt_compile=`echo "$ac_compile" | $SED \
9362 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9363 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9364 -e 's:$: $lt_compiler_flag:'`
9365 (eval echo "\"\$as_me:9365: $lt_compile\"" >&5)
9366 (eval "$lt_compile" 2>out/conftest.err)
9367 ac_status=$?
9368 cat out/conftest.err >&5
9369 echo "$as_me:9369: \$? = $ac_status" >&5
9370 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9371 then
9372 # The compiler can only warn and ignore the option if not recognized
9373 # So say no if there are warnings
9374 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9375 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9376 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9377 lt_cv_prog_compiler_c_o=yes
9380 chmod u+w . 2>&5
9381 $RM conftest*
9382 # SGI C++ compiler will create directory out/ii_files/ for
9383 # template instantiation
9384 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9385 $RM out/* && rmdir out
9386 cd ..
9387 $RM -r conftest
9388 $RM conftest*
9391 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9392 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9399 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9400 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9401 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 else
9404 lt_cv_prog_compiler_c_o=no
9405 $RM -r conftest 2>/dev/null
9406 mkdir conftest
9407 cd conftest
9408 mkdir out
9409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9411 lt_compiler_flag="-o out/conftest2.$ac_objext"
9412 # Insert the option either (1) after the last *FLAGS variable, or
9413 # (2) before a word containing "conftest.", or (3) at the end.
9414 # Note that $ac_compile itself does not contain backslashes and begins
9415 # with a dollar sign (not a hyphen), so the echo should work correctly.
9416 lt_compile=`echo "$ac_compile" | $SED \
9417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9419 -e 's:$: $lt_compiler_flag:'`
9420 (eval echo "\"\$as_me:9420: $lt_compile\"" >&5)
9421 (eval "$lt_compile" 2>out/conftest.err)
9422 ac_status=$?
9423 cat out/conftest.err >&5
9424 echo "$as_me:9424: \$? = $ac_status" >&5
9425 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9426 then
9427 # The compiler can only warn and ignore the option if not recognized
9428 # So say no if there are warnings
9429 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9430 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9431 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9432 lt_cv_prog_compiler_c_o=yes
9435 chmod u+w . 2>&5
9436 $RM conftest*
9437 # SGI C++ compiler will create directory out/ii_files/ for
9438 # template instantiation
9439 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9440 $RM out/* && rmdir out
9441 cd ..
9442 $RM -r conftest
9443 $RM conftest*
9446 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9447 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9452 hard_links="nottested"
9453 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9454 # do not overwrite the value of need_locks provided by the user
9455 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9456 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9457 hard_links=yes
9458 $RM conftest*
9459 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9460 touch conftest.a
9461 ln conftest.a conftest.b 2>&5 || hard_links=no
9462 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9463 { echo "$as_me:$LINENO: result: $hard_links" >&5
9464 echo "${ECHO_T}$hard_links" >&6; }
9465 if test "$hard_links" = no; then
9466 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9467 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9468 need_locks=warn
9470 else
9471 need_locks=no
9479 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9480 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9482 runpath_var=
9483 allow_undefined_flag=
9484 always_export_symbols=no
9485 archive_cmds=
9486 archive_expsym_cmds=
9487 compiler_needs_object=no
9488 enable_shared_with_static_runtimes=no
9489 export_dynamic_flag_spec=
9490 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9491 hardcode_automatic=no
9492 hardcode_direct=no
9493 hardcode_direct_absolute=no
9494 hardcode_libdir_flag_spec=
9495 hardcode_libdir_flag_spec_ld=
9496 hardcode_libdir_separator=
9497 hardcode_minus_L=no
9498 hardcode_shlibpath_var=unsupported
9499 inherit_rpath=no
9500 link_all_deplibs=unknown
9501 module_cmds=
9502 module_expsym_cmds=
9503 old_archive_from_new_cmds=
9504 old_archive_from_expsyms_cmds=
9505 thread_safe_flag_spec=
9506 whole_archive_flag_spec=
9507 # include_expsyms should be a list of space-separated symbols to be *always*
9508 # included in the symbol list
9509 include_expsyms=
9510 # exclude_expsyms can be an extended regexp of symbols to exclude
9511 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9512 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9513 # as well as any symbol that contains `d'.
9514 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9515 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9516 # platforms (ab)use it in PIC code, but their linkers get confused if
9517 # the symbol is explicitly referenced. Since portable code cannot
9518 # rely on this symbol name, it's probably fine to never include it in
9519 # preloaded symbol tables.
9520 # Exclude shared library initialization/finalization symbols.
9521 extract_expsyms_cmds=
9523 case $host_os in
9524 cygwin* | mingw* | pw32*)
9525 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9526 # When not using gcc, we currently assume that we are using
9527 # Microsoft Visual C++.
9528 if test "$GCC" != yes; then
9529 with_gnu_ld=no
9532 interix*)
9533 # we just hope/assume this is gcc and not c89 (= MSVC++)
9534 with_gnu_ld=yes
9536 openbsd*)
9537 with_gnu_ld=no
9539 esac
9541 ld_shlibs=yes
9542 if test "$with_gnu_ld" = yes; then
9543 # If archive_cmds runs LD, not CC, wlarc should be empty
9544 wlarc='${wl}'
9546 # Set some defaults for GNU ld with shared library support. These
9547 # are reset later if shared libraries are not supported. Putting them
9548 # here allows them to be overridden if necessary.
9549 runpath_var=LD_RUN_PATH
9550 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9551 export_dynamic_flag_spec='${wl}--export-dynamic'
9552 # ancient GNU ld didn't support --whole-archive et. al.
9553 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9554 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9555 else
9556 whole_archive_flag_spec=
9558 supports_anon_versioning=no
9559 case `$LD -v 2>&1` in
9560 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9561 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9562 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9563 *\ 2.11.*) ;; # other 2.11 versions
9564 *) supports_anon_versioning=yes ;;
9565 esac
9567 # See if GNU ld supports shared libraries.
9568 case $host_os in
9569 aix[3-9]*)
9570 # On AIX/PPC, the GNU linker is very broken
9571 if test "$host_cpu" != ia64; then
9572 ld_shlibs=no
9573 cat <<_LT_EOF 1>&2
9575 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9576 *** to be unable to reliably create shared libraries on AIX.
9577 *** Therefore, libtool is disabling shared libraries support. If you
9578 *** really care for shared libraries, you may want to modify your PATH
9579 *** so that a non-GNU linker is found, and then restart.
9581 _LT_EOF
9585 amigaos*)
9586 case $host_cpu in
9587 powerpc)
9588 # see comment about AmigaOS4 .so support
9589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9590 archive_expsym_cmds=''
9592 m68k)
9593 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)'
9594 hardcode_libdir_flag_spec='-L$libdir'
9595 hardcode_minus_L=yes
9597 esac
9600 beos*)
9601 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9602 allow_undefined_flag=unsupported
9603 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9604 # support --undefined. This deserves some investigation. FIXME
9605 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9606 else
9607 ld_shlibs=no
9611 cygwin* | mingw* | pw32*)
9612 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9613 # as there is no search path for DLLs.
9614 hardcode_libdir_flag_spec='-L$libdir'
9615 allow_undefined_flag=unsupported
9616 always_export_symbols=no
9617 enable_shared_with_static_runtimes=yes
9618 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9620 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9621 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9622 # If the export-symbols file already is a .def file (1st line
9623 # is EXPORTS), use it as is; otherwise, prepend...
9624 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9625 cp $export_symbols $output_objdir/$soname.def;
9626 else
9627 echo EXPORTS > $output_objdir/$soname.def;
9628 cat $export_symbols >> $output_objdir/$soname.def;
9630 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9631 else
9632 ld_shlibs=no
9636 interix[3-9]*)
9637 hardcode_direct=no
9638 hardcode_shlibpath_var=no
9639 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9640 export_dynamic_flag_spec='${wl}-E'
9641 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9642 # Instead, shared libraries are loaded at an image base (0x10000000 by
9643 # default) and relocated if they conflict, which is a slow very memory
9644 # consuming and fragmenting process. To avoid this, we pick a random,
9645 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9646 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9647 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9648 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'
9651 gnu* | linux* | tpf* | k*bsd*-gnu)
9652 tmp_diet=no
9653 if test "$host_os" = linux-dietlibc; then
9654 case $cc_basename in
9655 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9656 esac
9658 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9659 && test "$tmp_diet" = no
9660 then
9661 tmp_addflag=
9662 tmp_sharedflag='-shared'
9663 case $cc_basename,$host_cpu in
9664 pgcc*) # Portland Group C compiler
9665 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'
9666 tmp_addflag=' $pic_flag'
9668 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9669 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'
9670 tmp_addflag=' $pic_flag -Mnomain' ;;
9671 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9672 tmp_addflag=' -i_dynamic' ;;
9673 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9674 tmp_addflag=' -i_dynamic -nofor_main' ;;
9675 ifc* | ifort*) # Intel Fortran compiler
9676 tmp_addflag=' -nofor_main' ;;
9677 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9678 tmp_sharedflag='-qmkshrobj'
9679 tmp_addflag= ;;
9680 esac
9681 case `$CC -V 2>&1 | sed 5q` in
9682 *Sun\ C*) # Sun C 5.9
9683 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'
9684 compiler_needs_object=yes
9685 tmp_sharedflag='-G' ;;
9686 *Sun\ F*) # Sun Fortran 8.3
9687 tmp_sharedflag='-G' ;;
9688 esac
9689 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9691 if test "x$supports_anon_versioning" = xyes; then
9692 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9693 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9694 echo "local: *; };" >> $output_objdir/$libname.ver~
9695 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9698 case $cc_basename in
9699 xlf*)
9700 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9701 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9702 hardcode_libdir_flag_spec=
9703 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9704 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9705 if test "x$supports_anon_versioning" = xyes; then
9706 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9707 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9708 echo "local: *; };" >> $output_objdir/$libname.ver~
9709 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9712 esac
9713 else
9714 ld_shlibs=no
9718 netbsd* | netbsdelf*-gnu)
9719 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9720 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9721 wlarc=
9722 else
9723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9724 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9728 solaris*)
9729 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9730 ld_shlibs=no
9731 cat <<_LT_EOF 1>&2
9733 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9734 *** create shared libraries on Solaris systems. Therefore, libtool
9735 *** is disabling shared libraries support. We urge you to upgrade GNU
9736 *** binutils to release 2.9.1 or newer. Another option is to modify
9737 *** your PATH or compiler configuration so that the native linker is
9738 *** used, and then restart.
9740 _LT_EOF
9741 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9743 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9744 else
9745 ld_shlibs=no
9749 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9750 case `$LD -v 2>&1` in
9751 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9752 ld_shlibs=no
9753 cat <<_LT_EOF 1>&2
9755 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9756 *** reliably create shared libraries on SCO systems. Therefore, libtool
9757 *** is disabling shared libraries support. We urge you to upgrade GNU
9758 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9759 *** your PATH or compiler configuration so that the native linker is
9760 *** used, and then restart.
9762 _LT_EOF
9765 # For security reasons, it is highly recommended that you always
9766 # use absolute paths for naming shared libraries, and exclude the
9767 # DT_RUNPATH tag from executables and libraries. But doing so
9768 # requires that you compile everything twice, which is a pain.
9769 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9772 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9773 else
9774 ld_shlibs=no
9777 esac
9780 sunos4*)
9781 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9782 wlarc=
9783 hardcode_direct=yes
9784 hardcode_shlibpath_var=no
9788 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9789 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9790 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9791 else
9792 ld_shlibs=no
9795 esac
9797 if test "$ld_shlibs" = no; then
9798 runpath_var=
9799 hardcode_libdir_flag_spec=
9800 export_dynamic_flag_spec=
9801 whole_archive_flag_spec=
9803 else
9804 # PORTME fill in a description of your system's linker (not GNU ld)
9805 case $host_os in
9806 aix3*)
9807 allow_undefined_flag=unsupported
9808 always_export_symbols=yes
9809 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'
9810 # Note: this linker hardcodes the directories in LIBPATH if there
9811 # are no directories specified by -L.
9812 hardcode_minus_L=yes
9813 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9814 # Neither direct hardcoding nor static linking is supported with a
9815 # broken collect2.
9816 hardcode_direct=unsupported
9820 aix[4-9]*)
9821 if test "$host_cpu" = ia64; then
9822 # On IA64, the linker does run time linking by default, so we don't
9823 # have to do anything special.
9824 aix_use_runtimelinking=no
9825 exp_sym_flag='-Bexport'
9826 no_entry_flag=""
9827 else
9828 # If we're using GNU nm, then we don't want the "-C" option.
9829 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9830 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9831 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'
9832 else
9833 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'
9835 aix_use_runtimelinking=no
9837 # Test if we are trying to use run time linking or normal
9838 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9839 # need to do runtime linking.
9840 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9841 for ld_flag in $LDFLAGS; do
9842 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9843 aix_use_runtimelinking=yes
9844 break
9846 done
9848 esac
9850 exp_sym_flag='-bexport'
9851 no_entry_flag='-bnoentry'
9854 # When large executables or shared objects are built, AIX ld can
9855 # have problems creating the table of contents. If linking a library
9856 # or program results in "error TOC overflow" add -mminimal-toc to
9857 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9858 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9860 archive_cmds=''
9861 hardcode_direct=yes
9862 hardcode_direct_absolute=yes
9863 hardcode_libdir_separator=':'
9864 link_all_deplibs=yes
9865 file_list_spec='${wl}-f,'
9867 if test "$GCC" = yes; then
9868 case $host_os in aix4.[012]|aix4.[012].*)
9869 # We only want to do this on AIX 4.2 and lower, the check
9870 # below for broken collect2 doesn't work under 4.3+
9871 collect2name=`${CC} -print-prog-name=collect2`
9872 if test -f "$collect2name" &&
9873 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9874 then
9875 # We have reworked collect2
9877 else
9878 # We have old collect2
9879 hardcode_direct=unsupported
9880 # It fails to find uninstalled libraries when the uninstalled
9881 # path is not listed in the libpath. Setting hardcode_minus_L
9882 # to unsupported forces relinking
9883 hardcode_minus_L=yes
9884 hardcode_libdir_flag_spec='-L$libdir'
9885 hardcode_libdir_separator=
9888 esac
9889 shared_flag='-shared'
9890 if test "$aix_use_runtimelinking" = yes; then
9891 shared_flag="$shared_flag "'${wl}-G'
9893 link_all_deplibs=no
9894 else
9895 # not using gcc
9896 if test "$host_cpu" = ia64; then
9897 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9898 # chokes on -Wl,-G. The following line is correct:
9899 shared_flag='-G'
9900 else
9901 if test "$aix_use_runtimelinking" = yes; then
9902 shared_flag='${wl}-G'
9903 else
9904 shared_flag='${wl}-bM:SRE'
9909 # It seems that -bexpall does not export symbols beginning with
9910 # underscore (_), so it is better to generate a list of symbols to export.
9911 always_export_symbols=yes
9912 if test "$aix_use_runtimelinking" = yes; then
9913 # Warning - without using the other runtime loading flags (-brtl),
9914 # -berok will link without error, but may produce a broken library.
9915 allow_undefined_flag='-berok'
9916 # Determine the default libpath from the value encoded in an
9917 # empty executable.
9918 cat >conftest.$ac_ext <<_ACEOF
9919 /* confdefs.h. */
9920 _ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h. */
9926 main ()
9930 return 0;
9932 _ACEOF
9933 rm -f conftest.$ac_objext conftest$ac_exeext
9934 if { (ac_try="$ac_link"
9935 case "(($ac_try" in
9936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937 *) ac_try_echo=$ac_try;;
9938 esac
9939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9940 (eval "$ac_link") 2>conftest.er1
9941 ac_status=$?
9942 grep -v '^ *+' conftest.er1 >conftest.err
9943 rm -f conftest.er1
9944 cat conftest.err >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } && {
9947 test -z "$ac_c_werror_flag" ||
9948 test ! -s conftest.err
9949 } && test -s conftest$ac_exeext &&
9950 $as_test_x conftest$ac_exeext; then
9952 lt_aix_libpath_sed='
9953 /Import File Strings/,/^$/ {
9954 /^0/ {
9955 s/^0 *\(.*\)$/\1/
9959 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9960 # Check for a 64-bit object if we didn't find anything.
9961 if test -z "$aix_libpath"; then
9962 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9964 else
9965 echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9972 conftest$ac_exeext conftest.$ac_ext
9973 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9975 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9976 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"
9977 else
9978 if test "$host_cpu" = ia64; then
9979 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9980 allow_undefined_flag="-z nodefs"
9981 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"
9982 else
9983 # Determine the default libpath from the value encoded in an
9984 # empty executable.
9985 cat >conftest.$ac_ext <<_ACEOF
9986 /* confdefs.h. */
9987 _ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
9993 main ()
9997 return 0;
9999 _ACEOF
10000 rm -f conftest.$ac_objext conftest$ac_exeext
10001 if { (ac_try="$ac_link"
10002 case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10005 esac
10006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_link") 2>conftest.er1
10008 ac_status=$?
10009 grep -v '^ *+' conftest.er1 >conftest.err
10010 rm -f conftest.er1
10011 cat conftest.err >&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); } && {
10014 test -z "$ac_c_werror_flag" ||
10015 test ! -s conftest.err
10016 } && test -s conftest$ac_exeext &&
10017 $as_test_x conftest$ac_exeext; then
10019 lt_aix_libpath_sed='
10020 /Import File Strings/,/^$/ {
10021 /^0/ {
10022 s/^0 *\(.*\)$/\1/
10026 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10027 # Check for a 64-bit object if we didn't find anything.
10028 if test -z "$aix_libpath"; then
10029 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10031 else
10032 echo "$as_me: failed program was:" >&5
10033 sed 's/^/| /' conftest.$ac_ext >&5
10038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10039 conftest$ac_exeext conftest.$ac_ext
10040 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10042 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10043 # Warning - without using the other run time loading flags,
10044 # -berok will link without error, but may produce a broken library.
10045 no_undefined_flag=' ${wl}-bernotok'
10046 allow_undefined_flag=' ${wl}-berok'
10047 # Exported symbols can be pulled into shared objects from archives
10048 whole_archive_flag_spec='$convenience'
10049 archive_cmds_need_lc=yes
10050 # This is similar to how AIX traditionally builds its shared libraries.
10051 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'
10056 amigaos*)
10057 case $host_cpu in
10058 powerpc)
10059 # see comment about AmigaOS4 .so support
10060 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10061 archive_expsym_cmds=''
10063 m68k)
10064 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)'
10065 hardcode_libdir_flag_spec='-L$libdir'
10066 hardcode_minus_L=yes
10068 esac
10071 bsdi[45]*)
10072 export_dynamic_flag_spec=-rdynamic
10075 cygwin* | mingw* | pw32*)
10076 # When not using gcc, we currently assume that we are using
10077 # Microsoft Visual C++.
10078 # hardcode_libdir_flag_spec is actually meaningless, as there is
10079 # no search path for DLLs.
10080 hardcode_libdir_flag_spec=' '
10081 allow_undefined_flag=unsupported
10082 # Tell ltmain to make .lib files, not .a files.
10083 libext=lib
10084 # Tell ltmain to make .dll files, not .so files.
10085 shrext_cmds=".dll"
10086 # FIXME: Setting linknames here is a bad hack.
10087 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10088 # The linker will automatically build a .lib file if we build a DLL.
10089 old_archive_from_new_cmds='true'
10090 # FIXME: Should let the user specify the lib program.
10091 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10092 fix_srcfile_path='`cygpath -w "$srcfile"`'
10093 enable_shared_with_static_runtimes=yes
10096 darwin* | rhapsody*)
10099 archive_cmds_need_lc=no
10100 hardcode_direct=no
10101 hardcode_automatic=yes
10102 hardcode_shlibpath_var=unsupported
10103 whole_archive_flag_spec=''
10104 link_all_deplibs=yes
10105 allow_undefined_flag="$_lt_dar_allow_undefined"
10106 if test "$GCC" = "yes"; then
10107 output_verbose_link_cmd=echo
10108 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10109 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10110 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}"
10111 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}"
10113 else
10114 ld_shlibs=no
10119 dgux*)
10120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10121 hardcode_libdir_flag_spec='-L$libdir'
10122 hardcode_shlibpath_var=no
10125 freebsd1*)
10126 ld_shlibs=no
10129 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10130 # support. Future versions do this automatically, but an explicit c++rt0.o
10131 # does not break anything, and helps significantly (at the cost of a little
10132 # extra space).
10133 freebsd2.2*)
10134 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10135 hardcode_libdir_flag_spec='-R$libdir'
10136 hardcode_direct=yes
10137 hardcode_shlibpath_var=no
10140 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10141 freebsd2*)
10142 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10143 hardcode_direct=yes
10144 hardcode_minus_L=yes
10145 hardcode_shlibpath_var=no
10148 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10149 freebsd* | dragonfly*)
10150 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10151 hardcode_libdir_flag_spec='-R$libdir'
10152 hardcode_direct=yes
10153 hardcode_shlibpath_var=no
10156 hpux9*)
10157 if test "$GCC" = yes; then
10158 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'
10159 else
10160 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'
10162 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10163 hardcode_libdir_separator=:
10164 hardcode_direct=yes
10166 # hardcode_minus_L: Not really in the search PATH,
10167 # but as the default location of the library.
10168 hardcode_minus_L=yes
10169 export_dynamic_flag_spec='${wl}-E'
10172 hpux10*)
10173 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10174 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10175 else
10176 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10178 if test "$with_gnu_ld" = no; then
10179 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10180 hardcode_libdir_flag_spec_ld='+b $libdir'
10181 hardcode_libdir_separator=:
10182 hardcode_direct=yes
10183 hardcode_direct_absolute=yes
10184 export_dynamic_flag_spec='${wl}-E'
10185 # hardcode_minus_L: Not really in the search PATH,
10186 # but as the default location of the library.
10187 hardcode_minus_L=yes
10191 hpux11*)
10192 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10193 case $host_cpu in
10194 hppa*64*)
10195 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10197 ia64*)
10198 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10201 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10203 esac
10204 else
10205 case $host_cpu in
10206 hppa*64*)
10207 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10209 ia64*)
10210 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10213 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10215 esac
10217 if test "$with_gnu_ld" = no; then
10218 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10219 hardcode_libdir_separator=:
10221 case $host_cpu in
10222 hppa*64*|ia64*)
10223 hardcode_direct=no
10224 hardcode_shlibpath_var=no
10227 hardcode_direct=yes
10228 hardcode_direct_absolute=yes
10229 export_dynamic_flag_spec='${wl}-E'
10231 # hardcode_minus_L: Not really in the search PATH,
10232 # but as the default location of the library.
10233 hardcode_minus_L=yes
10235 esac
10239 irix5* | irix6* | nonstopux*)
10240 if test "$GCC" = yes; then
10241 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'
10242 # Try to use the -exported_symbol ld option, if it does not
10243 # work, assume that -exports_file does not work either and
10244 # implicitly export all symbols.
10245 save_LDFLAGS="$LDFLAGS"
10246 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10247 cat >conftest.$ac_ext <<_ACEOF
10248 int foo(void) {}
10249 _ACEOF
10250 rm -f conftest.$ac_objext conftest$ac_exeext
10251 if { (ac_try="$ac_link"
10252 case "(($ac_try" in
10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254 *) ac_try_echo=$ac_try;;
10255 esac
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257 (eval "$ac_link") 2>conftest.er1
10258 ac_status=$?
10259 grep -v '^ *+' conftest.er1 >conftest.err
10260 rm -f conftest.er1
10261 cat conftest.err >&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } && {
10264 test -z "$ac_c_werror_flag" ||
10265 test ! -s conftest.err
10266 } && test -s conftest$ac_exeext &&
10267 $as_test_x conftest$ac_exeext; then
10268 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'
10270 else
10271 echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10278 conftest$ac_exeext conftest.$ac_ext
10279 LDFLAGS="$save_LDFLAGS"
10280 else
10281 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'
10282 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'
10284 archive_cmds_need_lc='no'
10285 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10286 hardcode_libdir_separator=:
10287 inherit_rpath=yes
10288 link_all_deplibs=yes
10291 netbsd* | netbsdelf*-gnu)
10292 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10293 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10294 else
10295 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10297 hardcode_libdir_flag_spec='-R$libdir'
10298 hardcode_direct=yes
10299 hardcode_shlibpath_var=no
10302 newsos6)
10303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10304 hardcode_direct=yes
10305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10306 hardcode_libdir_separator=:
10307 hardcode_shlibpath_var=no
10310 *nto* | *qnx*)
10313 openbsd*)
10314 if test -f /usr/libexec/ld.so; then
10315 hardcode_direct=yes
10316 hardcode_shlibpath_var=no
10317 hardcode_direct_absolute=yes
10318 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10319 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10320 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10321 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10322 export_dynamic_flag_spec='${wl}-E'
10323 else
10324 case $host_os in
10325 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10326 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10327 hardcode_libdir_flag_spec='-R$libdir'
10330 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10331 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10333 esac
10335 else
10336 ld_shlibs=no
10340 os2*)
10341 hardcode_libdir_flag_spec='-L$libdir'
10342 hardcode_minus_L=yes
10343 allow_undefined_flag=unsupported
10344 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'
10345 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10348 osf3*)
10349 if test "$GCC" = yes; then
10350 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10351 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'
10352 else
10353 allow_undefined_flag=' -expect_unresolved \*'
10354 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'
10356 archive_cmds_need_lc='no'
10357 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10358 hardcode_libdir_separator=:
10361 osf4* | osf5*) # as osf3* with the addition of -msym flag
10362 if test "$GCC" = yes; then
10363 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10364 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'
10365 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10366 else
10367 allow_undefined_flag=' -expect_unresolved \*'
10368 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'
10369 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~
10370 $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'
10372 # Both c and cxx compiler support -rpath directly
10373 hardcode_libdir_flag_spec='-rpath $libdir'
10375 archive_cmds_need_lc='no'
10376 hardcode_libdir_separator=:
10379 solaris*)
10380 no_undefined_flag=' -z defs'
10381 if test "$GCC" = yes; then
10382 wlarc='${wl}'
10383 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10384 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10385 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10386 else
10387 case `$CC -V 2>&1` in
10388 *"Compilers 5.0"*)
10389 wlarc=''
10390 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10391 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10392 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10395 wlarc='${wl}'
10396 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10397 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10398 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10400 esac
10402 hardcode_libdir_flag_spec='-R$libdir'
10403 hardcode_shlibpath_var=no
10404 case $host_os in
10405 solaris2.[0-5] | solaris2.[0-5].*) ;;
10407 # The compiler driver will combine and reorder linker options,
10408 # but understands `-z linker_flag'. GCC discards it without `$wl',
10409 # but is careful enough not to reorder.
10410 # Supported since Solaris 2.6 (maybe 2.5.1?)
10411 if test "$GCC" = yes; then
10412 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10413 else
10414 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10417 esac
10418 link_all_deplibs=yes
10421 sunos4*)
10422 if test "x$host_vendor" = xsequent; then
10423 # Use $CC to link under sequent, because it throws in some extra .o
10424 # files that make .init and .fini sections work.
10425 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10426 else
10427 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10429 hardcode_libdir_flag_spec='-L$libdir'
10430 hardcode_direct=yes
10431 hardcode_minus_L=yes
10432 hardcode_shlibpath_var=no
10435 sysv4)
10436 case $host_vendor in
10437 sni)
10438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10439 hardcode_direct=yes # is this really true???
10441 siemens)
10442 ## LD is ld it makes a PLAMLIB
10443 ## CC just makes a GrossModule.
10444 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10445 reload_cmds='$CC -r -o $output$reload_objs'
10446 hardcode_direct=no
10448 motorola)
10449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10450 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10452 esac
10453 runpath_var='LD_RUN_PATH'
10454 hardcode_shlibpath_var=no
10457 sysv4.3*)
10458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10459 hardcode_shlibpath_var=no
10460 export_dynamic_flag_spec='-Bexport'
10463 sysv4*MP*)
10464 if test -d /usr/nec; then
10465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10466 hardcode_shlibpath_var=no
10467 runpath_var=LD_RUN_PATH
10468 hardcode_runpath_var=yes
10469 ld_shlibs=yes
10473 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10474 no_undefined_flag='${wl}-z,text'
10475 archive_cmds_need_lc=no
10476 hardcode_shlibpath_var=no
10477 runpath_var='LD_RUN_PATH'
10479 if test "$GCC" = yes; then
10480 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10481 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10482 else
10483 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10484 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10488 sysv5* | sco3.2v5* | sco5v6*)
10489 # Note: We can NOT use -z defs as we might desire, because we do not
10490 # link with -lc, and that would cause any symbols used from libc to
10491 # always be unresolved, which means just about no library would
10492 # ever link correctly. If we're not using GNU ld we use -z text
10493 # though, which does catch some bad symbols but isn't as heavy-handed
10494 # as -z defs.
10495 no_undefined_flag='${wl}-z,text'
10496 allow_undefined_flag='${wl}-z,nodefs'
10497 archive_cmds_need_lc=no
10498 hardcode_shlibpath_var=no
10499 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10500 hardcode_libdir_separator=':'
10501 link_all_deplibs=yes
10502 export_dynamic_flag_spec='${wl}-Bexport'
10503 runpath_var='LD_RUN_PATH'
10505 if test "$GCC" = yes; then
10506 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10507 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10508 else
10509 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10510 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10514 uts4*)
10515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10516 hardcode_libdir_flag_spec='-L$libdir'
10517 hardcode_shlibpath_var=no
10521 ld_shlibs=no
10523 esac
10525 if test x$host_vendor = xsni; then
10526 case $host in
10527 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10528 export_dynamic_flag_spec='${wl}-Blargedynsym'
10530 esac
10534 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10535 echo "${ECHO_T}$ld_shlibs" >&6; }
10536 test "$ld_shlibs" = no && can_build_shared=no
10538 with_gnu_ld=$with_gnu_ld
10555 # Do we need to explicitly link libc?
10557 case "x$archive_cmds_need_lc" in
10558 x|xyes)
10559 # Assume -lc should be added
10560 archive_cmds_need_lc=yes
10562 if test "$enable_shared" = yes && test "$GCC" = yes; then
10563 case $archive_cmds in
10564 *'~'*)
10565 # FIXME: we may have to deal with multi-command sequences.
10567 '$CC '*)
10568 # Test whether the compiler implicitly links with -lc since on some
10569 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10570 # to ld, don't add -lc before -lgcc.
10571 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10572 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10573 $RM conftest*
10574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10577 (eval $ac_compile) 2>&5
10578 ac_status=$?
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } 2>conftest.err; then
10581 soname=conftest
10582 lib=conftest
10583 libobjs=conftest.$ac_objext
10584 deplibs=
10585 wl=$lt_prog_compiler_wl
10586 pic_flag=$lt_prog_compiler_pic
10587 compiler_flags=-v
10588 linker_flags=-v
10589 verstring=
10590 output_objdir=.
10591 libname=conftest
10592 lt_save_allow_undefined_flag=$allow_undefined_flag
10593 allow_undefined_flag=
10594 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10595 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10596 ac_status=$?
10597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598 (exit $ac_status); }
10599 then
10600 archive_cmds_need_lc=no
10601 else
10602 archive_cmds_need_lc=yes
10604 allow_undefined_flag=$lt_save_allow_undefined_flag
10605 else
10606 cat conftest.err 1>&5
10608 $RM conftest*
10609 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10610 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10612 esac
10615 esac
10773 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10774 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10776 if test "$GCC" = yes; then
10777 case $host_os in
10778 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10779 *) lt_awk_arg="/^libraries:/" ;;
10780 esac
10781 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10782 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10783 # if the path contains ";" then we assume it to be the separator
10784 # otherwise default to the standard path separator (i.e. ":") - it is
10785 # assumed that no part of a normal pathname contains ";" but that should
10786 # okay in the real world where ";" in dirpaths is itself problematic.
10787 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10788 else
10789 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10791 # Ok, now we have the path, separated by spaces, we can step through it
10792 # and add multilib dir if necessary.
10793 lt_tmp_lt_search_path_spec=
10794 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10795 for lt_sys_path in $lt_search_path_spec; do
10796 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10797 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10798 else
10799 test -d "$lt_sys_path" && \
10800 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10802 done
10803 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10804 BEGIN {RS=" "; FS="/|\n";} {
10805 lt_foo="";
10806 lt_count=0;
10807 for (lt_i = NF; lt_i > 0; lt_i--) {
10808 if ($lt_i != "" && $lt_i != ".") {
10809 if ($lt_i == "..") {
10810 lt_count++;
10811 } else {
10812 if (lt_count == 0) {
10813 lt_foo="/" $lt_i lt_foo;
10814 } else {
10815 lt_count--;
10820 if (lt_foo != "") { lt_freq[lt_foo]++; }
10821 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10823 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10824 else
10825 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10827 library_names_spec=
10828 libname_spec='lib$name'
10829 soname_spec=
10830 shrext_cmds=".so"
10831 postinstall_cmds=
10832 postuninstall_cmds=
10833 finish_cmds=
10834 finish_eval=
10835 shlibpath_var=
10836 shlibpath_overrides_runpath=unknown
10837 version_type=none
10838 dynamic_linker="$host_os ld.so"
10839 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10840 need_lib_prefix=unknown
10841 hardcode_into_libs=no
10843 # when you set need_version to no, make sure it does not cause -set_version
10844 # flags to be left without arguments
10845 need_version=unknown
10847 case $host_os in
10848 aix3*)
10849 version_type=linux
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10851 shlibpath_var=LIBPATH
10853 # AIX 3 has no versioning support, so we append a major version to the name.
10854 soname_spec='${libname}${release}${shared_ext}$major'
10857 aix[4-9]*)
10858 version_type=linux
10859 need_lib_prefix=no
10860 need_version=no
10861 hardcode_into_libs=yes
10862 if test "$host_cpu" = ia64; then
10863 # AIX 5 supports IA64
10864 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10865 shlibpath_var=LD_LIBRARY_PATH
10866 else
10867 # With GCC up to 2.95.x, collect2 would create an import file
10868 # for dependence libraries. The import file would start with
10869 # the line `#! .'. This would cause the generated library to
10870 # depend on `.', always an invalid library. This was fixed in
10871 # development snapshots of GCC prior to 3.0.
10872 case $host_os in
10873 aix4 | aix4.[01] | aix4.[01].*)
10874 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10875 echo ' yes '
10876 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10878 else
10879 can_build_shared=no
10882 esac
10883 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10884 # soname into executable. Probably we can add versioning support to
10885 # collect2, so additional links can be useful in future.
10886 if test "$aix_use_runtimelinking" = yes; then
10887 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10888 # instead of lib<name>.a to let people know that these are not
10889 # typical AIX shared libraries.
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10891 else
10892 # We preserve .a as extension for shared libraries through AIX4.2
10893 # and later when we are not doing run time linking.
10894 library_names_spec='${libname}${release}.a $libname.a'
10895 soname_spec='${libname}${release}${shared_ext}$major'
10897 shlibpath_var=LIBPATH
10901 amigaos*)
10902 case $host_cpu in
10903 powerpc)
10904 # Since July 2007 AmigaOS4 officially supports .so libraries.
10905 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10908 m68k)
10909 library_names_spec='$libname.ixlibrary $libname.a'
10910 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10911 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'
10913 esac
10916 beos*)
10917 library_names_spec='${libname}${shared_ext}'
10918 dynamic_linker="$host_os ld.so"
10919 shlibpath_var=LIBRARY_PATH
10922 bsdi[45]*)
10923 version_type=linux
10924 need_version=no
10925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10926 soname_spec='${libname}${release}${shared_ext}$major'
10927 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10928 shlibpath_var=LD_LIBRARY_PATH
10929 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10930 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10931 # the default ld.so.conf also contains /usr/contrib/lib and
10932 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10933 # libtool to hard-code these into programs
10936 cygwin* | mingw* | pw32*)
10937 version_type=windows
10938 shrext_cmds=".dll"
10939 need_version=no
10940 need_lib_prefix=no
10942 case $GCC,$host_os in
10943 yes,cygwin* | yes,mingw* | yes,pw32*)
10944 library_names_spec='$libname.dll.a'
10945 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10946 postinstall_cmds='base_file=`basename \${file}`~
10947 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10948 dldir=$destdir/`dirname \$dlpath`~
10949 test -d \$dldir || mkdir -p \$dldir~
10950 $install_prog $dir/$dlname \$dldir/$dlname~
10951 chmod a+x \$dldir/$dlname~
10952 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10953 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10955 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10956 dlpath=$dir/\$dldll~
10957 $RM \$dlpath'
10958 shlibpath_overrides_runpath=yes
10960 case $host_os in
10961 cygwin*)
10962 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10963 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10964 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10966 mingw*)
10967 # MinGW DLLs use traditional 'lib' prefix
10968 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10969 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10970 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10971 # It is most probably a Windows format PATH printed by
10972 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10973 # path with ; separators, and with drive letters. We can handle the
10974 # drive letters (cygwin fileutils understands them), so leave them,
10975 # especially as we might pass files found there to a mingw objdump,
10976 # which wouldn't understand a cygwinified path. Ahh.
10977 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10978 else
10979 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10982 pw32*)
10983 # pw32 DLLs use 'pw' prefix rather than 'lib'
10984 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10986 esac
10990 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10992 esac
10993 dynamic_linker='Win32 ld.exe'
10994 # FIXME: first we should search . and the directory the executable is in
10995 shlibpath_var=PATH
10998 darwin* | rhapsody*)
10999 dynamic_linker="$host_os dyld"
11000 version_type=darwin
11001 need_lib_prefix=no
11002 need_version=no
11003 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11004 soname_spec='${libname}${release}${major}$shared_ext'
11005 shlibpath_overrides_runpath=yes
11006 shlibpath_var=DYLD_LIBRARY_PATH
11007 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11009 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11010 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11013 dgux*)
11014 version_type=linux
11015 need_lib_prefix=no
11016 need_version=no
11017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11018 soname_spec='${libname}${release}${shared_ext}$major'
11019 shlibpath_var=LD_LIBRARY_PATH
11022 freebsd1*)
11023 dynamic_linker=no
11026 freebsd* | dragonfly*)
11027 # DragonFly does not have aout. When/if they implement a new
11028 # versioning mechanism, adjust this.
11029 if test -x /usr/bin/objformat; then
11030 objformat=`/usr/bin/objformat`
11031 else
11032 case $host_os in
11033 freebsd[123]*) objformat=aout ;;
11034 *) objformat=elf ;;
11035 esac
11037 version_type=freebsd-$objformat
11038 case $version_type in
11039 freebsd-elf*)
11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11041 need_version=no
11042 need_lib_prefix=no
11044 freebsd-*)
11045 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11046 need_version=yes
11048 esac
11049 shlibpath_var=LD_LIBRARY_PATH
11050 case $host_os in
11051 freebsd2*)
11052 shlibpath_overrides_runpath=yes
11054 freebsd3.[01]* | freebsdelf3.[01]*)
11055 shlibpath_overrides_runpath=yes
11056 hardcode_into_libs=yes
11058 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11059 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11060 shlibpath_overrides_runpath=no
11061 hardcode_into_libs=yes
11063 *) # from 4.6 on, and DragonFly
11064 shlibpath_overrides_runpath=yes
11065 hardcode_into_libs=yes
11067 esac
11070 gnu*)
11071 version_type=linux
11072 need_lib_prefix=no
11073 need_version=no
11074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11075 soname_spec='${libname}${release}${shared_ext}$major'
11076 shlibpath_var=LD_LIBRARY_PATH
11077 hardcode_into_libs=yes
11080 hpux9* | hpux10* | hpux11*)
11081 # Give a soname corresponding to the major version so that dld.sl refuses to
11082 # link against other versions.
11083 version_type=sunos
11084 need_lib_prefix=no
11085 need_version=no
11086 case $host_cpu in
11087 ia64*)
11088 shrext_cmds='.so'
11089 hardcode_into_libs=yes
11090 dynamic_linker="$host_os dld.so"
11091 shlibpath_var=LD_LIBRARY_PATH
11092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094 soname_spec='${libname}${release}${shared_ext}$major'
11095 if test "X$HPUX_IA64_MODE" = X32; then
11096 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11097 else
11098 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11100 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11102 hppa*64*)
11103 shrext_cmds='.sl'
11104 hardcode_into_libs=yes
11105 dynamic_linker="$host_os dld.sl"
11106 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11107 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11109 soname_spec='${libname}${release}${shared_ext}$major'
11110 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11111 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11114 shrext_cmds='.sl'
11115 dynamic_linker="$host_os dld.sl"
11116 shlibpath_var=SHLIB_PATH
11117 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119 soname_spec='${libname}${release}${shared_ext}$major'
11121 esac
11122 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11123 postinstall_cmds='chmod 555 $lib'
11126 interix[3-9]*)
11127 version_type=linux
11128 need_lib_prefix=no
11129 need_version=no
11130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11131 soname_spec='${libname}${release}${shared_ext}$major'
11132 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 shlibpath_overrides_runpath=no
11135 hardcode_into_libs=yes
11138 irix5* | irix6* | nonstopux*)
11139 case $host_os in
11140 nonstopux*) version_type=nonstopux ;;
11142 if test "$lt_cv_prog_gnu_ld" = yes; then
11143 version_type=linux
11144 else
11145 version_type=irix
11146 fi ;;
11147 esac
11148 need_lib_prefix=no
11149 need_version=no
11150 soname_spec='${libname}${release}${shared_ext}$major'
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11152 case $host_os in
11153 irix5* | nonstopux*)
11154 libsuff= shlibsuff=
11157 case $LD in # libtool.m4 will add one of these switches to LD
11158 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11159 libsuff= shlibsuff= libmagic=32-bit;;
11160 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11161 libsuff=32 shlibsuff=N32 libmagic=N32;;
11162 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11163 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11164 *) libsuff= shlibsuff= libmagic=never-match;;
11165 esac
11167 esac
11168 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11169 shlibpath_overrides_runpath=no
11170 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11171 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11172 hardcode_into_libs=yes
11175 # No shared lib support for Linux oldld, aout, or coff.
11176 linux*oldld* | linux*aout* | linux*coff*)
11177 dynamic_linker=no
11180 # This must be Linux ELF.
11181 linux* | k*bsd*-gnu)
11182 version_type=linux
11183 need_lib_prefix=no
11184 need_version=no
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186 soname_spec='${libname}${release}${shared_ext}$major'
11187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 shlibpath_overrides_runpath=no
11190 # Some binutils ld are patched to set DT_RUNPATH
11191 save_LDFLAGS=$LDFLAGS
11192 save_libdir=$libdir
11193 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11194 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11195 cat >conftest.$ac_ext <<_ACEOF
11196 /* confdefs.h. */
11197 _ACEOF
11198 cat confdefs.h >>conftest.$ac_ext
11199 cat >>conftest.$ac_ext <<_ACEOF
11200 /* end confdefs.h. */
11203 main ()
11207 return 0;
11209 _ACEOF
11210 rm -f conftest.$ac_objext conftest$ac_exeext
11211 if { (ac_try="$ac_link"
11212 case "(($ac_try" in
11213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11214 *) ac_try_echo=$ac_try;;
11215 esac
11216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11217 (eval "$ac_link") 2>conftest.er1
11218 ac_status=$?
11219 grep -v '^ *+' conftest.er1 >conftest.err
11220 rm -f conftest.er1
11221 cat conftest.err >&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); } && {
11224 test -z "$ac_c_werror_flag" ||
11225 test ! -s conftest.err
11226 } && test -s conftest$ac_exeext &&
11227 $as_test_x conftest$ac_exeext; then
11228 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11229 shlibpath_overrides_runpath=yes
11232 else
11233 echo "$as_me: failed program was:" >&5
11234 sed 's/^/| /' conftest.$ac_ext >&5
11239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11240 conftest$ac_exeext conftest.$ac_ext
11241 LDFLAGS=$save_LDFLAGS
11242 libdir=$save_libdir
11244 # This implies no fast_install, which is unacceptable.
11245 # Some rework will be needed to allow for fast_install
11246 # before this can be enabled.
11247 hardcode_into_libs=yes
11249 # Append ld.so.conf contents to the search path
11250 if test -f /etc/ld.so.conf; then
11251 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' ' '`
11252 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11255 # We used to test for /lib/ld.so.1 and disable shared libraries on
11256 # powerpc, because MkLinux only supported shared libraries with the
11257 # GNU dynamic linker. Since this was broken with cross compilers,
11258 # most powerpc-linux boxes support dynamic linking these days and
11259 # people can always --disable-shared, the test was removed, and we
11260 # assume the GNU/Linux dynamic linker is in use.
11261 dynamic_linker='GNU/Linux ld.so'
11264 netbsdelf*-gnu)
11265 version_type=linux
11266 need_lib_prefix=no
11267 need_version=no
11268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11269 soname_spec='${libname}${release}${shared_ext}$major'
11270 shlibpath_var=LD_LIBRARY_PATH
11271 shlibpath_overrides_runpath=no
11272 hardcode_into_libs=yes
11273 dynamic_linker='NetBSD ld.elf_so'
11276 netbsd*)
11277 version_type=sunos
11278 need_lib_prefix=no
11279 need_version=no
11280 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11283 dynamic_linker='NetBSD (a.out) ld.so'
11284 else
11285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11286 soname_spec='${libname}${release}${shared_ext}$major'
11287 dynamic_linker='NetBSD ld.elf_so'
11289 shlibpath_var=LD_LIBRARY_PATH
11290 shlibpath_overrides_runpath=yes
11291 hardcode_into_libs=yes
11294 newsos6)
11295 version_type=linux
11296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11297 shlibpath_var=LD_LIBRARY_PATH
11298 shlibpath_overrides_runpath=yes
11301 *nto* | *qnx*)
11302 version_type=qnx
11303 need_lib_prefix=no
11304 need_version=no
11305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11306 soname_spec='${libname}${release}${shared_ext}$major'
11307 shlibpath_var=LD_LIBRARY_PATH
11308 shlibpath_overrides_runpath=no
11309 hardcode_into_libs=yes
11310 dynamic_linker='ldqnx.so'
11313 openbsd*)
11314 version_type=sunos
11315 sys_lib_dlsearch_path_spec="/usr/lib"
11316 need_lib_prefix=no
11317 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11318 case $host_os in
11319 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11320 *) need_version=no ;;
11321 esac
11322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11324 shlibpath_var=LD_LIBRARY_PATH
11325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11326 case $host_os in
11327 openbsd2.[89] | openbsd2.[89].*)
11328 shlibpath_overrides_runpath=no
11331 shlibpath_overrides_runpath=yes
11333 esac
11334 else
11335 shlibpath_overrides_runpath=yes
11339 os2*)
11340 libname_spec='$name'
11341 shrext_cmds=".dll"
11342 need_lib_prefix=no
11343 library_names_spec='$libname${shared_ext} $libname.a'
11344 dynamic_linker='OS/2 ld.exe'
11345 shlibpath_var=LIBPATH
11348 osf3* | osf4* | osf5*)
11349 version_type=osf
11350 need_lib_prefix=no
11351 need_version=no
11352 soname_spec='${libname}${release}${shared_ext}$major'
11353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354 shlibpath_var=LD_LIBRARY_PATH
11355 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11356 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11359 rdos*)
11360 dynamic_linker=no
11363 solaris*)
11364 version_type=linux
11365 need_lib_prefix=no
11366 need_version=no
11367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11368 soname_spec='${libname}${release}${shared_ext}$major'
11369 shlibpath_var=LD_LIBRARY_PATH
11370 shlibpath_overrides_runpath=yes
11371 hardcode_into_libs=yes
11372 # ldd complains unless libraries are executable
11373 postinstall_cmds='chmod +x $lib'
11376 sunos4*)
11377 version_type=sunos
11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11379 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11380 shlibpath_var=LD_LIBRARY_PATH
11381 shlibpath_overrides_runpath=yes
11382 if test "$with_gnu_ld" = yes; then
11383 need_lib_prefix=no
11385 need_version=yes
11388 sysv4 | sysv4.3*)
11389 version_type=linux
11390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11391 soname_spec='${libname}${release}${shared_ext}$major'
11392 shlibpath_var=LD_LIBRARY_PATH
11393 case $host_vendor in
11394 sni)
11395 shlibpath_overrides_runpath=no
11396 need_lib_prefix=no
11397 runpath_var=LD_RUN_PATH
11399 siemens)
11400 need_lib_prefix=no
11402 motorola)
11403 need_lib_prefix=no
11404 need_version=no
11405 shlibpath_overrides_runpath=no
11406 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11408 esac
11411 sysv4*MP*)
11412 if test -d /usr/nec ;then
11413 version_type=linux
11414 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11415 soname_spec='$libname${shared_ext}.$major'
11416 shlibpath_var=LD_LIBRARY_PATH
11420 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11421 version_type=freebsd-elf
11422 need_lib_prefix=no
11423 need_version=no
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11425 soname_spec='${libname}${release}${shared_ext}$major'
11426 shlibpath_var=LD_LIBRARY_PATH
11427 shlibpath_overrides_runpath=yes
11428 hardcode_into_libs=yes
11429 if test "$with_gnu_ld" = yes; then
11430 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11431 else
11432 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11433 case $host_os in
11434 sco3.2v5*)
11435 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11437 esac
11439 sys_lib_dlsearch_path_spec='/usr/lib'
11442 tpf*)
11443 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11444 version_type=linux
11445 need_lib_prefix=no
11446 need_version=no
11447 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448 shlibpath_var=LD_LIBRARY_PATH
11449 shlibpath_overrides_runpath=no
11450 hardcode_into_libs=yes
11453 uts4*)
11454 version_type=linux
11455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11456 soname_spec='${libname}${release}${shared_ext}$major'
11457 shlibpath_var=LD_LIBRARY_PATH
11461 dynamic_linker=no
11463 esac
11464 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11465 echo "${ECHO_T}$dynamic_linker" >&6; }
11466 test "$dynamic_linker" = no && can_build_shared=no
11468 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11469 if test "$GCC" = yes; then
11470 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11473 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11474 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11476 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11477 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11566 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11567 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11568 hardcode_action=
11569 if test -n "$hardcode_libdir_flag_spec" ||
11570 test -n "$runpath_var" ||
11571 test "X$hardcode_automatic" = "Xyes" ; then
11573 # We can hardcode non-existent directories.
11574 if test "$hardcode_direct" != no &&
11575 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11576 # have to relink, otherwise we might link with an installed library
11577 # when we should be linking with a yet-to-be-installed one
11578 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11579 test "$hardcode_minus_L" != no; then
11580 # Linking always hardcodes the temporary library directory.
11581 hardcode_action=relink
11582 else
11583 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11584 hardcode_action=immediate
11586 else
11587 # We cannot hardcode anything, or else we can only hardcode existing
11588 # directories.
11589 hardcode_action=unsupported
11591 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
11592 echo "${ECHO_T}$hardcode_action" >&6; }
11594 if test "$hardcode_action" = relink ||
11595 test "$inherit_rpath" = yes; then
11596 # Fast installation is not supported
11597 enable_fast_install=no
11598 elif test "$shlibpath_overrides_runpath" = yes ||
11599 test "$enable_shared" = no; then
11600 # Fast installation is not necessary
11601 enable_fast_install=needless
11609 if test "x$enable_dlopen" != xyes; then
11610 enable_dlopen=unknown
11611 enable_dlopen_self=unknown
11612 enable_dlopen_self_static=unknown
11613 else
11614 lt_cv_dlopen=no
11615 lt_cv_dlopen_libs=
11617 case $host_os in
11618 beos*)
11619 lt_cv_dlopen="load_add_on"
11620 lt_cv_dlopen_libs=
11621 lt_cv_dlopen_self=yes
11624 mingw* | pw32*)
11625 lt_cv_dlopen="LoadLibrary"
11626 lt_cv_dlopen_libs=
11629 cygwin*)
11630 lt_cv_dlopen="dlopen"
11631 lt_cv_dlopen_libs=
11634 darwin*)
11635 # if libdl is installed we need to link against it
11636 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11637 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11638 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11640 else
11641 ac_check_lib_save_LIBS=$LIBS
11642 LIBS="-ldl $LIBS"
11643 cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h. */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h. */
11650 /* Override any GCC internal prototype to avoid an error.
11651 Use char because int might match the return type of a GCC
11652 builtin and then its argument prototype would still apply. */
11653 #ifdef __cplusplus
11654 extern "C"
11655 #endif
11656 char dlopen ();
11658 main ()
11660 return dlopen ();
11662 return 0;
11664 _ACEOF
11665 rm -f conftest.$ac_objext conftest$ac_exeext
11666 if { (ac_try="$ac_link"
11667 case "(($ac_try" in
11668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669 *) ac_try_echo=$ac_try;;
11670 esac
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672 (eval "$ac_link") 2>conftest.er1
11673 ac_status=$?
11674 grep -v '^ *+' conftest.er1 >conftest.err
11675 rm -f conftest.er1
11676 cat conftest.err >&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } && {
11679 test -z "$ac_c_werror_flag" ||
11680 test ! -s conftest.err
11681 } && test -s conftest$ac_exeext &&
11682 $as_test_x conftest$ac_exeext; then
11683 ac_cv_lib_dl_dlopen=yes
11684 else
11685 echo "$as_me: failed program was:" >&5
11686 sed 's/^/| /' conftest.$ac_ext >&5
11688 ac_cv_lib_dl_dlopen=no
11691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11692 conftest$ac_exeext conftest.$ac_ext
11693 LIBS=$ac_check_lib_save_LIBS
11695 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11696 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11697 if test $ac_cv_lib_dl_dlopen = yes; then
11698 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11699 else
11701 lt_cv_dlopen="dyld"
11702 lt_cv_dlopen_libs=
11703 lt_cv_dlopen_self=yes
11710 { echo "$as_me:$LINENO: checking for shl_load" >&5
11711 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11712 if test "${ac_cv_func_shl_load+set}" = set; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11714 else
11715 cat >conftest.$ac_ext <<_ACEOF
11716 /* confdefs.h. */
11717 _ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h. */
11721 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11723 #define shl_load innocuous_shl_load
11725 /* System header to define __stub macros and hopefully few prototypes,
11726 which can conflict with char shl_load (); below.
11727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11728 <limits.h> exists even on freestanding compilers. */
11730 #ifdef __STDC__
11731 # include <limits.h>
11732 #else
11733 # include <assert.h>
11734 #endif
11736 #undef shl_load
11738 /* Override any GCC internal prototype to avoid an error.
11739 Use char because int might match the return type of a GCC
11740 builtin and then its argument prototype would still apply. */
11741 #ifdef __cplusplus
11742 extern "C"
11743 #endif
11744 char shl_load ();
11745 /* The GNU C library defines this for functions which it implements
11746 to always fail with ENOSYS. Some functions are actually named
11747 something starting with __ and the normal name is an alias. */
11748 #if defined __stub_shl_load || defined __stub___shl_load
11749 choke me
11750 #endif
11753 main ()
11755 return shl_load ();
11757 return 0;
11759 _ACEOF
11760 rm -f conftest.$ac_objext conftest$ac_exeext
11761 if { (ac_try="$ac_link"
11762 case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11765 esac
11766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_link") 2>conftest.er1
11768 ac_status=$?
11769 grep -v '^ *+' conftest.er1 >conftest.err
11770 rm -f conftest.er1
11771 cat conftest.err >&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); } && {
11774 test -z "$ac_c_werror_flag" ||
11775 test ! -s conftest.err
11776 } && test -s conftest$ac_exeext &&
11777 $as_test_x conftest$ac_exeext; then
11778 ac_cv_func_shl_load=yes
11779 else
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11783 ac_cv_func_shl_load=no
11786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11787 conftest$ac_exeext conftest.$ac_ext
11789 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11790 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11791 if test $ac_cv_func_shl_load = yes; then
11792 lt_cv_dlopen="shl_load"
11793 else
11794 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11795 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11796 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11798 else
11799 ac_check_lib_save_LIBS=$LIBS
11800 LIBS="-ldld $LIBS"
11801 cat >conftest.$ac_ext <<_ACEOF
11802 /* confdefs.h. */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11808 /* Override any GCC internal prototype to avoid an error.
11809 Use char because int might match the return type of a GCC
11810 builtin and then its argument prototype would still apply. */
11811 #ifdef __cplusplus
11812 extern "C"
11813 #endif
11814 char shl_load ();
11816 main ()
11818 return shl_load ();
11820 return 0;
11822 _ACEOF
11823 rm -f conftest.$ac_objext conftest$ac_exeext
11824 if { (ac_try="$ac_link"
11825 case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11828 esac
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_link") 2>conftest.er1
11831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } && {
11837 test -z "$ac_c_werror_flag" ||
11838 test ! -s conftest.err
11839 } && test -s conftest$ac_exeext &&
11840 $as_test_x conftest$ac_exeext; then
11841 ac_cv_lib_dld_shl_load=yes
11842 else
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11846 ac_cv_lib_dld_shl_load=no
11849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11850 conftest$ac_exeext conftest.$ac_ext
11851 LIBS=$ac_check_lib_save_LIBS
11853 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11854 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11855 if test $ac_cv_lib_dld_shl_load = yes; then
11856 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11857 else
11858 { echo "$as_me:$LINENO: checking for dlopen" >&5
11859 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11860 if test "${ac_cv_func_dlopen+set}" = set; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11862 else
11863 cat >conftest.$ac_ext <<_ACEOF
11864 /* confdefs.h. */
11865 _ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11871 #define dlopen innocuous_dlopen
11873 /* System header to define __stub macros and hopefully few prototypes,
11874 which can conflict with char dlopen (); below.
11875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11876 <limits.h> exists even on freestanding compilers. */
11878 #ifdef __STDC__
11879 # include <limits.h>
11880 #else
11881 # include <assert.h>
11882 #endif
11884 #undef dlopen
11886 /* Override any GCC internal prototype to avoid an error.
11887 Use char because int might match the return type of a GCC
11888 builtin and then its argument prototype would still apply. */
11889 #ifdef __cplusplus
11890 extern "C"
11891 #endif
11892 char dlopen ();
11893 /* The GNU C library defines this for functions which it implements
11894 to always fail with ENOSYS. Some functions are actually named
11895 something starting with __ and the normal name is an alias. */
11896 #if defined __stub_dlopen || defined __stub___dlopen
11897 choke me
11898 #endif
11901 main ()
11903 return dlopen ();
11905 return 0;
11907 _ACEOF
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (ac_try="$ac_link"
11910 case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11913 esac
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_link") 2>conftest.er1
11916 ac_status=$?
11917 grep -v '^ *+' conftest.er1 >conftest.err
11918 rm -f conftest.er1
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } && {
11922 test -z "$ac_c_werror_flag" ||
11923 test ! -s conftest.err
11924 } && test -s conftest$ac_exeext &&
11925 $as_test_x conftest$ac_exeext; then
11926 ac_cv_func_dlopen=yes
11927 else
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11931 ac_cv_func_dlopen=no
11934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11935 conftest$ac_exeext conftest.$ac_ext
11937 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11938 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11939 if test $ac_cv_func_dlopen = yes; then
11940 lt_cv_dlopen="dlopen"
11941 else
11942 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11943 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11944 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 else
11947 ac_check_lib_save_LIBS=$LIBS
11948 LIBS="-ldl $LIBS"
11949 cat >conftest.$ac_ext <<_ACEOF
11950 /* confdefs.h. */
11951 _ACEOF
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h. */
11956 /* Override any GCC internal prototype to avoid an error.
11957 Use char because int might match the return type of a GCC
11958 builtin and then its argument prototype would still apply. */
11959 #ifdef __cplusplus
11960 extern "C"
11961 #endif
11962 char dlopen ();
11964 main ()
11966 return dlopen ();
11968 return 0;
11970 _ACEOF
11971 rm -f conftest.$ac_objext conftest$ac_exeext
11972 if { (ac_try="$ac_link"
11973 case "(($ac_try" in
11974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975 *) ac_try_echo=$ac_try;;
11976 esac
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_link") 2>conftest.er1
11979 ac_status=$?
11980 grep -v '^ *+' conftest.er1 >conftest.err
11981 rm -f conftest.er1
11982 cat conftest.err >&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } && {
11985 test -z "$ac_c_werror_flag" ||
11986 test ! -s conftest.err
11987 } && test -s conftest$ac_exeext &&
11988 $as_test_x conftest$ac_exeext; then
11989 ac_cv_lib_dl_dlopen=yes
11990 else
11991 echo "$as_me: failed program was:" >&5
11992 sed 's/^/| /' conftest.$ac_ext >&5
11994 ac_cv_lib_dl_dlopen=no
11997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11998 conftest$ac_exeext conftest.$ac_ext
11999 LIBS=$ac_check_lib_save_LIBS
12001 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12002 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12003 if test $ac_cv_lib_dl_dlopen = yes; then
12004 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12005 else
12006 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12007 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12008 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12010 else
12011 ac_check_lib_save_LIBS=$LIBS
12012 LIBS="-lsvld $LIBS"
12013 cat >conftest.$ac_ext <<_ACEOF
12014 /* confdefs.h. */
12015 _ACEOF
12016 cat confdefs.h >>conftest.$ac_ext
12017 cat >>conftest.$ac_ext <<_ACEOF
12018 /* end confdefs.h. */
12020 /* Override any GCC internal prototype to avoid an error.
12021 Use char because int might match the return type of a GCC
12022 builtin and then its argument prototype would still apply. */
12023 #ifdef __cplusplus
12024 extern "C"
12025 #endif
12026 char dlopen ();
12028 main ()
12030 return dlopen ();
12032 return 0;
12034 _ACEOF
12035 rm -f conftest.$ac_objext conftest$ac_exeext
12036 if { (ac_try="$ac_link"
12037 case "(($ac_try" in
12038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12039 *) ac_try_echo=$ac_try;;
12040 esac
12041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12042 (eval "$ac_link") 2>conftest.er1
12043 ac_status=$?
12044 grep -v '^ *+' conftest.er1 >conftest.err
12045 rm -f conftest.er1
12046 cat conftest.err >&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); } && {
12049 test -z "$ac_c_werror_flag" ||
12050 test ! -s conftest.err
12051 } && test -s conftest$ac_exeext &&
12052 $as_test_x conftest$ac_exeext; then
12053 ac_cv_lib_svld_dlopen=yes
12054 else
12055 echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12058 ac_cv_lib_svld_dlopen=no
12061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12062 conftest$ac_exeext conftest.$ac_ext
12063 LIBS=$ac_check_lib_save_LIBS
12065 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12066 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12067 if test $ac_cv_lib_svld_dlopen = yes; then
12068 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12069 else
12070 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12071 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12072 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12074 else
12075 ac_check_lib_save_LIBS=$LIBS
12076 LIBS="-ldld $LIBS"
12077 cat >conftest.$ac_ext <<_ACEOF
12078 /* confdefs.h. */
12079 _ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12084 /* Override any GCC internal prototype to avoid an error.
12085 Use char because int might match the return type of a GCC
12086 builtin and then its argument prototype would still apply. */
12087 #ifdef __cplusplus
12088 extern "C"
12089 #endif
12090 char dld_link ();
12092 main ()
12094 return dld_link ();
12096 return 0;
12098 _ACEOF
12099 rm -f conftest.$ac_objext conftest$ac_exeext
12100 if { (ac_try="$ac_link"
12101 case "(($ac_try" in
12102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12103 *) ac_try_echo=$ac_try;;
12104 esac
12105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12106 (eval "$ac_link") 2>conftest.er1
12107 ac_status=$?
12108 grep -v '^ *+' conftest.er1 >conftest.err
12109 rm -f conftest.er1
12110 cat conftest.err >&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } && {
12113 test -z "$ac_c_werror_flag" ||
12114 test ! -s conftest.err
12115 } && test -s conftest$ac_exeext &&
12116 $as_test_x conftest$ac_exeext; then
12117 ac_cv_lib_dld_dld_link=yes
12118 else
12119 echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12122 ac_cv_lib_dld_dld_link=no
12125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12126 conftest$ac_exeext conftest.$ac_ext
12127 LIBS=$ac_check_lib_save_LIBS
12129 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12130 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12131 if test $ac_cv_lib_dld_dld_link = yes; then
12132 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12151 esac
12153 if test "x$lt_cv_dlopen" != xno; then
12154 enable_dlopen=yes
12155 else
12156 enable_dlopen=no
12159 case $lt_cv_dlopen in
12160 dlopen)
12161 save_CPPFLAGS="$CPPFLAGS"
12162 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12164 save_LDFLAGS="$LDFLAGS"
12165 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12167 save_LIBS="$LIBS"
12168 LIBS="$lt_cv_dlopen_libs $LIBS"
12170 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12171 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12172 if test "${lt_cv_dlopen_self+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175 if test "$cross_compiling" = yes; then :
12176 lt_cv_dlopen_self=cross
12177 else
12178 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12179 lt_status=$lt_dlunknown
12180 cat > conftest.$ac_ext <<_LT_EOF
12181 #line 12181 "configure"
12182 #include "confdefs.h"
12184 #if HAVE_DLFCN_H
12185 #include <dlfcn.h>
12186 #endif
12188 #include <stdio.h>
12190 #ifdef RTLD_GLOBAL
12191 # define LT_DLGLOBAL RTLD_GLOBAL
12192 #else
12193 # ifdef DL_GLOBAL
12194 # define LT_DLGLOBAL DL_GLOBAL
12195 # else
12196 # define LT_DLGLOBAL 0
12197 # endif
12198 #endif
12200 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12201 find out it does not work in some platform. */
12202 #ifndef LT_DLLAZY_OR_NOW
12203 # ifdef RTLD_LAZY
12204 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12205 # else
12206 # ifdef DL_LAZY
12207 # define LT_DLLAZY_OR_NOW DL_LAZY
12208 # else
12209 # ifdef RTLD_NOW
12210 # define LT_DLLAZY_OR_NOW RTLD_NOW
12211 # else
12212 # ifdef DL_NOW
12213 # define LT_DLLAZY_OR_NOW DL_NOW
12214 # else
12215 # define LT_DLLAZY_OR_NOW 0
12216 # endif
12217 # endif
12218 # endif
12219 # endif
12220 #endif
12222 #ifdef __cplusplus
12223 extern "C" void exit (int);
12224 #endif
12226 void fnord() { int i=42;}
12227 int main ()
12229 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12230 int status = $lt_dlunknown;
12232 if (self)
12234 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12235 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12236 /* dlclose (self); */
12238 else
12239 puts (dlerror ());
12241 exit (status);
12243 _LT_EOF
12244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12245 (eval $ac_link) 2>&5
12246 ac_status=$?
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12249 (./conftest; exit; ) >&5 2>/dev/null
12250 lt_status=$?
12251 case x$lt_status in
12252 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12253 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12254 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12255 esac
12256 else :
12257 # compilation failed
12258 lt_cv_dlopen_self=no
12261 rm -fr conftest*
12265 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12266 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12268 if test "x$lt_cv_dlopen_self" = xyes; then
12269 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12270 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12271 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12272 if test "${lt_cv_dlopen_self_static+set}" = set; then
12273 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 else
12275 if test "$cross_compiling" = yes; then :
12276 lt_cv_dlopen_self_static=cross
12277 else
12278 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12279 lt_status=$lt_dlunknown
12280 cat > conftest.$ac_ext <<_LT_EOF
12281 #line 12281 "configure"
12282 #include "confdefs.h"
12284 #if HAVE_DLFCN_H
12285 #include <dlfcn.h>
12286 #endif
12288 #include <stdio.h>
12290 #ifdef RTLD_GLOBAL
12291 # define LT_DLGLOBAL RTLD_GLOBAL
12292 #else
12293 # ifdef DL_GLOBAL
12294 # define LT_DLGLOBAL DL_GLOBAL
12295 # else
12296 # define LT_DLGLOBAL 0
12297 # endif
12298 #endif
12300 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12301 find out it does not work in some platform. */
12302 #ifndef LT_DLLAZY_OR_NOW
12303 # ifdef RTLD_LAZY
12304 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12305 # else
12306 # ifdef DL_LAZY
12307 # define LT_DLLAZY_OR_NOW DL_LAZY
12308 # else
12309 # ifdef RTLD_NOW
12310 # define LT_DLLAZY_OR_NOW RTLD_NOW
12311 # else
12312 # ifdef DL_NOW
12313 # define LT_DLLAZY_OR_NOW DL_NOW
12314 # else
12315 # define LT_DLLAZY_OR_NOW 0
12316 # endif
12317 # endif
12318 # endif
12319 # endif
12320 #endif
12322 #ifdef __cplusplus
12323 extern "C" void exit (int);
12324 #endif
12326 void fnord() { int i=42;}
12327 int main ()
12329 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12330 int status = $lt_dlunknown;
12332 if (self)
12334 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12335 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12336 /* dlclose (self); */
12338 else
12339 puts (dlerror ());
12341 exit (status);
12343 _LT_EOF
12344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12345 (eval $ac_link) 2>&5
12346 ac_status=$?
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12349 (./conftest; exit; ) >&5 2>/dev/null
12350 lt_status=$?
12351 case x$lt_status in
12352 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12353 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12354 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12355 esac
12356 else :
12357 # compilation failed
12358 lt_cv_dlopen_self_static=no
12361 rm -fr conftest*
12365 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12366 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12369 CPPFLAGS="$save_CPPFLAGS"
12370 LDFLAGS="$save_LDFLAGS"
12371 LIBS="$save_LIBS"
12373 esac
12375 case $lt_cv_dlopen_self in
12376 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12377 *) enable_dlopen_self=unknown ;;
12378 esac
12380 case $lt_cv_dlopen_self_static in
12381 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12382 *) enable_dlopen_self_static=unknown ;;
12383 esac
12402 striplib=
12403 old_striplib=
12404 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12405 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12406 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12407 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12408 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12409 { echo "$as_me:$LINENO: result: yes" >&5
12410 echo "${ECHO_T}yes" >&6; }
12411 else
12412 # FIXME - insert some real tests, host_os isn't really good enough
12413 case $host_os in
12414 darwin*)
12415 if test -n "$STRIP" ; then
12416 striplib="$STRIP -x"
12417 old_striplib="$STRIP -S"
12418 { echo "$as_me:$LINENO: result: yes" >&5
12419 echo "${ECHO_T}yes" >&6; }
12420 else
12421 { echo "$as_me:$LINENO: result: no" >&5
12422 echo "${ECHO_T}no" >&6; }
12426 { echo "$as_me:$LINENO: result: no" >&5
12427 echo "${ECHO_T}no" >&6; }
12429 esac
12443 # Report which library types will actually be built
12444 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12445 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12446 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12447 echo "${ECHO_T}$can_build_shared" >&6; }
12449 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12450 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12451 test "$can_build_shared" = "no" && enable_shared=no
12453 # On AIX, shared libraries and static libraries use the same namespace, and
12454 # are all built from PIC.
12455 case $host_os in
12456 aix3*)
12457 test "$enable_shared" = yes && enable_static=no
12458 if test -n "$RANLIB"; then
12459 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12460 postinstall_cmds='$RANLIB $lib'
12464 aix[4-9]*)
12465 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12466 test "$enable_shared" = yes && enable_static=no
12469 esac
12470 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12471 echo "${ECHO_T}$enable_shared" >&6; }
12473 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12474 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12475 # Make sure either enable_shared or enable_static is yes.
12476 test "$enable_shared" = yes || enable_static=yes
12477 { echo "$as_me:$LINENO: result: $enable_static" >&5
12478 echo "${ECHO_T}$enable_static" >&6; }
12484 ac_ext=c
12485 ac_cpp='$CPP $CPPFLAGS'
12486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12490 CC="$lt_save_CC"
12504 ac_config_commands="$ac_config_commands libtool"
12509 # Only expand once:
12513 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
12515 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12516 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
12517 # Check whether --enable-maintainer-mode was given.
12518 if test "${enable_maintainer_mode+set}" = set; then
12519 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12520 else
12521 USE_MAINTAINER_MODE=no
12524 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12525 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
12528 if test $USE_MAINTAINER_MODE = yes; then
12529 MAINTAINER_MODE_TRUE=
12530 MAINTAINER_MODE_FALSE='#'
12531 else
12532 MAINTAINER_MODE_TRUE='#'
12533 MAINTAINER_MODE_FALSE=
12536 MAINT=$MAINTAINER_MODE_TRUE
12541 if test "x$GCC" = "xyes"; then
12542 case " $CFLAGS " in
12543 *[\ \ ]-Wall[\ \ ]*) ;;
12544 *) CFLAGS="$CFLAGS -Wall" ;;
12545 esac
12549 GLIB_REQUIRED_VERSION=2.0.0
12553 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12554 if test -n "$ac_tool_prefix"; then
12555 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12556 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12559 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12560 echo $ECHO_N "(cached) $ECHO_C" >&6
12561 else
12562 case $PKG_CONFIG in
12563 [\\/]* | ?:[\\/]*)
12564 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568 for as_dir in $PATH
12570 IFS=$as_save_IFS
12571 test -z "$as_dir" && as_dir=.
12572 for ac_exec_ext in '' $ac_executable_extensions; do
12573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12574 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12576 break 2
12578 done
12579 done
12580 IFS=$as_save_IFS
12583 esac
12585 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12586 if test -n "$PKG_CONFIG"; then
12587 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12588 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12589 else
12590 { echo "$as_me:$LINENO: result: no" >&5
12591 echo "${ECHO_T}no" >&6; }
12596 if test -z "$ac_cv_path_PKG_CONFIG"; then
12597 ac_pt_PKG_CONFIG=$PKG_CONFIG
12598 # Extract the first word of "pkg-config", so it can be a program name with args.
12599 set dummy pkg-config; ac_word=$2
12600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12602 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
12603 echo $ECHO_N "(cached) $ECHO_C" >&6
12604 else
12605 case $ac_pt_PKG_CONFIG in
12606 [\\/]* | ?:[\\/]*)
12607 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12611 for as_dir in $PATH
12613 IFS=$as_save_IFS
12614 test -z "$as_dir" && as_dir=.
12615 for ac_exec_ext in '' $ac_executable_extensions; do
12616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12617 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12619 break 2
12621 done
12622 done
12623 IFS=$as_save_IFS
12626 esac
12628 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12629 if test -n "$ac_pt_PKG_CONFIG"; then
12630 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
12631 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
12632 else
12633 { echo "$as_me:$LINENO: result: no" >&5
12634 echo "${ECHO_T}no" >&6; }
12637 if test "x$ac_pt_PKG_CONFIG" = x; then
12638 PKG_CONFIG=""
12639 else
12640 case $cross_compiling:$ac_tool_warned in
12641 yes:)
12642 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12643 whose name does not start with the host triplet. If you think this
12644 configuration is useful to you, please write to autoconf@gnu.org." >&5
12645 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12646 whose name does not start with the host triplet. If you think this
12647 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12648 ac_tool_warned=yes ;;
12649 esac
12650 PKG_CONFIG=$ac_pt_PKG_CONFIG
12652 else
12653 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12657 if test -n "$PKG_CONFIG"; then
12658 _pkg_min_version=0.9.0
12659 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
12660 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
12661 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12662 { echo "$as_me:$LINENO: result: yes" >&5
12663 echo "${ECHO_T}yes" >&6; }
12664 else
12665 { echo "$as_me:$LINENO: result: no" >&5
12666 echo "${ECHO_T}no" >&6; }
12667 PKG_CONFIG=""
12672 pkg_failed=no
12673 { echo "$as_me:$LINENO: checking for GLIB" >&5
12674 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
12676 if test -n "$PKG_CONFIG"; then
12677 if test -n "$GLIB_CFLAGS"; then
12678 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12679 else
12680 if test -n "$PKG_CONFIG" && \
12681 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED_VERSION\"") >&5
12682 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION") 2>&5
12683 ac_status=$?
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; then
12686 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>/dev/null`
12687 else
12688 pkg_failed=yes
12691 else
12692 pkg_failed=untried
12694 if test -n "$PKG_CONFIG"; then
12695 if test -n "$GLIB_LIBS"; then
12696 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12697 else
12698 if test -n "$PKG_CONFIG" && \
12699 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED_VERSION\"") >&5
12700 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION") 2>&5
12701 ac_status=$?
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; then
12704 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED_VERSION" 2>/dev/null`
12705 else
12706 pkg_failed=yes
12709 else
12710 pkg_failed=untried
12715 if test $pkg_failed = yes; then
12717 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12718 _pkg_short_errors_supported=yes
12719 else
12720 _pkg_short_errors_supported=no
12722 if test $_pkg_short_errors_supported = yes; then
12723 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION"`
12724 else
12725 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQUIRED_VERSION"`
12727 # Put the nasty error message in config.log where it belongs
12728 echo "$GLIB_PKG_ERRORS" >&5
12730 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0 >= $GLIB_REQUIRED_VERSION) were not met:
12732 $GLIB_PKG_ERRORS
12734 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12735 installed software in a non-standard prefix.
12737 Alternatively, you may set the environment variables GLIB_CFLAGS
12738 and GLIB_LIBS to avoid the need to call pkg-config.
12739 See the pkg-config man page for more details.
12740 " >&5
12741 echo "$as_me: error: Package requirements (glib-2.0 >= $GLIB_REQUIRED_VERSION) were not met:
12743 $GLIB_PKG_ERRORS
12745 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12746 installed software in a non-standard prefix.
12748 Alternatively, you may set the environment variables GLIB_CFLAGS
12749 and GLIB_LIBS to avoid the need to call pkg-config.
12750 See the pkg-config man page for more details.
12751 " >&2;}
12752 { (exit 1); exit 1; }; }
12753 elif test $pkg_failed = untried; then
12754 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
12755 is in your PATH or set the PKG_CONFIG environment variable to the full
12756 path to pkg-config.
12758 Alternatively, you may set the environment variables GLIB_CFLAGS
12759 and GLIB_LIBS to avoid the need to call pkg-config.
12760 See the pkg-config man page for more details.
12762 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12763 See \`config.log' for more details." >&5
12764 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
12765 is in your PATH or set the PKG_CONFIG environment variable to the full
12766 path to pkg-config.
12768 Alternatively, you may set the environment variables GLIB_CFLAGS
12769 and GLIB_LIBS to avoid the need to call pkg-config.
12770 See the pkg-config man page for more details.
12772 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12773 See \`config.log' for more details." >&2;}
12774 { (exit 1); exit 1; }; }
12775 else
12776 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12777 GLIB_LIBS=$pkg_cv_GLIB_LIBS
12778 { echo "$as_me:$LINENO: result: yes" >&5
12779 echo "${ECHO_T}yes" >&6; }
12783 GLIB_CFLAGS=`$PKG_CONFIG --cflags glib-2.0`
12786 GLIB_LIBS=`$PKG_CONFIG --libs glib-2.0`
12789 GLIB_DIR=`$PKG_CONFIG --variable=libdir glib-2.0`
12793 for ac_func in bind_textdomain_codeset
12795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12800 else
12801 cat >conftest.$ac_ext <<_ACEOF
12802 /* confdefs.h. */
12803 _ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h. */
12807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12809 #define $ac_func innocuous_$ac_func
12811 /* System header to define __stub macros and hopefully few prototypes,
12812 which can conflict with char $ac_func (); below.
12813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12814 <limits.h> exists even on freestanding compilers. */
12816 #ifdef __STDC__
12817 # include <limits.h>
12818 #else
12819 # include <assert.h>
12820 #endif
12822 #undef $ac_func
12824 /* Override any GCC internal prototype to avoid an error.
12825 Use char because int might match the return type of a GCC
12826 builtin and then its argument prototype would still apply. */
12827 #ifdef __cplusplus
12828 extern "C"
12829 #endif
12830 char $ac_func ();
12831 /* The GNU C library defines this for functions which it implements
12832 to always fail with ENOSYS. Some functions are actually named
12833 something starting with __ and the normal name is an alias. */
12834 #if defined __stub_$ac_func || defined __stub___$ac_func
12835 choke me
12836 #endif
12839 main ()
12841 return $ac_func ();
12843 return 0;
12845 _ACEOF
12846 rm -f conftest.$ac_objext conftest$ac_exeext
12847 if { (ac_try="$ac_link"
12848 case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12851 esac
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853 (eval "$ac_link") 2>conftest.er1
12854 ac_status=$?
12855 grep -v '^ *+' conftest.er1 >conftest.err
12856 rm -f conftest.er1
12857 cat conftest.err >&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } && {
12860 test -z "$ac_c_werror_flag" ||
12861 test ! -s conftest.err
12862 } && test -s conftest$ac_exeext &&
12863 $as_test_x conftest$ac_exeext; then
12864 eval "$as_ac_var=yes"
12865 else
12866 echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12869 eval "$as_ac_var=no"
12872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12873 conftest$ac_exeext conftest.$ac_ext
12875 ac_res=`eval echo '${'$as_ac_var'}'`
12876 { echo "$as_me:$LINENO: result: $ac_res" >&5
12877 echo "${ECHO_T}$ac_res" >&6; }
12878 if test `eval echo '${'$as_ac_var'}'` = yes; then
12879 cat >>confdefs.h <<_ACEOF
12880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12881 _ACEOF
12884 done
12887 DATADIR="${datadir}/liblqr-1"
12891 ac_config_files="$ac_config_files Makefile lqr/Makefile man/Makefile lqr-1.pc"
12894 # Check whether --enable-install-man was given.
12895 if test "${enable_install_man+set}" = set; then
12896 enableval=$enable_install_man; case "${enableval}" in
12897 yes) install_man=true ;;
12898 no) install_man=false ;;
12899 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-install-man" >&5
12900 echo "$as_me: error: bad value ${enableval} for --enable-install-man" >&2;}
12901 { (exit 1); exit 1; }; } ;;
12902 esac
12903 else
12904 install_man=false
12909 if test x$install_man = xtrue; then
12910 INSTMAN_TRUE=
12911 INSTMAN_FALSE='#'
12912 else
12913 INSTMAN_TRUE='#'
12914 INSTMAN_FALSE=
12919 cat >confcache <<\_ACEOF
12920 # This file is a shell script that caches the results of configure
12921 # tests run on this system so they can be shared between configure
12922 # scripts and configure runs, see configure's option --config-cache.
12923 # It is not useful on other systems. If it contains results you don't
12924 # want to keep, you may remove or edit it.
12926 # config.status only pays attention to the cache file if you give it
12927 # the --recheck option to rerun configure.
12929 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12930 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12931 # following values.
12933 _ACEOF
12935 # The following way of writing the cache mishandles newlines in values,
12936 # but we know of no workaround that is simple, portable, and efficient.
12937 # So, we kill variables containing newlines.
12938 # Ultrix sh set writes to stderr and can't be redirected directly,
12939 # and sets the high bit in the cache file unless we assign to the vars.
12941 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12942 eval ac_val=\$$ac_var
12943 case $ac_val in #(
12944 *${as_nl}*)
12945 case $ac_var in #(
12946 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12947 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12948 esac
12949 case $ac_var in #(
12950 _ | IFS | as_nl) ;; #(
12951 *) $as_unset $ac_var ;;
12952 esac ;;
12953 esac
12954 done
12956 (set) 2>&1 |
12957 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12958 *${as_nl}ac_space=\ *)
12959 # `set' does not quote correctly, so add quotes (double-quote
12960 # substitution turns \\\\ into \\, and sed turns \\ into \).
12961 sed -n \
12962 "s/'/'\\\\''/g;
12963 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12964 ;; #(
12966 # `set' quotes correctly as required by POSIX, so do not add quotes.
12967 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12969 esac |
12970 sort
12972 sed '
12973 /^ac_cv_env_/b end
12974 t clear
12975 :clear
12976 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12977 t end
12978 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12979 :end' >>confcache
12980 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12981 if test -w "$cache_file"; then
12982 test "x$cache_file" != "x/dev/null" &&
12983 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12984 echo "$as_me: updating cache $cache_file" >&6;}
12985 cat confcache >$cache_file
12986 else
12987 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12988 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12991 rm -f confcache
12993 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12994 # Let make expand exec_prefix.
12995 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12997 DEFS=-DHAVE_CONFIG_H
12999 ac_libobjs=
13000 ac_ltlibobjs=
13001 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13002 # 1. Remove the extension, and $U if already installed.
13003 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13004 ac_i=`echo "$ac_i" | sed "$ac_script"`
13005 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13006 # will be set to the directory where LIBOBJS objects are built.
13007 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13008 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13009 done
13010 LIBOBJS=$ac_libobjs
13012 LTLIBOBJS=$ac_ltlibobjs
13015 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13016 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13017 Usually this means the macro was only invoked conditionally." >&5
13018 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13019 Usually this means the macro was only invoked conditionally." >&2;}
13020 { (exit 1); exit 1; }; }
13022 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13023 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13024 Usually this means the macro was only invoked conditionally." >&5
13025 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13026 Usually this means the macro was only invoked conditionally." >&2;}
13027 { (exit 1); exit 1; }; }
13029 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13030 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13031 Usually this means the macro was only invoked conditionally." >&5
13032 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13033 Usually this means the macro was only invoked conditionally." >&2;}
13034 { (exit 1); exit 1; }; }
13036 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13037 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13038 Usually this means the macro was only invoked conditionally." >&5
13039 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13040 Usually this means the macro was only invoked conditionally." >&2;}
13041 { (exit 1); exit 1; }; }
13043 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13044 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13045 Usually this means the macro was only invoked conditionally." >&5
13046 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13047 Usually this means the macro was only invoked conditionally." >&2;}
13048 { (exit 1); exit 1; }; }
13050 if test -z "${INSTMAN_TRUE}" && test -z "${INSTMAN_FALSE}"; then
13051 { { echo "$as_me:$LINENO: error: conditional \"INSTMAN\" was never defined.
13052 Usually this means the macro was only invoked conditionally." >&5
13053 echo "$as_me: error: conditional \"INSTMAN\" was never defined.
13054 Usually this means the macro was only invoked conditionally." >&2;}
13055 { (exit 1); exit 1; }; }
13058 : ${CONFIG_STATUS=./config.status}
13059 ac_clean_files_save=$ac_clean_files
13060 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13061 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13062 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13063 cat >$CONFIG_STATUS <<_ACEOF
13064 #! $SHELL
13065 # Generated by $as_me.
13066 # Run this file to recreate the current configuration.
13067 # Compiler output produced by configure, useful for debugging
13068 # configure, is in config.log if it exists.
13070 debug=false
13071 ac_cs_recheck=false
13072 ac_cs_silent=false
13073 SHELL=\${CONFIG_SHELL-$SHELL}
13074 _ACEOF
13076 cat >>$CONFIG_STATUS <<\_ACEOF
13077 ## --------------------- ##
13078 ## M4sh Initialization. ##
13079 ## --------------------- ##
13081 # Be more Bourne compatible
13082 DUALCASE=1; export DUALCASE # for MKS sh
13083 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13084 emulate sh
13085 NULLCMD=:
13086 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13087 # is contrary to our usage. Disable this feature.
13088 alias -g '${1+"$@"}'='"$@"'
13089 setopt NO_GLOB_SUBST
13090 else
13091 case `(set -o) 2>/dev/null` in
13092 *posix*) set -o posix ;;
13093 esac
13100 # PATH needs CR
13101 # Avoid depending upon Character Ranges.
13102 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13103 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13104 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13105 as_cr_digits='0123456789'
13106 as_cr_alnum=$as_cr_Letters$as_cr_digits
13108 # The user is always right.
13109 if test "${PATH_SEPARATOR+set}" != set; then
13110 echo "#! /bin/sh" >conf$$.sh
13111 echo "exit 0" >>conf$$.sh
13112 chmod +x conf$$.sh
13113 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13114 PATH_SEPARATOR=';'
13115 else
13116 PATH_SEPARATOR=:
13118 rm -f conf$$.sh
13121 # Support unset when possible.
13122 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13123 as_unset=unset
13124 else
13125 as_unset=false
13129 # IFS
13130 # We need space, tab and new line, in precisely that order. Quoting is
13131 # there to prevent editors from complaining about space-tab.
13132 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13133 # splitting by setting IFS to empty value.)
13134 as_nl='
13136 IFS=" "" $as_nl"
13138 # Find who we are. Look in the path if we contain no directory separator.
13139 case $0 in
13140 *[\\/]* ) as_myself=$0 ;;
13141 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13142 for as_dir in $PATH
13144 IFS=$as_save_IFS
13145 test -z "$as_dir" && as_dir=.
13146 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13147 done
13148 IFS=$as_save_IFS
13151 esac
13152 # We did not find ourselves, most probably we were run as `sh COMMAND'
13153 # in which case we are not to be found in the path.
13154 if test "x$as_myself" = x; then
13155 as_myself=$0
13157 if test ! -f "$as_myself"; then
13158 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13159 { (exit 1); exit 1; }
13162 # Work around bugs in pre-3.0 UWIN ksh.
13163 for as_var in ENV MAIL MAILPATH
13164 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13165 done
13166 PS1='$ '
13167 PS2='> '
13168 PS4='+ '
13170 # NLS nuisances.
13171 for as_var in \
13172 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13173 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13174 LC_TELEPHONE LC_TIME
13176 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13177 eval $as_var=C; export $as_var
13178 else
13179 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13181 done
13183 # Required to use basename.
13184 if expr a : '\(a\)' >/dev/null 2>&1 &&
13185 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13186 as_expr=expr
13187 else
13188 as_expr=false
13191 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13192 as_basename=basename
13193 else
13194 as_basename=false
13198 # Name of the executable.
13199 as_me=`$as_basename -- "$0" ||
13200 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13201 X"$0" : 'X\(//\)$' \| \
13202 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13203 echo X/"$0" |
13204 sed '/^.*\/\([^/][^/]*\)\/*$/{
13205 s//\1/
13208 /^X\/\(\/\/\)$/{
13209 s//\1/
13212 /^X\/\(\/\).*/{
13213 s//\1/
13216 s/.*/./; q'`
13218 # CDPATH.
13219 $as_unset CDPATH
13223 as_lineno_1=$LINENO
13224 as_lineno_2=$LINENO
13225 test "x$as_lineno_1" != "x$as_lineno_2" &&
13226 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13228 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13229 # uniformly replaced by the line number. The first 'sed' inserts a
13230 # line-number line after each line using $LINENO; the second 'sed'
13231 # does the real work. The second script uses 'N' to pair each
13232 # line-number line with the line containing $LINENO, and appends
13233 # trailing '-' during substitution so that $LINENO is not a special
13234 # case at line end.
13235 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13236 # scripts with optimization help from Paolo Bonzini. Blame Lee
13237 # E. McMahon (1931-1989) for sed's syntax. :-)
13238 sed -n '
13240 /[$]LINENO/=
13241 ' <$as_myself |
13242 sed '
13243 s/[$]LINENO.*/&-/
13244 t lineno
13246 :lineno
13248 :loop
13249 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13250 t loop
13251 s/-\n.*//
13252 ' >$as_me.lineno &&
13253 chmod +x "$as_me.lineno" ||
13254 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13255 { (exit 1); exit 1; }; }
13257 # Don't try to exec as it changes $[0], causing all sort of problems
13258 # (the dirname of $[0] is not the place where we might find the
13259 # original and so on. Autoconf is especially sensitive to this).
13260 . "./$as_me.lineno"
13261 # Exit status is that of the last command.
13262 exit
13266 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13267 as_dirname=dirname
13268 else
13269 as_dirname=false
13272 ECHO_C= ECHO_N= ECHO_T=
13273 case `echo -n x` in
13274 -n*)
13275 case `echo 'x\c'` in
13276 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13277 *) ECHO_C='\c';;
13278 esac;;
13280 ECHO_N='-n';;
13281 esac
13283 if expr a : '\(a\)' >/dev/null 2>&1 &&
13284 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13285 as_expr=expr
13286 else
13287 as_expr=false
13290 rm -f conf$$ conf$$.exe conf$$.file
13291 if test -d conf$$.dir; then
13292 rm -f conf$$.dir/conf$$.file
13293 else
13294 rm -f conf$$.dir
13295 mkdir conf$$.dir
13297 echo >conf$$.file
13298 if ln -s conf$$.file conf$$ 2>/dev/null; then
13299 as_ln_s='ln -s'
13300 # ... but there are two gotchas:
13301 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13302 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13303 # In both cases, we have to default to `cp -p'.
13304 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13305 as_ln_s='cp -p'
13306 elif ln conf$$.file conf$$ 2>/dev/null; then
13307 as_ln_s=ln
13308 else
13309 as_ln_s='cp -p'
13311 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13312 rmdir conf$$.dir 2>/dev/null
13314 if mkdir -p . 2>/dev/null; then
13315 as_mkdir_p=:
13316 else
13317 test -d ./-p && rmdir ./-p
13318 as_mkdir_p=false
13321 if test -x / >/dev/null 2>&1; then
13322 as_test_x='test -x'
13323 else
13324 if ls -dL / >/dev/null 2>&1; then
13325 as_ls_L_option=L
13326 else
13327 as_ls_L_option=
13329 as_test_x='
13330 eval sh -c '\''
13331 if test -d "$1"; then
13332 test -d "$1/.";
13333 else
13334 case $1 in
13335 -*)set "./$1";;
13336 esac;
13337 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13338 ???[sx]*):;;*)false;;esac;fi
13339 '\'' sh
13342 as_executable_p=$as_test_x
13344 # Sed expression to map a string onto a valid CPP name.
13345 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13347 # Sed expression to map a string onto a valid variable name.
13348 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13351 exec 6>&1
13353 # Save the log message, to keep $[0] and so on meaningful, and to
13354 # report actual input values of CONFIG_FILES etc. instead of their
13355 # values after options handling.
13356 ac_log="
13357 This file was extended by liblqr-1 $as_me 0.3.0, which was
13358 generated by GNU Autoconf 2.61. Invocation command line was
13360 CONFIG_FILES = $CONFIG_FILES
13361 CONFIG_HEADERS = $CONFIG_HEADERS
13362 CONFIG_LINKS = $CONFIG_LINKS
13363 CONFIG_COMMANDS = $CONFIG_COMMANDS
13364 $ $0 $@
13366 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13369 _ACEOF
13371 cat >>$CONFIG_STATUS <<_ACEOF
13372 # Files that config.status was made for.
13373 config_files="$ac_config_files"
13374 config_headers="$ac_config_headers"
13375 config_commands="$ac_config_commands"
13377 _ACEOF
13379 cat >>$CONFIG_STATUS <<\_ACEOF
13380 ac_cs_usage="\
13381 \`$as_me' instantiates files from templates according to the
13382 current configuration.
13384 Usage: $0 [OPTIONS] [FILE]...
13386 -h, --help print this help, then exit
13387 -V, --version print version number and configuration settings, then exit
13388 -q, --quiet do not print progress messages
13389 -d, --debug don't remove temporary files
13390 --recheck update $as_me by reconfiguring in the same conditions
13391 --file=FILE[:TEMPLATE]
13392 instantiate the configuration file FILE
13393 --header=FILE[:TEMPLATE]
13394 instantiate the configuration header FILE
13396 Configuration files:
13397 $config_files
13399 Configuration headers:
13400 $config_headers
13402 Configuration commands:
13403 $config_commands
13405 Report bugs to <bug-autoconf@gnu.org>."
13407 _ACEOF
13408 cat >>$CONFIG_STATUS <<_ACEOF
13409 ac_cs_version="\\
13410 liblqr-1 config.status 0.3.0
13411 configured by $0, generated by GNU Autoconf 2.61,
13412 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13414 Copyright (C) 2006 Free Software Foundation, Inc.
13415 This config.status script is free software; the Free Software Foundation
13416 gives unlimited permission to copy, distribute and modify it."
13418 ac_pwd='$ac_pwd'
13419 srcdir='$srcdir'
13420 INSTALL='$INSTALL'
13421 _ACEOF
13423 cat >>$CONFIG_STATUS <<\_ACEOF
13424 # If no file are specified by the user, then we need to provide default
13425 # value. By we need to know if files were specified by the user.
13426 ac_need_defaults=:
13427 while test $# != 0
13429 case $1 in
13430 --*=*)
13431 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13432 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13433 ac_shift=:
13436 ac_option=$1
13437 ac_optarg=$2
13438 ac_shift=shift
13440 esac
13442 case $ac_option in
13443 # Handling of the options.
13444 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13445 ac_cs_recheck=: ;;
13446 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13447 echo "$ac_cs_version"; exit ;;
13448 --debug | --debu | --deb | --de | --d | -d )
13449 debug=: ;;
13450 --file | --fil | --fi | --f )
13451 $ac_shift
13452 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13453 ac_need_defaults=false;;
13454 --header | --heade | --head | --hea )
13455 $ac_shift
13456 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13457 ac_need_defaults=false;;
13458 --he | --h)
13459 # Conflict between --help and --header
13460 { echo "$as_me: error: ambiguous option: $1
13461 Try \`$0 --help' for more information." >&2
13462 { (exit 1); exit 1; }; };;
13463 --help | --hel | -h )
13464 echo "$ac_cs_usage"; exit ;;
13465 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13466 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13467 ac_cs_silent=: ;;
13469 # This is an error.
13470 -*) { echo "$as_me: error: unrecognized option: $1
13471 Try \`$0 --help' for more information." >&2
13472 { (exit 1); exit 1; }; } ;;
13474 *) ac_config_targets="$ac_config_targets $1"
13475 ac_need_defaults=false ;;
13477 esac
13478 shift
13479 done
13481 ac_configure_extra_args=
13483 if $ac_cs_silent; then
13484 exec 6>/dev/null
13485 ac_configure_extra_args="$ac_configure_extra_args --silent"
13488 _ACEOF
13489 cat >>$CONFIG_STATUS <<_ACEOF
13490 if \$ac_cs_recheck; then
13491 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13492 CONFIG_SHELL=$SHELL
13493 export CONFIG_SHELL
13494 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13497 _ACEOF
13498 cat >>$CONFIG_STATUS <<\_ACEOF
13499 exec 5>>config.log
13501 echo
13502 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13503 ## Running $as_me. ##
13504 _ASBOX
13505 echo "$ac_log"
13506 } >&5
13508 _ACEOF
13509 cat >>$CONFIG_STATUS <<_ACEOF
13511 # INIT-COMMANDS
13513 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13516 # The HP-UX ksh and POSIX shell print the target directory to stdout
13517 # if CDPATH is set.
13518 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13520 sed_quote_subst='$sed_quote_subst'
13521 double_quote_subst='$double_quote_subst'
13522 delay_variable_subst='$delay_variable_subst'
13523 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13524 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13525 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13526 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13527 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13528 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13529 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13530 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13531 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13532 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13533 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13534 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13535 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13536 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13537 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13538 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13539 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13540 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13541 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13542 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13543 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13544 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13545 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13546 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13547 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13548 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13549 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13550 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13551 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13552 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13553 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13554 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13555 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13556 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13557 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13558 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13559 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13560 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13561 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13562 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13563 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13564 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13565 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13566 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"`'
13567 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"`'
13568 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13569 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13570 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13571 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13572 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13573 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13574 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13575 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13576 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13577 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13578 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13579 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13580 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13581 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13582 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13583 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13584 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13585 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13586 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13587 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13588 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13589 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13590 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13591 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13592 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13593 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13594 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13595 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13596 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13597 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13598 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13599 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13600 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13601 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13602 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13603 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13604 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13605 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13606 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13607 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13608 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13609 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13610 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13611 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13612 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13613 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13614 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13615 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13616 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13617 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13618 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13619 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13620 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13621 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13622 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13623 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13624 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13625 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13626 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13627 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13628 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13629 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13630 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13631 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13632 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13633 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13634 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13635 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13636 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13637 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13638 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13639 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13641 LTCC='$LTCC'
13642 LTCFLAGS='$LTCFLAGS'
13643 compiler='$compiler_DEFAULT'
13645 # Quote evaled strings.
13646 for var in SED \
13647 GREP \
13648 EGREP \
13649 FGREP \
13650 LD \
13651 NM \
13652 LN_S \
13653 lt_SP2NL \
13654 lt_NL2SP \
13655 reload_flag \
13656 deplibs_check_method \
13657 file_magic_cmd \
13658 AR \
13659 AR_FLAGS \
13660 STRIP \
13661 RANLIB \
13662 CC \
13663 CFLAGS \
13664 compiler \
13665 lt_cv_sys_global_symbol_pipe \
13666 lt_cv_sys_global_symbol_to_cdecl \
13667 lt_cv_sys_global_symbol_to_c_name_address \
13668 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13669 SHELL \
13670 ECHO \
13671 lt_prog_compiler_no_builtin_flag \
13672 lt_prog_compiler_wl \
13673 lt_prog_compiler_pic \
13674 lt_prog_compiler_static \
13675 lt_cv_prog_compiler_c_o \
13676 need_locks \
13677 DSYMUTIL \
13678 NMEDIT \
13679 LIPO \
13680 OTOOL \
13681 OTOOL64 \
13682 shrext_cmds \
13683 export_dynamic_flag_spec \
13684 whole_archive_flag_spec \
13685 compiler_needs_object \
13686 with_gnu_ld \
13687 allow_undefined_flag \
13688 no_undefined_flag \
13689 hardcode_libdir_flag_spec \
13690 hardcode_libdir_flag_spec_ld \
13691 hardcode_libdir_separator \
13692 fix_srcfile_path \
13693 exclude_expsyms \
13694 include_expsyms \
13695 file_list_spec \
13696 variables_saved_for_relink \
13697 libname_spec \
13698 library_names_spec \
13699 soname_spec \
13700 finish_eval \
13701 old_striplib \
13702 striplib; do
13703 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13704 *[\\\\\\\`\\"\\\$]*)
13705 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13708 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13710 esac
13711 done
13713 # Double-quote double-evaled strings.
13714 for var in reload_cmds \
13715 old_postinstall_cmds \
13716 old_postuninstall_cmds \
13717 old_archive_cmds \
13718 extract_expsyms_cmds \
13719 old_archive_from_new_cmds \
13720 old_archive_from_expsyms_cmds \
13721 archive_cmds \
13722 archive_expsym_cmds \
13723 module_cmds \
13724 module_expsym_cmds \
13725 export_symbols_cmds \
13726 prelink_cmds \
13727 postinstall_cmds \
13728 postuninstall_cmds \
13729 finish_cmds \
13730 sys_lib_search_path_spec \
13731 sys_lib_dlsearch_path_spec; do
13732 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13733 *[\\\\\\\`\\"\\\$]*)
13734 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13737 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13739 esac
13740 done
13742 # Fix-up fallback echo if it was mangled by the above quoting rules.
13743 case \$lt_ECHO in
13744 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13746 esac
13748 ac_aux_dir='$ac_aux_dir'
13749 xsi_shell='$xsi_shell'
13750 lt_shell_append='$lt_shell_append'
13752 # See if we are running on zsh, and set the options which allow our
13753 # commands through without removal of \ escapes INIT.
13754 if test -n "\${ZSH_VERSION+set}" ; then
13755 setopt NO_GLOB_SUBST
13759 PACKAGE='$PACKAGE'
13760 VERSION='$VERSION'
13761 TIMESTAMP='$TIMESTAMP'
13762 RM='$RM'
13763 ofile='$ofile'
13768 _ACEOF
13770 cat >>$CONFIG_STATUS <<\_ACEOF
13772 # Handling of arguments.
13773 for ac_config_target in $ac_config_targets
13775 case $ac_config_target in
13776 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13777 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13778 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13779 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13780 "lqr/Makefile") CONFIG_FILES="$CONFIG_FILES lqr/Makefile" ;;
13781 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13782 "lqr-1.pc") CONFIG_FILES="$CONFIG_FILES lqr-1.pc" ;;
13784 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13785 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13786 { (exit 1); exit 1; }; };;
13787 esac
13788 done
13791 # If the user did not use the arguments to specify the items to instantiate,
13792 # then the envvar interface is used. Set only those that are not.
13793 # We use the long form for the default assignment because of an extremely
13794 # bizarre bug on SunOS 4.1.3.
13795 if $ac_need_defaults; then
13796 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13797 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13798 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13801 # Have a temporary directory for convenience. Make it in the build tree
13802 # simply because there is no reason against having it here, and in addition,
13803 # creating and moving files from /tmp can sometimes cause problems.
13804 # Hook for its removal unless debugging.
13805 # Note that there is a small window in which the directory will not be cleaned:
13806 # after its creation but before its name has been assigned to `$tmp'.
13807 $debug ||
13809 tmp=
13810 trap 'exit_status=$?
13811 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13813 trap '{ (exit 1); exit 1; }' 1 2 13 15
13815 # Create a (secure) tmp directory for tmp files.
13818 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13819 test -n "$tmp" && test -d "$tmp"
13820 } ||
13822 tmp=./conf$$-$RANDOM
13823 (umask 077 && mkdir "$tmp")
13824 } ||
13826 echo "$me: cannot create a temporary directory in ." >&2
13827 { (exit 1); exit 1; }
13831 # Set up the sed scripts for CONFIG_FILES section.
13834 # No need to generate the scripts if there are no CONFIG_FILES.
13835 # This happens for instance when ./config.status config.h
13836 if test -n "$CONFIG_FILES"; then
13838 _ACEOF
13842 ac_delim='%!_!# '
13843 for ac_last_try in false false false false false :; do
13844 cat >conf$$subs.sed <<_ACEOF
13845 SHELL!$SHELL$ac_delim
13846 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13847 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13848 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13849 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13850 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13851 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13852 exec_prefix!$exec_prefix$ac_delim
13853 prefix!$prefix$ac_delim
13854 program_transform_name!$program_transform_name$ac_delim
13855 bindir!$bindir$ac_delim
13856 sbindir!$sbindir$ac_delim
13857 libexecdir!$libexecdir$ac_delim
13858 datarootdir!$datarootdir$ac_delim
13859 datadir!$datadir$ac_delim
13860 sysconfdir!$sysconfdir$ac_delim
13861 sharedstatedir!$sharedstatedir$ac_delim
13862 localstatedir!$localstatedir$ac_delim
13863 includedir!$includedir$ac_delim
13864 oldincludedir!$oldincludedir$ac_delim
13865 docdir!$docdir$ac_delim
13866 infodir!$infodir$ac_delim
13867 htmldir!$htmldir$ac_delim
13868 dvidir!$dvidir$ac_delim
13869 pdfdir!$pdfdir$ac_delim
13870 psdir!$psdir$ac_delim
13871 libdir!$libdir$ac_delim
13872 localedir!$localedir$ac_delim
13873 mandir!$mandir$ac_delim
13874 DEFS!$DEFS$ac_delim
13875 ECHO_C!$ECHO_C$ac_delim
13876 ECHO_N!$ECHO_N$ac_delim
13877 ECHO_T!$ECHO_T$ac_delim
13878 LIBS!$LIBS$ac_delim
13879 build_alias!$build_alias$ac_delim
13880 host_alias!$host_alias$ac_delim
13881 target_alias!$target_alias$ac_delim
13882 LIBRARY_BASE_NAME!$LIBRARY_BASE_NAME$ac_delim
13883 API_VERSION!$API_VERSION$ac_delim
13884 LIBRARY_NAME!$LIBRARY_NAME$ac_delim
13885 LIBRARY_SNAME!$LIBRARY_SNAME$ac_delim
13886 LTVERSION!$LTVERSION$ac_delim
13887 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13888 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13889 INSTALL_DATA!$INSTALL_DATA$ac_delim
13890 CYGPATH_W!$CYGPATH_W$ac_delim
13891 PACKAGE!$PACKAGE$ac_delim
13892 VERSION!$VERSION$ac_delim
13893 ACLOCAL!$ACLOCAL$ac_delim
13894 AUTOCONF!$AUTOCONF$ac_delim
13895 AUTOMAKE!$AUTOMAKE$ac_delim
13896 AUTOHEADER!$AUTOHEADER$ac_delim
13897 MAKEINFO!$MAKEINFO$ac_delim
13898 install_sh!$install_sh$ac_delim
13899 STRIP!$STRIP$ac_delim
13900 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
13901 mkdir_p!$mkdir_p$ac_delim
13902 AWK!$AWK$ac_delim
13903 SET_MAKE!$SET_MAKE$ac_delim
13904 am__leading_dot!$am__leading_dot$ac_delim
13905 AMTAR!$AMTAR$ac_delim
13906 am__tar!$am__tar$ac_delim
13907 am__untar!$am__untar$ac_delim
13908 CC!$CC$ac_delim
13909 CFLAGS!$CFLAGS$ac_delim
13910 LDFLAGS!$LDFLAGS$ac_delim
13911 CPPFLAGS!$CPPFLAGS$ac_delim
13912 ac_ct_CC!$ac_ct_CC$ac_delim
13913 EXEEXT!$EXEEXT$ac_delim
13914 OBJEXT!$OBJEXT$ac_delim
13915 DEPDIR!$DEPDIR$ac_delim
13916 am__include!$am__include$ac_delim
13917 am__quote!$am__quote$ac_delim
13918 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
13919 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
13920 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
13921 CCDEPMODE!$CCDEPMODE$ac_delim
13922 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
13923 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
13924 CPP!$CPP$ac_delim
13925 GREP!$GREP$ac_delim
13926 EGREP!$EGREP$ac_delim
13927 LIBTOOL!$LIBTOOL$ac_delim
13928 build!$build$ac_delim
13929 build_cpu!$build_cpu$ac_delim
13930 build_vendor!$build_vendor$ac_delim
13931 build_os!$build_os$ac_delim
13932 host!$host$ac_delim
13933 host_cpu!$host_cpu$ac_delim
13934 host_vendor!$host_vendor$ac_delim
13935 host_os!$host_os$ac_delim
13936 SED!$SED$ac_delim
13937 FGREP!$FGREP$ac_delim
13938 LD!$LD$ac_delim
13939 DUMPBIN!$DUMPBIN$ac_delim
13940 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
13941 NM!$NM$ac_delim
13942 _ACEOF
13944 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13945 break
13946 elif $ac_last_try; then
13947 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13948 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13949 { (exit 1); exit 1; }; }
13950 else
13951 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13953 done
13955 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13956 if test -n "$ac_eof"; then
13957 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13958 ac_eof=`expr $ac_eof + 1`
13961 cat >>$CONFIG_STATUS <<_ACEOF
13962 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13963 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13964 _ACEOF
13965 sed '
13966 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13967 s/^/s,@/; s/!/@,|#_!!_#|/
13970 s/'"$ac_delim"'$/,g/; t
13971 s/$/\\/; p
13972 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13973 ' >>$CONFIG_STATUS <conf$$subs.sed
13974 rm -f conf$$subs.sed
13975 cat >>$CONFIG_STATUS <<_ACEOF
13976 CEOF$ac_eof
13977 _ACEOF
13980 ac_delim='%!_!# '
13981 for ac_last_try in false false false false false :; do
13982 cat >conf$$subs.sed <<_ACEOF
13983 LN_S!$LN_S$ac_delim
13984 AR!$AR$ac_delim
13985 RANLIB!$RANLIB$ac_delim
13986 lt_ECHO!$lt_ECHO$ac_delim
13987 DSYMUTIL!$DSYMUTIL$ac_delim
13988 NMEDIT!$NMEDIT$ac_delim
13989 LIPO!$LIPO$ac_delim
13990 OTOOL!$OTOOL$ac_delim
13991 OTOOL64!$OTOOL64$ac_delim
13992 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
13993 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
13994 MAINT!$MAINT$ac_delim
13995 PKG_CONFIG!$PKG_CONFIG$ac_delim
13996 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
13997 GLIB_LIBS!$GLIB_LIBS$ac_delim
13998 GLIB_DIR!$GLIB_DIR$ac_delim
13999 DATADIR!$DATADIR$ac_delim
14000 INSTMAN_TRUE!$INSTMAN_TRUE$ac_delim
14001 INSTMAN_FALSE!$INSTMAN_FALSE$ac_delim
14002 LIBOBJS!$LIBOBJS$ac_delim
14003 LTLIBOBJS!$LTLIBOBJS$ac_delim
14004 _ACEOF
14006 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
14007 break
14008 elif $ac_last_try; then
14009 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14010 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14011 { (exit 1); exit 1; }; }
14012 else
14013 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14015 done
14017 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14018 if test -n "$ac_eof"; then
14019 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14020 ac_eof=`expr $ac_eof + 1`
14023 cat >>$CONFIG_STATUS <<_ACEOF
14024 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14025 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14026 _ACEOF
14027 sed '
14028 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14029 s/^/s,@/; s/!/@,|#_!!_#|/
14032 s/'"$ac_delim"'$/,g/; t
14033 s/$/\\/; p
14034 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14035 ' >>$CONFIG_STATUS <conf$$subs.sed
14036 rm -f conf$$subs.sed
14037 cat >>$CONFIG_STATUS <<_ACEOF
14038 :end
14039 s/|#_!!_#|//g
14040 CEOF$ac_eof
14041 _ACEOF
14044 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14045 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14046 # trailing colons and then remove the whole line if VPATH becomes empty
14047 # (actually we leave an empty line to preserve line numbers).
14048 if test "x$srcdir" = x.; then
14049 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14050 s/:*\$(srcdir):*/:/
14051 s/:*\${srcdir}:*/:/
14052 s/:*@srcdir@:*/:/
14053 s/^\([^=]*=[ ]*\):*/\1/
14054 s/:*$//
14055 s/^[^=]*=[ ]*$//
14059 cat >>$CONFIG_STATUS <<\_ACEOF
14060 fi # test -n "$CONFIG_FILES"
14063 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14065 case $ac_tag in
14066 :[FHLC]) ac_mode=$ac_tag; continue;;
14067 esac
14068 case $ac_mode$ac_tag in
14069 :[FHL]*:*);;
14070 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14071 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14072 { (exit 1); exit 1; }; };;
14073 :[FH]-) ac_tag=-:-;;
14074 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14075 esac
14076 ac_save_IFS=$IFS
14077 IFS=:
14078 set x $ac_tag
14079 IFS=$ac_save_IFS
14080 shift
14081 ac_file=$1
14082 shift
14084 case $ac_mode in
14085 :L) ac_source=$1;;
14086 :[FH])
14087 ac_file_inputs=
14088 for ac_f
14090 case $ac_f in
14091 -) ac_f="$tmp/stdin";;
14092 *) # Look for the file first in the build tree, then in the source tree
14093 # (if the path is not absolute). The absolute path cannot be DOS-style,
14094 # because $ac_f cannot contain `:'.
14095 test -f "$ac_f" ||
14096 case $ac_f in
14097 [\\/$]*) false;;
14098 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14099 esac ||
14100 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14101 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14102 { (exit 1); exit 1; }; };;
14103 esac
14104 ac_file_inputs="$ac_file_inputs $ac_f"
14105 done
14107 # Let's still pretend it is `configure' which instantiates (i.e., don't
14108 # use $as_me), people would be surprised to read:
14109 # /* config.h. Generated by config.status. */
14110 configure_input="Generated from "`IFS=:
14111 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14112 if test x"$ac_file" != x-; then
14113 configure_input="$ac_file. $configure_input"
14114 { echo "$as_me:$LINENO: creating $ac_file" >&5
14115 echo "$as_me: creating $ac_file" >&6;}
14118 case $ac_tag in
14119 *:-:* | *:-) cat >"$tmp/stdin";;
14120 esac
14122 esac
14124 ac_dir=`$as_dirname -- "$ac_file" ||
14125 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14126 X"$ac_file" : 'X\(//\)[^/]' \| \
14127 X"$ac_file" : 'X\(//\)$' \| \
14128 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14129 echo X"$ac_file" |
14130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14131 s//\1/
14134 /^X\(\/\/\)[^/].*/{
14135 s//\1/
14138 /^X\(\/\/\)$/{
14139 s//\1/
14142 /^X\(\/\).*/{
14143 s//\1/
14146 s/.*/./; q'`
14147 { as_dir="$ac_dir"
14148 case $as_dir in #(
14149 -*) as_dir=./$as_dir;;
14150 esac
14151 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14152 as_dirs=
14153 while :; do
14154 case $as_dir in #(
14155 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14156 *) as_qdir=$as_dir;;
14157 esac
14158 as_dirs="'$as_qdir' $as_dirs"
14159 as_dir=`$as_dirname -- "$as_dir" ||
14160 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14161 X"$as_dir" : 'X\(//\)[^/]' \| \
14162 X"$as_dir" : 'X\(//\)$' \| \
14163 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14164 echo X"$as_dir" |
14165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14166 s//\1/
14169 /^X\(\/\/\)[^/].*/{
14170 s//\1/
14173 /^X\(\/\/\)$/{
14174 s//\1/
14177 /^X\(\/\).*/{
14178 s//\1/
14181 s/.*/./; q'`
14182 test -d "$as_dir" && break
14183 done
14184 test -z "$as_dirs" || eval "mkdir $as_dirs"
14185 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14186 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14187 { (exit 1); exit 1; }; }; }
14188 ac_builddir=.
14190 case "$ac_dir" in
14191 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14193 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14194 # A ".." for each directory in $ac_dir_suffix.
14195 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14196 case $ac_top_builddir_sub in
14197 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14198 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14199 esac ;;
14200 esac
14201 ac_abs_top_builddir=$ac_pwd
14202 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14203 # for backward compatibility:
14204 ac_top_builddir=$ac_top_build_prefix
14206 case $srcdir in
14207 .) # We are building in place.
14208 ac_srcdir=.
14209 ac_top_srcdir=$ac_top_builddir_sub
14210 ac_abs_top_srcdir=$ac_pwd ;;
14211 [\\/]* | ?:[\\/]* ) # Absolute name.
14212 ac_srcdir=$srcdir$ac_dir_suffix;
14213 ac_top_srcdir=$srcdir
14214 ac_abs_top_srcdir=$srcdir ;;
14215 *) # Relative name.
14216 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14217 ac_top_srcdir=$ac_top_build_prefix$srcdir
14218 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14219 esac
14220 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14223 case $ac_mode in
14226 # CONFIG_FILE
14229 case $INSTALL in
14230 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14231 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14232 esac
14233 _ACEOF
14235 cat >>$CONFIG_STATUS <<\_ACEOF
14236 # If the template does not know about datarootdir, expand it.
14237 # FIXME: This hack should be removed a few years after 2.60.
14238 ac_datarootdir_hack=; ac_datarootdir_seen=
14240 case `sed -n '/datarootdir/ {
14244 /@datadir@/p
14245 /@docdir@/p
14246 /@infodir@/p
14247 /@localedir@/p
14248 /@mandir@/p
14249 ' $ac_file_inputs` in
14250 *datarootdir*) ac_datarootdir_seen=yes;;
14251 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14252 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14253 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14254 _ACEOF
14255 cat >>$CONFIG_STATUS <<_ACEOF
14256 ac_datarootdir_hack='
14257 s&@datadir@&$datadir&g
14258 s&@docdir@&$docdir&g
14259 s&@infodir@&$infodir&g
14260 s&@localedir@&$localedir&g
14261 s&@mandir@&$mandir&g
14262 s&\\\${datarootdir}&$datarootdir&g' ;;
14263 esac
14264 _ACEOF
14266 # Neutralize VPATH when `$srcdir' = `.'.
14267 # Shell code in configure.ac might set extrasub.
14268 # FIXME: do we really want to maintain this feature?
14269 cat >>$CONFIG_STATUS <<_ACEOF
14270 sed "$ac_vpsub
14271 $extrasub
14272 _ACEOF
14273 cat >>$CONFIG_STATUS <<\_ACEOF
14275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14276 s&@configure_input@&$configure_input&;t t
14277 s&@top_builddir@&$ac_top_builddir_sub&;t t
14278 s&@srcdir@&$ac_srcdir&;t t
14279 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14280 s&@top_srcdir@&$ac_top_srcdir&;t t
14281 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14282 s&@builddir@&$ac_builddir&;t t
14283 s&@abs_builddir@&$ac_abs_builddir&;t t
14284 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14285 s&@INSTALL@&$ac_INSTALL&;t t
14286 $ac_datarootdir_hack
14287 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
14289 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14290 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14291 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14292 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14293 which seems to be undefined. Please make sure it is defined." >&5
14294 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14295 which seems to be undefined. Please make sure it is defined." >&2;}
14297 rm -f "$tmp/stdin"
14298 case $ac_file in
14299 -) cat "$tmp/out"; rm -f "$tmp/out";;
14300 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14301 esac
14305 # CONFIG_HEADER
14307 _ACEOF
14309 # Transform confdefs.h into a sed script `conftest.defines', that
14310 # substitutes the proper values into config.h.in to produce config.h.
14311 rm -f conftest.defines conftest.tail
14312 # First, append a space to every undef/define line, to ease matching.
14313 echo 's/$/ /' >conftest.defines
14314 # Then, protect against being on the right side of a sed subst, or in
14315 # an unquoted here document, in config.status. If some macros were
14316 # called several times there might be several #defines for the same
14317 # symbol, which is useless. But do not sort them, since the last
14318 # AC_DEFINE must be honored.
14319 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14320 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14321 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14322 # PARAMS is the parameter list in the macro definition--in most cases, it's
14323 # just an empty string.
14324 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14325 ac_dB='\\)[ (].*,\\1define\\2'
14326 ac_dC=' '
14327 ac_dD=' ,'
14329 uniq confdefs.h |
14330 sed -n '
14331 t rset
14332 :rset
14333 s/^[ ]*#[ ]*define[ ][ ]*//
14334 t ok
14337 s/[\\&,]/\\&/g
14338 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14339 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14340 ' >>conftest.defines
14342 # Remove the space that was appended to ease matching.
14343 # Then replace #undef with comments. This is necessary, for
14344 # example, in the case of _POSIX_SOURCE, which is predefined and required
14345 # on some systems where configure will not decide to define it.
14346 # (The regexp can be short, since the line contains either #define or #undef.)
14347 echo 's/ $//
14348 s,^[ #]*u.*,/* & */,' >>conftest.defines
14350 # Break up conftest.defines:
14351 ac_max_sed_lines=50
14353 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14354 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14355 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14356 # et cetera.
14357 ac_in='$ac_file_inputs'
14358 ac_out='"$tmp/out1"'
14359 ac_nxt='"$tmp/out2"'
14361 while :
14363 # Write a here document:
14364 cat >>$CONFIG_STATUS <<_ACEOF
14365 # First, check the format of the line:
14366 cat >"\$tmp/defines.sed" <<\\CEOF
14367 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14368 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14370 :def
14371 _ACEOF
14372 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14373 echo 'CEOF
14374 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14375 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14376 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14377 grep . conftest.tail >/dev/null || break
14378 rm -f conftest.defines
14379 mv conftest.tail conftest.defines
14380 done
14381 rm -f conftest.defines conftest.tail
14383 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14384 cat >>$CONFIG_STATUS <<\_ACEOF
14385 if test x"$ac_file" != x-; then
14386 echo "/* $configure_input */" >"$tmp/config.h"
14387 cat "$ac_result" >>"$tmp/config.h"
14388 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14389 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14390 echo "$as_me: $ac_file is unchanged" >&6;}
14391 else
14392 rm -f $ac_file
14393 mv "$tmp/config.h" $ac_file
14395 else
14396 echo "/* $configure_input */"
14397 cat "$ac_result"
14399 rm -f "$tmp/out12"
14400 # Compute $ac_file's index in $config_headers.
14401 _am_stamp_count=1
14402 for _am_header in $config_headers :; do
14403 case $_am_header in
14404 $ac_file | $ac_file:* )
14405 break ;;
14407 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14408 esac
14409 done
14410 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
14411 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14412 X$ac_file : 'X\(//\)[^/]' \| \
14413 X$ac_file : 'X\(//\)$' \| \
14414 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
14415 echo X$ac_file |
14416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14417 s//\1/
14420 /^X\(\/\/\)[^/].*/{
14421 s//\1/
14424 /^X\(\/\/\)$/{
14425 s//\1/
14428 /^X\(\/\).*/{
14429 s//\1/
14432 s/.*/./; q'`/stamp-h$_am_stamp_count
14435 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14436 echo "$as_me: executing $ac_file commands" >&6;}
14438 esac
14441 case $ac_file$ac_mode in
14442 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14443 # Strip MF so we end up with the name of the file.
14444 mf=`echo "$mf" | sed -e 's/:.*$//'`
14445 # Check whether this is an Automake generated Makefile or not.
14446 # We used to match only the files named `Makefile.in', but
14447 # some people rename them; so instead we look at the file content.
14448 # Grep'ing the first line is not enough: some people post-process
14449 # each Makefile.in and add a new line on top of each file to say so.
14450 # So let's grep whole file.
14451 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14452 dirpart=`$as_dirname -- "$mf" ||
14453 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14454 X"$mf" : 'X\(//\)[^/]' \| \
14455 X"$mf" : 'X\(//\)$' \| \
14456 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14457 echo X"$mf" |
14458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14459 s//\1/
14462 /^X\(\/\/\)[^/].*/{
14463 s//\1/
14466 /^X\(\/\/\)$/{
14467 s//\1/
14470 /^X\(\/\).*/{
14471 s//\1/
14474 s/.*/./; q'`
14475 else
14476 continue
14478 # Extract the definition of DEPDIR, am__include, and am__quote
14479 # from the Makefile without running `make'.
14480 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14481 test -z "$DEPDIR" && continue
14482 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14483 test -z "am__include" && continue
14484 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14485 # When using ansi2knr, U may be empty or an underscore; expand it
14486 U=`sed -n 's/^U = //p' < "$mf"`
14487 # Find all dependency output files, they are included files with
14488 # $(DEPDIR) in their names. We invoke sed twice because it is the
14489 # simplest approach to changing $(DEPDIR) to its actual value in the
14490 # expansion.
14491 for file in `sed -n "
14492 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14493 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14494 # Make sure the directory exists.
14495 test -f "$dirpart/$file" && continue
14496 fdir=`$as_dirname -- "$file" ||
14497 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14498 X"$file" : 'X\(//\)[^/]' \| \
14499 X"$file" : 'X\(//\)$' \| \
14500 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14501 echo X"$file" |
14502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14503 s//\1/
14506 /^X\(\/\/\)[^/].*/{
14507 s//\1/
14510 /^X\(\/\/\)$/{
14511 s//\1/
14514 /^X\(\/\).*/{
14515 s//\1/
14518 s/.*/./; q'`
14519 { as_dir=$dirpart/$fdir
14520 case $as_dir in #(
14521 -*) as_dir=./$as_dir;;
14522 esac
14523 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14524 as_dirs=
14525 while :; do
14526 case $as_dir in #(
14527 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14528 *) as_qdir=$as_dir;;
14529 esac
14530 as_dirs="'$as_qdir' $as_dirs"
14531 as_dir=`$as_dirname -- "$as_dir" ||
14532 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14533 X"$as_dir" : 'X\(//\)[^/]' \| \
14534 X"$as_dir" : 'X\(//\)$' \| \
14535 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14536 echo X"$as_dir" |
14537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14538 s//\1/
14541 /^X\(\/\/\)[^/].*/{
14542 s//\1/
14545 /^X\(\/\/\)$/{
14546 s//\1/
14549 /^X\(\/\).*/{
14550 s//\1/
14553 s/.*/./; q'`
14554 test -d "$as_dir" && break
14555 done
14556 test -z "$as_dirs" || eval "mkdir $as_dirs"
14557 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14558 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14559 { (exit 1); exit 1; }; }; }
14560 # echo "creating $dirpart/$file"
14561 echo '# dummy' > "$dirpart/$file"
14562 done
14563 done
14565 "libtool":C)
14567 # See if we are running on zsh, and set the options which allow our
14568 # commands through without removal of \ escapes.
14569 if test -n "${ZSH_VERSION+set}" ; then
14570 setopt NO_GLOB_SUBST
14573 cfgfile="${ofile}T"
14574 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14575 $RM "$cfgfile"
14577 cat <<_LT_EOF >> "$cfgfile"
14578 #! $SHELL
14580 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14581 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14582 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14583 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14585 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14586 # 2006, 2007, 2008 Free Software Foundation, Inc.
14587 # Written by Gordon Matzigkeit, 1996
14589 # This file is part of GNU Libtool.
14591 # GNU Libtool is free software; you can redistribute it and/or
14592 # modify it under the terms of the GNU General Public License as
14593 # published by the Free Software Foundation; either version 2 of
14594 # the License, or (at your option) any later version.
14596 # As a special exception to the GNU General Public License,
14597 # if you distribute this file as part of a program or library that
14598 # is built using GNU Libtool, you may include this file under the
14599 # same distribution terms that you use for the rest of that program.
14601 # GNU Libtool is distributed in the hope that it will be useful,
14602 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14603 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14604 # GNU General Public License for more details.
14606 # You should have received a copy of the GNU General Public License
14607 # along with GNU Libtool; see the file COPYING. If not, a copy
14608 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14609 # obtained by writing to the Free Software Foundation, Inc.,
14610 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14613 # The names of the tagged configurations supported by this script.
14614 available_tags=""
14616 # ### BEGIN LIBTOOL CONFIG
14618 # Whether or not to build static libraries.
14619 build_old_libs=$enable_static
14621 # Which release of libtool.m4 was used?
14622 macro_version=$macro_version
14623 macro_revision=$macro_revision
14625 # Whether or not to build shared libraries.
14626 build_libtool_libs=$enable_shared
14628 # What type of objects to build.
14629 pic_mode=$pic_mode
14631 # Whether or not to optimize for fast installation.
14632 fast_install=$enable_fast_install
14634 # The host system.
14635 host_alias=$host_alias
14636 host=$host
14637 host_os=$host_os
14639 # The build system.
14640 build_alias=$build_alias
14641 build=$build
14642 build_os=$build_os
14644 # A sed program that does not truncate output.
14645 SED=$lt_SED
14647 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14648 Xsed="\$SED -e 1s/^X//"
14650 # A grep program that handles long lines.
14651 GREP=$lt_GREP
14653 # An ERE matcher.
14654 EGREP=$lt_EGREP
14656 # A literal string matcher.
14657 FGREP=$lt_FGREP
14659 # A BSD- or MS-compatible name lister.
14660 NM=$lt_NM
14662 # Whether we need soft or hard links.
14663 LN_S=$lt_LN_S
14665 # What is the maximum length of a command?
14666 max_cmd_len=$max_cmd_len
14668 # Object file suffix (normally "o").
14669 objext=$ac_objext
14671 # Executable file suffix (normally "").
14672 exeext=$exeext
14674 # whether the shell understands "unset".
14675 lt_unset=$lt_unset
14677 # turn spaces into newlines.
14678 SP2NL=$lt_lt_SP2NL
14680 # turn newlines into spaces.
14681 NL2SP=$lt_lt_NL2SP
14683 # How to create reloadable object files.
14684 reload_flag=$lt_reload_flag
14685 reload_cmds=$lt_reload_cmds
14687 # Method to check whether dependent libraries are shared objects.
14688 deplibs_check_method=$lt_deplibs_check_method
14690 # Command to use when deplibs_check_method == "file_magic".
14691 file_magic_cmd=$lt_file_magic_cmd
14693 # The archiver.
14694 AR=$lt_AR
14695 AR_FLAGS=$lt_AR_FLAGS
14697 # A symbol stripping program.
14698 STRIP=$lt_STRIP
14700 # Commands used to install an old-style archive.
14701 RANLIB=$lt_RANLIB
14702 old_postinstall_cmds=$lt_old_postinstall_cmds
14703 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14705 # A C compiler.
14706 LTCC=$lt_CC
14708 # LTCC compiler flags.
14709 LTCFLAGS=$lt_CFLAGS
14711 # Take the output of nm and produce a listing of raw symbols and C names.
14712 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14714 # Transform the output of nm in a proper C declaration.
14715 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14717 # Transform the output of nm in a C name address pair.
14718 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14720 # Transform the output of nm in a C name address pair when lib prefix is needed.
14721 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14723 # The name of the directory that contains temporary libtool files.
14724 objdir=$objdir
14726 # Shell to use when invoking shell scripts.
14727 SHELL=$lt_SHELL
14729 # An echo program that does not interpret backslashes.
14730 ECHO=$lt_ECHO
14732 # Used to examine libraries when file_magic_cmd begins with "file".
14733 MAGIC_CMD=$MAGIC_CMD
14735 # Must we lock files when doing compilation?
14736 need_locks=$lt_need_locks
14738 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14739 DSYMUTIL=$lt_DSYMUTIL
14741 # Tool to change global to local symbols on Mac OS X.
14742 NMEDIT=$lt_NMEDIT
14744 # Tool to manipulate fat objects and archives on Mac OS X.
14745 LIPO=$lt_LIPO
14747 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14748 OTOOL=$lt_OTOOL
14750 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14751 OTOOL64=$lt_OTOOL64
14753 # Old archive suffix (normally "a").
14754 libext=$libext
14756 # Shared library suffix (normally ".so").
14757 shrext_cmds=$lt_shrext_cmds
14759 # The commands to extract the exported symbol list from a shared archive.
14760 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14762 # Variables whose values should be saved in libtool wrapper scripts and
14763 # restored at link time.
14764 variables_saved_for_relink=$lt_variables_saved_for_relink
14766 # Do we need the "lib" prefix for modules?
14767 need_lib_prefix=$need_lib_prefix
14769 # Do we need a version for libraries?
14770 need_version=$need_version
14772 # Library versioning type.
14773 version_type=$version_type
14775 # Shared library runtime path variable.
14776 runpath_var=$runpath_var
14778 # Shared library path variable.
14779 shlibpath_var=$shlibpath_var
14781 # Is shlibpath searched before the hard-coded library search path?
14782 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14784 # Format of library name prefix.
14785 libname_spec=$lt_libname_spec
14787 # List of archive names. First name is the real one, the rest are links.
14788 # The last name is the one that the linker finds with -lNAME
14789 library_names_spec=$lt_library_names_spec
14791 # The coded name of the library, if different from the real name.
14792 soname_spec=$lt_soname_spec
14794 # Command to use after installation of a shared archive.
14795 postinstall_cmds=$lt_postinstall_cmds
14797 # Command to use after uninstallation of a shared archive.
14798 postuninstall_cmds=$lt_postuninstall_cmds
14800 # Commands used to finish a libtool library installation in a directory.
14801 finish_cmds=$lt_finish_cmds
14803 # As "finish_cmds", except a single script fragment to be evaled but
14804 # not shown.
14805 finish_eval=$lt_finish_eval
14807 # Whether we should hardcode library paths into libraries.
14808 hardcode_into_libs=$hardcode_into_libs
14810 # Compile-time system search path for libraries.
14811 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14813 # Run-time system search path for libraries.
14814 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14816 # Whether dlopen is supported.
14817 dlopen_support=$enable_dlopen
14819 # Whether dlopen of programs is supported.
14820 dlopen_self=$enable_dlopen_self
14822 # Whether dlopen of statically linked programs is supported.
14823 dlopen_self_static=$enable_dlopen_self_static
14825 # Commands to strip libraries.
14826 old_striplib=$lt_old_striplib
14827 striplib=$lt_striplib
14830 # The linker used to build libraries.
14831 LD=$lt_LD
14833 # Commands used to build an old-style archive.
14834 old_archive_cmds=$lt_old_archive_cmds
14836 # A language specific compiler.
14837 CC=$lt_compiler
14839 # Is the compiler the GNU compiler?
14840 with_gcc=$GCC
14842 # Compiler flag to turn off builtin functions.
14843 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14845 # How to pass a linker flag through the compiler.
14846 wl=$lt_lt_prog_compiler_wl
14848 # Additional compiler flags for building library objects.
14849 pic_flag=$lt_lt_prog_compiler_pic
14851 # Compiler flag to prevent dynamic linking.
14852 link_static_flag=$lt_lt_prog_compiler_static
14854 # Does compiler simultaneously support -c and -o options?
14855 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14857 # Whether or not to add -lc for building shared libraries.
14858 build_libtool_need_lc=$archive_cmds_need_lc
14860 # Whether or not to disallow shared libs when runtime libs are static.
14861 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14863 # Compiler flag to allow reflexive dlopens.
14864 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14866 # Compiler flag to generate shared objects directly from archives.
14867 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14869 # Whether the compiler copes with passing no objects directly.
14870 compiler_needs_object=$lt_compiler_needs_object
14872 # Create an old-style archive from a shared archive.
14873 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14875 # Create a temporary old-style archive to link instead of a shared archive.
14876 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14878 # Commands used to build a shared archive.
14879 archive_cmds=$lt_archive_cmds
14880 archive_expsym_cmds=$lt_archive_expsym_cmds
14882 # Commands used to build a loadable module if different from building
14883 # a shared archive.
14884 module_cmds=$lt_module_cmds
14885 module_expsym_cmds=$lt_module_expsym_cmds
14887 # Whether we are building with GNU ld or not.
14888 with_gnu_ld=$lt_with_gnu_ld
14890 # Flag that allows shared libraries with undefined symbols to be built.
14891 allow_undefined_flag=$lt_allow_undefined_flag
14893 # Flag that enforces no undefined symbols.
14894 no_undefined_flag=$lt_no_undefined_flag
14896 # Flag to hardcode \$libdir into a binary during linking.
14897 # This must work even if \$libdir does not exist
14898 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14900 # If ld is used when linking, flag to hardcode \$libdir into a binary
14901 # during linking. This must work even if \$libdir does not exist.
14902 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14904 # Whether we need a single "-rpath" flag with a separated argument.
14905 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14907 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14908 # DIR into the resulting binary.
14909 hardcode_direct=$hardcode_direct
14911 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14912 # DIR into the resulting binary and the resulting library dependency is
14913 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14914 # library is relocated.
14915 hardcode_direct_absolute=$hardcode_direct_absolute
14917 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14918 # into the resulting binary.
14919 hardcode_minus_L=$hardcode_minus_L
14921 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14922 # into the resulting binary.
14923 hardcode_shlibpath_var=$hardcode_shlibpath_var
14925 # Set to "yes" if building a shared library automatically hardcodes DIR
14926 # into the library and all subsequent libraries and executables linked
14927 # against it.
14928 hardcode_automatic=$hardcode_automatic
14930 # Set to yes if linker adds runtime paths of dependent libraries
14931 # to runtime path list.
14932 inherit_rpath=$inherit_rpath
14934 # Whether libtool must link a program against all its dependency libraries.
14935 link_all_deplibs=$link_all_deplibs
14937 # Fix the shell variable \$srcfile for the compiler.
14938 fix_srcfile_path=$lt_fix_srcfile_path
14940 # Set to "yes" if exported symbols are required.
14941 always_export_symbols=$always_export_symbols
14943 # The commands to list exported symbols.
14944 export_symbols_cmds=$lt_export_symbols_cmds
14946 # Symbols that should not be listed in the preloaded symbols.
14947 exclude_expsyms=$lt_exclude_expsyms
14949 # Symbols that must always be exported.
14950 include_expsyms=$lt_include_expsyms
14952 # Commands necessary for linking programs (against libraries) with templates.
14953 prelink_cmds=$lt_prelink_cmds
14955 # Specify filename containing input files.
14956 file_list_spec=$lt_file_list_spec
14958 # How to hardcode a shared library path into an executable.
14959 hardcode_action=$hardcode_action
14961 # ### END LIBTOOL CONFIG
14963 _LT_EOF
14965 case $host_os in
14966 aix3*)
14967 cat <<\_LT_EOF >> "$cfgfile"
14968 # AIX sometimes has problems with the GCC collect2 program. For some
14969 # reason, if we set the COLLECT_NAMES environment variable, the problems
14970 # vanish in a puff of smoke.
14971 if test "X${COLLECT_NAMES+set}" != Xset; then
14972 COLLECT_NAMES=
14973 export COLLECT_NAMES
14975 _LT_EOF
14977 esac
14980 ltmain="$ac_aux_dir/ltmain.sh"
14983 # We use sed instead of cat because bash on DJGPP gets confused if
14984 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14985 # text mode, it properly converts lines to CR/LF. This bash problem
14986 # is reportedly fixed, but why not run on old versions too?
14987 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14988 || (rm -f "$cfgfile"; exit 1)
14990 case $xsi_shell in
14991 yes)
14992 cat << \_LT_EOF >> "$cfgfile"
14994 # func_dirname file append nondir_replacement
14995 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14996 # otherwise set result to NONDIR_REPLACEMENT.
14997 func_dirname ()
14999 case ${1} in
15000 */*) func_dirname_result="${1%/*}${2}" ;;
15001 * ) func_dirname_result="${3}" ;;
15002 esac
15005 # func_basename file
15006 func_basename ()
15008 func_basename_result="${1##*/}"
15011 # func_dirname_and_basename file append nondir_replacement
15012 # perform func_basename and func_dirname in a single function
15013 # call:
15014 # dirname: Compute the dirname of FILE. If nonempty,
15015 # add APPEND to the result, otherwise set result
15016 # to NONDIR_REPLACEMENT.
15017 # value returned in "$func_dirname_result"
15018 # basename: Compute filename of FILE.
15019 # value retuned in "$func_basename_result"
15020 # Implementation must be kept synchronized with func_dirname
15021 # and func_basename. For efficiency, we do not delegate to
15022 # those functions but instead duplicate the functionality here.
15023 func_dirname_and_basename ()
15025 case ${1} in
15026 */*) func_dirname_result="${1%/*}${2}" ;;
15027 * ) func_dirname_result="${3}" ;;
15028 esac
15029 func_basename_result="${1##*/}"
15032 # func_stripname prefix suffix name
15033 # strip PREFIX and SUFFIX off of NAME.
15034 # PREFIX and SUFFIX must not contain globbing or regex special
15035 # characters, hashes, percent signs, but SUFFIX may contain a leading
15036 # dot (in which case that matches only a dot).
15037 func_stripname ()
15039 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15040 # positional parameters, so assign one to ordinary parameter first.
15041 func_stripname_result=${3}
15042 func_stripname_result=${func_stripname_result#"${1}"}
15043 func_stripname_result=${func_stripname_result%"${2}"}
15046 # func_opt_split
15047 func_opt_split ()
15049 func_opt_split_opt=${1%%=*}
15050 func_opt_split_arg=${1#*=}
15053 # func_lo2o object
15054 func_lo2o ()
15056 case ${1} in
15057 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15058 *) func_lo2o_result=${1} ;;
15059 esac
15062 # func_xform libobj-or-source
15063 func_xform ()
15065 func_xform_result=${1%.*}.lo
15068 # func_arith arithmetic-term...
15069 func_arith ()
15071 func_arith_result=$(( $* ))
15074 # func_len string
15075 # STRING may not start with a hyphen.
15076 func_len ()
15078 func_len_result=${#1}
15081 _LT_EOF
15083 *) # Bourne compatible functions.
15084 cat << \_LT_EOF >> "$cfgfile"
15086 # func_dirname file append nondir_replacement
15087 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15088 # otherwise set result to NONDIR_REPLACEMENT.
15089 func_dirname ()
15091 # Extract subdirectory from the argument.
15092 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15093 if test "X$func_dirname_result" = "X${1}"; then
15094 func_dirname_result="${3}"
15095 else
15096 func_dirname_result="$func_dirname_result${2}"
15100 # func_basename file
15101 func_basename ()
15103 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15107 # func_stripname prefix suffix name
15108 # strip PREFIX and SUFFIX off of NAME.
15109 # PREFIX and SUFFIX must not contain globbing or regex special
15110 # characters, hashes, percent signs, but SUFFIX may contain a leading
15111 # dot (in which case that matches only a dot).
15112 # func_strip_suffix prefix name
15113 func_stripname ()
15115 case ${2} in
15116 .*) func_stripname_result=`$ECHO "X${3}" \
15117 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15118 *) func_stripname_result=`$ECHO "X${3}" \
15119 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15120 esac
15123 # sed scripts:
15124 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15125 my_sed_long_arg='1s/^-[^=]*=//'
15127 # func_opt_split
15128 func_opt_split ()
15130 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15131 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15134 # func_lo2o object
15135 func_lo2o ()
15137 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15140 # func_xform libobj-or-source
15141 func_xform ()
15143 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15146 # func_arith arithmetic-term...
15147 func_arith ()
15149 func_arith_result=`expr "$@"`
15152 # func_len string
15153 # STRING may not start with a hyphen.
15154 func_len ()
15156 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15159 _LT_EOF
15160 esac
15162 case $lt_shell_append in
15163 yes)
15164 cat << \_LT_EOF >> "$cfgfile"
15166 # func_append var value
15167 # Append VALUE to the end of shell variable VAR.
15168 func_append ()
15170 eval "$1+=\$2"
15172 _LT_EOF
15175 cat << \_LT_EOF >> "$cfgfile"
15177 # func_append var value
15178 # Append VALUE to the end of shell variable VAR.
15179 func_append ()
15181 eval "$1=\$$1\$2"
15184 _LT_EOF
15186 esac
15189 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15190 || (rm -f "$cfgfile"; exit 1)
15192 mv -f "$cfgfile" "$ofile" ||
15193 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15194 chmod +x "$ofile"
15198 esac
15199 done # for ac_tag
15202 { (exit 0); exit 0; }
15203 _ACEOF
15204 chmod +x $CONFIG_STATUS
15205 ac_clean_files=$ac_clean_files_save
15208 # configure is writing to config.log, and then calls config.status.
15209 # config.status does its own redirection, appending to config.log.
15210 # Unfortunately, on DOS this fails, as config.log is still kept open
15211 # by configure, so config.status won't be able to write to it; its
15212 # output is simply discarded. So we exec the FD to /dev/null,
15213 # effectively closing config.log, so it can be properly (re)opened and
15214 # appended to by config.status. When coming back to configure, we
15215 # need to make the FD available again.
15216 if test "$no_create" != yes; then
15217 ac_cs_success=:
15218 ac_config_status_args=
15219 test "$silent" = yes &&
15220 ac_config_status_args="$ac_config_status_args --quiet"
15221 exec 5>/dev/null
15222 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15223 exec 5>>config.log
15224 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15225 # would make configure fail if this is the last instruction.
15226 $ac_cs_success || { (exit 1); exit 1; }