| 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 libjpeg_version |
| 10 |
AC_INIT([libjpeg], [9.2.0]) |
| 11 |
AC_PREREQ([2.65]) |
| 12 |
AC_CONFIG_SRCDIR([libjpeg-src/jpeglib.h]) |
| 13 |
AC_CONFIG_AUX_DIR([../../../../build-aux]) |
| 14 |
AC_CONFIG_MACRO_DIR([../../../../m4]) |
| 15 |
|
| 16 |
KPSE_BASIC([libjpeg]) |
| 17 |
|
| 18 |
AC_PROG_CC |
| 19 |
AC_PROG_RANLIB |
| 20 |
AC_PROG_LN_S |
| 21 |
|
| 22 |
# Generate configuration headers. |
| 23 |
AC_CONFIG_FILES([libjpeg-src/jconfig.h:libjpeg-src/jconfig.cfg]) |
| 24 |
AC_CONFIG_HEADERS([config.h]) |
| 25 |
|
| 26 |
KPSE_COMPILER_VISIBILITY |
| 27 |
|
| 28 |
KPSE_LIBJPEG_FLAGS |
| 29 |
|
| 30 |
AM_CONDITIONAL([build], [test "x$enable_build" != xno]) |
| 31 |
|
| 32 |
if test "x$enable_build" != xno || test -f config.force; then |
| 33 |
|
| 34 |
echo timestamp >config.force |
| 35 |
|
| 36 |
fi |
| 37 |
|
| 38 |
echo timestamp >config.force |
| 39 |
|
| 40 |
if test "x$host" = x; then |
| 41 |
config_args= |
| 42 |
else |
| 43 |
config_args="--host=$host" |
| 44 |
if test "x$build" != x; then |
| 45 |
config_args="$config_args --build=$build" |
| 46 |
fi |
| 47 |
fi |
| 48 |
AC_SUBST([config_args]) |
| 49 |
|
| 50 |
# Select memory manager depending on user input. |
| 51 |
# If no "-enable-maxmem", use jmemnobs |
| 52 |
MEMORYMGR='jmemnobs' |
| 53 |
AC_SUBST([MEMORYMGR]) |
| 54 |
|
| 55 |
AC_SUBST([LIBJPEG_TREE], [libjpeg-src]) |
| 56 |
|
| 57 |
AC_CONFIG_FILES([Makefile include/Makefile]) |
| 58 |
|
| 59 |
AC_OUTPUT |