summaryrefslogtreecommitdiff
path: root/configure.ac
blob: ed047ddb1d739949585e5a5df4d8839195de99e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
AC_PREREQ([2.64])

AC_INIT([pjctl],
        [1],
        [benjaminfranzke@googlemail.com],
        [pjctl],
        [https://gitorious.org/pjctl/])

AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])

AM_INIT_AUTOMAKE([foreign dist-bzip2])

m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

# Check for programs
AC_PROG_CC

if test "x$GCC" = "xyes"; then
	GCC_CFLAGS="-Wall -g -Wstrict-prototypes -Wmissing-prototypes"
fi
AC_SUBST([GCC_CFLAGS])

# for src/ext/gnulib/md5.c
AC_C_BIGENDIAN

AC_CANONICAL_HOST
have_windows="no"
case "$host_os" in
	*cygwin)
	have_windows="yes"
	;;
esac
AM_CONDITIONAL([HAVE_WINDOWS], [test "x$have_windows" = "xyes"])

AC_CONFIG_FILES([Makefile
		 src/Makefile])
AC_OUTPUT