dnl Process this file with autoconf to produce a configure script. AC_INIT(main.c) AM_INIT_AUTOMAKE(ipdf,1.0.0) dnl Checks for programs. AC_PROG_CC AC_CYGWIN if test "$CYGWIN" = "yes" then AC_DEFINE(CYGWIN) AC_DEFINE(SYSTEM_CONFIG,"//c/ipdf.cfg") else AC_DEFINE(SYSTEM_CONFIG,"/etc/ipdf.conf") fi AC_ARG_ENABLE(mfcob, [ --enable-mfcob Enable MF Cobol print file expansion], AC_MSG_RESULT(** Enabled MF Cobol print file expansion) AC_DEFINE(MF_COB_EXPAND)) AC_ARG_ENABLE(debug, [ --enable-debug Enable functionality from the -D flag], AC_DEFINE(DEBUG_A_LOO)) AC_ARG_ENABLE(default-reparent, [ --enable-default-reparent=X Set default reparent value X], AC_MSG_RESULT(** Making all indexes default to $enableval for reparenting) AC_DEFINE_UNQUOTED(DEFAULT_REPARENT,$enableval), AC_DEFINE(DEFAULT_REPARENT,0)) AC_ARG_ENABLE(broken-regex, [ --enable-broken-regex Uses included regex library if system is broken], AC_MSG_RESULT(** Enabling broken regex support (EXPERIMENTAL)) brx=true, brx=false ) AM_CONDITIONAL(USE_LOCAL_RX, test x$brx = xtrue) dnl Checks for libraries. AC_CHECK_LIB(png, png_read_info) AC_CHECK_LIB(tiff, TIFFClose) AC_CHECK_LIB(z, gzclose) AC_CHECK_LIB(pdf, PDF_boot, , AC_MSG_ERROR([Could not find libpdf. Get it at www.pdflib.com]) ) dnl Checks for header files. AC_CHECK_HEADERS(unistd.h) AC_CHECK_HEADERS(error.h) AC_CHECK_HEADERS(getopt.h) AC_CHECK_HEADERS(regex.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST dnl Checks for library functions. AC_HEADER_STDC AC_OUTPUT(Makefile)