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

Annotation of /trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 125 - (hide annotations)
Mon Jun 2 17:52:38 2008 UTC (11 years, 2 months ago) by siliconforks
File size: 1597 byte(s)
Fixes for compiling with MinGW.

1 siliconforks 2 # configure.ac - configures jscoverage
2 siliconforks 87 # Copyright (C) 2007, 2008 siliconforks.com
3 siliconforks 2 #
4     # This program is free software; you can redistribute it and/or modify
5     # it under the terms of the GNU General Public License as published by
6     # the Free Software Foundation; either version 2 of the License, or
7     # (at your option) any later version.
8     #
9     # This program is distributed in the hope that it will be useful,
10     # but WITHOUT ANY WARRANTY; without even the implied warranty of
11     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12     # GNU General Public License for more details.
13     #
14     # You should have received a copy of the GNU General Public License along
15     # with this program; if not, write to the Free Software Foundation, Inc.,
16     # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17    
18     AC_PREREQ(2.61)
19 siliconforks 72 AC_INIT([jscoverage], [0.3.1])
20 siliconforks 83 AM_INIT_AUTOMAKE([-Wall foreign])
21 siliconforks 2 AC_CONFIG_SRCDIR([main.c])
22 siliconforks 99 AC_CONFIG_HEADERS([config.h])
23 siliconforks 125 AC_CANONICAL_HOST
24 siliconforks 99
25     # Checks for programs.
26 siliconforks 2 AC_PROG_CC
27     AC_PROG_CC_C99
28 siliconforks 82 AC_PROG_LIBTOOL
29 siliconforks 99
30     # Checks for libraries.
31    
32     # Checks for header files.
33    
34     # Checks for typedefs, structures, and compiler characteristics.
35    
36     # Checks for library functions.
37 siliconforks 125 AC_CHECK_FUNCS([inet_aton strndup vasprintf asprintf])
38 siliconforks 99
39 siliconforks 125 AC_SUBST([EXTRA_SOCKET_LIBS])
40     AC_SUBST([EXTRA_THREAD_LIBS])
41     case "$host_os" in
42     mingw*)
43     EXTRA_SOCKET_LIBS='-lws2_32'
44     EXTRA_THREAD_LIBS=''
45     ;;
46     *)
47     EXTRA_SOCKET_LIBS=''
48     EXTRA_THREAD_LIBS='-lpthread'
49     ;;
50     esac
51    
52 siliconforks 2 AC_CONFIG_FILES([Makefile make-dist.sh make-bin-dist.sh tests/Makefile])
53     AC_CONFIG_SUBDIRS([js])
54     AC_OUTPUT

  ViewVC Help
Powered by ViewVC 1.1.24