Ignore:
Timestamp:
Sep 9, 2006 8:05:33 PM (18 years ago)
Author:
bennylp
Message:

Added PJ_HAS_SOCKLEN_T test in configure script (some MacOS X have it, some dont)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure

    r689 r697  
    74157415  cat >>confdefs.h <<\_ACEOF 
    74167416#define PJ_SOCKADDR_HAS_LEN 1 
     7417_ACEOF 
     7418 
     7419                   echo "$as_me:$LINENO: result: yes" >&5 
     7420echo "${ECHO_T}yes" >&6 
     7421else 
     7422  echo "$as_me: failed program was:" >&5 
     7423sed 's/^/| /' conftest.$ac_ext >&5 
     7424 
     7425echo "$as_me:$LINENO: result: no" >&5 
     7426echo "${ECHO_T}no" >&6 
     7427fi 
     7428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 
     7429 
     7430# Determine if socklen_t is available 
     7431echo "$as_me:$LINENO: checking if socklen_t is available" >&5 
     7432echo $ECHO_N "checking if socklen_t is available... $ECHO_C" >&6 
     7433cat >conftest.$ac_ext <<_ACEOF 
     7434/* confdefs.h.  */ 
     7435_ACEOF 
     7436cat confdefs.h >>conftest.$ac_ext 
     7437cat >>conftest.$ac_ext <<_ACEOF 
     7438/* end confdefs.h.  */ 
     7439#include <unistd.h> 
     7440int 
     7441main () 
     7442{ 
     7443socklen_t xxx = 0; 
     7444  ; 
     7445  return 0; 
     7446} 
     7447_ACEOF 
     7448rm -f conftest.$ac_objext 
     7449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 
     7450  (eval $ac_compile) 2>conftest.er1 
     7451  ac_status=$? 
     7452  grep -v '^ *+' conftest.er1 >conftest.err 
     7453  rm -f conftest.er1 
     7454  cat conftest.err >&5 
     7455  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     7456  (exit $ac_status); } && 
     7457         { ac_try='test -z "$ac_c_werror_flag" 
     7458                         || test ! -s conftest.err' 
     7459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     7460  (eval $ac_try) 2>&5 
     7461  ac_status=$? 
     7462  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     7463  (exit $ac_status); }; } && 
     7464         { ac_try='test -s conftest.$ac_objext' 
     7465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 
     7466  (eval $ac_try) 2>&5 
     7467  ac_status=$? 
     7468  echo "$as_me:$LINENO: \$? = $ac_status" >&5 
     7469  (exit $ac_status); }; }; then 
     7470  cat >>confdefs.h <<\_ACEOF 
     7471#define PJ_HAS_SOCKLEN_T 1 
    74177472_ACEOF 
    74187473 
Note: See TracChangeset for help on using the changeset viewer.