dnl Process this file with autoconf to produce a configure script. AC_INIT(pips730, 2.5.2, pipsnews@epkowa.co.jp) AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION) AM_CONFIG_HEADER(config.h) AC_CONFIG_SRCDIR(ekpd/cbtd.c) MODEL=PM730C PIPS_PREFIX=/usr/local/EPKowa PIPS_DIR=$PIPS_PREFIX/$MODEL PIPS_COMMON_DIR=$PIPS_PREFIX/printer AC_SUBST(PIPS_DIR) AC_SUBST(PIPS_COMMON_DIR) prefix=/usr sysconfdir=/etc pkgdatadir=/usr/local/EPKowa/$MODEL pkglibexecdir=/usr/local/EPKowa/printer AC_SUBST(prefix) AC_SUBST(sysconfdir) AC_SUBST(pkgdatadir) AC_SUBST(pkglibexecdir) dnl Checks for programs. AC_PROG_CC AM_PROG_CC_STDC AC_PROG_INSTALL dnl Checks for libraries. AC_CHECK_LIB(dl, dlopen) AC_CHECK_LIB(pthread, pthread_create) AM_PATH_GTK dnl substitutes GTK_CFLAGS and GTK_LIBS, not included in plain dnl CFLAGS and LIBS if test -z "$GTK_FLAGS"; 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(fcntl.h limits.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h) AC_ISC_POSIX dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_OFF_T AC_HEADER_TIME AC_STRUCT_TM # Checks for library functions. AC_FUNC_FORK AC_PROG_GCC_TRADITIONAL AC_FUNC_MALLOC AC_FUNC_MEMCMP AC_TYPE_SIGNAL AC_CHECK_FUNCS(alarm gettimeofday memset mkfifo select socket strcspn strstr) 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 AH_BOTTOM([ dnl /* Make the _de facto_ `gettext' macro's available throughout the source dnl of the package. */ dnl #include dnl #define _(String) gettext(String) dnl #define gettext_noop(String) (String) dnl #define N_(String) gettext_noop(String) dnl ]) dnl Set PACKAGE_LOCALE_DIR in config.h. if test "x${prefix}" = "xNONE"; then AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale") else AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale") fi dnl Set PACKAGE_DATA_DIR in config.h. if test "x${datadir}" = 'x${prefix}/share'; then if test "x${prefix}" = "xNONE"; then AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${ac_default_prefix}/share/${PACKAGE}") else AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${prefix}/share/${PACKAGE}") fi else AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${datadir}/${PACKAGE}") fi dnl Set PACKAGE_SOURCE_DIR in config.h. packagesrcdir=`cd $srcdir && pwd` 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 dnl appendix 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) AC_DEFINE(ROLL_PAPER,1,ROLLPAPER) AC_CONFIG_FILES( \ Makefile \ src/Makefile \ dtrfilter/Makefile \ ekpd/Makefile \ ekpd/rc/Makefile \ ekpnavi/Makefile \ ekpstm/Makefile \ freset/Makefile \ intl/Makefile \ layout_script/Makefile \ lib/Makefile \ po/Makefile.in \ setup/Makefile \ redhat/Makefile \ doc/Makefile \ ) AC_OUTPUT