ref: a6752fd2a6859efeabbb29954d5b5d34ec0eb96b
dir: /configure.ac/
# Process this file with autoconf to produce a configure script. package=jbig2dec version=0.1 AC_INIT([$package], [$version], [jbig2-dev@ghostscript.com]) AC_PREREQ(2.52) AC_CONFIG_SRCDIR([jbig2dec.c]) AM_INIT_AUTOMAKE([$package], [$version]) AM_CONFIG_HEADER(config.h) AC_REVISION([$Revision: 1.3 $]) # Checks for programs. AC_PROG_CC AC_PROG_RANLIB # Checks for libraries. AC_CHECK_LIB([png], [png_check_sig], [ AC_DEFINE(HAVE_LIBPNG, 1, [Define if libpng is available (-lpng)]) LIBS="$LIBS -lpng" LIBOBJS="$LIBOBJS jbig2_image_png.o" AC_CHECK_LIB([z], [deflate]) ]) # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([libintl.h stddef.h stdint.h stdlib.h string.h strings.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_SIZE_T # Checks for library functions. AC_FUNC_MALLOC AC_FUNC_MEMCMP AC_CHECK_FUNCS([memset strdup]) dnl use our included getopt if the system doesn't have getopt_long() AC_CHECK_FUNC(getopt_long, [AC_DEFINE(HAVE_GETOPT_LONG,,[Define if the local libc includes getopt_long()])], [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] ) # generate output AC_SUBST(LIBOJBS) AC_CONFIG_FILES([Makefile]) AC_OUTPUT