/[jscoverage]/trunk/configure.ac
ViewVC logotype

Diff of /trunk/configure.ac

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

revision 116 by siliconforks, Sat May 31 21:42:36 2008 UTC revision 127 by siliconforks, Mon Jun 2 18:18:15 2008 UTC
# Line 20  Line 20 
20  AM_INIT_AUTOMAKE([-Wall foreign])  AM_INIT_AUTOMAKE([-Wall foreign])
21  AC_CONFIG_SRCDIR([main.c])  AC_CONFIG_SRCDIR([main.c])
22  AC_CONFIG_HEADERS([config.h])  AC_CONFIG_HEADERS([config.h])
23    AC_CANONICAL_HOST
24    
25  # Checks for programs.  # Checks for programs.
26  AC_PROG_CC  AC_PROG_CC
# Line 29  Line 30 
30  # Checks for libraries.  # Checks for libraries.
31    
32  # Checks for header files.  # Checks for header files.
33    AC_CHECK_HEADERS([pthread.h])
34    
35  # Checks for typedefs, structures, and compiler characteristics.  # Checks for typedefs, structures, and compiler characteristics.
 AC_CHECK_TYPES([SOCKET])  
36    
37  # Checks for library functions.  # Checks for library functions.
38  AC_CHECK_FUNCS([strndup vasprintf asprintf closesocket])  AC_CHECK_FUNCS([inet_aton strndup vasprintf asprintf])
39    
40    AC_SUBST([EXTRA_SOCKET_LIBS])
41    AC_SUBST([EXTRA_THREAD_LIBS])
42    case "$host_os" in
43      mingw*)
44        EXTRA_SOCKET_LIBS='-lws2_32'
45        EXTRA_THREAD_LIBS=''
46        ;;
47      *)
48        EXTRA_SOCKET_LIBS=''
49        EXTRA_THREAD_LIBS='-lpthread'
50        ;;
51    esac
52    
53  AC_CONFIG_FILES([Makefile make-dist.sh make-bin-dist.sh tests/Makefile])  AC_CONFIG_FILES([Makefile make-dist.sh make-bin-dist.sh tests/Makefile])
54  AC_CONFIG_SUBDIRS([js])  AC_CONFIG_SUBDIRS([js])

Legend:
Removed from v.116  
changed lines
  Added in v.127

  ViewVC Help
Powered by ViewVC 1.1.24