mirror of
https://repo.or.cz/socat.git
synced 2025-07-15 23:53:25 +00:00
made it compile and run on SuSE5.2
This commit is contained in:
parent
75e643ad2d
commit
b2d618438a
10 changed files with 95 additions and 21 deletions
38
configure.in
38
configure.in
|
@ -220,7 +220,7 @@ AC_ARG_ENABLE(rawsocket, [ --disable-genericsocket disable generic socket suppo
|
|||
*) AC_DEFINE(WITH_GENERICSOCKET) AC_MSG_RESULT(yes);;
|
||||
esac],
|
||||
[AC_DEFINE(WITH_GENERICSOCKET) AC_MSG_RESULT(yes)])
|
||||
AC_MSG_CHECKING(whether to include raw network INTERFACE support)
|
||||
AC_MSG_CHECKING(whether to include raw network interface support)
|
||||
AC_ARG_ENABLE(interface, [ --disable-interface disable network interface support],
|
||||
[case "$enableval" in
|
||||
no) AC_MSG_RESULT(no); WITH_INTERFACE= ;;
|
||||
|
@ -231,13 +231,13 @@ if test "$WITH_INTERFACE"; then
|
|||
AC_CHECK_HEADER(netpacket/packet.h,
|
||||
AC_DEFINE(HAVE_NETPACKET_PACKET_H),
|
||||
[WITH_INTERFACE=;
|
||||
AC_MSG_WARN([include file netpacket/packet.h not found, disabling INTERFACE])])
|
||||
AC_MSG_WARN([include file netpacket/packet.h not found, disabling interface])])
|
||||
fi
|
||||
if test "$WITH_INTERFACE"; then
|
||||
AC_CHECK_HEADER(netinet/if_ether.h,
|
||||
AC_DEFINE(HAVE_NETINET_IF_ETHER_H),
|
||||
[WITH_INTERFACE=;
|
||||
AC_MSG_WARN([include file netinet/if_ether.h not found, disabling INTERFACE])])
|
||||
AC_MSG_WARN([include file netinet/if_ether.h not found, disabling interface])])
|
||||
fi
|
||||
if test "$WITH_INTERFACE"; then
|
||||
AC_DEFINE(WITH_INTERFACE)
|
||||
|
@ -595,13 +595,14 @@ AC_ARG_ENABLE(tun, [ --disable-tun disable TUN/TAP support],
|
|||
esac],
|
||||
[AC_MSG_RESULT(yes); WITH_TUN=1 ])
|
||||
|
||||
#
|
||||
if ! test "$ac_cv_header_linux_if_tun_h" = 'yes'; then
|
||||
AC_MSG_WARN(include file linux/if_tun.h not found, disabling TUN)
|
||||
WITH_TUN=
|
||||
fi
|
||||
#
|
||||
if test -n "$WITH_TUN"; then
|
||||
if test `uname` != Linux; then
|
||||
AC_MSG_NOTICE(only on Linux)
|
||||
else
|
||||
AC_DEFINE(WITH_TUN)
|
||||
fi
|
||||
AC_DEFINE(WITH_TUN)
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(whether to include system call tracing)
|
||||
|
@ -826,6 +827,27 @@ AC_TRY_COMPILE([#include <sys/types.h>
|
|||
[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_FDS_BITS)],
|
||||
[AC_MSG_RESULT(no);])
|
||||
|
||||
AC_MSG_CHECKING(for sa_family_t)
|
||||
AC_CACHE_VAL(sc_cv_type_sa_family_t,
|
||||
[AC_TRY_COMPILE([#include <sys/types.h>
|
||||
#include <netinet/in.h>],[sa_family_t s;],
|
||||
[sc_cv_type_sa_family_t=yes],
|
||||
[sc_cv_type_sa_family_t=no])])
|
||||
if test $sc_cv_type_sa_family_t = yes; then
|
||||
AC_DEFINE(HAVE_TYPE_SA_FAMILY_T)
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_type_sa_family_t)
|
||||
|
||||
AC_MSG_CHECKING(for struct sigaction.sa_sigaction)
|
||||
AC_CACHE_VAL(sc_cv_struct_sigaction_sa_sigaction,
|
||||
[AC_TRY_COMPILE([#include <signal.h>],[struct sigaction s;s.sa_sigaction=0;],
|
||||
[sc_cv_struct_sigaction_sa_sigaction=yes],
|
||||
[sc_cv_struct_sigaction_sa_sigaction=no])])
|
||||
if test $sc_cv_struct_sigaction_sa_sigaction = yes; then
|
||||
AC_DEFINE(HAVE_STRUCT_SIGACTION_SA_SIGACTION)
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_struct_sigaction_sa_sigaction)
|
||||
|
||||
### struct termios .c_ispeed
|
||||
AC_MSG_CHECKING(for termios.c_ispeed)
|
||||
AC_CACHE_VAL(sc_cv_termios_ispeed,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue