Debian Codegraph @

utils/pmx/pmx-src/configure.ac

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