| 1 |
dnl $Id: configure.ac 77025 2025-12-05 10:46:12Z takuji $ |
| 2 |
dnl Process this file with autoconf to produce a configure script. |
| 3 |
dnl |
| 4 |
dnl Copyright 2015-2020 Karl Berry <[email protected]> |
| 5 |
dnl Copyright 2010-2015 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([mendex (TeX Live)], [3.10]) |
| 12 |
AC_PREREQ([2.71]) |
| 13 |
AC_CONFIG_SRCDIR([main.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([mendexk], [no-define]) |
| 19 |
|
| 20 |
AC_CONFIG_HEADERS([c-auto.h:c-auto.in]) |
| 21 |
|
| 22 |
m4_include([../../version.ac])[] dnl define tex_live_version |
| 23 |
AC_DEFINE([TL_VERSION], ["TeX Live tex_live_version()"], |
| 24 |
[Define to the current TeX Live version string.]) |
| 25 |
|
| 26 |
AC_CACHE_CHECK([if C99 variadic macros are supported], |
| 27 |
[kpse_cv_have___VA_ARGS__], |
| 28 |
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h> |
| 29 |
#define foo(format, ...) printf(format, __VA_ARGS__)]], |
| 30 |
[[foo("%s\n", "Hi, there");]])], |
| 31 |
[kpse_cv_have___VA_ARGS__=yes], |
| 32 |
[kpse_cv_have___VA_ARGS__=no])]) |
| 33 |
AS_CASE([$kpse_cv_have___VA_ARGS__], |
| 34 |
[yes], [AC_DEFINE([HAVE___VA_ARGS__], 1, |
| 35 |
[Define to 1 if you have C99 variadic macros.])]) |
| 36 |
|
| 37 |
KPSE_KPATHSEA_FLAGS |
| 38 |
KPSE_PTEXENC_FLAGS |
| 39 |
|
| 40 |
AC_CONFIG_FILES([Makefile]) |
| 41 |
|
| 42 |
AC_OUTPUT |