| 1 |
dnl $Id: configure.ac 56860 2020-11-05 18:16:20Z karl $ |
| 2 |
dnl Process this file with autoconf to produce a configure script. |
| 3 |
dnl |
| 4 |
dnl Copyright 2014-2020 Karl Berry <[email protected]> |
| 5 |
dnl Copyright 2009-2013 Peter Breitenlohner <[email protected]> |
| 6 |
dnl |
| 7 |
dnl This file is free software; the copyright holder |
| 8 |
dnl gives unlimited permission to copy and/or distribute it, |
| 9 |
dnl with or without modifications, as long as this notice is preserved. |
| 10 |
dnl |
| 11 |
AC_INIT([gsftopk (TeX Live)], [1.19.2], [[email protected]]) |
| 12 |
AC_PREREQ([2.65]) |
| 13 |
AC_CONFIG_SRCDIR([gsftopk.c]) |
| 14 |
AC_CONFIG_AUX_DIR([../../build-aux]) |
| 15 |
AC_CONFIG_MACRO_DIR([../../m4]) |
| 16 |
|
| 17 |
dnl Common code for all programs using libkpathsea. |
| 18 |
KPSE_COMMON([gsftopk]) |
| 19 |
|
| 20 |
AC_CONFIG_HEADERS([c-auto.h:c-auto.in]) |
| 21 |
|
| 22 |
dnl Checks for header files. |
| 23 |
AC_HEADER_SYS_WAIT |
| 24 |
AC_CHECK_HEADERS([poll.h sys/time.h]) |
| 25 |
|
| 26 |
dnl Checks for library functions. |
| 27 |
AC_FUNC_VFORK |
| 28 |
AC_TYPE_SIGNAL |
| 29 |
AC_CHECK_FUNCS([poll sigaction]) |
| 30 |
|
| 31 |
if test "$ac_cv_header_poll_h" = no || test "$ac_cv_func_poll" = no; then |
| 32 |
AC_CHECK_HEADERS([sys/select.h select.h]) |
| 33 |
fi |
| 34 |
|
| 35 |
KPSE_KPATHSEA_FLAGS |
| 36 |
|
| 37 |
if test "x$enable_build" != xno || test -f config.force; then |
| 38 |
|
| 39 |
KPSE_ADD_FLAGS([kpathsea]) |
| 40 |
AC_CHECK_HEADER([kpathsea/version.h], [], |
| 41 |
[AC_MSG_ERROR([Sorry, kpathsea too old])]) |
| 42 |
KPSE_RESTORE_FLAGS |
| 43 |
|
| 44 |
echo timestamp >config.force |
| 45 |
fi |
| 46 |
|
| 47 |
AC_CONFIG_FILES([Makefile]) |
| 48 |
|
| 49 |
AC_OUTPUT |