1dnl Process this file with autoconf to produce a configure script.
2dnl
3dnl   Copyright (C) 2012 Peter Breitenlohner <tex-live@tug.org>
4dnl
5dnl   This file is free software; the copyright holder
6dnl   gives unlimited permission to copy and/or distribute it,
7dnl   with or without modifications, as long as this notice is preserved.
8dnl
9m4_include([version.ac])[] dnl define pmx_version
10AC_INIT([pmx], pmx_version, [rdt@cs.queensu.ca])
11AC_PREREQ([2.63])
12AC_CONFIG_SRCDIR([pmxab.c])
13
14AM_INIT_AUTOMAKE(pmx, pmx_version)
15
16dnl Check compiler and flags
17AC_PROG_CC
18
19dnl initial value for AM_CPPFLAGS
20AC_SUBST([AM_CPPFLAGS], ['-DNON_UNIX_STDIO'])
21
22dnl WIN32 has no <sys/times.h>
23AM_CONDITIONAL([WIN32], [test "x$kpse_cv_have_win32" != xno])
24if test "x$kpse_cv_have_win32" != xno; then
25  AM_CPPFLAGS="$AM_CPPPFLAGS -DUSE_CLOCK"
26fi
27
28dnl Checks for programs.
29AC_PROG_INSTALL
30AC_PROG_LN_S
31AC_PROG_MAKE_SET
32AC_PROG_RANLIB
33
34AC_SEARCH_LIBS([sqrt], [m])
35
36AC_CHECK_SIZEOF([long long])
37if test $ac_cv_sizeof_long_long -lt 8; then
38  AM_CPPFLAGS="$AM_CPPPFLAGS -DNO_LONG_LONG"
39fi
40
41AC_CONFIG_FILES([Makefile])
42AC_OUTPUT
43