dnl Process this file with autoconf to produce a configure script. AC_INIT(pipsg700, 2.6.2, pipsplus-bugs@avasys.jp) AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION) AM_CONFIG_HEADER(config.h) AC_CONFIG_SRCDIR(src/pips.c) AC_CONFIG_SUBDIRS(libltdl) MODEL_L=PMG700 PIPS_PREFIX=/usr/local/EPKowa PIPS_DIR=$PIPS_PREFIX/$MODEL_L PIPS_COMMON_DIR=$PIPS_PREFIX/printer AC_SUBST(PIPS_DIR) AC_SUBST(PIPS_COMMON_DIR) prefix=/usr sysconfdir=/etc pkgdatadir=/usr/local/EPKowa/$MODEL_L 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 AC_LIBTOOL_DLOPEN AC_LIBLTDL_CONVENIENCE AM_PROG_LIBTOOL AC_SUBST(INCLTDL) AC_SUBST(LIBLTDL) AC_CHECK_PROG(have_cups_config, cups-config, yes) if test $have_cups_config = yes; then CUPS_CFLAGS=`cups-config --cflags` CUPS_LDFLAGS=`cups-config --ldflags` CUPS_LIBS=`cups-config --libs | sed -e 's,-lssl,,;s,-lcrypto,,;s,-lcrypt,,'` CUPS_IMAGE_LIBS=`cups-config --image --libs | sed -e 's,-lssl,,;s,-lcrypto,,;s,-lcrypt,,'` CUPS_SERVER_DIR=`cups-config --serverbin` CUPS_DATA_DIR=`cups-config --datadir` else AC_MSG_ERROR([*** 'cups-config' missing, please install CUPS or fix your \$PATH ***]) fi AC_SUBST(CUPS_CFLAGS) AC_SUBST(CUPS_LDFLAGS) AC_SUBST(CUPS_LIBS) AC_SUBST(CUPS_IMAGE_LIBS) AC_SUBST(CUPS_SERVER_DIR) AC_SUBST(CUPS_DATA_DIR) 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 "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(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 en es fr it ja nl pt ko zh zh_TW" AM_GNU_GETTEXT AH_BOTTOM([ /* Make the _de facto_ `gettext' macro's available throughout the source of the package. */ #include #define _(String) gettext(String) #define gettext_noop(String) (String) #define N_(String) gettext_noop(String) ]) 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 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,ROLL_PAPER) AC_DEFINE(USE_INKBOX,1,USE_INKBOX) AC_DEFINE(HIGH_RESOLUTION,0,HIGH_RESOLUTION) AC_DEFINE(SPC_MODEL,0,SPC_MODEL) AC_DEFINE(COVER_OPEN,0,COVER_OPEN) AC_DEFINE(CD_DVD_OPEN,0,CD_DVD_OPEN) AC_DEFINE(CLEAR_INK,0,CLEAR_INK) AC_DEFINE(AUTO_CUT,0,AUTO_CUT) AC_DEFINE(NO_ACTION_PAPERJAM,0,NO_ACTION_PAPERJAM) AC_DEFINE(CD_DVD_EXPOSED,0,CD_DVD_EXPOSED) AC_DEFINE(PAPERGUIDE_OPEN,0,PAPERGUIDE_OPEN) 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 \ pixmaps/Makefile \ po/Makefile.in \ ppd/Makefile \ setup/Makefile \ redhat/Makefile \ doc/Makefile \ ) AC_OUTPUT