dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.53) AC_INIT(pips3000, 1.3.2, pipsplus-bugs@epkowa.co.jp) AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION) AC_CONFIG_SRCDIR(src/uiParts.c) AM_CONFIG_HEADER(config.h) MODEL_L=PM3000C PIPS_PREFIX=/usr/local/EPKowa PIPS_DIR=$PIPS_PREFIX/$MODEL_L AC_SUBST(PIPS_DIR) prefix=/usr sysconfdir=/etc pkgdatadir=$PIPS_DIR AC_SUBST(prefix) AC_SUBST(sysconfdir) AC_SUBST(pkgdatadir) dnl Checks for programs. AC_PROG_CC AC_PROG_INSTALL dnl Checks for libraries. AC_CHECK_LIB(dl, dlopen) AM_PATH_GTK dnl substitutes GTK_CFLAGS and GTK_LIBS, not included in plain dnl CFLAGS and LIBS if test "x$GTK_CFLAGS" != "x"; then dnl provide a AC_CHECK_LIB'ish handle to the code monkey AC_DEFINE(HAVE_LIBGTK, 1, [Define if you have the `gtk' library (-lgtk).]) fi dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(limits.h stdlib.h string.h unistd.h wait.h sys/wait.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST dnl Checks for library functions. AC_FUNC_MALLOC AC_FUNC_MMAP AC_CHECK_FUNCS([floor memset munmap]) dnl Add the languages which your application supports here. ALL_LINGUAS="de es fr it ja nl pt ko zh zh_TW" AM_GNU_GETTEXT dnl Set PACKAGE_SOURCE_DIR in config.h. dnl packagesrcdir=`cd $srcdir && pwd` dnl AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}") dnl Use -Wall if we have gcc. changequote(,)dnl if test "x$GCC" = "xyes"; then case " $CFLAGS " in *[\ \ ]-Wall[\ \ ]*) ;; *) CFLAGS="$CFLAGS -Wall" ;; esac fi changequote([,])dnl AC_DEFINE(CONV_VERSION2,1,CONV_VERSION2) AC_DEFINE(USE_GTK, HAVE_LIBGTK, [FIXME: Alias for HAVE_LIBGTK for as long as we need it]) AC_DEFINE(_V1_SUPPORT,1,_V1_SUPPORT) AC_DEFINE(DEBUG,0,DEBUG) if test "$PACKAGE_NAME" != "pips770" \ -a "$PACKAGE_NAME" != "pips3000" \ -a "$PACKAGE_NAME" != "pips2200" \ -a "$PACKAGE_NAME" != "pips670" \ -a "$PACKAGE_NAME" != "pips750_2000" \ -a "$PACKAGE_NAME" != "pips760"; then AC_DEFINE(ROLL_PAPER,1,ROLLPAPER) fi AC_CONFIG_FILES(\ Makefile \ intl/Makefile \ lib/Makefile \ doc/Makefile \ po/Makefile.in \ redhat/Makefile \ setup/Makefile \ src/Makefile \ ) AC_OUTPUT