apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject cvs commit: apr configure.in
Date Wed, 28 May 2003 11:30:21 GMT
martin      2003/05/28 04:30:20

  Modified:    .        configure.in
  Log:
  [PORTING] Improve detection of IPv6, Include <sys/mutex.h> for lock_t if available
  
  Revision  Changes    Path
  1.528     +12 -4     apr/configure.in
  
  Index: configure.in
  ===================================================================
  RCS file: /home/cvs/apr/configure.in,v
  retrieving revision 1.527
  retrieving revision 1.528
  diff -u -u -r1.527 -r1.528
  --- configure.in	3 May 2003 04:11:07 -0000	1.527
  +++ configure.in	28 May 2003 11:30:20 -0000	1.528
  @@ -590,7 +590,15 @@
   # be available if linking against librt.
   AC_SEARCH_LIBS(shm_open, rt)
   
  -AC_CHECK_HEADERS([sys/mman.h sys/ipc.h sys/shm.h sys/file.h kernel/OS.h os2.h])
  +case $host in
  + *-sysv*)
  +   ac_includes_default="$ac_includes_default
  +#if HAVE_SYS_MUTEX_H /* needed to define lock_t for sys/shm.h */
  +# include <sys/mutex.h>
  +#endif";;
  +esac
  +
  +AC_CHECK_HEADERS([sys/mman.h sys/ipc.h sys/mutex.h sys/shm.h sys/file.h kernel/OS.h os2.h])
   AC_CHECK_FUNCS([mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \
                   create_area])
   APR_CHECK_DEFINE(MAP_ANON, sys/mman.h)
  @@ -1782,9 +1790,9 @@
       broken_ipv6=0
   esac
   
  -AC_SEARCH_LIBS(getaddrinfo, inet6)
  -AC_SEARCH_LIBS(gai_strerror, inet6)
  -AC_SEARCH_LIBS(getnameinfo, inet6)
  +AC_SEARCH_LIBS(getaddrinfo, socket inet6)
  +AC_SEARCH_LIBS(gai_strerror, socket inet6)
  +AC_SEARCH_LIBS(getnameinfo, socket inet6)
   AC_CHECK_FUNCS(gai_strerror)
   APR_CHECK_WORKING_GETADDRINFO
   APR_CHECK_NEGATIVE_EAI
  
  
  

Mime
View raw message