Skip to content
Snippets Groups Projects
Commit cbca05d6 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

added check for socklen_t in configure script
parent 7e48c985
Branches
Tags
No related merge requests found
...@@ -166,10 +166,10 @@ class GmshServer { ...@@ -166,10 +166,10 @@ class GmshServer {
return -4; // Error: Socket listening timeout return -4; // Error: Socket listening timeout
// accept connection request // accept connection request
#if defined(linux) || defined(_AIX) || defined(__FreeBSD__) || defined(__sun__) #if defined(HAVE_NO_SOCKLEN_T)
socklen_t len;
#else
int len; int len;
#else
socklen_t len;
#endif #endif
if(_portno < 0){ if(_portno < 0){
struct sockaddr_un from_un; struct sockaddr_un from_un;
......
$Id: TODO,v 1.79 2005-01-20 01:25:49 geuzaine Exp $ $Id: TODO,v 1.80 2005-01-21 17:29:27 geuzaine Exp $
******************************************************************** ********************************************************************
add GUI for the Layer stuff in Extrude commands add GUI for
- translate+rotate extrusions
- mesh extrusion (layer stuff)
- elliptic surface
- coherence
******************************************************************** ********************************************************************
......
...@@ -3155,6 +3155,44 @@ else ...@@ -3155,6 +3155,44 @@ else
fi fi
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
/* confdefs.h. */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#include <sys/socket.h>
int
main ()
{
socklen_t len = 42; return 0;
;
return 0;
}
_ACEOF
rm -f conftest.$ac_objext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); } &&
{ ac_try='test -s conftest.$ac_objext'
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
(eval $ac_try) 2>&5
ac_status=$?
echo "$as_me:$LINENO: \$? = $ac_status" >&5
(exit $ac_status); }; }; then
:
else
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
FLAGS="-DHAVE_NO_SOCKLEN_T ${FLAGS}"
fi
rm -f conftest.$ac_objext conftest.$ac_ext
GMSH_DIRS="Common DataStr Geo Mesh Numeric Parallel Parser Plugin" GMSH_DIRS="Common DataStr Geo Mesh Numeric Parallel Parser Plugin"
......
dnl $Id: configure.in,v 1.59 2005-01-01 19:35:27 geuzaine Exp $ dnl $Id: configure.in,v 1.60 2005-01-21 17:29:27 geuzaine Exp $
dnl dnl
dnl Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle dnl Copyright (C) 1997-2005 C. Geuzaine, J.-F. Remacle
dnl dnl
...@@ -115,6 +115,12 @@ dnl Check for various functions ...@@ -115,6 +115,12 @@ dnl Check for various functions
AC_CHECK_FUNC(vsnprintf,,FLAGS="-DHAVE_NO_VSNPRINTF ${FLAGS}") AC_CHECK_FUNC(vsnprintf,,FLAGS="-DHAVE_NO_VSNPRINTF ${FLAGS}")
AC_CHECK_FUNC(snprintf,,FLAGS="-DHAVE_NO_SNPRINTF ${FLAGS}") AC_CHECK_FUNC(snprintf,,FLAGS="-DHAVE_NO_SNPRINTF ${FLAGS}")
dnl Check if Unix98 socklen_t type is available
AC_TRY_COMPILE(
[#include <sys/types.h>
#include <sys/socket.h>],
[socklen_t len = 42; return 0;],,FLAGS="-DHAVE_NO_SOCKLEN_T ${FLAGS}")
dnl See if we need a .exe extension on executables dnl See if we need a .exe extension on executables
AC_EXEEXT AC_EXEEXT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment