Debian Codegraph @

texk/xdvipsk/thirdparty/libtiff/configure.ac

raw
1 dnl Process this file with autoconf§ to produce a configure script.
2 dnl
3 dnl Copyright (C) 2009-2013 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 libtiff_version
10 AC_INIT([libtiff], libtiff_version)
11 AC_PREREQ([2.65])
12 AC_CONFIG_SRCDIR([libtiff-src/tiff.h])
13 AC_CONFIG_AUX_DIR([../../../../build-aux])
14 AC_CONFIG_MACRO_DIR([../../../../m4])
15
16 KPSE_BASIC([libtiff])
17
18 AC_PROG_CC
19 AC_PROG_RANLIB
20 AC_PROG_LN_S
21
22 # Generate configuration headers.
23 # AC_CONFIG_FILES([libtiff-src/jconfig.h:libtiff-src/jconfig.cfg])
24 AC_CONFIG_FILES([libtiff-src/tif_config.h:libtiff-src/tiffconf.h])
25 AC_CONFIG_HEADERS([config.h])
26
27 KPSE_COMPILER_VISIBILITY
28 KPSE_LARGEFILE([LIBTIFF_DEFINES], [_LARGEFILE64_SOURCE])
29
30 KPSE_LIBJPEG_FLAGS
31 KPSE_ZLIB_FLAGS
32
33 AM_CONDITIONAL([build], [test "x$enable_build" != xno])
34
35 if test "x$enable_build" != xno || test -f config.force; then
36
37 echo timestamp >config.force
38
39 fi
40
41 echo timestamp >config.force
42
43 if test "x$host" = x; then
44 config_args=
45 else
46 config_args="--host=$host"
47 if test "x$build" != x; then
48 config_args="$config_args --build=$build"
49 fi
50 fi
51 AC_SUBST([config_args])
52
53 # Select memory manager depending on user input.
54 # If no "-enable-maxmem", use jmemnobs
55 MEMORYMGR='jmemnobs'
56 AC_SUBST([MEMORYMGR])
57
58 AC_SUBST([LIBTIFF_TREE], [libtiff-src])
59
60 AC_CONFIG_FILES([Makefile include/Makefile])
61
62 AC_OUTPUT