/[rdesktop]/sourceforge.net/trunk/rdesktop/configure.ac
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 871 by stargo, Sun Mar 13 13:58:23 2005 UTC revision 872 by stargo, Thu Mar 31 10:49:59 2005 UTC
# Line 343  UTILS_FUNC_ICONV Line 343  UTILS_FUNC_ICONV
343  LIBS="$LIBS $LIBICONV"  LIBS="$LIBS $LIBICONV"
344    
345  #  #
346    # socklen_t
347    # from curl
348    
349    dnl Check for socklen_t: historically on BSD it is an int, and in
350    dnl POSIX 1g it is a type of its own, but some platforms use different
351    dnl types for the argument to getsockopt, getpeername, etc.  So we
352    dnl have to test to find something that will work.
353    AC_DEFUN([TYPE_SOCKLEN_T],
354    [
355       AC_CHECK_TYPE([socklen_t], ,[
356          AC_MSG_CHECKING([for socklen_t equivalent])
357          AC_CACHE_VAL([socklen_t_equiv],
358          [
359             # Systems have either "struct sockaddr *" or
360             # "void *" as the second argument to getpeername
361             socklen_t_equiv=
362             for arg2 in "struct sockaddr" void; do
363                for t in int size_t unsigned long "unsigned long"; do
364                   AC_TRY_COMPILE([
365                      #include <sys/types.h>
366                      #include <sys/socket.h>
367    
368                      int getpeername (int, $arg2 *, $t *);
369                   ],[
370                      $t len;
371                      getpeername(0,0,&len);
372                   ],[
373                      socklen_t_equiv="$t"
374                      break
375                   ])
376                done
377             done
378    
379             if test "x$socklen_t_equiv" = x; then
380                AC_MSG_ERROR([Cannot find a type to use in place of socklen_t])
381             fi
382          ])
383          AC_MSG_RESULT($socklen_t_equiv)
384          AC_DEFINE_UNQUOTED(socklen_t, $socklen_t_equiv,
385                            [type to use in place of socklen_t if not defined])],
386          [#include <sys/types.h>
387    #include <sys/socket.h>])
388    ])
389    
390    TYPE_SOCKLEN_T
391    
392    #
393  # IPv6  # IPv6
394  #  #
395  AC_ARG_WITH(ipv6,  AC_ARG_WITH(ipv6,

Legend:
Removed from v.871  
changed lines
  Added in v.872

  ViewVC Help
Powered by ViewVC 1.1.26