# Thomas Esser, for teTeX. All settings here are my fault, don't blame # the dvipng maintainers for it. # Process this file with autoconf to produce a configure script. AC_INIT(dvipng.c) AC_DEFINE(PACKAGE_NAME, ["dvipng"]) AC_DEFINE(PACKAGE_VERSION, ["1.6"]) AC_DEFINE(PACKAGE_STRING, ["dvipng 1.6"]) # Checks for programs. AC_SET_MAKE AC_PROG_CC AC_PROG_INSTALL AC_PATH_PROG(GS, gs, :) AC_DEFINE_UNQUOTED(GS_PATH, "$GS", [Define as the path to GhostScript.]) ac_cv_lib_t1_T1_InitLib=yes PSFONTS_O="" if test "$ac_cv_lib_t1_T1_InitLib" = yes; then PSFONTS_O="t1.o" fi AC_SUBST(PSFONTS_O) if test -n "$PSFONTS_O"; then PSFONTS_O="$PSFONTS_O enc.o fontmap.o tfm.o" fi AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_HEADER_TIME AC_CHECK_HEADERS([inttypes.h fcntl.h sys/time.h stdbool.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_PID_T AC_TYPE_SIZE_T #if test "$ac_cv_header_inttypes_h" = yes; then # Sometimes we want to use gcc -ansi -pedantic as a portability test # The typedef of int64_t is not in the system header file in that # case. Then, #define int64_t as "long long", which is non-ansi, but # is present in most modern compilers. Using a #define rather than a # typedef can be a problem, but in dvipng int64_t only is used as # typecast, and there are no problems. # MY_CHECK_TYPE(int64_t, long long) # MY_CHECK_TYPE(uint64_t, unsigned long long) #fi # Checks for library functions. AC_FUNC_ALLOCA AC_FUNC_MMAP AC_FUNC_VPRINTF AC_CHECK_FUNCS([dup2 strchr strrchr memchr memset putenv munmap strtol]) if test "$enable_timing" = "yes"; then AC_CHECK_FUNCS([ftime gettimeofday]) fi sinclude(../../libs/zlib/withenable.ac) sinclude(../../libs/zlib/zlib.ac) sinclude(../../libs/libpng/withenable.ac) sinclude(../../libs/libpng/libpng.ac) sinclude(../../libs/t1lib/withenable.ac) sinclude(../../libs/t1lib/t1lib.ac) sinclude(../../libs/gd/withenable.ac) sinclude(../../libs/gd/gd.ac) sinclude(../kpathsea/withenable.ac) AC_DEFINE(HAVE_KPATHSEA_KPATHSEA_H) AC_CHECK_LIB(m, main) AC_CHECK_LIB(gen, basename) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES(Makefile) AC_OUTPUT