dnl html2hdml dnl html to hdml converter dnl Copyright (C) 2000-2003 Dino Co.,Ltd. dnl Process this file with autoconf to produce a configure script. AC_INIT(convert.c) AM_MAINTAINER_MODE HTML2HDML_VERSION=1.0.5 RPM_RELEASE=1 AC_SUBST(HTML2HDML_VERSION) AC_SUBST(RPM_RELEASE) AM_INIT_AUTOMAKE(html2hdml,$HTML2HDML_VERSION) AM_CONFIG_HEADER(config.h) dnl Checks for programs. AC_PROG_YACC AC_PROG_CC AM_PROG_LEX dnl Checks for libraries. dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS(unistd.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST dnl Checks for library functions. AC_CHECK_FUNCS(strdup strspn strstr strtol) dnl Checks for command #AC_CHECK_PROGS(BYACC,byacc bison,yacc) # AC_CHECK_PROG(FLEX,flex,flex,bison) dnl Cygwin check if (echo `uname`|grep -i "^CYGWIN" ) then echo "Adding -mno-cygwin to compile option and standard libraries" CFLAGS="$CFLAGS -mno-cygwin" LDFLAGS="$CFLAGS -mno-cygwin" fi AC_SUBST(CFLAGS) AC_SUBST(LDFLAGS) dnl debug option AC_MSG_CHECKING(if --enable-debug option specified) AC_ARG_ENABLE(debug, [ --enable-debug Build a debugging version.], [ts_cv_debug="yes"], [ts_cv_debug="no"]) if test "$ts_cv_debug" = yes; then AC_DEFINE(DEBUG) fi AC_MSG_RESULT($ts_cv_debug) AC_ARG_ENABLE(upmail, [ --enable-upmail Enable the registered email service for Up.Mail.], [ts_cv_upmail="$enableval"], [ts_cv_upmail="no"]) if test "X$ts_cv_upmail" = Xyes; then CFLAGS="-DENABLE_UPMAIL $CFLAGS" fi AC_SUBST(CFLAGS) dnl mod_html2hdml.so AC_MSG_CHECKING(if --with-apx option specified) AC_ARG_WITH(apx, [ --with-apx[=yes] Build a Apache extension module], [ts_cv_apx="yes"], [ts_cv_apx="no"]) if test "$ts_cv_apx" = yes; then AC_CHECK_PROG(result,apxs,yes,no) if test $result = yes; then CFLAGS="$CFLAGS `apxs -q CFLAGS` `apxs -q CFLAGS_SHLIB`" APXS=apxs APXS_CC=`apxs -q CC` APXS_CFLAGS=`apxs -q CFLAGS` APXS_CFLAGS_SHLIB=`apxs -q CFLAGS_SHLIB` APXS_INCLUDEDIR=`apxs -q INCLUDEDIR` APXS_PREFIX=`apxs -q PREFIX` APXS_LIBEXECDIR=${APXS_PREFIX}/modules APXS_SYSCONFDIR=`apxs -q SYSCONFDIR` fi AC_SUBST(APXS) AC_SUBST(APXS_CC) AC_SUBST(APXS_CFLAGS) AC_SUBST(APXS_CFLAGS_SHLIB) AC_SUBST(APXS_INCLUDEDIR) AC_SUBST(APXS_LIBEXECDIR) AC_SUBST(APXS_SYSCONFDIR) AC_SUBST(APXS_PREFIX) fi AC_MSG_RESULT($ts_cv_apx) AC_OUTPUT( Makefile html2hdml.spec )