3626
# Find a good install program. We prefer a C program (faster),
3627
# so one script is as good as another. But avoid the broken or
3628
# incompatible versions:
3629
# SysV /etc/install, /usr/sbin/install
3630
# SunOS /usr/etc/install
3631
# IRIX /sbin/install
3633
# AmigaOS /C/install, which installs bootblocks on floppy discs
3634
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3635
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3636
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3637
# OS/2's system install, which has a completely different semantic
3638
# ./install, which can be erroneously created by make from ./install.sh.
3639
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3640
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3641
if test -z "$INSTALL"; then
3642
if test "${ac_cv_path_install+set}" = set; then
3643
echo $ECHO_N "(cached) $ECHO_C" >&6
3645
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649
test -z "$as_dir" && as_dir=.
3650
# Account for people who put trailing slashes in PATH elements.
3652
./ | .// | /cC/* | \
3653
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3654
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3657
# OSF1 and SCO ODT 3.0 have their own names for install.
3658
# Don't use installbsd from OSF since it installs stuff as root
3660
for ac_prog in ginstall scoinst install; do
3661
for ac_exec_ext in '' $ac_executable_extensions; do
3662
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3663
if test $ac_prog = install &&
3664
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3665
# AIX install. It has an incompatible calling convention.
3667
elif test $ac_prog = install &&
3668
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3669
# program-specific install script used by HP pwplus--don't use.
3672
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3685
if test "${ac_cv_path_install+set}" = set; then
3686
INSTALL=$ac_cv_path_install
3688
# As a last resort, use the slow shell script. Don't cache a
3689
# value for INSTALL within a source directory, because that will
3690
# break other packages using the cache if that directory is
3691
# removed, or if the value is a relative name.
3692
INSTALL=$ac_install_sh
3695
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3696
echo "${ECHO_T}$INSTALL" >&6; }
3698
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3699
# It thinks the first close brace ends the variable substitution.
3700
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3702
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3704
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3706
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3707
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3708
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3709
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3710
echo $ECHO_N "(cached) $ECHO_C" >&6
3712
cat >conftest.make <<\_ACEOF
3715
@echo '@@@%%%=$(MAKE)=@@@%%%'
3717
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3718
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3720
eval ac_cv_prog_make_${ac_make}_set=yes;;
3722
eval ac_cv_prog_make_${ac_make}_set=no;;
3726
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3727
{ echo "$as_me:$LINENO: result: yes" >&5
3728
echo "${ECHO_T}yes" >&6; }
3731
{ echo "$as_me:$LINENO: result: no" >&5
3732
echo "${ECHO_T}no" >&6; }
3733
SET_MAKE="MAKE=${MAKE-make}"
3736
if test -n "$ac_tool_prefix"; then
3737
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3738
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3739
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3740
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3741
if test "${ac_cv_prog_RANLIB+set}" = set; then
3742
echo $ECHO_N "(cached) $ECHO_C" >&6
3744
if test -n "$RANLIB"; then
3745
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3747
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751
test -z "$as_dir" && as_dir=.
3752
for ac_exec_ext in '' $ac_executable_extensions; do
3753
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3754
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3755
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3764
RANLIB=$ac_cv_prog_RANLIB
3765
if test -n "$RANLIB"; then
3766
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
3767
echo "${ECHO_T}$RANLIB" >&6; }
3769
{ echo "$as_me:$LINENO: result: no" >&5
3770
echo "${ECHO_T}no" >&6; }
3775
if test -z "$ac_cv_prog_RANLIB"; then
3776
ac_ct_RANLIB=$RANLIB
3777
# Extract the first word of "ranlib", so it can be a program name with args.
3778
set dummy ranlib; ac_word=$2
3779
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3780
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3781
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3782
echo $ECHO_N "(cached) $ECHO_C" >&6
3784
if test -n "$ac_ct_RANLIB"; then
3785
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3787
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791
test -z "$as_dir" && as_dir=.
3792
for ac_exec_ext in '' $ac_executable_extensions; do
3793
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3794
ac_cv_prog_ac_ct_RANLIB="ranlib"
3795
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3805
if test -n "$ac_ct_RANLIB"; then
3806
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3807
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3809
{ echo "$as_me:$LINENO: result: no" >&5
3810
echo "${ECHO_T}no" >&6; }
3813
if test "x$ac_ct_RANLIB" = x; then
3816
case $cross_compiling:$ac_tool_warned in
3818
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3819
whose name does not start with the host triplet. If you think this
3820
configuration is useful to you, please write to autoconf@gnu.org." >&5
3821
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3822
whose name does not start with the host triplet. If you think this
3823
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3824
ac_tool_warned=yes ;;
3826
RANLIB=$ac_ct_RANLIB
3829
RANLIB="$ac_cv_prog_RANLIB"
3833
#==================================================================
3834
# OK, these five macros prevent my personal path from appearing
3835
# in the default Makefile, and actually should make it work to
3836
# rebuilt itself even if somebody completely blows off running
3837
# ./autogen.sh. And it ALMOST WORKS
3838
#==================================================================
3839
ACLOCAL="${SHELL} ./missing --run aclocal"
3840
ACTAR="${SHELL} ./missing --run tar"
3841
AUTOCONF="${SHELL} ./missing --run autoconf;echo \"Run ./configure\";exit"
3842
AUTOHEADER="${SHELL} ./missing --run autoheader"
3843
AUTOMAKE="${SHELL} ./missing --run automake --add-missing --copy --gnu"
3851
#==================================================================
3852
# Disable unnecessary libtool tests for c++,fortran,java
3853
#==================================================================
3857
# Check whether --enable-shared was given.
3858
if test "${enable_shared+set}" = set; then
3859
enableval=$enable_shared; p=${PACKAGE-default}
3861
yes) enable_shared=yes ;;
3862
no) enable_shared=no ;;
3865
# Look at the argument we got. We use all the common list separators.
3866
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3867
for pkg in $enableval; do
3869
if test "X$pkg" = "X$p"; then
3881
# Check whether --enable-static was given.
3882
if test "${enable_static+set}" = set; then
3883
enableval=$enable_static; p=${PACKAGE-default}
3885
yes) enable_static=yes ;;
3886
no) enable_static=no ;;
3889
# Look at the argument we got. We use all the common list separators.
3890
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3891
for pkg in $enableval; do
3893
if test "X$pkg" = "X$p"; then
3905
# Check whether --enable-fast-install was given.
3906
if test "${enable_fast_install+set}" = set; then
3907
enableval=$enable_fast_install; p=${PACKAGE-default}
3909
yes) enable_fast_install=yes ;;
3910
no) enable_fast_install=no ;;
3912
enable_fast_install=no
3913
# Look at the argument we got. We use all the common list separators.
3914
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3915
for pkg in $enableval; do
3917
if test "X$pkg" = "X$p"; then
3918
enable_fast_install=yes
3925
enable_fast_install=yes
3623
3929
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3624
3930
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3625
if test "${ac_cv_path_SED+set}" = set; then
3626
echo $ECHO_N "(cached) $ECHO_C" >&6
3628
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3629
for ac_i in 1 2 3 4 5 6 7; do
3630
ac_script="$ac_script$as_nl$ac_script"
3632
echo "$ac_script" | sed 99q >conftest.sed
3633
$as_unset ac_script || ac_script=
3634
# Extract the first word of "sed gsed" to use in msg output
3635
if test -z "$SED"; then
3636
set dummy sed gsed; ac_prog_name=$2
3637
if test "${ac_cv_path_SED+set}" = set; then
3638
echo $ECHO_N "(cached) $ECHO_C" >&6
3640
ac_path_SED_found=false
3641
# Loop through the user's path and test for each of PROGNAME-LIST
3931
if test "${lt_cv_path_SED+set}" = set; then
3932
echo $ECHO_N "(cached) $ECHO_C" >&6
3934
# Loop through the user's path and test for sed and gsed.
3935
# Then use that list of sed's as ones to test for truncation.
3642
3936
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643
3937
for as_dir in $PATH
3645
3939
IFS=$as_save_IFS
3646
3940
test -z "$as_dir" && as_dir=.
3647
for ac_prog in sed gsed; do
3648
for ac_exec_ext in '' $ac_executable_extensions; do
3649
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3650
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3651
# Check for GNU ac_path_SED and select it if it is found.
3652
# Check for GNU $ac_path_SED
3653
case `"$ac_path_SED" --version 2>&1` in
3655
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3658
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3661
cat "conftest.in" "conftest.in" >"conftest.tmp"
3662
mv "conftest.tmp" "conftest.in"
3663
cp "conftest.in" "conftest.nl"
3664
echo '' >> "conftest.nl"
3665
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3666
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3667
ac_count=`expr $ac_count + 1`
3668
if test $ac_count -gt ${ac_path_SED_max-0}; then
3669
# Best one so far, save it but keep looking for a better one
3670
ac_cv_path_SED="$ac_path_SED"
3671
ac_path_SED_max=$ac_count
3941
for lt_ac_prog in sed gsed; do
3942
for ac_exec_ext in '' $ac_executable_extensions; do
3943
if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3944
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3952
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3953
# along with /bin/sed that truncates output.
3954
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3955
test ! -f $lt_ac_sed && continue
3956
cat /dev/null > conftest.in
3958
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3959
# Check for GNU sed and select it if it is found.
3960
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3961
lt_cv_path_SED=$lt_ac_sed
3965
cat conftest.in conftest.in >conftest.tmp
3966
mv conftest.tmp conftest.in
3967
cp conftest.in conftest.nl
3969
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3970
cmp -s conftest.out conftest.nl || break
3971
# 10000 chars as input seems more than enough
3972
test $lt_ac_count -gt 10 && break
3973
lt_ac_count=`expr $lt_ac_count + 1`
3974
if test $lt_ac_count -gt $lt_ac_max; then
3975
lt_ac_max=$lt_ac_count
3976
lt_cv_path_SED=$lt_ac_sed
3673
# 10*(2^10) chars as input seems more than enough
3674
test $ac_count -gt 10 && break
3676
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3680
$ac_path_SED_found && break 3
3690
SED="$ac_cv_path_SED"
3691
if test -z "$SED"; then
3692
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3693
echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3694
{ (exit 1); exit 1; }; }
3702
{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3703
echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3704
SED="$ac_cv_path_SED"
3707
test -z "$SED" && SED=sed
3708
Xsed="$SED -e 1s/^X//"
3985
{ echo "$as_me:$LINENO: result: $SED" >&5
3986
echo "${ECHO_T}$SED" >&6; }
3720
3988
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3721
3989
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4551
# Check whether --enable-libtool-lock was given.
4552
if test "${enable_libtool_lock+set}" = set; then
4553
enableval=$enable_libtool_lock;
4556
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4558
# Some flags need to be propagated to the compiler or linker for good
4562
# Find out which ABI we are using.
4563
echo 'int i;' > conftest.$ac_ext
4564
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4565
(eval $ac_compile) 2>&5
4567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568
(exit $ac_status); }; then
4569
case `/usr/bin/file conftest.$ac_objext` in
4581
# Find out which ABI we are using.
4582
echo '#line 4582 "configure"' > conftest.$ac_ext
4583
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584
(eval $ac_compile) 2>&5
4586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587
(exit $ac_status); }; then
4588
if test "$lt_cv_prog_gnu_ld" = yes; then
4589
case `/usr/bin/file conftest.$ac_objext` in
4591
LD="${LD-ld} -melf32bsmip"
4594
LD="${LD-ld} -melf32bmipn32"
4597
LD="${LD-ld} -melf64bmip"
4601
case `/usr/bin/file conftest.$ac_objext` in
4617
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4618
s390*-*linux*|sparc*-*linux*)
4619
# Find out which ABI we are using.
4620
echo 'int i;' > conftest.$ac_ext
4621
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4622
(eval $ac_compile) 2>&5
4624
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625
(exit $ac_status); }; then
4626
case `/usr/bin/file conftest.o` in
4629
x86_64-*kfreebsd*-gnu)
4630
LD="${LD-ld} -m elf_i386_fbsd"
4633
LD="${LD-ld} -m elf_i386"
4635
ppc64-*linux*|powerpc64-*linux*)
4636
LD="${LD-ld} -m elf32ppclinux"
4639
LD="${LD-ld} -m elf_s390"
4642
LD="${LD-ld} -m elf32_sparc"
4648
x86_64-*kfreebsd*-gnu)
4649
LD="${LD-ld} -m elf_x86_64_fbsd"
4652
LD="${LD-ld} -m elf_x86_64"
4654
ppc*-*linux*|powerpc*-*linux*)
4655
LD="${LD-ld} -m elf64ppc"
4658
LD="${LD-ld} -m elf64_s390"
4661
LD="${LD-ld} -m elf64_sparc"
4671
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4672
SAVE_CFLAGS="$CFLAGS"
4673
CFLAGS="$CFLAGS -belf"
4674
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4675
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4676
if test "${lt_cv_cc_needs_belf+set}" = set; then
4677
echo $ECHO_N "(cached) $ECHO_C" >&6
4680
ac_cpp='$CPP $CPPFLAGS'
4681
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4685
cat >conftest.$ac_ext <<_ACEOF
4688
cat confdefs.h >>conftest.$ac_ext
4689
cat >>conftest.$ac_ext <<_ACEOF
4690
/* end confdefs.h. */
4700
rm -f conftest.$ac_objext conftest$ac_exeext
4701
if { (ac_try="$ac_link"
4703
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704
*) ac_try_echo=$ac_try;;
4706
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707
(eval "$ac_link") 2>conftest.er1
4709
grep -v '^ *+' conftest.er1 >conftest.err
4711
cat conftest.err >&5
4712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713
(exit $ac_status); } && {
4714
test -z "$ac_c_werror_flag" ||
4715
test ! -s conftest.err
4716
} && test -s conftest$ac_exeext &&
4717
$as_test_x conftest$ac_exeext; then
4718
lt_cv_cc_needs_belf=yes
4720
echo "$as_me: failed program was:" >&5
4721
sed 's/^/| /' conftest.$ac_ext >&5
4723
lt_cv_cc_needs_belf=no
4726
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4727
conftest$ac_exeext conftest.$ac_ext
4729
ac_cpp='$CPP $CPPFLAGS'
4730
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4731
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4735
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4736
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4737
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4738
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4739
CFLAGS="$SAVE_CFLAGS"
4743
# Find out which ABI we are using.
4744
echo 'int i;' > conftest.$ac_ext
4745
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4746
(eval $ac_compile) 2>&5
4748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749
(exit $ac_status); }; then
4750
case `/usr/bin/file conftest.o` in
4752
case $lt_cv_prog_gnu_ld in
4753
yes*) LD="${LD-ld} -m elf64_sparc" ;;
4755
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4769
need_locks="$enable_libtool_lock"
4773
ac_cpp='$CPP $CPPFLAGS'
4774
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4775
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4776
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4777
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4778
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4779
# On Suns, sometimes $CPP names a directory.
4780
if test -n "$CPP" && test -d "$CPP"; then
4783
if test -z "$CPP"; then
4784
if test "${ac_cv_prog_CPP+set}" = set; then
4785
echo $ECHO_N "(cached) $ECHO_C" >&6
4787
# Double quotes because CPP needs to be expanded
4788
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4791
for ac_c_preproc_warn_flag in '' yes
4793
# Use a header file that comes with gcc, so configuring glibc
4794
# with a fresh cross-compiler works.
4795
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4796
# <limits.h> exists even on freestanding compilers.
4797
# On the NeXT, cc -E runs the code through the compiler's parser,
4798
# not just through cpp. "Syntax error" is here to catch this case.
4799
cat >conftest.$ac_ext <<_ACEOF
4802
cat confdefs.h >>conftest.$ac_ext
4803
cat >>conftest.$ac_ext <<_ACEOF
4804
/* end confdefs.h. */
4806
# include <limits.h>
4808
# include <assert.h>
4812
if { (ac_try="$ac_cpp conftest.$ac_ext"
4814
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815
*) ac_try_echo=$ac_try;;
4817
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4818
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4820
grep -v '^ *+' conftest.er1 >conftest.err
4822
cat conftest.err >&5
4823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824
(exit $ac_status); } >/dev/null && {
4825
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4826
test ! -s conftest.err
4830
echo "$as_me: failed program was:" >&5
4831
sed 's/^/| /' conftest.$ac_ext >&5
4833
# Broken: fails on valid input.
4837
rm -f conftest.err conftest.$ac_ext
4839
# OK, works on sane cases. Now check whether nonexistent headers
4840
# can be detected and how.
4841
cat >conftest.$ac_ext <<_ACEOF
4844
cat confdefs.h >>conftest.$ac_ext
4845
cat >>conftest.$ac_ext <<_ACEOF
4846
/* end confdefs.h. */
4847
#include <ac_nonexistent.h>
4849
if { (ac_try="$ac_cpp conftest.$ac_ext"
4851
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852
*) ac_try_echo=$ac_try;;
4854
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4857
grep -v '^ *+' conftest.er1 >conftest.err
4859
cat conftest.err >&5
4860
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861
(exit $ac_status); } >/dev/null && {
4862
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4863
test ! -s conftest.err
4865
# Broken: success on invalid input.
4868
echo "$as_me: failed program was:" >&5
4869
sed 's/^/| /' conftest.$ac_ext >&5
4871
# Passes both tests.
4876
rm -f conftest.err conftest.$ac_ext
4879
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4880
rm -f conftest.err conftest.$ac_ext
4881
if $ac_preproc_ok; then
4893
{ echo "$as_me:$LINENO: result: $CPP" >&5
4894
echo "${ECHO_T}$CPP" >&6; }
4896
for ac_c_preproc_warn_flag in '' yes
4898
# Use a header file that comes with gcc, so configuring glibc
4899
# with a fresh cross-compiler works.
4900
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4901
# <limits.h> exists even on freestanding compilers.
4902
# On the NeXT, cc -E runs the code through the compiler's parser,
4903
# not just through cpp. "Syntax error" is here to catch this case.
4904
cat >conftest.$ac_ext <<_ACEOF
4907
cat confdefs.h >>conftest.$ac_ext
4908
cat >>conftest.$ac_ext <<_ACEOF
4909
/* end confdefs.h. */
4911
# include <limits.h>
4913
# include <assert.h>
4917
if { (ac_try="$ac_cpp conftest.$ac_ext"
4919
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920
*) ac_try_echo=$ac_try;;
4922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4925
grep -v '^ *+' conftest.er1 >conftest.err
4927
cat conftest.err >&5
4928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929
(exit $ac_status); } >/dev/null && {
4930
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4931
test ! -s conftest.err
4935
echo "$as_me: failed program was:" >&5
4936
sed 's/^/| /' conftest.$ac_ext >&5
4938
# Broken: fails on valid input.
4942
rm -f conftest.err conftest.$ac_ext
4944
# OK, works on sane cases. Now check whether nonexistent headers
4945
# can be detected and how.
4946
cat >conftest.$ac_ext <<_ACEOF
4949
cat confdefs.h >>conftest.$ac_ext
4950
cat >>conftest.$ac_ext <<_ACEOF
4951
/* end confdefs.h. */
4952
#include <ac_nonexistent.h>
4954
if { (ac_try="$ac_cpp conftest.$ac_ext"
4956
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957
*) ac_try_echo=$ac_try;;
4959
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4962
grep -v '^ *+' conftest.er1 >conftest.err
4964
cat conftest.err >&5
4965
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966
(exit $ac_status); } >/dev/null && {
4967
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4968
test ! -s conftest.err
4970
# Broken: success on invalid input.
4973
echo "$as_me: failed program was:" >&5
4974
sed 's/^/| /' conftest.$ac_ext >&5
4976
# Passes both tests.
4981
rm -f conftest.err conftest.$ac_ext
4984
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4985
rm -f conftest.err conftest.$ac_ext
4986
if $ac_preproc_ok; then
4989
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4990
See \`config.log' for more details." >&5
4991
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4992
See \`config.log' for more details." >&2;}
4993
{ (exit 1); exit 1; }; }
4997
ac_cpp='$CPP $CPPFLAGS'
4998
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4999
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5000
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5003
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5004
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5005
if test "${ac_cv_header_stdc+set}" = set; then
5006
echo $ECHO_N "(cached) $ECHO_C" >&6
5008
cat >conftest.$ac_ext <<_ACEOF
5011
cat confdefs.h >>conftest.$ac_ext
5012
cat >>conftest.$ac_ext <<_ACEOF
5013
/* end confdefs.h. */
5027
rm -f conftest.$ac_objext
5028
if { (ac_try="$ac_compile"
5030
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031
*) ac_try_echo=$ac_try;;
5033
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5034
(eval "$ac_compile") 2>conftest.er1
5036
grep -v '^ *+' conftest.er1 >conftest.err
5038
cat conftest.err >&5
5039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040
(exit $ac_status); } && {
5041
test -z "$ac_c_werror_flag" ||
5042
test ! -s conftest.err
5043
} && test -s conftest.$ac_objext; then
5044
ac_cv_header_stdc=yes
5046
echo "$as_me: failed program was:" >&5
5047
sed 's/^/| /' conftest.$ac_ext >&5
5049
ac_cv_header_stdc=no
5052
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054
if test $ac_cv_header_stdc = yes; then
5055
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5056
cat >conftest.$ac_ext <<_ACEOF
5059
cat confdefs.h >>conftest.$ac_ext
5060
cat >>conftest.$ac_ext <<_ACEOF
5061
/* end confdefs.h. */
5065
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5066
$EGREP "memchr" >/dev/null 2>&1; then
5069
ac_cv_header_stdc=no
5075
if test $ac_cv_header_stdc = yes; then
5076
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5077
cat >conftest.$ac_ext <<_ACEOF
5080
cat confdefs.h >>conftest.$ac_ext
5081
cat >>conftest.$ac_ext <<_ACEOF
5082
/* end confdefs.h. */
5086
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5087
$EGREP "free" >/dev/null 2>&1; then
5090
ac_cv_header_stdc=no
5096
if test $ac_cv_header_stdc = yes; then
5097
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5098
if test "$cross_compiling" = yes; then
5101
cat >conftest.$ac_ext <<_ACEOF
5104
cat confdefs.h >>conftest.$ac_ext
5105
cat >>conftest.$ac_ext <<_ACEOF
5106
/* end confdefs.h. */
5109
#if ((' ' & 0x0FF) == 0x020)
5110
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5111
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5113
# define ISLOWER(c) \
5114
(('a' <= (c) && (c) <= 'i') \
5115
|| ('j' <= (c) && (c) <= 'r') \
5116
|| ('s' <= (c) && (c) <= 'z'))
5117
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5120
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5125
for (i = 0; i < 256; i++)
5126
if (XOR (islower (i), ISLOWER (i))
5127
|| toupper (i) != TOUPPER (i))
5132
rm -f conftest$ac_exeext
5133
if { (ac_try="$ac_link"
5135
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136
*) ac_try_echo=$ac_try;;
5138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139
(eval "$ac_link") 2>&5
5141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5143
{ (case "(($ac_try" in
5144
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5145
*) ac_try_echo=$ac_try;;
5147
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5148
(eval "$ac_try") 2>&5
5150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151
(exit $ac_status); }; }; then
5154
echo "$as_me: program exited with status $ac_status" >&5
5155
echo "$as_me: failed program was:" >&5
5156
sed 's/^/| /' conftest.$ac_ext >&5
5159
ac_cv_header_stdc=no
5161
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5167
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5168
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5169
if test $ac_cv_header_stdc = yes; then
5171
cat >>confdefs.h <<\_ACEOF
5172
#define STDC_HEADERS 1
5177
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5187
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5188
inttypes.h stdint.h unistd.h
5190
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5191
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5192
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5193
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5194
echo $ECHO_N "(cached) $ECHO_C" >&6
5196
cat >conftest.$ac_ext <<_ACEOF
5199
cat confdefs.h >>conftest.$ac_ext
5200
cat >>conftest.$ac_ext <<_ACEOF
5201
/* end confdefs.h. */
5202
$ac_includes_default
5204
#include <$ac_header>
5206
rm -f conftest.$ac_objext
5207
if { (ac_try="$ac_compile"
5209
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210
*) ac_try_echo=$ac_try;;
5212
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213
(eval "$ac_compile") 2>conftest.er1
5215
grep -v '^ *+' conftest.er1 >conftest.err
5217
cat conftest.err >&5
5218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219
(exit $ac_status); } && {
5220
test -z "$ac_c_werror_flag" ||
5221
test ! -s conftest.err
5222
} && test -s conftest.$ac_objext; then
5223
eval "$as_ac_Header=yes"
5225
echo "$as_me: failed program was:" >&5
5226
sed 's/^/| /' conftest.$ac_ext >&5
5228
eval "$as_ac_Header=no"
5231
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5233
ac_res=`eval echo '${'$as_ac_Header'}'`
5234
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5235
echo "${ECHO_T}$ac_res" >&6; }
5236
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5237
cat >>confdefs.h <<_ACEOF
5238
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5247
for ac_header in dlfcn.h
5249
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5250
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5251
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5252
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5253
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5254
echo $ECHO_N "(cached) $ECHO_C" >&6
5256
ac_res=`eval echo '${'$as_ac_Header'}'`
5257
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5258
echo "${ECHO_T}$ac_res" >&6; }
5260
# Is the header compilable?
5261
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5262
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5263
cat >conftest.$ac_ext <<_ACEOF
5266
cat confdefs.h >>conftest.$ac_ext
5267
cat >>conftest.$ac_ext <<_ACEOF
5268
/* end confdefs.h. */
5269
$ac_includes_default
5270
#include <$ac_header>
5272
rm -f conftest.$ac_objext
5273
if { (ac_try="$ac_compile"
5275
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276
*) ac_try_echo=$ac_try;;
5278
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279
(eval "$ac_compile") 2>conftest.er1
5281
grep -v '^ *+' conftest.er1 >conftest.err
5283
cat conftest.err >&5
5284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285
(exit $ac_status); } && {
5286
test -z "$ac_c_werror_flag" ||
5287
test ! -s conftest.err
5288
} && test -s conftest.$ac_objext; then
5289
ac_header_compiler=yes
5291
echo "$as_me: failed program was:" >&5
5292
sed 's/^/| /' conftest.$ac_ext >&5
5294
ac_header_compiler=no
5297
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5299
echo "${ECHO_T}$ac_header_compiler" >&6; }
5301
# Is the header present?
5302
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5303
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5304
cat >conftest.$ac_ext <<_ACEOF
5307
cat confdefs.h >>conftest.$ac_ext
5308
cat >>conftest.$ac_ext <<_ACEOF
5309
/* end confdefs.h. */
5310
#include <$ac_header>
5312
if { (ac_try="$ac_cpp conftest.$ac_ext"
5314
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315
*) ac_try_echo=$ac_try;;
5317
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5320
grep -v '^ *+' conftest.er1 >conftest.err
5322
cat conftest.err >&5
5323
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324
(exit $ac_status); } >/dev/null && {
5325
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5326
test ! -s conftest.err
5328
ac_header_preproc=yes
5330
echo "$as_me: failed program was:" >&5
5331
sed 's/^/| /' conftest.$ac_ext >&5
5333
ac_header_preproc=no
5336
rm -f conftest.err conftest.$ac_ext
5337
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5338
echo "${ECHO_T}$ac_header_preproc" >&6; }
5340
# So? What about this header?
5341
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5343
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5344
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5345
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5346
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5347
ac_header_preproc=yes
5350
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5351
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5352
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5353
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5354
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5355
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5356
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5357
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5358
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5359
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5360
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5361
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5365
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5366
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5367
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5368
echo $ECHO_N "(cached) $ECHO_C" >&6
5370
eval "$as_ac_Header=\$ac_header_preproc"
5372
ac_res=`eval echo '${'$as_ac_Header'}'`
5373
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5374
echo "${ECHO_T}$ac_res" >&6; }
5377
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5378
cat >>confdefs.h <<_ACEOF
5379
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5387
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5388
# find the maximum length of command line arguments
5389
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5390
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5391
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5392
echo $ECHO_N "(cached) $ECHO_C" >&6
5399
# On DJGPP, this test can blow up pretty badly due to problems in libc
5400
# (any single argument exceeding 2000 bytes causes a buffer overrun
5401
# during glob expansion). Even if it were fixed, the result of this
5402
# check would be larger than it should be.
5403
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5407
# Under GNU Hurd, this test is not required because there is
5408
# no limit to the length of command line arguments.
5409
# Libtool will interpret -1 as no limit whatsoever
5410
lt_cv_sys_max_cmd_len=-1;
5414
# On Win9x/ME, this test blows up -- it succeeds, but takes
5415
# about 5 minutes as the teststring grows exponentially.
5416
# Worse, since 9x/ME are not pre-emptively multitasking,
5417
# you end up with a "frozen" computer, even though with patience
5418
# the test eventually succeeds (with a max line length of 256k).
5419
# Instead, let's just punt: use the minimum linelength reported by
5420
# all of the supported platforms: 8192 (on NT/2K/XP).
5421
lt_cv_sys_max_cmd_len=8192;
5425
# On AmigaOS with pdksh, this test takes hours, literally.
5426
# So we just punt and use a minimum line length of 8192.
5427
lt_cv_sys_max_cmd_len=8192;
5430
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5431
# This has been around since 386BSD, at least. Likely further.
5432
if test -x /sbin/sysctl; then
5433
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5434
elif test -x /usr/sbin/sysctl; then
5435
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5437
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5439
# And add a safety zone
5440
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5441
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5445
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5446
lt_cv_sys_max_cmd_len=196608
5450
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5451
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5452
# nice to cause kernel panics so lets avoid the loop below.
5453
# First set a reasonable default.
5454
lt_cv_sys_max_cmd_len=16384
5456
if test -x /sbin/sysconfig; then
5457
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5458
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5463
lt_cv_sys_max_cmd_len=102400
5465
sysv5* | sco5v6* | sysv4.2uw2*)
5466
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5467
if test -n "$kargmax"; then
5468
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5470
lt_cv_sys_max_cmd_len=32768
5474
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5475
if test -n "$lt_cv_sys_max_cmd_len"; then
5476
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5477
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5479
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5480
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5481
= "XX$teststring") >/dev/null 2>&1 &&
5482
new_result=`expr "X$teststring" : ".*" 2>&1` &&
5483
lt_cv_sys_max_cmd_len=$new_result &&
5484
test $i != 17 # 1/2 MB should be enough
5487
teststring=$teststring$teststring
5490
# Add a significant safety factor because C++ compilers can tack on massive
5491
# amounts of additional arguments before passing them to the linker.
5492
# It appears as though 1/2 is a usable value.
5493
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5500
if test -n $lt_cv_sys_max_cmd_len ; then
5501
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5502
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5504
{ echo "$as_me:$LINENO: result: none" >&5
5505
echo "${ECHO_T}none" >&6; }
5112
5512
# Check for command to grab the raw symbol name followed by C symbol from nm.
5113
5513
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5114
5514
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5337
5722
echo "${ECHO_T}ok" >&6; }
5362
# Check whether --enable-libtool-lock was given.
5363
if test "${enable_libtool_lock+set}" = set; then
5364
enableval=$enable_libtool_lock;
5367
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5369
# Some flags need to be propagated to the compiler or linker for good
5373
# Find out which ABI we are using.
5374
echo 'int i;' > conftest.$ac_ext
5375
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5376
(eval $ac_compile) 2>&5
5378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379
(exit $ac_status); }; then
5380
case `/usr/bin/file conftest.$ac_objext` in
5392
# Find out which ABI we are using.
5393
echo '#line 5393 "configure"' > conftest.$ac_ext
5394
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5395
(eval $ac_compile) 2>&5
5397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398
(exit $ac_status); }; then
5399
if test "$lt_cv_prog_gnu_ld" = yes; then
5400
case `/usr/bin/file conftest.$ac_objext` in
5402
LD="${LD-ld} -melf32bsmip"
5405
LD="${LD-ld} -melf32bmipn32"
5408
LD="${LD-ld} -melf64bmip"
5412
case `/usr/bin/file conftest.$ac_objext` in
5428
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5429
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5430
# Find out which ABI we are using.
5431
echo 'int i;' > conftest.$ac_ext
5432
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5433
(eval $ac_compile) 2>&5
5435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436
(exit $ac_status); }; then
5437
case `/usr/bin/file conftest.o` in
5440
x86_64-*kfreebsd*-gnu)
5441
LD="${LD-ld} -m elf_i386_fbsd"
5444
LD="${LD-ld} -m elf_i386"
5446
ppc64-*linux*|powerpc64-*linux*)
5447
LD="${LD-ld} -m elf32ppclinux"
5450
LD="${LD-ld} -m elf_s390"
5453
LD="${LD-ld} -m elf32_sparc"
5459
x86_64-*kfreebsd*-gnu)
5460
LD="${LD-ld} -m elf_x86_64_fbsd"
5463
LD="${LD-ld} -m elf_x86_64"
5465
ppc*-*linux*|powerpc*-*linux*)
5466
LD="${LD-ld} -m elf64ppc"
5468
s390*-*linux*|s390*-*tpf*)
5469
LD="${LD-ld} -m elf64_s390"
5472
LD="${LD-ld} -m elf64_sparc"
5482
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5483
SAVE_CFLAGS="$CFLAGS"
5484
CFLAGS="$CFLAGS -belf"
5485
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5486
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5487
if test "${lt_cv_cc_needs_belf+set}" = set; then
5488
echo $ECHO_N "(cached) $ECHO_C" >&6
5491
ac_cpp='$CPP $CPPFLAGS'
5492
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5493
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5494
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5496
cat >conftest.$ac_ext <<_ACEOF
5499
cat confdefs.h >>conftest.$ac_ext
5500
cat >>conftest.$ac_ext <<_ACEOF
5501
/* end confdefs.h. */
5511
rm -f conftest.$ac_objext conftest$ac_exeext
5512
if { (ac_try="$ac_link"
5514
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515
*) ac_try_echo=$ac_try;;
5517
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518
(eval "$ac_link") 2>conftest.er1
5520
grep -v '^ *+' conftest.er1 >conftest.err
5522
cat conftest.err >&5
5523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524
(exit $ac_status); } && {
5525
test -z "$ac_c_werror_flag" ||
5526
test ! -s conftest.err
5527
} && test -s conftest$ac_exeext &&
5528
$as_test_x conftest$ac_exeext; then
5529
lt_cv_cc_needs_belf=yes
5531
echo "$as_me: failed program was:" >&5
5532
sed 's/^/| /' conftest.$ac_ext >&5
5534
lt_cv_cc_needs_belf=no
5537
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5538
conftest$ac_exeext conftest.$ac_ext
5540
ac_cpp='$CPP $CPPFLAGS'
5541
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5542
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5543
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5546
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5547
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5548
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5549
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5550
CFLAGS="$SAVE_CFLAGS"
5554
# Find out which ABI we are using.
5555
echo 'int i;' > conftest.$ac_ext
5556
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557
(eval $ac_compile) 2>&5
5559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560
(exit $ac_status); }; then
5561
case `/usr/bin/file conftest.o` in
5563
case $lt_cv_prog_gnu_ld in
5564
yes*) LD="${LD-ld} -m elf64_sparc" ;;
5566
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5578
need_locks="$enable_libtool_lock"
5725
{ echo "$as_me:$LINENO: checking for objdir" >&5
5726
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
5727
if test "${lt_cv_objdir+set}" = set; then
5728
echo $ECHO_N "(cached) $ECHO_C" >&6
5730
rm -f .libs 2>/dev/null
5731
mkdir .libs 2>/dev/null
5732
if test -d .libs; then
5735
# MS-DOS does not allow filenames that begin with a dot.
5738
rmdir .libs 2>/dev/null
5740
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5741
echo "${ECHO_T}$lt_cv_objdir" >&6; }
5742
objdir=$lt_cv_objdir
5750
# AIX sometimes has problems with the GCC collect2 program. For some
5751
# reason, if we set the COLLECT_NAMES environment variable, the problems
5752
# vanish in a puff of smoke.
5753
if test "X${COLLECT_NAMES+set}" != Xset; then
5755
export COLLECT_NAMES
5760
# Sed substitution that helps us do robust quoting. It backslashifies
5761
# metacharacters that are still active within double-quoted strings.
5762
Xsed='sed -e 1s/^X//'
5763
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5765
# Same as above, but do not quote variable references.
5766
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5768
# Sed substitution to delay expansion of an escaped shell variable in a
5769
# double_quote_subst'ed string.
5770
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5772
# Sed substitution to avoid accidental globbing in evaled expressions
5773
no_glob_subst='s/\*/\\\*/g'
5779
default_ofile=libtool
5780
can_build_shared=yes
5782
# All known linkers require a `.a' archive for static linking (except MSVC,
5783
# which needs '.lib').
5785
ltmain="$ac_aux_dir/ltmain.sh"
5786
ofile="$default_ofile"
5787
with_gnu_ld="$lt_cv_prog_gnu_ld"
5789
if test -n "$ac_tool_prefix"; then
5790
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5791
set dummy ${ac_tool_prefix}ar; ac_word=$2
5792
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5793
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5794
if test "${ac_cv_prog_AR+set}" = set; then
5795
echo $ECHO_N "(cached) $ECHO_C" >&6
5797
if test -n "$AR"; then
5798
ac_cv_prog_AR="$AR" # Let the user override the test.
5800
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804
test -z "$as_dir" && as_dir=.
5805
for ac_exec_ext in '' $ac_executable_extensions; do
5806
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5807
ac_cv_prog_AR="${ac_tool_prefix}ar"
5808
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818
if test -n "$AR"; then
5819
{ echo "$as_me:$LINENO: result: $AR" >&5
5820
echo "${ECHO_T}$AR" >&6; }
5822
{ echo "$as_me:$LINENO: result: no" >&5
5823
echo "${ECHO_T}no" >&6; }
5828
if test -z "$ac_cv_prog_AR"; then
5830
# Extract the first word of "ar", so it can be a program name with args.
5831
set dummy ar; ac_word=$2
5832
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5833
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5834
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5835
echo $ECHO_N "(cached) $ECHO_C" >&6
5837
if test -n "$ac_ct_AR"; then
5838
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5840
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844
test -z "$as_dir" && as_dir=.
5845
for ac_exec_ext in '' $ac_executable_extensions; do
5846
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5847
ac_cv_prog_ac_ct_AR="ar"
5848
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5857
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5858
if test -n "$ac_ct_AR"; then
5859
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5860
echo "${ECHO_T}$ac_ct_AR" >&6; }
5862
{ echo "$as_me:$LINENO: result: no" >&5
5863
echo "${ECHO_T}no" >&6; }
5866
if test "x$ac_ct_AR" = x; then
5869
case $cross_compiling:$ac_tool_warned in
5871
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5872
whose name does not start with the host triplet. If you think this
5873
configuration is useful to you, please write to autoconf@gnu.org." >&5
5874
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5875
whose name does not start with the host triplet. If you think this
5876
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5877
ac_tool_warned=yes ;;
5885
if test -n "$ac_tool_prefix"; then
5886
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5887
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5888
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5889
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5890
if test "${ac_cv_prog_RANLIB+set}" = set; then
5891
echo $ECHO_N "(cached) $ECHO_C" >&6
5893
if test -n "$RANLIB"; then
5894
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5896
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900
test -z "$as_dir" && as_dir=.
5901
for ac_exec_ext in '' $ac_executable_extensions; do
5902
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5903
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5904
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5913
RANLIB=$ac_cv_prog_RANLIB
5914
if test -n "$RANLIB"; then
5915
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
5916
echo "${ECHO_T}$RANLIB" >&6; }
5918
{ echo "$as_me:$LINENO: result: no" >&5
5919
echo "${ECHO_T}no" >&6; }
5924
if test -z "$ac_cv_prog_RANLIB"; then
5925
ac_ct_RANLIB=$RANLIB
5926
# Extract the first word of "ranlib", so it can be a program name with args.
5927
set dummy ranlib; ac_word=$2
5928
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5929
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5930
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5931
echo $ECHO_N "(cached) $ECHO_C" >&6
5933
if test -n "$ac_ct_RANLIB"; then
5934
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5936
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940
test -z "$as_dir" && as_dir=.
5941
for ac_exec_ext in '' $ac_executable_extensions; do
5942
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5943
ac_cv_prog_ac_ct_RANLIB="ranlib"
5944
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5953
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5954
if test -n "$ac_ct_RANLIB"; then
5955
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5956
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5958
{ echo "$as_me:$LINENO: result: no" >&5
5959
echo "${ECHO_T}no" >&6; }
5962
if test "x$ac_ct_RANLIB" = x; then
5965
case $cross_compiling:$ac_tool_warned in
5967
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5968
whose name does not start with the host triplet. If you think this
5969
configuration is useful to you, please write to autoconf@gnu.org." >&5
5970
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5971
whose name does not start with the host triplet. If you think this
5972
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5973
ac_tool_warned=yes ;;
5975
RANLIB=$ac_ct_RANLIB
5978
RANLIB="$ac_cv_prog_RANLIB"
5981
if test -n "$ac_tool_prefix"; then
5982
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5983
set dummy ${ac_tool_prefix}strip; ac_word=$2
5984
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5985
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5986
if test "${ac_cv_prog_STRIP+set}" = set; then
5987
echo $ECHO_N "(cached) $ECHO_C" >&6
5989
if test -n "$STRIP"; then
5990
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5992
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996
test -z "$as_dir" && as_dir=.
5997
for ac_exec_ext in '' $ac_executable_extensions; do
5998
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5999
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6000
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6009
STRIP=$ac_cv_prog_STRIP
6010
if test -n "$STRIP"; then
6011
{ echo "$as_me:$LINENO: result: $STRIP" >&5
6012
echo "${ECHO_T}$STRIP" >&6; }
6014
{ echo "$as_me:$LINENO: result: no" >&5
6015
echo "${ECHO_T}no" >&6; }
6020
if test -z "$ac_cv_prog_STRIP"; then
6022
# Extract the first word of "strip", so it can be a program name with args.
6023
set dummy strip; ac_word=$2
6024
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6025
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6026
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6027
echo $ECHO_N "(cached) $ECHO_C" >&6
6029
if test -n "$ac_ct_STRIP"; then
6030
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6032
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036
test -z "$as_dir" && as_dir=.
6037
for ac_exec_ext in '' $ac_executable_extensions; do
6038
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6039
ac_cv_prog_ac_ct_STRIP="strip"
6040
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6049
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6050
if test -n "$ac_ct_STRIP"; then
6051
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6052
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6054
{ echo "$as_me:$LINENO: result: no" >&5
6055
echo "${ECHO_T}no" >&6; }
6058
if test "x$ac_ct_STRIP" = x; then
6061
case $cross_compiling:$ac_tool_warned in
6063
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6064
whose name does not start with the host triplet. If you think this
6065
configuration is useful to you, please write to autoconf@gnu.org." >&5
6066
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6067
whose name does not start with the host triplet. If you think this
6068
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6069
ac_tool_warned=yes ;;
6074
STRIP="$ac_cv_prog_STRIP"
6079
old_CFLAGS="$CFLAGS"
6081
# Set sane defaults for various variables
6082
test -z "$AR" && AR=ar
6083
test -z "$AR_FLAGS" && AR_FLAGS=cru
6084
test -z "$AS" && AS=as
6085
test -z "$CC" && CC=cc
6086
test -z "$LTCC" && LTCC=$CC
6087
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6088
test -z "$DLLTOOL" && DLLTOOL=dlltool
6089
test -z "$LD" && LD=ld
6090
test -z "$LN_S" && LN_S="ln -s"
6091
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6092
test -z "$NM" && NM=nm
6093
test -z "$SED" && SED=sed
6094
test -z "$OBJDUMP" && OBJDUMP=objdump
6095
test -z "$RANLIB" && RANLIB=:
6096
test -z "$STRIP" && STRIP=:
6097
test -z "$ac_objext" && ac_objext=o
6099
# Determine commands to create old-style static archives.
6100
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6101
old_postinstall_cmds='chmod 644 $oldlib'
6102
old_postuninstall_cmds=
6104
if test -n "$RANLIB"; then
6107
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6110
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6113
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6116
for cc_temp in $compiler""; do
6118
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6119
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6124
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6127
# Only perform the check for file, if the check method requires it
6128
case $deplibs_check_method in
6130
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6131
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6132
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6133
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6134
echo $ECHO_N "(cached) $ECHO_C" >&6
6138
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6141
lt_save_MAGIC_CMD="$MAGIC_CMD"
6142
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6143
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6144
for ac_dir in $ac_dummy; do
6146
test -z "$ac_dir" && ac_dir=.
6147
if test -f $ac_dir/${ac_tool_prefix}file; then
6148
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6149
if test -n "$file_magic_test_file"; then
6150
case $deplibs_check_method in
6152
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6153
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6154
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6155
$EGREP "$file_magic_regex" > /dev/null; then
6160
*** Warning: the command libtool uses to detect shared libraries,
6161
*** $file_magic_cmd, produces output that libtool cannot recognize.
6162
*** The result is that libtool may fail to recognize shared libraries
6163
*** as such. This will affect the creation of libtool libraries that
6164
*** depend on shared libraries, but programs linked with such libtool
6165
*** libraries will work regardless of this problem. Nevertheless, you
6166
*** may want to report the problem to your system manager and/or to
6167
*** bug-libtool@gnu.org
6177
MAGIC_CMD="$lt_save_MAGIC_CMD"
6182
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6183
if test -n "$MAGIC_CMD"; then
6184
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6185
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6187
{ echo "$as_me:$LINENO: result: no" >&5
6188
echo "${ECHO_T}no" >&6; }
6191
if test -z "$lt_cv_path_MAGIC_CMD"; then
6192
if test -n "$ac_tool_prefix"; then
6193
{ echo "$as_me:$LINENO: checking for file" >&5
6194
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6195
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6196
echo $ECHO_N "(cached) $ECHO_C" >&6
6200
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6203
lt_save_MAGIC_CMD="$MAGIC_CMD"
6204
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6205
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6206
for ac_dir in $ac_dummy; do
6208
test -z "$ac_dir" && ac_dir=.
6209
if test -f $ac_dir/file; then
6210
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6211
if test -n "$file_magic_test_file"; then
6212
case $deplibs_check_method in
6214
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6215
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6216
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6217
$EGREP "$file_magic_regex" > /dev/null; then
6222
*** Warning: the command libtool uses to detect shared libraries,
6223
*** $file_magic_cmd, produces output that libtool cannot recognize.
6224
*** The result is that libtool may fail to recognize shared libraries
6225
*** as such. This will affect the creation of libtool libraries that
6226
*** depend on shared libraries, but programs linked with such libtool
6227
*** libraries will work regardless of this problem. Nevertheless, you
6228
*** may want to report the problem to your system manager and/or to
6229
*** bug-libtool@gnu.org
6239
MAGIC_CMD="$lt_save_MAGIC_CMD"
6244
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6245
if test -n "$MAGIC_CMD"; then
6246
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6247
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6249
{ echo "$as_me:$LINENO: result: no" >&5
6250
echo "${ECHO_T}no" >&6; }
5581
6263
case $host_os in
6197
6560
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6198
6561
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6200
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6563
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6202
6565
if test "$DSYMUTIL" != ":"; then
6203
_lt_dsymutil='~$DSYMUTIL $lib || :'
6566
_lt_dsymutil="~$DSYMUTIL \$lib || :"
6211
ac_cpp='$CPP $CPPFLAGS'
6212
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6215
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6216
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6217
# On Suns, sometimes $CPP names a directory.
6218
if test -n "$CPP" && test -d "$CPP"; then
6221
if test -z "$CPP"; then
6222
if test "${ac_cv_prog_CPP+set}" = set; then
6223
echo $ECHO_N "(cached) $ECHO_C" >&6
6225
# Double quotes because CPP needs to be expanded
6226
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6229
for ac_c_preproc_warn_flag in '' yes
6231
# Use a header file that comes with gcc, so configuring glibc
6232
# with a fresh cross-compiler works.
6233
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6234
# <limits.h> exists even on freestanding compilers.
6235
# On the NeXT, cc -E runs the code through the compiler's parser,
6236
# not just through cpp. "Syntax error" is here to catch this case.
6237
cat >conftest.$ac_ext <<_ACEOF
6240
cat confdefs.h >>conftest.$ac_ext
6241
cat >>conftest.$ac_ext <<_ACEOF
6242
/* end confdefs.h. */
6244
# include <limits.h>
6246
# include <assert.h>
6250
if { (ac_try="$ac_cpp conftest.$ac_ext"
6252
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253
*) ac_try_echo=$ac_try;;
6255
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6256
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6258
grep -v '^ *+' conftest.er1 >conftest.err
6260
cat conftest.err >&5
6261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262
(exit $ac_status); } >/dev/null && {
6263
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6264
test ! -s conftest.err
6268
echo "$as_me: failed program was:" >&5
6269
sed 's/^/| /' conftest.$ac_ext >&5
6271
# Broken: fails on valid input.
6275
rm -f conftest.err conftest.$ac_ext
6277
# OK, works on sane cases. Now check whether nonexistent headers
6278
# can be detected and how.
6279
cat >conftest.$ac_ext <<_ACEOF
6282
cat confdefs.h >>conftest.$ac_ext
6283
cat >>conftest.$ac_ext <<_ACEOF
6284
/* end confdefs.h. */
6285
#include <ac_nonexistent.h>
6287
if { (ac_try="$ac_cpp conftest.$ac_ext"
6289
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290
*) ac_try_echo=$ac_try;;
6292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6295
grep -v '^ *+' conftest.er1 >conftest.err
6297
cat conftest.err >&5
6298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299
(exit $ac_status); } >/dev/null && {
6300
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6301
test ! -s conftest.err
6303
# Broken: success on invalid input.
6306
echo "$as_me: failed program was:" >&5
6307
sed 's/^/| /' conftest.$ac_ext >&5
6309
# Passes both tests.
6314
rm -f conftest.err conftest.$ac_ext
6317
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6318
rm -f conftest.err conftest.$ac_ext
6319
if $ac_preproc_ok; then
6331
{ echo "$as_me:$LINENO: result: $CPP" >&5
6332
echo "${ECHO_T}$CPP" >&6; }
6334
for ac_c_preproc_warn_flag in '' yes
6336
# Use a header file that comes with gcc, so configuring glibc
6337
# with a fresh cross-compiler works.
6338
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6339
# <limits.h> exists even on freestanding compilers.
6340
# On the NeXT, cc -E runs the code through the compiler's parser,
6341
# not just through cpp. "Syntax error" is here to catch this case.
6342
cat >conftest.$ac_ext <<_ACEOF
6345
cat confdefs.h >>conftest.$ac_ext
6346
cat >>conftest.$ac_ext <<_ACEOF
6347
/* end confdefs.h. */
6349
# include <limits.h>
6351
# include <assert.h>
6355
if { (ac_try="$ac_cpp conftest.$ac_ext"
6357
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358
*) ac_try_echo=$ac_try;;
6360
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6363
grep -v '^ *+' conftest.er1 >conftest.err
6365
cat conftest.err >&5
6366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367
(exit $ac_status); } >/dev/null && {
6368
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6369
test ! -s conftest.err
6373
echo "$as_me: failed program was:" >&5
6374
sed 's/^/| /' conftest.$ac_ext >&5
6376
# Broken: fails on valid input.
6380
rm -f conftest.err conftest.$ac_ext
6382
# OK, works on sane cases. Now check whether nonexistent headers
6383
# can be detected and how.
6384
cat >conftest.$ac_ext <<_ACEOF
6387
cat confdefs.h >>conftest.$ac_ext
6388
cat >>conftest.$ac_ext <<_ACEOF
6389
/* end confdefs.h. */
6390
#include <ac_nonexistent.h>
6392
if { (ac_try="$ac_cpp conftest.$ac_ext"
6394
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395
*) ac_try_echo=$ac_try;;
6397
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6400
grep -v '^ *+' conftest.er1 >conftest.err
6402
cat conftest.err >&5
6403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404
(exit $ac_status); } >/dev/null && {
6405
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6406
test ! -s conftest.err
6408
# Broken: success on invalid input.
6411
echo "$as_me: failed program was:" >&5
6412
sed 's/^/| /' conftest.$ac_ext >&5
6414
# Passes both tests.
6419
rm -f conftest.err conftest.$ac_ext
6422
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6423
rm -f conftest.err conftest.$ac_ext
6424
if $ac_preproc_ok; then
6427
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6428
See \`config.log' for more details." >&5
6429
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6430
See \`config.log' for more details." >&2;}
6431
{ (exit 1); exit 1; }; }
6435
ac_cpp='$CPP $CPPFLAGS'
6436
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6437
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6438
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6441
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6442
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6443
if test "${ac_cv_header_stdc+set}" = set; then
6444
echo $ECHO_N "(cached) $ECHO_C" >&6
6446
cat >conftest.$ac_ext <<_ACEOF
6449
cat confdefs.h >>conftest.$ac_ext
6450
cat >>conftest.$ac_ext <<_ACEOF
6451
/* end confdefs.h. */
6465
rm -f conftest.$ac_objext
6466
if { (ac_try="$ac_compile"
6468
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469
*) ac_try_echo=$ac_try;;
6471
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472
(eval "$ac_compile") 2>conftest.er1
6474
grep -v '^ *+' conftest.er1 >conftest.err
6476
cat conftest.err >&5
6477
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478
(exit $ac_status); } && {
6479
test -z "$ac_c_werror_flag" ||
6480
test ! -s conftest.err
6481
} && test -s conftest.$ac_objext; then
6482
ac_cv_header_stdc=yes
6484
echo "$as_me: failed program was:" >&5
6485
sed 's/^/| /' conftest.$ac_ext >&5
6487
ac_cv_header_stdc=no
6490
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492
if test $ac_cv_header_stdc = yes; then
6493
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6494
cat >conftest.$ac_ext <<_ACEOF
6497
cat confdefs.h >>conftest.$ac_ext
6498
cat >>conftest.$ac_ext <<_ACEOF
6499
/* end confdefs.h. */
6503
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6504
$EGREP "memchr" >/dev/null 2>&1; then
6507
ac_cv_header_stdc=no
6513
if test $ac_cv_header_stdc = yes; then
6514
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6515
cat >conftest.$ac_ext <<_ACEOF
6518
cat confdefs.h >>conftest.$ac_ext
6519
cat >>conftest.$ac_ext <<_ACEOF
6520
/* end confdefs.h. */
6524
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6525
$EGREP "free" >/dev/null 2>&1; then
6528
ac_cv_header_stdc=no
6534
if test $ac_cv_header_stdc = yes; then
6535
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6536
if test "$cross_compiling" = yes; then
6539
cat >conftest.$ac_ext <<_ACEOF
6542
cat confdefs.h >>conftest.$ac_ext
6543
cat >>conftest.$ac_ext <<_ACEOF
6544
/* end confdefs.h. */
6547
#if ((' ' & 0x0FF) == 0x020)
6548
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6549
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6551
# define ISLOWER(c) \
6552
(('a' <= (c) && (c) <= 'i') \
6553
|| ('j' <= (c) && (c) <= 'r') \
6554
|| ('s' <= (c) && (c) <= 'z'))
6555
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6558
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6563
for (i = 0; i < 256; i++)
6564
if (XOR (islower (i), ISLOWER (i))
6565
|| toupper (i) != TOUPPER (i))
6570
rm -f conftest$ac_exeext
6571
if { (ac_try="$ac_link"
6573
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574
*) ac_try_echo=$ac_try;;
6576
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577
(eval "$ac_link") 2>&5
6579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6581
{ (case "(($ac_try" in
6582
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6583
*) ac_try_echo=$ac_try;;
6585
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6586
(eval "$ac_try") 2>&5
6588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589
(exit $ac_status); }; }; then
6592
echo "$as_me: program exited with status $ac_status" >&5
6593
echo "$as_me: failed program was:" >&5
6594
sed 's/^/| /' conftest.$ac_ext >&5
6597
ac_cv_header_stdc=no
6599
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6605
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6606
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6607
if test $ac_cv_header_stdc = yes; then
6609
cat >>confdefs.h <<\_ACEOF
6610
#define STDC_HEADERS 1
6615
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6625
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6626
inttypes.h stdint.h unistd.h
6628
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6629
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6630
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6631
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6632
echo $ECHO_N "(cached) $ECHO_C" >&6
6634
cat >conftest.$ac_ext <<_ACEOF
6637
cat confdefs.h >>conftest.$ac_ext
6638
cat >>conftest.$ac_ext <<_ACEOF
6639
/* end confdefs.h. */
6640
$ac_includes_default
6642
#include <$ac_header>
6644
rm -f conftest.$ac_objext
6645
if { (ac_try="$ac_compile"
6647
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648
*) ac_try_echo=$ac_try;;
6650
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6651
(eval "$ac_compile") 2>conftest.er1
6653
grep -v '^ *+' conftest.er1 >conftest.err
6655
cat conftest.err >&5
6656
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657
(exit $ac_status); } && {
6658
test -z "$ac_c_werror_flag" ||
6659
test ! -s conftest.err
6660
} && test -s conftest.$ac_objext; then
6661
eval "$as_ac_Header=yes"
6663
echo "$as_me: failed program was:" >&5
6664
sed 's/^/| /' conftest.$ac_ext >&5
6666
eval "$as_ac_Header=no"
6669
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6671
ac_res=`eval echo '${'$as_ac_Header'}'`
6672
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6673
echo "${ECHO_T}$ac_res" >&6; }
6674
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6675
cat >>confdefs.h <<_ACEOF
6676
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6685
for ac_header in dlfcn.h
6687
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6688
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6689
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6690
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6691
echo $ECHO_N "(cached) $ECHO_C" >&6
6693
cat >conftest.$ac_ext <<_ACEOF
6696
cat confdefs.h >>conftest.$ac_ext
6697
cat >>conftest.$ac_ext <<_ACEOF
6698
/* end confdefs.h. */
6699
$ac_includes_default
6701
#include <$ac_header>
6703
rm -f conftest.$ac_objext
6704
if { (ac_try="$ac_compile"
6706
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707
*) ac_try_echo=$ac_try;;
6709
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710
(eval "$ac_compile") 2>conftest.er1
6712
grep -v '^ *+' conftest.er1 >conftest.err
6714
cat conftest.err >&5
6715
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716
(exit $ac_status); } && {
6717
test -z "$ac_c_werror_flag" ||
6718
test ! -s conftest.err
6719
} && test -s conftest.$ac_objext; then
6720
eval "$as_ac_Header=yes"
6722
echo "$as_me: failed program was:" >&5
6723
sed 's/^/| /' conftest.$ac_ext >&5
6725
eval "$as_ac_Header=no"
6728
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730
ac_res=`eval echo '${'$as_ac_Header'}'`
6731
{ echo "$as_me:$LINENO: result: $ac_res" >&5
6732
echo "${ECHO_T}$ac_res" >&6; }
6733
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6734
cat >>confdefs.h <<_ACEOF
6735
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6754
# Check whether --enable-shared was given.
6755
if test "${enable_shared+set}" = set; then
6756
enableval=$enable_shared; p=${PACKAGE-default}
6758
yes) enable_shared=yes ;;
6759
no) enable_shared=no ;;
6762
# Look at the argument we got. We use all the common list separators.
6763
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6764
for pkg in $enableval; do
6766
if test "X$pkg" = "X$p"; then
6785
# Check whether --enable-static was given.
6786
if test "${enable_static+set}" = set; then
6787
enableval=$enable_static; p=${PACKAGE-default}
6789
yes) enable_static=yes ;;
6790
no) enable_static=no ;;
6793
# Look at the argument we got. We use all the common list separators.
6794
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6795
for pkg in $enableval; do
6797
if test "X$pkg" = "X$p"; then
6577
# Check whether --enable-libtool-lock was given.
6578
if test "${enable_libtool_lock+set}" = set; then
6579
enableval=$enable_libtool_lock;
6582
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6817
6585
# Check whether --with-pic was given.
10712
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10713
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10714
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10715
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10716
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10717
{ echo "$as_me:$LINENO: result: yes" >&5
10718
echo "${ECHO_T}yes" >&6; }
10720
# FIXME - insert some real tests, host_os isn't really good enough
10723
if test -n "$STRIP" ; then
10724
striplib="$STRIP -x"
10725
old_striplib="$STRIP -S"
10726
{ echo "$as_me:$LINENO: result: yes" >&5
10727
echo "${ECHO_T}yes" >&6; }
10729
{ echo "$as_me:$LINENO: result: no" >&5
10730
echo "${ECHO_T}no" >&6; }
10734
{ echo "$as_me:$LINENO: result: no" >&5
10735
echo "${ECHO_T}no" >&6; }
10751
# Report which library types will actually be built
10752
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9644
# Report which library types will actually be built
9645
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10753
9646
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10754
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9647
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10755
9648
echo "${ECHO_T}$can_build_shared" >&6; }
10757
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9650
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10758
9651
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10759
test "$can_build_shared" = "no" && enable_shared=no
10761
# On AIX, shared libraries and static libraries use the same namespace, and
10762
# are all built from PIC.
9652
test "$can_build_shared" = "no" && enable_shared=no
9654
# On AIX, shared libraries and static libraries use the same namespace, and
9655
# are all built from PIC.
9658
test "$enable_shared" = yes && enable_static=no
9659
if test -n "$RANLIB"; then
9660
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9661
postinstall_cmds='$RANLIB $lib'
9666
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10765
9667
test "$enable_shared" = yes && enable_static=no
10766
if test -n "$RANLIB"; then
10767
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10768
postinstall_cmds='$RANLIB $lib'
10773
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10774
test "$enable_shared" = yes && enable_static=no
10778
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9671
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10779
9672
echo "${ECHO_T}$enable_shared" >&6; }
10781
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9674
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10782
9675
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10783
# Make sure either enable_shared or enable_static is yes.
10784
test "$enable_shared" = yes || enable_static=yes
10785
{ echo "$as_me:$LINENO: result: $enable_static" >&5
9676
# Make sure either enable_shared or enable_static is yes.
9677
test "$enable_shared" = yes || enable_static=yes
9678
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10786
9679
echo "${ECHO_T}$enable_static" >&6; }
10793
ac_cpp='$CPP $CPPFLAGS'
10794
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10795
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10796
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10812
ac_config_commands="$ac_config_commands libtool"
10817
# Only expand once:
10821
DIEHARDER_LT_VERSION="2:28:1"
10826
cat >>confdefs.h <<\_ACEOF
10832
cat >>confdefs.h <<\_ACEOF
10840
#==================================================================
10841
# Check for which system.
10842
#==================================================================
10843
{ echo "$as_me:$LINENO: checking host system type" >&5
10844
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
10845
if test "${ac_cv_host+set}" = set; then
10846
echo $ECHO_N "(cached) $ECHO_C" >&6
10848
if test "x$host_alias" = x; then
10849
ac_cv_host=$ac_cv_build
10851
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
10852
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
10853
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
10854
{ (exit 1); exit 1; }; }
10858
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
10859
echo "${ECHO_T}$ac_cv_host" >&6; }
10860
case $ac_cv_host in
10862
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
10863
echo "$as_me: error: invalid value of canonical host" >&2;}
10864
{ (exit 1); exit 1; }; };;
10867
ac_save_IFS=$IFS; IFS='-'
10873
# Remember, the first character of IFS is used to create $*,
10874
# except with old shells:
10877
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
10881
#==================================================================
10882
# Checks for programs.
10883
#==================================================================
10885
ac_cpp='$CPP $CPPFLAGS'
10886
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10887
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10888
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10891
ac_cpp='$CPP $CPPFLAGS'
10892
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10893
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10894
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10895
if test -n "$ac_tool_prefix"; then
10896
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10897
set dummy ${ac_tool_prefix}gcc; ac_word=$2
10898
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10899
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10900
if test "${ac_cv_prog_CC+set}" = set; then
10901
echo $ECHO_N "(cached) $ECHO_C" >&6
10903
if test -n "$CC"; then
10904
ac_cv_prog_CC="$CC" # Let the user override the test.
10906
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10907
for as_dir in $PATH
10910
test -z "$as_dir" && as_dir=.
10911
for ac_exec_ext in '' $ac_executable_extensions; do
10912
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10913
ac_cv_prog_CC="${ac_tool_prefix}gcc"
10914
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10924
if test -n "$CC"; then
10925
{ echo "$as_me:$LINENO: result: $CC" >&5
10926
echo "${ECHO_T}$CC" >&6; }
10928
{ echo "$as_me:$LINENO: result: no" >&5
10929
echo "${ECHO_T}no" >&6; }
10934
if test -z "$ac_cv_prog_CC"; then
10936
# Extract the first word of "gcc", so it can be a program name with args.
10937
set dummy gcc; ac_word=$2
10938
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10939
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10940
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10941
echo $ECHO_N "(cached) $ECHO_C" >&6
10943
if test -n "$ac_ct_CC"; then
10944
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10946
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10947
for as_dir in $PATH
10950
test -z "$as_dir" && as_dir=.
10951
for ac_exec_ext in '' $ac_executable_extensions; do
10952
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10953
ac_cv_prog_ac_ct_CC="gcc"
10954
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10963
ac_ct_CC=$ac_cv_prog_ac_ct_CC
10964
if test -n "$ac_ct_CC"; then
10965
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10966
echo "${ECHO_T}$ac_ct_CC" >&6; }
10968
{ echo "$as_me:$LINENO: result: no" >&5
10969
echo "${ECHO_T}no" >&6; }
10972
if test "x$ac_ct_CC" = x; then
10975
case $cross_compiling:$ac_tool_warned in
10977
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10978
whose name does not start with the host triplet. If you think this
10979
configuration is useful to you, please write to autoconf@gnu.org." >&5
10980
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10981
whose name does not start with the host triplet. If you think this
10982
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10983
ac_tool_warned=yes ;;
10988
CC="$ac_cv_prog_CC"
10991
if test -z "$CC"; then
10992
if test -n "$ac_tool_prefix"; then
10993
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10994
set dummy ${ac_tool_prefix}cc; ac_word=$2
10995
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10996
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10997
if test "${ac_cv_prog_CC+set}" = set; then
10998
echo $ECHO_N "(cached) $ECHO_C" >&6
11000
if test -n "$CC"; then
11001
ac_cv_prog_CC="$CC" # Let the user override the test.
11003
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004
for as_dir in $PATH
11007
test -z "$as_dir" && as_dir=.
11008
for ac_exec_ext in '' $ac_executable_extensions; do
11009
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11010
ac_cv_prog_CC="${ac_tool_prefix}cc"
11011
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11021
if test -n "$CC"; then
11022
{ echo "$as_me:$LINENO: result: $CC" >&5
11023
echo "${ECHO_T}$CC" >&6; }
11025
{ echo "$as_me:$LINENO: result: no" >&5
11026
echo "${ECHO_T}no" >&6; }
11032
if test -z "$CC"; then
11033
# Extract the first word of "cc", so it can be a program name with args.
11034
set dummy cc; ac_word=$2
11035
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11036
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11037
if test "${ac_cv_prog_CC+set}" = set; then
11038
echo $ECHO_N "(cached) $ECHO_C" >&6
11040
if test -n "$CC"; then
11041
ac_cv_prog_CC="$CC" # Let the user override the test.
11043
ac_prog_rejected=no
11044
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11045
for as_dir in $PATH
11048
test -z "$as_dir" && as_dir=.
11049
for ac_exec_ext in '' $ac_executable_extensions; do
11050
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11051
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11052
ac_prog_rejected=yes
11056
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11063
if test $ac_prog_rejected = yes; then
11064
# We found a bogon in the path, so make sure we never use it.
11065
set dummy $ac_cv_prog_CC
11067
if test $# != 0; then
11068
# We chose a different compiler from the bogus one.
11069
# However, it has the same basename, so the bogon will be chosen
11070
# first if we set CC to just the basename; use the full file name.
11072
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11078
if test -n "$CC"; then
11079
{ echo "$as_me:$LINENO: result: $CC" >&5
11080
echo "${ECHO_T}$CC" >&6; }
11082
{ echo "$as_me:$LINENO: result: no" >&5
11083
echo "${ECHO_T}no" >&6; }
11088
if test -z "$CC"; then
11089
if test -n "$ac_tool_prefix"; then
11090
for ac_prog in cl.exe
11092
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11093
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11094
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11095
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11096
if test "${ac_cv_prog_CC+set}" = set; then
11097
echo $ECHO_N "(cached) $ECHO_C" >&6
11099
if test -n "$CC"; then
11100
ac_cv_prog_CC="$CC" # Let the user override the test.
11102
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103
for as_dir in $PATH
11106
test -z "$as_dir" && as_dir=.
11107
for ac_exec_ext in '' $ac_executable_extensions; do
11108
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11109
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11110
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11120
if test -n "$CC"; then
11121
{ echo "$as_me:$LINENO: result: $CC" >&5
11122
echo "${ECHO_T}$CC" >&6; }
11124
{ echo "$as_me:$LINENO: result: no" >&5
11125
echo "${ECHO_T}no" >&6; }
11129
test -n "$CC" && break
11132
if test -z "$CC"; then
11134
for ac_prog in cl.exe
11136
# Extract the first word of "$ac_prog", so it can be a program name with args.
11137
set dummy $ac_prog; ac_word=$2
11138
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11139
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11140
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11141
echo $ECHO_N "(cached) $ECHO_C" >&6
11143
if test -n "$ac_ct_CC"; then
11144
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11146
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11147
for as_dir in $PATH
11150
test -z "$as_dir" && as_dir=.
11151
for ac_exec_ext in '' $ac_executable_extensions; do
11152
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11153
ac_cv_prog_ac_ct_CC="$ac_prog"
11154
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11163
ac_ct_CC=$ac_cv_prog_ac_ct_CC
11164
if test -n "$ac_ct_CC"; then
11165
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11166
echo "${ECHO_T}$ac_ct_CC" >&6; }
11168
{ echo "$as_me:$LINENO: result: no" >&5
11169
echo "${ECHO_T}no" >&6; }
11173
test -n "$ac_ct_CC" && break
11176
if test "x$ac_ct_CC" = x; then
11179
case $cross_compiling:$ac_tool_warned in
11181
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11182
whose name does not start with the host triplet. If you think this
11183
configuration is useful to you, please write to autoconf@gnu.org." >&5
11184
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11185
whose name does not start with the host triplet. If you think this
11186
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11187
ac_tool_warned=yes ;;
11196
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11197
See \`config.log' for more details." >&5
11198
echo "$as_me: error: no acceptable C compiler found in \$PATH
11199
See \`config.log' for more details." >&2;}
11200
{ (exit 1); exit 1; }; }
11202
# Provide some information about the compiler.
11203
echo "$as_me:$LINENO: checking for C compiler version" >&5
11204
ac_compiler=`set X $ac_compile; echo $2`
11205
{ (ac_try="$ac_compiler --version >&5"
11206
case "(($ac_try" in
11207
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11208
*) ac_try_echo=$ac_try;;
11210
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11211
(eval "$ac_compiler --version >&5") 2>&5
11213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214
(exit $ac_status); }
11215
{ (ac_try="$ac_compiler -v >&5"
11216
case "(($ac_try" in
11217
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218
*) ac_try_echo=$ac_try;;
11220
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221
(eval "$ac_compiler -v >&5") 2>&5
11223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224
(exit $ac_status); }
11225
{ (ac_try="$ac_compiler -V >&5"
11226
case "(($ac_try" in
11227
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11228
*) ac_try_echo=$ac_try;;
11230
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231
(eval "$ac_compiler -V >&5") 2>&5
11233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234
(exit $ac_status); }
11236
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11237
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
11238
if test "${ac_cv_c_compiler_gnu+set}" = set; then
11239
echo $ECHO_N "(cached) $ECHO_C" >&6
11241
cat >conftest.$ac_ext <<_ACEOF
11244
cat confdefs.h >>conftest.$ac_ext
11245
cat >>conftest.$ac_ext <<_ACEOF
11246
/* end confdefs.h. */
11259
rm -f conftest.$ac_objext
11260
if { (ac_try="$ac_compile"
11261
case "(($ac_try" in
11262
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263
*) ac_try_echo=$ac_try;;
11265
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266
(eval "$ac_compile") 2>conftest.er1
11268
grep -v '^ *+' conftest.er1 >conftest.err
11270
cat conftest.err >&5
11271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272
(exit $ac_status); } && {
11273
test -z "$ac_c_werror_flag" ||
11274
test ! -s conftest.err
11275
} && test -s conftest.$ac_objext; then
11276
ac_compiler_gnu=yes
11278
echo "$as_me: failed program was:" >&5
11279
sed 's/^/| /' conftest.$ac_ext >&5
11284
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285
ac_cv_c_compiler_gnu=$ac_compiler_gnu
11288
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11289
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
11290
GCC=`test $ac_compiler_gnu = yes && echo yes`
11291
ac_test_CFLAGS=${CFLAGS+set}
11292
ac_save_CFLAGS=$CFLAGS
11293
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11294
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
11295
if test "${ac_cv_prog_cc_g+set}" = set; then
11296
echo $ECHO_N "(cached) $ECHO_C" >&6
11298
ac_save_c_werror_flag=$ac_c_werror_flag
11299
ac_c_werror_flag=yes
11302
cat >conftest.$ac_ext <<_ACEOF
11305
cat confdefs.h >>conftest.$ac_ext
11306
cat >>conftest.$ac_ext <<_ACEOF
11307
/* end confdefs.h. */
11317
rm -f conftest.$ac_objext
11318
if { (ac_try="$ac_compile"
11319
case "(($ac_try" in
11320
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321
*) ac_try_echo=$ac_try;;
11323
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324
(eval "$ac_compile") 2>conftest.er1
11326
grep -v '^ *+' conftest.er1 >conftest.err
11328
cat conftest.err >&5
11329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330
(exit $ac_status); } && {
11331
test -z "$ac_c_werror_flag" ||
11332
test ! -s conftest.err
11333
} && test -s conftest.$ac_objext; then
11334
ac_cv_prog_cc_g=yes
11336
echo "$as_me: failed program was:" >&5
11337
sed 's/^/| /' conftest.$ac_ext >&5
11340
cat >conftest.$ac_ext <<_ACEOF
11343
cat confdefs.h >>conftest.$ac_ext
11344
cat >>conftest.$ac_ext <<_ACEOF
11345
/* end confdefs.h. */
11355
rm -f conftest.$ac_objext
11356
if { (ac_try="$ac_compile"
11357
case "(($ac_try" in
11358
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359
*) ac_try_echo=$ac_try;;
11361
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362
(eval "$ac_compile") 2>conftest.er1
11364
grep -v '^ *+' conftest.er1 >conftest.err
11366
cat conftest.err >&5
11367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368
(exit $ac_status); } && {
11369
test -z "$ac_c_werror_flag" ||
11370
test ! -s conftest.err
11371
} && test -s conftest.$ac_objext; then
11374
echo "$as_me: failed program was:" >&5
11375
sed 's/^/| /' conftest.$ac_ext >&5
11377
ac_c_werror_flag=$ac_save_c_werror_flag
11379
cat >conftest.$ac_ext <<_ACEOF
11382
cat confdefs.h >>conftest.$ac_ext
11383
cat >>conftest.$ac_ext <<_ACEOF
11384
/* end confdefs.h. */
11394
rm -f conftest.$ac_objext
11395
if { (ac_try="$ac_compile"
11396
case "(($ac_try" in
11397
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398
*) ac_try_echo=$ac_try;;
11400
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401
(eval "$ac_compile") 2>conftest.er1
11403
grep -v '^ *+' conftest.er1 >conftest.err
11405
cat conftest.err >&5
11406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407
(exit $ac_status); } && {
11408
test -z "$ac_c_werror_flag" ||
11409
test ! -s conftest.err
11410
} && test -s conftest.$ac_objext; then
11411
ac_cv_prog_cc_g=yes
11413
echo "$as_me: failed program was:" >&5
11414
sed 's/^/| /' conftest.$ac_ext >&5
11419
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11422
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11425
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11426
ac_c_werror_flag=$ac_save_c_werror_flag
11428
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11429
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
11430
if test "$ac_test_CFLAGS" = set; then
11431
CFLAGS=$ac_save_CFLAGS
11432
elif test $ac_cv_prog_cc_g = yes; then
11433
if test "$GCC" = yes; then
11439
if test "$GCC" = yes; then
11445
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
11446
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
11447
if test "${ac_cv_prog_cc_c89+set}" = set; then
11448
echo $ECHO_N "(cached) $ECHO_C" >&6
11450
ac_cv_prog_cc_c89=no
11452
cat >conftest.$ac_ext <<_ACEOF
11455
cat confdefs.h >>conftest.$ac_ext
11456
cat >>conftest.$ac_ext <<_ACEOF
11457
/* end confdefs.h. */
11458
#include <stdarg.h>
11460
#include <sys/types.h>
11461
#include <sys/stat.h>
11462
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11463
struct buf { int x; };
11464
FILE * (*rcsopen) (struct buf *, struct stat *, int);
11465
static char *e (p, i)
11471
static char *f (char * (*g) (char **, int), char **p, ...)
11476
s = g (p, va_arg (v,int));
11481
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11482
function prototypes and stuff, but not '\xHH' hex character constants.
11483
These don't provoke an error unfortunately, instead are silently treated
11484
as 'x'. The following induces an error, until -std is added to get
11485
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11486
array size at least. It's necessary to write '\x00'==0 to get something
11487
that's true only with -std. */
11488
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11490
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11491
inside strings and character constants. */
11493
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11495
int test (int i, double x);
11496
struct s1 {int (*f) (int a);};
11497
struct s2 {int (*f) (double a);};
11498
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11504
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11509
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11510
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11512
CC="$ac_save_CC $ac_arg"
11513
rm -f conftest.$ac_objext
11514
if { (ac_try="$ac_compile"
11515
case "(($ac_try" in
11516
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517
*) ac_try_echo=$ac_try;;
11519
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520
(eval "$ac_compile") 2>conftest.er1
11522
grep -v '^ *+' conftest.er1 >conftest.err
11524
cat conftest.err >&5
11525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526
(exit $ac_status); } && {
11527
test -z "$ac_c_werror_flag" ||
11528
test ! -s conftest.err
11529
} && test -s conftest.$ac_objext; then
11530
ac_cv_prog_cc_c89=$ac_arg
11532
echo "$as_me: failed program was:" >&5
11533
sed 's/^/| /' conftest.$ac_ext >&5
11538
rm -f core conftest.err conftest.$ac_objext
11539
test "x$ac_cv_prog_cc_c89" != "xno" && break
11541
rm -f conftest.$ac_ext
11546
case "x$ac_cv_prog_cc_c89" in
11548
{ echo "$as_me:$LINENO: result: none needed" >&5
11549
echo "${ECHO_T}none needed" >&6; } ;;
11551
{ echo "$as_me:$LINENO: result: unsupported" >&5
11552
echo "${ECHO_T}unsupported" >&6; } ;;
11554
CC="$CC $ac_cv_prog_cc_c89"
11555
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
11556
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
11561
ac_cpp='$CPP $CPPFLAGS'
11562
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11563
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11564
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11566
depcc="$CC" am_compiler_list=
11568
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11569
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
11570
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
11571
echo $ECHO_N "(cached) $ECHO_C" >&6
11573
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11574
# We make a subdir and do the tests there. Otherwise we can end up
11575
# making bogus files that we don't know about and never remove. For
11576
# instance it was reported that on HP-UX the gcc test will end up
11577
# making a dummy file named `D' -- because `-MD' means `put the output
11580
# Copy depcomp to subdir because otherwise we won't find it if we're
11581
# using a relative directory.
11582
cp "$am_depcomp" conftest.dir
11584
# We will build objects and dependencies in a subdirectory because
11585
# it helps to detect inapplicable dependency modes. For instance
11586
# both Tru64's cc and ICC support -MD to output dependencies as a
11587
# side effect of compilation, but ICC will put the dependencies in
11588
# the current directory while Tru64 will put them in the object
11592
am_cv_CC_dependencies_compiler_type=none
11593
if test "$am_compiler_list" = ""; then
11594
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11596
for depmode in $am_compiler_list; do
11597
# Setup a source with many dependencies, because some compilers
11598
# like to wrap large dependency lists on column 80 (with \), and
11599
# we should not choose a depcomp mode which is confused by this.
11601
# We need to recreate these files for each test, as the compiler may
11602
# overwrite some of them when testing with obscure command lines.
11603
# This happens at least with the AIX C compiler.
11605
for i in 1 2 3 4 5 6; do
11606
echo '#include "conftst'$i'.h"' >> sub/conftest.c
11607
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11608
# Solaris 8's {/usr,}/bin/sh.
11609
touch sub/conftst$i.h
11611
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11615
# after this tag, mechanisms are not by side-effect, so they'll
11616
# only be used when explicitly requested
11617
if test "x$enable_dependency_tracking" = xyes; then
11625
# We check with `-c' and `-o' for the sake of the "dashmstdout"
11626
# mode. It turns out that the SunPro C++ compiler does not properly
11627
# handle `-M -o', and we need to detect this.
11628
if depmode=$depmode \
11629
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11630
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11631
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11632
>/dev/null 2>conftest.err &&
11633
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11634
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11635
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11636
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11637
# icc doesn't choke on unknown options, it will just issue warnings
11638
# or remarks (even with -Werror). So we grep stderr for any message
11639
# that says an option was ignored or not supported.
11640
# When given -MP, icc 7.0 and 7.1 complain thusly:
11641
# icc: Command line warning: ignoring option '-M'; no argument required
11642
# The diagnosis changed in icc 8.0:
11643
# icc: Command line remark: option '-MP' not supported
11644
if (grep 'ignoring option' conftest.err ||
11645
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11646
am_cv_CC_dependencies_compiler_type=$depmode
11653
rm -rf conftest.dir
11655
am_cv_CC_dependencies_compiler_type=none
11659
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
11660
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
11661
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11664
test "x$enable_dependency_tracking" != xno \
11665
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11666
am__fastdepCC_TRUE=
11667
am__fastdepCC_FALSE='#'
11669
am__fastdepCC_TRUE='#'
11670
am__fastdepCC_FALSE=
11674
# Find a good install program. We prefer a C program (faster),
11675
# so one script is as good as another. But avoid the broken or
11676
# incompatible versions:
11677
# SysV /etc/install, /usr/sbin/install
11678
# SunOS /usr/etc/install
11679
# IRIX /sbin/install
11681
# AmigaOS /C/install, which installs bootblocks on floppy discs
11682
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11683
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11684
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11685
# OS/2's system install, which has a completely different semantic
11686
# ./install, which can be erroneously created by make from ./install.sh.
11687
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11688
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11689
if test -z "$INSTALL"; then
11690
if test "${ac_cv_path_install+set}" = set; then
11691
echo $ECHO_N "(cached) $ECHO_C" >&6
11693
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11694
for as_dir in $PATH
11697
test -z "$as_dir" && as_dir=.
11698
# Account for people who put trailing slashes in PATH elements.
11700
./ | .// | /cC/* | \
11701
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11702
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11705
# OSF1 and SCO ODT 3.0 have their own names for install.
11706
# Don't use installbsd from OSF since it installs stuff as root
11708
for ac_prog in ginstall scoinst install; do
11709
for ac_exec_ext in '' $ac_executable_extensions; do
11710
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11711
if test $ac_prog = install &&
11712
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11713
# AIX install. It has an incompatible calling convention.
11715
elif test $ac_prog = install &&
11716
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11717
# program-specific install script used by HP pwplus--don't use.
11720
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11733
if test "${ac_cv_path_install+set}" = set; then
11734
INSTALL=$ac_cv_path_install
11736
# As a last resort, use the slow shell script. Don't cache a
11737
# value for INSTALL within a source directory, because that will
11738
# break other packages using the cache if that directory is
11739
# removed, or if the value is a relative name.
11740
INSTALL=$ac_install_sh
11743
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11744
echo "${ECHO_T}$INSTALL" >&6; }
11746
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11747
# It thinks the first close brace ends the variable substitution.
11748
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11750
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11752
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11754
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11755
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
11756
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11757
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11758
echo $ECHO_N "(cached) $ECHO_C" >&6
11760
cat >conftest.make <<\_ACEOF
11763
@echo '@@@%%%=$(MAKE)=@@@%%%'
11765
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11766
case `${MAKE-make} -f conftest.make 2>/dev/null` in
11767
*@@@%%%=?*=@@@%%%*)
11768
eval ac_cv_prog_make_${ac_make}_set=yes;;
11770
eval ac_cv_prog_make_${ac_make}_set=no;;
11772
rm -f conftest.make
11774
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11775
{ echo "$as_me:$LINENO: result: yes" >&5
11776
echo "${ECHO_T}yes" >&6; }
11779
{ echo "$as_me:$LINENO: result: no" >&5
11780
echo "${ECHO_T}no" >&6; }
11781
SET_MAKE="MAKE=${MAKE-make}"
11784
if test -n "$ac_tool_prefix"; then
11785
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11786
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11787
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11788
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11789
if test "${ac_cv_prog_RANLIB+set}" = set; then
11790
echo $ECHO_N "(cached) $ECHO_C" >&6
11792
if test -n "$RANLIB"; then
11793
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11795
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796
for as_dir in $PATH
11799
test -z "$as_dir" && as_dir=.
11800
for ac_exec_ext in '' $ac_executable_extensions; do
11801
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11802
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11803
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11812
RANLIB=$ac_cv_prog_RANLIB
11813
if test -n "$RANLIB"; then
11814
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
11815
echo "${ECHO_T}$RANLIB" >&6; }
11817
{ echo "$as_me:$LINENO: result: no" >&5
11818
echo "${ECHO_T}no" >&6; }
11823
if test -z "$ac_cv_prog_RANLIB"; then
11824
ac_ct_RANLIB=$RANLIB
11825
# Extract the first word of "ranlib", so it can be a program name with args.
11826
set dummy ranlib; ac_word=$2
11827
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11828
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11829
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11830
echo $ECHO_N "(cached) $ECHO_C" >&6
11832
if test -n "$ac_ct_RANLIB"; then
11833
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11835
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11836
for as_dir in $PATH
11839
test -z "$as_dir" && as_dir=.
11840
for ac_exec_ext in '' $ac_executable_extensions; do
11841
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11842
ac_cv_prog_ac_ct_RANLIB="ranlib"
11843
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11852
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11853
if test -n "$ac_ct_RANLIB"; then
11854
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11855
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11857
{ echo "$as_me:$LINENO: result: no" >&5
11858
echo "${ECHO_T}no" >&6; }
11861
if test "x$ac_ct_RANLIB" = x; then
11864
case $cross_compiling:$ac_tool_warned in
11866
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11867
whose name does not start with the host triplet. If you think this
11868
configuration is useful to you, please write to autoconf@gnu.org." >&5
11869
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11870
whose name does not start with the host triplet. If you think this
11871
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11872
ac_tool_warned=yes ;;
11874
RANLIB=$ac_ct_RANLIB
11877
RANLIB="$ac_cv_prog_RANLIB"
11881
#==================================================================
11882
# OK, these five macros prevent my personal path from appearing
11883
# in the default Makefile, and actually should make it work to
11884
# rebuilt itself even if somebody completely blows off running
11885
# ./autogen.sh. And it ALMOST WORKS
11886
#==================================================================
11887
ACLOCAL="${SHELL} ./missing --run aclocal"
11888
ACTAR="${SHELL} ./missing --run tar"
11889
AUTOCONF="${SHELL} ./missing --run autoconf;echo \"Run ./configure\";exit"
11890
AUTOHEADER="${SHELL} ./missing --run autoheader"
11891
AUTOMAKE="${SHELL} ./missing --run automake --add-missing --copy --gnu"
11899
#==================================================================
11900
# Disable unnecessary libtool tests for c++,fortran,java
11901
#==================================================================
9681
# The else clause should only fire when bootstrapping the
9682
# libtool distribution, otherwise you forgot to ship ltmain.sh
9683
# with your package, and you will get complaints that there are
9684
# no rules to generate ltmain.sh.
9685
if test -f "$ltmain"; then
9686
# See if we are running on zsh, and set the options which allow our commands through
9687
# without removal of \ escapes.
9688
if test -n "${ZSH_VERSION+set}" ; then
9689
setopt NO_GLOB_SUBST
9691
# Now quote all the things that may contain metacharacters while being
9692
# careful not to overquote the AC_SUBSTed values. We take copies of the
9693
# variables and quote the copies for generation of the libtool script.
9694
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9696
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9697
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9698
deplibs_check_method reload_flag reload_cmds need_locks \
9699
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9700
lt_cv_sys_global_symbol_to_c_name_address \
9701
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9702
old_postinstall_cmds old_postuninstall_cmds \
9706
lt_prog_compiler_wl \
9707
lt_prog_compiler_pic \
9708
lt_prog_compiler_static \
9709
lt_prog_compiler_no_builtin_flag \
9710
export_dynamic_flag_spec \
9711
thread_safe_flag_spec \
9712
whole_archive_flag_spec \
9713
enable_shared_with_static_runtimes \
9715
old_archive_from_new_cmds \
9720
compiler_lib_search_path \
9721
compiler_lib_search_dirs \
9723
archive_expsym_cmds \
9725
postuninstall_cmds \
9726
old_archive_from_expsyms_cmds \
9727
allow_undefined_flag \
9729
export_symbols_cmds \
9730
hardcode_libdir_flag_spec \
9731
hardcode_libdir_flag_spec_ld \
9732
hardcode_libdir_separator \
9733
hardcode_automatic \
9735
module_expsym_cmds \
9736
lt_cv_prog_compiler_c_o \
9742
old_archive_cmds | \
9743
old_archive_from_new_cmds | \
9745
archive_expsym_cmds | \
9747
module_expsym_cmds | \
9748
old_archive_from_expsyms_cmds | \
9749
export_symbols_cmds | \
9750
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9751
postinstall_cmds | postuninstall_cmds | \
9752
old_postinstall_cmds | old_postuninstall_cmds | \
9753
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9754
# Double-quote double-evaled strings.
9755
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9758
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9764
*'\$0 --fallback-echo"')
9765
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9770
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9772
{ echo "$as_me:$LINENO: creating $ofile" >&5
9773
echo "$as_me: creating $ofile" >&6;}
9775
cat <<__EOF__ >> "$cfgfile"
9778
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9779
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9780
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9782
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
9783
# Free Software Foundation, Inc.
9785
# This file is part of GNU Libtool:
9786
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9788
# This program is free software; you can redistribute it and/or modify
9789
# it under the terms of the GNU General Public License as published by
9790
# the Free Software Foundation; either version 2 of the License, or
9791
# (at your option) any later version.
9793
# This program is distributed in the hope that it will be useful, but
9794
# WITHOUT ANY WARRANTY; without even the implied warranty of
9795
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9796
# General Public License for more details.
9798
# You should have received a copy of the GNU General Public License
9799
# along with this program; if not, write to the Free Software
9800
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9802
# As a special exception to the GNU General Public License, if you
9803
# distribute this file as part of a program that contains a
9804
# configuration script generated by Autoconf, you may include it under
9805
# the same distribution terms that you use for the rest of that program.
9807
# A sed program that does not truncate output.
9810
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9811
Xsed="$SED -e 1s/^X//"
9813
# The HP-UX ksh and POSIX shell print the target directory to stdout
9815
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9817
# The names of the tagged configurations supported by this script.
9820
# ### BEGIN LIBTOOL CONFIG
9822
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9824
# Shell to use when invoking shell scripts.
9827
# Whether or not to build shared libraries.
9828
build_libtool_libs=$enable_shared
9830
# Whether or not to build static libraries.
9831
build_old_libs=$enable_static
9833
# Whether or not to add -lc for building shared libraries.
9834
build_libtool_need_lc=$archive_cmds_need_lc
9836
# Whether or not to disallow shared libs when runtime libs are static
9837
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9839
# Whether or not to optimize for fast installation.
9840
fast_install=$enable_fast_install
9843
host_alias=$host_alias
9848
build_alias=$build_alias
9852
# An echo program that does not interpret backslashes.
9857
AR_FLAGS=$lt_AR_FLAGS
9862
# LTCC compiler flags.
9863
LTCFLAGS=$lt_LTCFLAGS
9865
# A language-specific compiler.
9868
# Is the compiler the GNU C compiler?
9874
# The linker used to build libraries.
9877
# Whether we need hard or soft links.
9880
# A BSD-compatible nm program.
9883
# A symbol stripping program
9886
# Used to examine libraries when file_magic_cmd begins "file"
9887
MAGIC_CMD=$MAGIC_CMD
9889
# Used on cygwin: DLL creation program.
9892
# Used on cygwin: object dumper.
9895
# Used on cygwin: assembler.
9898
# The name of the directory that contains temporary libtool files.
9901
# How to create reloadable object files.
9902
reload_flag=$lt_reload_flag
9903
reload_cmds=$lt_reload_cmds
9905
# How to pass a linker flag through the compiler.
9906
wl=$lt_lt_prog_compiler_wl
9908
# Object file suffix (normally "o").
9911
# Old archive suffix (normally "a").
9914
# Shared library suffix (normally ".so").
9915
shrext_cmds='$shrext_cmds'
9917
# Executable file suffix (normally "").
9920
# Additional compiler flags for building library objects.
9921
pic_flag=$lt_lt_prog_compiler_pic
9924
# What is the maximum length of a command?
9925
max_cmd_len=$lt_cv_sys_max_cmd_len
9927
# Does compiler simultaneously support -c and -o options?
9928
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9930
# Must we lock files when doing compilation?
9931
need_locks=$lt_need_locks
9933
# Do we need the lib prefix for modules?
9934
need_lib_prefix=$need_lib_prefix
9936
# Do we need a version for libraries?
9937
need_version=$need_version
9939
# Whether dlopen is supported.
9940
dlopen_support=$enable_dlopen
9942
# Whether dlopen of programs is supported.
9943
dlopen_self=$enable_dlopen_self
9945
# Whether dlopen of statically linked programs is supported.
9946
dlopen_self_static=$enable_dlopen_self_static
9948
# Compiler flag to prevent dynamic linking.
9949
link_static_flag=$lt_lt_prog_compiler_static
9951
# Compiler flag to turn off builtin functions.
9952
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9954
# Compiler flag to allow reflexive dlopens.
9955
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9957
# Compiler flag to generate shared objects directly from archives.
9958
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9960
# Compiler flag to generate thread-safe objects.
9961
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9963
# Library versioning type.
9964
version_type=$version_type
9966
# Format of library name prefix.
9967
libname_spec=$lt_libname_spec
9969
# List of archive names. First name is the real one, the rest are links.
9970
# The last name is the one that the linker finds with -lNAME.
9971
library_names_spec=$lt_library_names_spec
9973
# The coded name of the library, if different from the real name.
9974
soname_spec=$lt_soname_spec
9976
# Commands used to build and install an old-style archive.
9978
old_archive_cmds=$lt_old_archive_cmds
9979
old_postinstall_cmds=$lt_old_postinstall_cmds
9980
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9982
# Create an old-style archive from a shared archive.
9983
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9985
# Create a temporary old-style archive to link instead of a shared archive.
9986
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9988
# Commands used to build and install a shared archive.
9989
archive_cmds=$lt_archive_cmds
9990
archive_expsym_cmds=$lt_archive_expsym_cmds
9991
postinstall_cmds=$lt_postinstall_cmds
9992
postuninstall_cmds=$lt_postuninstall_cmds
9994
# Commands used to build a loadable module (assumed same as above if empty)
9995
module_cmds=$lt_module_cmds
9996
module_expsym_cmds=$lt_module_expsym_cmds
9998
# Commands to strip libraries.
9999
old_striplib=$lt_old_striplib
10000
striplib=$lt_striplib
10002
# Dependencies to place before the objects being linked to create a
10004
predep_objects=$lt_predep_objects
10006
# Dependencies to place after the objects being linked to create a
10008
postdep_objects=$lt_postdep_objects
10010
# Dependencies to place before the objects being linked to create a
10012
predeps=$lt_predeps
10014
# Dependencies to place after the objects being linked to create a
10016
postdeps=$lt_postdeps
10018
# The directories searched by this compiler when creating a shared
10020
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10022
# The library search path used internally by the compiler when linking
10023
# a shared library.
10024
compiler_lib_search_path=$lt_compiler_lib_search_path
10026
# Method to check whether dependent libraries are shared objects.
10027
deplibs_check_method=$lt_deplibs_check_method
10029
# Command to use when deplibs_check_method == file_magic.
10030
file_magic_cmd=$lt_file_magic_cmd
10032
# Flag that allows shared libraries with undefined symbols to be built.
10033
allow_undefined_flag=$lt_allow_undefined_flag
10035
# Flag that forces no undefined symbols.
10036
no_undefined_flag=$lt_no_undefined_flag
10038
# Commands used to finish a libtool library installation in a directory.
10039
finish_cmds=$lt_finish_cmds
10041
# Same as above, but a single script fragment to be evaled but not shown.
10042
finish_eval=$lt_finish_eval
10044
# Take the output of nm and produce a listing of raw symbols and C names.
10045
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10047
# Transform the output of nm in a proper C declaration
10048
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10050
# Transform the output of nm in a C name address pair
10051
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10053
# This is the shared library runtime path variable.
10054
runpath_var=$runpath_var
10056
# This is the shared library path variable.
10057
shlibpath_var=$shlibpath_var
10059
# Is shlibpath searched before the hard-coded library search path?
10060
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10062
# How to hardcode a shared library path into an executable.
10063
hardcode_action=$hardcode_action
10065
# Whether we should hardcode library paths into libraries.
10066
hardcode_into_libs=$hardcode_into_libs
10068
# Flag to hardcode \$libdir into a binary during linking.
10069
# This must work even if \$libdir does not exist.
10070
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10072
# If ld is used when linking, flag to hardcode \$libdir into
10073
# a binary during linking. This must work even if \$libdir does
10075
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10077
# Whether we need a single -rpath flag with a separated argument.
10078
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10080
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10081
# resulting binary.
10082
hardcode_direct=$hardcode_direct
10084
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10085
# resulting binary.
10086
hardcode_minus_L=$hardcode_minus_L
10088
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10089
# the resulting binary.
10090
hardcode_shlibpath_var=$hardcode_shlibpath_var
10092
# Set to yes if building a shared library automatically hardcodes DIR into the library
10093
# and all subsequent libraries and executables linked against it.
10094
hardcode_automatic=$hardcode_automatic
10096
# Variables whose values should be saved in libtool wrapper scripts and
10097
# restored at relink time.
10098
variables_saved_for_relink="$variables_saved_for_relink"
10100
# Whether libtool must link a program against all its dependency libraries.
10101
link_all_deplibs=$link_all_deplibs
10103
# Compile-time system search path for libraries
10104
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10106
# Run-time system search path for libraries
10107
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10109
# Fix the shell variable \$srcfile for the compiler.
10110
fix_srcfile_path=$lt_fix_srcfile_path
10112
# Set to yes if exported symbols are required.
10113
always_export_symbols=$always_export_symbols
10115
# The commands to list exported symbols.
10116
export_symbols_cmds=$lt_export_symbols_cmds
10118
# The commands to extract the exported symbol list from a shared archive.
10119
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10121
# Symbols that should not be listed in the preloaded symbols.
10122
exclude_expsyms=$lt_exclude_expsyms
10124
# Symbols that must always be exported.
10125
include_expsyms=$lt_include_expsyms
10127
# ### END LIBTOOL CONFIG
10134
cat <<\EOF >> "$cfgfile"
10136
# AIX sometimes has problems with the GCC collect2 program. For some
10137
# reason, if we set the COLLECT_NAMES environment variable, the problems
10138
# vanish in a puff of smoke.
10139
if test "X${COLLECT_NAMES+set}" != Xset; then
10141
export COLLECT_NAMES
10147
# We use sed instead of cat because bash on DJGPP gets confused if
10148
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10149
# text mode, it properly converts lines to CR/LF. This bash problem
10150
# is reportedly fixed, but why not run on old versions too?
10151
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10153
mv -f "$cfgfile" "$ofile" || \
10154
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10158
# If there is no Makefile yet, we rely on a make rule to execute
10159
# `config.status --recheck' to rerun these tests and create the
10160
# libtool script then.
10161
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10162
if test -f "$ltmain_in"; then
10163
test -f Makefile && make "$ltmain"
10169
ac_cpp='$CPP $CPPFLAGS'
10170
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10171
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10172
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10177
# Check whether --with-tags was given.
10178
if test "${with_tags+set}" = set; then
10179
withval=$with_tags; tagnames="$withval"
10183
if test -f "$ltmain" && test -n "$tagnames"; then
10184
if test ! -f "${ofile}"; then
10185
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10186
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10189
if test -z "$LTCC"; then
10190
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10191
if test -z "$LTCC"; then
10192
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10193
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10195
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10196
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10199
if test -z "$LTCFLAGS"; then
10200
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10203
# Extract list of available tagged configurations in $ofile.
10204
# Note that this assumes the entire list is on one line.
10205
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10207
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10208
for tagname in $tagnames; do
10210
# Check whether tagname contains only valid characters
10211
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10213
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10214
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10215
{ (exit 1); exit 1; }; }
10219
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10221
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10222
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10223
{ (exit 1); exit 1; }; }
10226
# Update the list of available tags.
10227
if test -n "$tagname"; then
10228
echo appending configuration tag \"$tagname\" to $ofile
10232
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10233
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10234
(test "X$CXX" != "Xg++"))) ; then
10242
if test -n "$F77" && test "X$F77" != "Xno"; then
10250
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
10260
# Source file extension for RC test sources.
10263
# Object file extension for compiled RC test sources.
10267
# Code to be used in simple compile tests
10268
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
10270
# Code to be used in simple link tests
10271
lt_simple_link_test_code="$lt_simple_compile_test_code"
10273
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10275
# If no C compiler was specified, use CC.
10278
# If no C compiler flags were specified, use CFLAGS.
10279
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10281
# Allow CC to be a program name with arguments.
10285
# save warnings/boilerplate of simple test code
10286
ac_outfile=conftest.$ac_objext
10287
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10288
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10289
_lt_compiler_boilerplate=`cat conftest.err`
10292
ac_outfile=conftest.$ac_objext
10293
echo "$lt_simple_link_test_code" >conftest.$ac_ext
10294
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10295
_lt_linker_boilerplate=`cat conftest.err`
10299
# Allow CC to be a program name with arguments.
10304
for cc_temp in $compiler""; do
10306
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10307
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10312
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10314
lt_cv_prog_compiler_c_o_RC=yes
10316
# The else clause should only fire when bootstrapping the
10317
# libtool distribution, otherwise you forgot to ship ltmain.sh
10318
# with your package, and you will get complaints that there are
10319
# no rules to generate ltmain.sh.
10320
if test -f "$ltmain"; then
10321
# See if we are running on zsh, and set the options which allow our commands through
10322
# without removal of \ escapes.
10323
if test -n "${ZSH_VERSION+set}" ; then
10324
setopt NO_GLOB_SUBST
10326
# Now quote all the things that may contain metacharacters while being
10327
# careful not to overquote the AC_SUBSTed values. We take copies of the
10328
# variables and quote the copies for generation of the libtool script.
10329
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10331
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10332
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10333
deplibs_check_method reload_flag reload_cmds need_locks \
10334
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10335
lt_cv_sys_global_symbol_to_c_name_address \
10336
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10337
old_postinstall_cmds old_postuninstall_cmds \
10341
lt_prog_compiler_wl_RC \
10342
lt_prog_compiler_pic_RC \
10343
lt_prog_compiler_static_RC \
10344
lt_prog_compiler_no_builtin_flag_RC \
10345
export_dynamic_flag_spec_RC \
10346
thread_safe_flag_spec_RC \
10347
whole_archive_flag_spec_RC \
10348
enable_shared_with_static_runtimes_RC \
10349
old_archive_cmds_RC \
10350
old_archive_from_new_cmds_RC \
10351
predep_objects_RC \
10352
postdep_objects_RC \
10355
compiler_lib_search_path_RC \
10356
compiler_lib_search_dirs_RC \
10358
archive_expsym_cmds_RC \
10359
postinstall_cmds_RC \
10360
postuninstall_cmds_RC \
10361
old_archive_from_expsyms_cmds_RC \
10362
allow_undefined_flag_RC \
10363
no_undefined_flag_RC \
10364
export_symbols_cmds_RC \
10365
hardcode_libdir_flag_spec_RC \
10366
hardcode_libdir_flag_spec_ld_RC \
10367
hardcode_libdir_separator_RC \
10368
hardcode_automatic_RC \
10370
module_expsym_cmds_RC \
10371
lt_cv_prog_compiler_c_o_RC \
10372
fix_srcfile_path_RC \
10373
exclude_expsyms_RC \
10374
include_expsyms_RC; do
10377
old_archive_cmds_RC | \
10378
old_archive_from_new_cmds_RC | \
10379
archive_cmds_RC | \
10380
archive_expsym_cmds_RC | \
10382
module_expsym_cmds_RC | \
10383
old_archive_from_expsyms_cmds_RC | \
10384
export_symbols_cmds_RC | \
10385
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10386
postinstall_cmds | postuninstall_cmds | \
10387
old_postinstall_cmds | old_postuninstall_cmds | \
10388
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10389
# Double-quote double-evaled strings.
10390
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10393
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10399
*'\$0 --fallback-echo"')
10400
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10406
cat <<__EOF__ >> "$cfgfile"
10407
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
10409
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10411
# Shell to use when invoking shell scripts.
10414
# Whether or not to build shared libraries.
10415
build_libtool_libs=$enable_shared
10417
# Whether or not to build static libraries.
10418
build_old_libs=$enable_static
10420
# Whether or not to add -lc for building shared libraries.
10421
build_libtool_need_lc=$archive_cmds_need_lc_RC
10423
# Whether or not to disallow shared libs when runtime libs are static
10424
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
10426
# Whether or not to optimize for fast installation.
10427
fast_install=$enable_fast_install
10430
host_alias=$host_alias
10434
# The build system.
10435
build_alias=$build_alias
10439
# An echo program that does not interpret backslashes.
10444
AR_FLAGS=$lt_AR_FLAGS
10449
# LTCC compiler flags.
10450
LTCFLAGS=$lt_LTCFLAGS
10452
# A language-specific compiler.
10455
# Is the compiler the GNU C compiler?
10461
# The linker used to build libraries.
10464
# Whether we need hard or soft links.
10467
# A BSD-compatible nm program.
10470
# A symbol stripping program
10473
# Used to examine libraries when file_magic_cmd begins "file"
10474
MAGIC_CMD=$MAGIC_CMD
10476
# Used on cygwin: DLL creation program.
10479
# Used on cygwin: object dumper.
10482
# Used on cygwin: assembler.
10485
# The name of the directory that contains temporary libtool files.
10488
# How to create reloadable object files.
10489
reload_flag=$lt_reload_flag
10490
reload_cmds=$lt_reload_cmds
10492
# How to pass a linker flag through the compiler.
10493
wl=$lt_lt_prog_compiler_wl_RC
10495
# Object file suffix (normally "o").
10496
objext="$ac_objext"
10498
# Old archive suffix (normally "a").
10501
# Shared library suffix (normally ".so").
10502
shrext_cmds='$shrext_cmds'
10504
# Executable file suffix (normally "").
10507
# Additional compiler flags for building library objects.
10508
pic_flag=$lt_lt_prog_compiler_pic_RC
10511
# What is the maximum length of a command?
10512
max_cmd_len=$lt_cv_sys_max_cmd_len
10514
# Does compiler simultaneously support -c and -o options?
10515
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
10517
# Must we lock files when doing compilation?
10518
need_locks=$lt_need_locks
10520
# Do we need the lib prefix for modules?
10521
need_lib_prefix=$need_lib_prefix
10523
# Do we need a version for libraries?
10524
need_version=$need_version
10526
# Whether dlopen is supported.
10527
dlopen_support=$enable_dlopen
10529
# Whether dlopen of programs is supported.
10530
dlopen_self=$enable_dlopen_self
10532
# Whether dlopen of statically linked programs is supported.
10533
dlopen_self_static=$enable_dlopen_self_static
10535
# Compiler flag to prevent dynamic linking.
10536
link_static_flag=$lt_lt_prog_compiler_static_RC
10538
# Compiler flag to turn off builtin functions.
10539
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
10541
# Compiler flag to allow reflexive dlopens.
10542
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
10544
# Compiler flag to generate shared objects directly from archives.
10545
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
10547
# Compiler flag to generate thread-safe objects.
10548
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
10550
# Library versioning type.
10551
version_type=$version_type
10553
# Format of library name prefix.
10554
libname_spec=$lt_libname_spec
10556
# List of archive names. First name is the real one, the rest are links.
10557
# The last name is the one that the linker finds with -lNAME.
10558
library_names_spec=$lt_library_names_spec
10560
# The coded name of the library, if different from the real name.
10561
soname_spec=$lt_soname_spec
10563
# Commands used to build and install an old-style archive.
10565
old_archive_cmds=$lt_old_archive_cmds_RC
10566
old_postinstall_cmds=$lt_old_postinstall_cmds
10567
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10569
# Create an old-style archive from a shared archive.
10570
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
10572
# Create a temporary old-style archive to link instead of a shared archive.
10573
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
10575
# Commands used to build and install a shared archive.
10576
archive_cmds=$lt_archive_cmds_RC
10577
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
10578
postinstall_cmds=$lt_postinstall_cmds
10579
postuninstall_cmds=$lt_postuninstall_cmds
10581
# Commands used to build a loadable module (assumed same as above if empty)
10582
module_cmds=$lt_module_cmds_RC
10583
module_expsym_cmds=$lt_module_expsym_cmds_RC
10585
# Commands to strip libraries.
10586
old_striplib=$lt_old_striplib
10587
striplib=$lt_striplib
10589
# Dependencies to place before the objects being linked to create a
10591
predep_objects=$lt_predep_objects_RC
10593
# Dependencies to place after the objects being linked to create a
10595
postdep_objects=$lt_postdep_objects_RC
10597
# Dependencies to place before the objects being linked to create a
10599
predeps=$lt_predeps_RC
10601
# Dependencies to place after the objects being linked to create a
10603
postdeps=$lt_postdeps_RC
10605
# The directories searched by this compiler when creating a shared
10607
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
10609
# The library search path used internally by the compiler when linking
10610
# a shared library.
10611
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
10613
# Method to check whether dependent libraries are shared objects.
10614
deplibs_check_method=$lt_deplibs_check_method
10616
# Command to use when deplibs_check_method == file_magic.
10617
file_magic_cmd=$lt_file_magic_cmd
10619
# Flag that allows shared libraries with undefined symbols to be built.
10620
allow_undefined_flag=$lt_allow_undefined_flag_RC
10622
# Flag that forces no undefined symbols.
10623
no_undefined_flag=$lt_no_undefined_flag_RC
10625
# Commands used to finish a libtool library installation in a directory.
10626
finish_cmds=$lt_finish_cmds
10628
# Same as above, but a single script fragment to be evaled but not shown.
10629
finish_eval=$lt_finish_eval
10631
# Take the output of nm and produce a listing of raw symbols and C names.
10632
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10634
# Transform the output of nm in a proper C declaration
10635
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10637
# Transform the output of nm in a C name address pair
10638
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10640
# This is the shared library runtime path variable.
10641
runpath_var=$runpath_var
10643
# This is the shared library path variable.
10644
shlibpath_var=$shlibpath_var
10646
# Is shlibpath searched before the hard-coded library search path?
10647
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10649
# How to hardcode a shared library path into an executable.
10650
hardcode_action=$hardcode_action_RC
10652
# Whether we should hardcode library paths into libraries.
10653
hardcode_into_libs=$hardcode_into_libs
10655
# Flag to hardcode \$libdir into a binary during linking.
10656
# This must work even if \$libdir does not exist.
10657
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
10659
# If ld is used when linking, flag to hardcode \$libdir into
10660
# a binary during linking. This must work even if \$libdir does
10662
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
10664
# Whether we need a single -rpath flag with a separated argument.
10665
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
10667
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10668
# resulting binary.
10669
hardcode_direct=$hardcode_direct_RC
10671
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10672
# resulting binary.
10673
hardcode_minus_L=$hardcode_minus_L_RC
10675
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10676
# the resulting binary.
10677
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
10679
# Set to yes if building a shared library automatically hardcodes DIR into the library
10680
# and all subsequent libraries and executables linked against it.
10681
hardcode_automatic=$hardcode_automatic_RC
10683
# Variables whose values should be saved in libtool wrapper scripts and
10684
# restored at relink time.
10685
variables_saved_for_relink="$variables_saved_for_relink"
10687
# Whether libtool must link a program against all its dependency libraries.
10688
link_all_deplibs=$link_all_deplibs_RC
10690
# Compile-time system search path for libraries
10691
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10693
# Run-time system search path for libraries
10694
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10696
# Fix the shell variable \$srcfile for the compiler.
10697
fix_srcfile_path=$lt_fix_srcfile_path
10699
# Set to yes if exported symbols are required.
10700
always_export_symbols=$always_export_symbols_RC
10702
# The commands to list exported symbols.
10703
export_symbols_cmds=$lt_export_symbols_cmds_RC
10705
# The commands to extract the exported symbol list from a shared archive.
10706
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10708
# Symbols that should not be listed in the preloaded symbols.
10709
exclude_expsyms=$lt_exclude_expsyms_RC
10711
# Symbols that must always be exported.
10712
include_expsyms=$lt_include_expsyms_RC
10714
# ### END LIBTOOL TAG CONFIG: $tagname
10720
# If there is no Makefile yet, we rely on a make rule to execute
10721
# `config.status --recheck' to rerun these tests and create the
10722
# libtool script then.
10723
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10724
if test -f "$ltmain_in"; then
10725
test -f Makefile && make "$ltmain"
10731
ac_cpp='$CPP $CPPFLAGS'
10732
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10733
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10734
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10741
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
10742
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
10743
{ (exit 1); exit 1; }; }
10747
# Append the new tag name to the list of available tags.
10748
if test -n "$tagname" ; then
10749
available_tags="$available_tags $tagname"
10755
# Now substitute the updated list of available tags.
10756
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
10757
mv "${ofile}T" "$ofile"
10761
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
10762
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
10763
{ (exit 1); exit 1; }; }
10769
# This can be used to rebuild libtool when needed
10770
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
10772
# Always use our own libtool.
10773
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10775
# Prevent multiple expansion
14119
# See if we are running on zsh, and set the options which allow our
14120
# commands through without removal of \ escapes.
14121
if test -n "${ZSH_VERSION+set}" ; then
14122
setopt NO_GLOB_SUBST
14125
cfgfile="${ofile}T"
14126
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14129
cat <<_LT_EOF >> "$cfgfile"
14132
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14133
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14134
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14135
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14137
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14138
# 2006, 2007, 2008 Free Software Foundation, Inc.
14139
# Written by Gordon Matzigkeit, 1996
14141
# This file is part of GNU Libtool.
14143
# GNU Libtool is free software; you can redistribute it and/or
14144
# modify it under the terms of the GNU General Public License as
14145
# published by the Free Software Foundation; either version 2 of
14146
# the License, or (at your option) any later version.
14148
# As a special exception to the GNU General Public License,
14149
# if you distribute this file as part of a program or library that
14150
# is built using GNU Libtool, you may include this file under the
14151
# same distribution terms that you use for the rest of that program.
14153
# GNU Libtool is distributed in the hope that it will be useful,
14154
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14155
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14156
# GNU General Public License for more details.
14158
# You should have received a copy of the GNU General Public License
14159
# along with GNU Libtool; see the file COPYING. If not, a copy
14160
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14161
# obtained by writing to the Free Software Foundation, Inc.,
14162
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14165
# The names of the tagged configurations supported by this script.
14168
# ### BEGIN LIBTOOL CONFIG
14170
# Which release of libtool.m4 was used?
14171
macro_version=$macro_version
14172
macro_revision=$macro_revision
14174
# Whether or not to build shared libraries.
14175
build_libtool_libs=$enable_shared
14177
# Whether or not to build static libraries.
14178
build_old_libs=$enable_static
14180
# What type of objects to build.
14183
# Whether or not to optimize for fast installation.
14184
fast_install=$enable_fast_install
14187
host_alias=$host_alias
14191
# The build system.
14192
build_alias=$build_alias
14196
# A sed program that does not truncate output.
14199
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14200
Xsed="\$SED -e 1s/^X//"
14202
# A grep program that handles long lines.
14208
# A literal string matcher.
14211
# A BSD- or MS-compatible name lister.
14214
# Whether we need soft or hard links.
14217
# What is the maximum length of a command?
14218
max_cmd_len=$max_cmd_len
14220
# Object file suffix (normally "o").
14223
# Executable file suffix (normally "").
14226
# whether the shell understands "unset".
14229
# turn spaces into newlines.
14232
# turn newlines into spaces.
14235
# How to create reloadable object files.
14236
reload_flag=$lt_reload_flag
14237
reload_cmds=$lt_reload_cmds
14239
# Method to check whether dependent libraries are shared objects.
14240
deplibs_check_method=$lt_deplibs_check_method
14242
# Command to use when deplibs_check_method == "file_magic".
14243
file_magic_cmd=$lt_file_magic_cmd
14247
AR_FLAGS=$lt_AR_FLAGS
14249
# A symbol stripping program.
14252
# Commands used to install an old-style archive.
14254
old_postinstall_cmds=$lt_old_postinstall_cmds
14255
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14260
# LTCC compiler flags.
14261
LTCFLAGS=$lt_CFLAGS
14263
# Take the output of nm and produce a listing of raw symbols and C names.
14264
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14266
# Transform the output of nm in a proper C declaration.
14267
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14269
# Transform the output of nm in a C name address pair.
14270
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14272
# Transform the output of nm in a C name address pair when lib prefix is needed.
14273
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14275
# The name of the directory that contains temporary libtool files.
14278
# Shell to use when invoking shell scripts.
14281
# An echo program that does not interpret backslashes.
14284
# Used to examine libraries when file_magic_cmd begins with "file".
14285
MAGIC_CMD=$MAGIC_CMD
14287
# Must we lock files when doing compilation?
14288
need_locks=$lt_need_locks
14290
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14291
DSYMUTIL=$lt_DSYMUTIL
14293
# Tool to change global to local symbols on Mac OS X.
14296
# Tool to manipulate fat objects and archives on Mac OS X.
14299
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14302
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14303
OTOOL64=$lt_OTOOL64
14305
# Old archive suffix (normally "a").
14308
# Shared library suffix (normally ".so").
14309
shrext_cmds=$lt_shrext_cmds
14311
# The commands to extract the exported symbol list from a shared archive.
14312
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14314
# Variables whose values should be saved in libtool wrapper scripts and
14315
# restored at link time.
14316
variables_saved_for_relink=$lt_variables_saved_for_relink
14318
# Do we need the "lib" prefix for modules?
14319
need_lib_prefix=$need_lib_prefix
14321
# Do we need a version for libraries?
14322
need_version=$need_version
14324
# Library versioning type.
14325
version_type=$version_type
14327
# Shared library runtime path variable.
14328
runpath_var=$runpath_var
14330
# Shared library path variable.
14331
shlibpath_var=$shlibpath_var
14333
# Is shlibpath searched before the hard-coded library search path?
14334
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14336
# Format of library name prefix.
14337
libname_spec=$lt_libname_spec
14339
# List of archive names. First name is the real one, the rest are links.
14340
# The last name is the one that the linker finds with -lNAME
14341
library_names_spec=$lt_library_names_spec
14343
# The coded name of the library, if different from the real name.
14344
soname_spec=$lt_soname_spec
14346
# Command to use after installation of a shared archive.
14347
postinstall_cmds=$lt_postinstall_cmds
14349
# Command to use after uninstallation of a shared archive.
14350
postuninstall_cmds=$lt_postuninstall_cmds
14352
# Commands used to finish a libtool library installation in a directory.
14353
finish_cmds=$lt_finish_cmds
14355
# As "finish_cmds", except a single script fragment to be evaled but
14357
finish_eval=$lt_finish_eval
14359
# Whether we should hardcode library paths into libraries.
14360
hardcode_into_libs=$hardcode_into_libs
14362
# Compile-time system search path for libraries.
14363
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14365
# Run-time system search path for libraries.
14366
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14368
# Whether dlopen is supported.
14369
dlopen_support=$enable_dlopen
14371
# Whether dlopen of programs is supported.
14372
dlopen_self=$enable_dlopen_self
14374
# Whether dlopen of statically linked programs is supported.
14375
dlopen_self_static=$enable_dlopen_self_static
14377
# Commands to strip libraries.
14378
old_striplib=$lt_old_striplib
14379
striplib=$lt_striplib
14382
# The linker used to build libraries.
14385
# Commands used to build an old-style archive.
14386
old_archive_cmds=$lt_old_archive_cmds
14388
# A language specific compiler.
14391
# Is the compiler the GNU compiler?
14394
# Compiler flag to turn off builtin functions.
14395
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14397
# How to pass a linker flag through the compiler.
14398
wl=$lt_lt_prog_compiler_wl
14400
# Additional compiler flags for building library objects.
14401
pic_flag=$lt_lt_prog_compiler_pic
14403
# Compiler flag to prevent dynamic linking.
14404
link_static_flag=$lt_lt_prog_compiler_static
14406
# Does compiler simultaneously support -c and -o options?
14407
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14409
# Whether or not to add -lc for building shared libraries.
14410
build_libtool_need_lc=$archive_cmds_need_lc
14412
# Whether or not to disallow shared libs when runtime libs are static.
14413
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14415
# Compiler flag to allow reflexive dlopens.
14416
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14418
# Compiler flag to generate shared objects directly from archives.
14419
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14421
# Whether the compiler copes with passing no objects directly.
14422
compiler_needs_object=$lt_compiler_needs_object
14424
# Create an old-style archive from a shared archive.
14425
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14427
# Create a temporary old-style archive to link instead of a shared archive.
14428
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14430
# Commands used to build a shared archive.
14431
archive_cmds=$lt_archive_cmds
14432
archive_expsym_cmds=$lt_archive_expsym_cmds
14434
# Commands used to build a loadable module if different from building
14435
# a shared archive.
14436
module_cmds=$lt_module_cmds
14437
module_expsym_cmds=$lt_module_expsym_cmds
14439
# Whether we are building with GNU ld or not.
14440
with_gnu_ld=$lt_with_gnu_ld
14442
# Flag that allows shared libraries with undefined symbols to be built.
14443
allow_undefined_flag=$lt_allow_undefined_flag
14445
# Flag that enforces no undefined symbols.
14446
no_undefined_flag=$lt_no_undefined_flag
14448
# Flag to hardcode \$libdir into a binary during linking.
14449
# This must work even if \$libdir does not exist
14450
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14452
# If ld is used when linking, flag to hardcode \$libdir into a binary
14453
# during linking. This must work even if \$libdir does not exist.
14454
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14456
# Whether we need a single "-rpath" flag with a separated argument.
14457
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14459
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14460
# DIR into the resulting binary.
14461
hardcode_direct=$hardcode_direct
14463
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14464
# DIR into the resulting binary and the resulting library dependency is
14465
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14466
# library is relocated.
14467
hardcode_direct_absolute=$hardcode_direct_absolute
14469
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14470
# into the resulting binary.
14471
hardcode_minus_L=$hardcode_minus_L
14473
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14474
# into the resulting binary.
14475
hardcode_shlibpath_var=$hardcode_shlibpath_var
14477
# Set to "yes" if building a shared library automatically hardcodes DIR
14478
# into the library and all subsequent libraries and executables linked
14480
hardcode_automatic=$hardcode_automatic
14482
# Set to yes if linker adds runtime paths of dependent libraries
14483
# to runtime path list.
14484
inherit_rpath=$inherit_rpath
14486
# Whether libtool must link a program against all its dependency libraries.
14487
link_all_deplibs=$link_all_deplibs
14489
# Fix the shell variable \$srcfile for the compiler.
14490
fix_srcfile_path=$lt_fix_srcfile_path
14492
# Set to "yes" if exported symbols are required.
14493
always_export_symbols=$always_export_symbols
14495
# The commands to list exported symbols.
14496
export_symbols_cmds=$lt_export_symbols_cmds
14498
# Symbols that should not be listed in the preloaded symbols.
14499
exclude_expsyms=$lt_exclude_expsyms
14501
# Symbols that must always be exported.
14502
include_expsyms=$lt_include_expsyms
14504
# Commands necessary for linking programs (against libraries) with templates.
14505
prelink_cmds=$lt_prelink_cmds
14507
# Specify filename containing input files.
14508
file_list_spec=$lt_file_list_spec
14510
# How to hardcode a shared library path into an executable.
14511
hardcode_action=$hardcode_action
14513
# ### END LIBTOOL CONFIG
14519
cat <<\_LT_EOF >> "$cfgfile"
14520
# AIX sometimes has problems with the GCC collect2 program. For some
14521
# reason, if we set the COLLECT_NAMES environment variable, the problems
14522
# vanish in a puff of smoke.
14523
if test "X${COLLECT_NAMES+set}" != Xset; then
14525
export COLLECT_NAMES
14532
ltmain="$ac_aux_dir/ltmain.sh"
14535
# We use sed instead of cat because bash on DJGPP gets confused if
14536
# if finds mixed CR/LF and LF-only lines. Since sed operates in
14537
# text mode, it properly converts lines to CR/LF. This bash problem
14538
# is reportedly fixed, but why not run on old versions too?
14539
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14540
|| (rm -f "$cfgfile"; exit 1)
14544
cat << \_LT_EOF >> "$cfgfile"
14546
# func_dirname file append nondir_replacement
14547
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14548
# otherwise set result to NONDIR_REPLACEMENT.
14552
*/*) func_dirname_result="${1%/*}${2}" ;;
14553
* ) func_dirname_result="${3}" ;;
14557
# func_basename file
14560
func_basename_result="${1##*/}"
14563
# func_dirname_and_basename file append nondir_replacement
14564
# perform func_basename and func_dirname in a single function
14566
# dirname: Compute the dirname of FILE. If nonempty,
14567
# add APPEND to the result, otherwise set result
14568
# to NONDIR_REPLACEMENT.
14569
# value returned in "$func_dirname_result"
14570
# basename: Compute filename of FILE.
14571
# value retuned in "$func_basename_result"
14572
# Implementation must be kept synchronized with func_dirname
14573
# and func_basename. For efficiency, we do not delegate to
14574
# those functions but instead duplicate the functionality here.
14575
func_dirname_and_basename ()
14578
*/*) func_dirname_result="${1%/*}${2}" ;;
14579
* ) func_dirname_result="${3}" ;;
14581
func_basename_result="${1##*/}"
14584
# func_stripname prefix suffix name
14585
# strip PREFIX and SUFFIX off of NAME.
14586
# PREFIX and SUFFIX must not contain globbing or regex special
14587
# characters, hashes, percent signs, but SUFFIX may contain a leading
14588
# dot (in which case that matches only a dot).
14591
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14592
# positional parameters, so assign one to ordinary parameter first.
14593
func_stripname_result=${3}
14594
func_stripname_result=${func_stripname_result#"${1}"}
14595
func_stripname_result=${func_stripname_result%"${2}"}
14601
func_opt_split_opt=${1%%=*}
14602
func_opt_split_arg=${1#*=}
14609
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14610
*) func_lo2o_result=${1} ;;
14614
# func_xform libobj-or-source
14617
func_xform_result=${1%.*}.lo
14620
# func_arith arithmetic-term...
14623
func_arith_result=$(( $* ))
14627
# STRING may not start with a hyphen.
14630
func_len_result=${#1}
14635
*) # Bourne compatible functions.
14636
cat << \_LT_EOF >> "$cfgfile"
14638
# func_dirname file append nondir_replacement
14639
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14640
# otherwise set result to NONDIR_REPLACEMENT.
14643
# Extract subdirectory from the argument.
14644
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14645
if test "X$func_dirname_result" = "X${1}"; then
14646
func_dirname_result="${3}"
14648
func_dirname_result="$func_dirname_result${2}"
14652
# func_basename file
14655
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14659
# func_stripname prefix suffix name
14660
# strip PREFIX and SUFFIX off of NAME.
14661
# PREFIX and SUFFIX must not contain globbing or regex special
14662
# characters, hashes, percent signs, but SUFFIX may contain a leading
14663
# dot (in which case that matches only a dot).
14664
# func_strip_suffix prefix name
14668
.*) func_stripname_result=`$ECHO "X${3}" \
14669
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14670
*) func_stripname_result=`$ECHO "X${3}" \
14671
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14676
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14677
my_sed_long_arg='1s/^-[^=]*=//'
14682
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14683
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14689
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14692
# func_xform libobj-or-source
14695
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14698
# func_arith arithmetic-term...
14701
func_arith_result=`expr "$@"`
14705
# STRING may not start with a hyphen.
14708
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14714
case $lt_shell_append in
14716
cat << \_LT_EOF >> "$cfgfile"
14718
# func_append var value
14719
# Append VALUE to the end of shell variable VAR.
14727
cat << \_LT_EOF >> "$cfgfile"
14729
# func_append var value
14730
# Append VALUE to the end of shell variable VAR.
14741
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14742
|| (rm -f "$cfgfile"; exit 1)
14744
mv -f "$cfgfile" "$ofile" ||
14745
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14751
12729
done # for ac_tag