@@ -5679,6 +5679,72 @@ if test "$ac_cv_search_fdatasync" != no; then
5679
5679
5680
5680
fi
5681
5681
5682
+ # Cygwin:
5683
+
5684
+ echo " $as_me :$LINENO : checking for shmget in -lcygipc" >&5
5685
+ echo $ECHO_N " checking for shmget in -lcygipc... $ECHO_C " >&6
5686
+ if test " ${ac_cv_lib_cygipc_shmget+set} " = set ; then
5687
+ echo $ECHO_N " (cached) $ECHO_C " >&6
5688
+ else
5689
+ ac_check_lib_save_LIBS=$LIBS
5690
+ LIBS=" -lcygipc $LIBS "
5691
+ cat > conftest.$ac_ext << _ACEOF
5692
+ #line $LINENO "configure"
5693
+ #include "confdefs.h"
5694
+
5695
+ /* Override any gcc2 internal prototype to avoid an error. */
5696
+ #ifdef __cplusplus
5697
+ extern "C"
5698
+ #endif
5699
+ /* We use char because int might match the return type of a gcc2
5700
+ builtin and then its argument prototype would still apply. */
5701
+ char shmget ();
5702
+ #ifdef F77_DUMMY_MAIN
5703
+ # ifdef __cplusplus
5704
+ extern "C"
5705
+ # endif
5706
+ int F77_DUMMY_MAIN() { return 1; }
5707
+ #endif
5708
+ int
5709
+ main ()
5710
+ {
5711
+ shmget ();
5712
+ ;
5713
+ return 0;
5714
+ }
5715
+ _ACEOF
5716
+ rm -f conftest.$ac_objext conftest$ac_exeext
5717
+ if { (eval echo " $as_me :$LINENO : \" $ac_link \" " ) >&5
5718
+ (eval $ac_link ) 2>&5
5719
+ ac_status=$?
5720
+ echo " $as_me :$LINENO : \$ ? = $ac_status " >&5
5721
+ (exit $ac_status ); } &&
5722
+ { ac_try=' test -s conftest$ac_exeext'
5723
+ { (eval echo " $as_me :$LINENO : \" $ac_try \" " ) >&5
5724
+ (eval $ac_try ) 2>&5
5725
+ ac_status=$?
5726
+ echo " $as_me :$LINENO : \$ ? = $ac_status " >&5
5727
+ (exit $ac_status ); }; }; then
5728
+ ac_cv_lib_cygipc_shmget=yes
5729
+ else
5730
+ echo " $as_me : failed program was:" >&5
5731
+ cat conftest.$ac_ext >&5
5732
+ ac_cv_lib_cygipc_shmget=no
5733
+ fi
5734
+ rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5735
+ LIBS=$ac_check_lib_save_LIBS
5736
+ fi
5737
+ echo " $as_me :$LINENO : result: $ac_cv_lib_cygipc_shmget " >&5
5738
+ echo " ${ECHO_T} $ac_cv_lib_cygipc_shmget " >&6
5739
+ if test $ac_cv_lib_cygipc_shmget = yes; then
5740
+ cat >> confdefs.h << _ACEOF
5741
+ #define HAVE_LIBCYGIPC 1
5742
+ _ACEOF
5743
+
5744
+ LIBS=" -lcygipc $LIBS "
5745
+
5746
+ fi
5747
+
5682
5748
5683
5749
if test " $with_readline " = yes; then
5684
5750
0 commit comments