dnl Process this file with autoconf to produce a configure script. dnl dnl Copyright (C) 2009 Peter Breitenlohner dnl dnl This file is free software; the copyright holder dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl m4_define([t1lib_major], [5])[]dnl m4_define([t1lib_minor], [1])[]dnl m4_define([t1lib_micro], [2])[]dnl using unmodified t1lib-5.1.2 source tree m4_define([t1lib_version], t1lib_major.t1lib_minor.t1lib_micro)[]dnl AC_INIT([T1lib for TeX Live], t1lib_version, [tex-k@tug.org]) AC_PREREQ([2.65]) AC_CONFIG_SRCDIR([t1lib-]t1lib_version[/lib/t1lib/t1base.c]) AC_CONFIG_AUX_DIR([../../build-aux]) AC_CONFIG_MACRO_DIR([../../m4]) AM_INIT_AUTOMAKE([foreign no-define]) AM_MAINTAINER_MODE T1LIB_VERSION=t1lib_major() T1LIB_REVISION=t1lib_minor() T1LIB_PATCHLEVEL=t1lib_micro() T1LIB_VERSIONSTRING='"t1lib_major.t1lib_minor.t1lib_micro"' AC_SUBST([T1LIB_VERSION]) AC_SUBST([T1LIB_REVISION]) AC_SUBST([T1LIB_PATCHLEVEL]) AC_SUBST([T1LIB_VERSIONSTRING]) dnl AC_CONFIG_HEADERS([config.h]) AC_CONFIG_HEADERS([lib/t1lib/sysconf.h]) AM_CONDITIONAL([build], [test "x$enable_build" != xno]) dnl **** Check for some programs and libraries **** AC_PROG_CC AC_PROG_RANLIB AC_SEARCH_LIBS([sqrt], [m]) dnl **** Check for some compiler/system characteristics AC_C_CHAR_UNSIGNED AC_CHECK_SIZEOF([char]) AC_CHECK_SIZEOF([short]) AC_CHECK_SIZEOF([int]) AC_CHECK_SIZEOF([long]) AC_CHECK_SIZEOF([long long]) AC_CHECK_SIZEOF([float]) AC_CHECK_SIZEOF([double]) AC_CHECK_SIZEOF([long double]) AC_CHECK_SIZEOF([void *]) dnl **** Check for gcc strength-reduce bug **** T1LIB_CFLAGS= if test "x$GCC" = xyes; then AC_CACHE_CHECK([for gcc strength-reduce bug], [ac_cv_c_gcc_strength_bug], [AC_RUN_IFELSE([AC_LANG_PROGRAM([[]], [[static int Array[3]; unsigned int B = 3; int i; for(i=0; i