Debian Codegraph @

libs/pplib/configure.ac

raw
1 dnl Process this file with autoconf to produce a configure script.
2 dnl
3 dnl Copyright (C) 2013, 2014 Peter Breitenlohner <[email protected]>
4 dnl
5 dnl This file is free software; the copyright holder
6 dnl gives unlimited permission to copy and/or distribute it,
7 dnl with or without modifications, as long as this notice is preserved.
8 dnl
9 m4_include([version.ac])[] dnl define pplib_version
10 AC_INIT([pplib (TeX Live)], pplib_version, [[email protected]])
11 AC_PREREQ([2.65])
12 AC_CONFIG_SRCDIR([pplib-src/src/pplib.h])
13 AC_CONFIG_AUX_DIR([../../build-aux])
14 AC_CONFIG_MACRO_DIR([../../m4])
15
16 KPSE_BASIC([pplib])
17
18 AC_PROG_CC
19 AC_PROG_CC_C99
20 AC_PROG_RANLIB
21 AC_PROG_LN_S
22
23 AC_SUBST([PPLIBVERSION], [pplib_version])
24 KPSE_LT_VERSION([pplib])
25
26 LT_INIT([win32-dll])
27
28 KPSE_DLL_NAME([pplib], [pplib])
29
30 AC_CONFIG_HEADERS([config.h])[]dnl unused, to avoid zillions of -D's on command line
31
32 AM_CONDITIONAL([build], [test "x$enable_build" != xno])
33
34
35 #KPSE_PPLIB_DEFINES
36 KPSE_LARGEFILE([PPLIB])
37
38 KPSE_ZLIB_FLAGS
39
40 AM_CONDITIONAL([build], [test "x$enable_build" != xno])
41
42 if test "x$enable_build" != xno || test -f config.force; then
43
44 KPSE_ADD_FLAGS([zlib])
45 AC_CHECK_FUNC([zlibVersion], , [AC_ERROR([zlib not found])])
46 KPSE_RESTORE_FLAGS
47
48 echo timestamp >config.force
49 fi
50
51
52
53 if test "x$ac_cv_header_stdc" = xyes; then
54 PPLIB_DEFINES="$PPLIB_DEFINES -DHAVE_UNISTD_H"
55 fi
56
57 #PPLIB_DEFINES="$PPLIB_DEFINES -DEXTRA"
58 #PPLIB_CFLAGS="-DEXTRA"
59
60 AC_SUBST([PPLIB_TREE], [pplib-src])
61
62 AC_CONFIG_FILES([Makefile include/Makefile])
63
64 AC_OUTPUT