@@ -4529,6 +4529,16 @@ EOF
4529
4529
cat >> confdefs.h << \EOF
4530
4530
#define DLEXT ".dll"
4531
4531
EOF
4532
+ ;;
4533
+ cygwin* ) DLEXT=so
4534
+ cat >> confdefs.h << \EOF
4535
+ #define DLEXT ".so"
4536
+ EOF
4537
+
4538
+ DLEXT2=dll
4539
+ cat >> confdefs.h << \EOF
4540
+ #define DLEXT2 ".dll"
4541
+ EOF
4532
4542
;;
4533
4543
* ) DLEXT=so
4534
4544
cat >> confdefs.h << \EOF
@@ -4572,15 +4582,15 @@ fi
4572
4582
case " $target_os " in
4573
4583
human* )
4574
4584
echo $ac_n " checking for _harderr in -lsignal" " ... $ac_c " 1>&6
4575
- echo " configure:4576 : checking for _harderr in -lsignal" >&5
4585
+ echo " configure:4586 : checking for _harderr in -lsignal" >&5
4576
4586
ac_lib_var=` echo signal' _' _harderr | sed ' y%./+-%__p_%' `
4577
4587
if eval " test \" ` echo ' $' ' {' ac_cv_lib_$ac_lib_var ' +set}' ` \" = set" ; then
4578
4588
echo $ac_n " (cached) $ac_c " 1>&6
4579
4589
else
4580
4590
ac_save_LIBS=" $LIBS "
4581
4591
LIBS=" -lsignal $LIBS "
4582
4592
cat > conftest.$ac_ext << EOF
4583
- #line 4584 "configure"
4593
+ #line 4594 "configure"
4584
4594
#include "confdefs.h"
4585
4595
/* Override any gcc2 internal prototype to avoid an error. */
4586
4596
/* We use char because int might match the return type of a gcc2
@@ -4591,7 +4601,7 @@ int main() {
4591
4601
_harderr()
4592
4602
; return 0; }
4593
4603
EOF
4594
- if { (eval echo configure:4595 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest${ac_exeext} ; then
4604
+ if { (eval echo configure:4605 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest${ac_exeext} ; then
4595
4605
rm -rf conftest*
4596
4606
eval " ac_cv_lib_$ac_lib_var =yes"
4597
4607
else
@@ -4619,15 +4629,15 @@ else
4619
4629
fi
4620
4630
4621
4631
echo $ac_n " checking for hmemset in -lhmem" " ... $ac_c " 1>&6
4622
- echo " configure:4623 : checking for hmemset in -lhmem" >&5
4632
+ echo " configure:4633 : checking for hmemset in -lhmem" >&5
4623
4633
ac_lib_var=` echo hmem' _' hmemset | sed ' y%./+-%__p_%' `
4624
4634
if eval " test \" ` echo ' $' ' {' ac_cv_lib_$ac_lib_var ' +set}' ` \" = set" ; then
4625
4635
echo $ac_n " (cached) $ac_c " 1>&6
4626
4636
else
4627
4637
ac_save_LIBS=" $LIBS "
4628
4638
LIBS=" -lhmem $LIBS "
4629
4639
cat > conftest.$ac_ext << EOF
4630
- #line 4631 "configure"
4640
+ #line 4641 "configure"
4631
4641
#include "confdefs.h"
4632
4642
/* Override any gcc2 internal prototype to avoid an error. */
4633
4643
/* We use char because int might match the return type of a gcc2
@@ -4638,7 +4648,7 @@ int main() {
4638
4648
hmemset()
4639
4649
; return 0; }
4640
4650
EOF
4641
- if { (eval echo configure:4642 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest${ac_exeext} ; then
4651
+ if { (eval echo configure:4652 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest${ac_exeext} ; then
4642
4652
rm -rf conftest*
4643
4653
eval " ac_cv_lib_$ac_lib_var =yes"
4644
4654
else
@@ -4668,12 +4678,12 @@ fi
4668
4678
for ac_func in select gettimeofday
4669
4679
do
4670
4680
echo $ac_n " checking for $ac_func " " ... $ac_c " 1>&6
4671
- echo " configure:4672 : checking for $ac_func " >&5
4681
+ echo " configure:4682 : checking for $ac_func " >&5
4672
4682
if eval " test \" ` echo ' $' ' {' ac_cv_func_$ac_func ' +set}' ` \" = set" ; then
4673
4683
echo $ac_n " (cached) $ac_c " 1>&6
4674
4684
else
4675
4685
cat > conftest.$ac_ext << EOF
4676
- #line 4677 "configure"
4686
+ #line 4687 "configure"
4677
4687
#include "confdefs.h"
4678
4688
/* System header to define __stub macros and hopefully few prototypes,
4679
4689
which can conflict with char $ac_func (); below. */
@@ -4696,7 +4706,7 @@ $ac_func();
4696
4706
4697
4707
; return 0; }
4698
4708
EOF
4699
- if { (eval echo configure:4700 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest${ac_exeext} ; then
4709
+ if { (eval echo configure:4710 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest${ac_exeext} ; then
4700
4710
rm -rf conftest*
4701
4711
eval " ac_cv_func_$ac_func =yes"
4702
4712
else
@@ -4721,15 +4731,15 @@ fi
4721
4731
done
4722
4732
4723
4733
echo $ac_n " checking whether PD libc _dtos18 fail to convert big number" " ... $ac_c " 1>&6
4724
- echo " configure:4725 : checking whether PD libc _dtos18 fail to convert big number" >&5
4734
+ echo " configure:4735 : checking whether PD libc _dtos18 fail to convert big number" >&5
4725
4735
if eval " test \" ` echo ' $' ' {' rb_cv_missing__dtos18' +set}' ` \" = set" ; then
4726
4736
echo $ac_n " (cached) $ac_c " 1>&6
4727
4737
else
4728
4738
if test " $cross_compiling " = yes; then
4729
4739
rb_cv_missing__dtos18=no
4730
4740
else
4731
4741
cat > conftest.$ac_ext << EOF
4732
- #line 4733 "configure"
4742
+ #line 4743 "configure"
4733
4743
#include "confdefs.h"
4734
4744
4735
4745
#include <stdio.h>
@@ -4741,7 +4751,7 @@ main ()
4741
4751
}
4742
4752
4743
4753
EOF
4744
- if { (eval echo configure:4745 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest${ac_exeext} && (./conftest; exit) 2> /dev/null
4754
+ if { (eval echo configure:4755 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest${ac_exeext} && (./conftest; exit) 2> /dev/null
4745
4755
then
4746
4756
rb_cv_missing__dtos18=yes
4747
4757
else
@@ -4763,15 +4773,15 @@ EOF
4763
4773
4764
4774
fi
4765
4775
echo $ac_n " checking whether PD libc fconvert fail to round" " ... $ac_c " 1>&6
4766
- echo " configure:4767 : checking whether PD libc fconvert fail to round" >&5
4776
+ echo " configure:4777 : checking whether PD libc fconvert fail to round" >&5
4767
4777
if eval " test \" ` echo ' $' ' {' rb_cv_missing_fconvert' +set}' ` \" = set" ; then
4768
4778
echo $ac_n " (cached) $ac_c " 1>&6
4769
4779
else
4770
4780
if test " $cross_compiling " = yes; then
4771
4781
rb_cv_missing_fconvert=no
4772
4782
else
4773
4783
cat > conftest.$ac_ext << EOF
4774
- #line 4775 "configure"
4784
+ #line 4785 "configure"
4775
4785
#include "confdefs.h"
4776
4786
4777
4787
#include <stdio.h>
@@ -4784,7 +4794,7 @@ main ()
4784
4794
}
4785
4795
4786
4796
EOF
4787
- if { (eval echo configure:4788 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest${ac_exeext} && (./conftest; exit) 2> /dev/null
4797
+ if { (eval echo configure:4798 : \" $ac_link \" ) 1>&5 ; (eval $ac_link ) 2>&5 ; } && test -s conftest${ac_exeext} && (./conftest; exit) 2> /dev/null
4788
4798
then
4789
4799
rb_cv_missing_fconvert=yes
4790
4800
else
@@ -4869,6 +4879,15 @@ if test "$target_os" = "beos"; then
4869
4879
esac
4870
4880
fi
4871
4881
4882
+ case " $target_os " in
4883
+ cygwin* |beos* |openstep* |nextstep* |rhapsody* |macos* |os2_emx* )
4884
+ DLDLIBS=" "
4885
+ ;;
4886
+ * )
4887
+ DLDLIBS=" -lc"
4888
+ ;;
4889
+ esac
4890
+
4872
4891
LIBRUBY_LDSHARED=$LDSHARED
4873
4892
LIBRUBY_DLDFLAGS=$DLDFLAGS
4874
4893
LIBRUBY_SO=' lib$(RUBY_INSTALL_NAME).so.$(MAJOR).$(MINOR).$(TEENY)'
@@ -4981,6 +5000,7 @@ esac
4981
5000
4982
5001
4983
5002
5003
+
4984
5004
ri_prefix=
4985
5005
test " $program_prefix " ! = NONE &&
4986
5006
ri_prefix=$program_prefix
@@ -5250,6 +5270,7 @@ s%@STATIC@%$STATIC%g
5250
5270
s%@CCDLFLAGS@%$CCDLFLAGS %g
5251
5271
s%@LDSHARED@%$LDSHARED %g
5252
5272
s%@DLEXT@%$DLEXT %g
5273
+ s%@DLEXT2@%$DLEXT2 %g
5253
5274
s%@STRIP@%$STRIP %g
5254
5275
s%@EXTSTATIC@%$EXTSTATIC %g
5255
5276
s%@setup@%$setup %g
@@ -5264,6 +5285,7 @@ s%@LIBRUBY_ALIASES@%$LIBRUBY_ALIASES%g
5264
5285
s%@LIBRUBY@%$LIBRUBY %g
5265
5286
s%@LIBRUBYARG@%$LIBRUBYARG %g
5266
5287
s%@SOLIBS@%$SOLIBS %g
5288
+ s%@DLDLIBS@%$DLDLIBS %g
5267
5289
s%@arch@%$arch %g
5268
5290
s%@sitedir@%$sitedir %g
5269
5291
s%@configure_args@%$configure_args %g
0 commit comments