Skip to content

Commit b9d5620

Browse files
committed
autoconf
1 parent 337da06 commit b9d5620

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

configure

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5679,6 +5679,72 @@ if test "$ac_cv_search_fdatasync" != no; then
56795679
56805680
fi
56815681
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+
56825748
56835749
if test "$with_readline" = yes; then
56845750

0 commit comments

Comments
 (0)