"Fossies" - the Fresh Open Source Software Archive

Member "xmlto-0.0.28/configure.in" (18 Nov 2015, 4220 Bytes) of package /linux/privat/xmlto-0.0.28.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "configure.in": 0.0.27_vs_0.0.28.

    1 AC_INIT(xmlto, 0.0.28)
    2 AC_CONFIG_SRCDIR(xmlto.spec.in)
    3 AM_INIT_AUTOMAKE([dist-bzip2 subdir-objects 1.6])
    4 AC_CONFIG_HEADERS(config.h)
    5 
    6 AC_PROG_CC
    7 AM_PROG_CC_C_O
    8 AM_PROG_LEX
    9 
   10 
   11 dnl
   12 dnl tools
   13 dnl
   14 
   15 AC_ARG_VAR([MKTEMP], [Name of the `mktemp' program.])
   16 AC_CHECK_PROG([MKTEMP], [mktemp],, [mktemp])
   17 
   18 AC_ARG_VAR([FIND], [Name of the GNU `find' program.])
   19 AC_CHECK_PROG([FIND], [find],, [find] )
   20 
   21 AC_ARG_VAR([BASH], [Name and path of the GNU `bash' shell.])
   22 AC_PATH_PROG([BASH], [bash], [/bin/bash])
   23 
   24 AC_ARG_VAR([GETOPT], [Name of the `getopt' program (requires longopt support).])
   25 AC_CHECK_PROG([GETOPT], [getopt],, [getopt])
   26 
   27 AC_MSG_CHECKING([for long options support in $GETOPT])
   28 opts=`$GETOPT --longoptions=help x -x`
   29 if test x"$opts" != x" -x --"; then
   30        AC_MSG_RESULT([no])
   31        AC_MSG_ERROR([
   32 You need getopt from <http://software.frodo.looijaard.name/getopt/>, or
   33 else some other implementation that supports --longoptions.
   34 ])
   35 fi
   36 AC_MSG_RESULT([yes])
   37 
   38 AC_ARG_VAR([PAPER_CONF], [Name and path of the `paperconf' (libpaper) program.])
   39 AC_PATH_PROG([PAPER_CONF], [paperconf], [paperconf])
   40 
   41 AC_ARG_VAR([LOCALE], [Name and path of the `locale' program.])
   42 AC_PATH_PROG([LOCALE], [locale], [locale])
   43 
   44 AC_ARG_VAR([XMLLINT], [Name and path of the `xmllint' program.])
   45 AC_PATH_PROG([XMLLINT], [xmllint], [xmllint])
   46 
   47 AC_ARG_VAR([XSLTPROC], [Name and path of the `xsltproc' program.])
   48 AC_PATH_PROG([XSLTPROC], [xsltproc], [xsltproc])
   49 
   50 dnl
   51 dnl toolchains
   52 dnl
   53 
   54 AC_ARG_VAR([DBLATEX], [Name and path of the `dblatex' utility.])
   55 AC_PATH_PROG([DBLATEX], [dblatex], [dblatex])
   56 
   57 AC_ARG_VAR([FOP], [Name and path of the `fop' utility.])
   58 AC_PATH_PROG([FOP], [fop], [fop])
   59 
   60 AC_ARG_VAR([XMLTEX], [Name and path of the `xmltex' utility.])
   61 AC_PATH_PROG([XMLTEX], [xmltex], [xmltex])
   62 
   63 AC_ARG_VAR([PDFXMLTEX], [Name and path of the `pdfxmltex' utility.])
   64 AC_PATH_PROG([PDFXMLTEX], [pdfxmltex], [pdfxmltex])
   65 
   66 dnl
   67 dnl default backend
   68 dnl
   69 
   70 AC_ARG_WITH(
   71         [backend],
   72         AC_HELP_STRING(
   73                 [--with-backend=@<:@passivetex|fop|dblatex@:>@],
   74                 [The default processing backend @<:@default=DEFAULT@:>@]
   75         ),
   76         [
   77          case "x$withval" in
   78                 xfop)
   79                         BACKEND="FOP"
   80                 ;;
   81                 xdblatex)
   82                         BACKEND="DBLATEX"
   83                 ;;
   84                 *)
   85                         BACKEND="DEFAULT"
   86                 ;;
   87          esac
   88         ],
   89         [BACKEND="DEFAULT"]
   90 )
   91 
   92 AC_MSG_CHECKING([for default backend])
   93 AC_MSG_RESULT([$BACKEND])
   94 AC_SUBST([BACKEND])
   95 
   96 dnl
   97 dnl web browsers
   98 dnl
   99 
  100 AC_ARG_VAR([LYNX], [Name and path of the `lynx' browser.])
  101 AC_PATH_PROG([LYNX], [lynx], [lynx])
  102 
  103 AC_ARG_VAR([LINKS], [Name and path of the `elinks' browser.])
  104 AC_PATH_PROG([LINKS], [elinks], [elinks])
  105 
  106 AC_ARG_VAR([W3M], [Name and path of the `w3m' browser.])
  107 AC_PATH_PROG([W3M], [w3m], [w3m])
  108 
  109 AC_ARG_VAR([TAIL], [Name and path of a tail binary that supports -n.])
  110 AC_PATH_PROG([TAIL], [tail], [tail])
  111 
  112 AC_ARG_VAR([GREP], [Name and path of a GNU grep binary.])
  113 AC_PATH_PROG([GREP], [grep], [grep])
  114 
  115 AC_ARG_VAR([SED], [Name and path of a GNU sed binary.])
  116 AC_PATH_PROG([SED], [sed], [sed])
  117 
  118 AC_ARG_VAR([GCP], [Name and path of a GNU cp binary (need at least -P)])
  119 AC_PATH_PROG([GCP], [cp], [cp])
  120 
  121 AC_ARG_VAR([ZIP], [Name and path of a zip binary (compatible with PKZIP)])
  122 AC_PATH_PROG([ZIP], [zip], [zip])
  123 
  124 dnl
  125 dnl default webrowser
  126 dnl
  127 
  128 AC_ARG_WITH(
  129         [webbrowser],
  130         AC_HELP_STRING(
  131                 [--with-webbrowser=@<:@w3m|lynx|links|any@:>@],
  132                 [The default processing backend @<:@default=w3m@:>@]
  133         ),
  134         [
  135          case "x$withval" in
  136                 xlinks)
  137                         WEBBROWSER="links"
  138                 ;;
  139                 xlynx)
  140                         WEBBROWSER="lynx"
  141                 ;;
  142                 xany)
  143                         WEBBROWSER="text-www-browser"
  144                 ;;
  145                 *)
  146                         WEBBROWSER="w3m"
  147                 ;;
  148          esac
  149         ],
  150         [WEBBROWSER="w3m"]
  151 )
  152 
  153 AC_MSG_CHECKING([for default web browser])
  154 AC_MSG_RESULT([$WEBBROWSER])
  155 AC_SUBST([WEBBROWSER])
  156 
  157 dnl
  158 dnl done
  159 dnl
  160 
  161 AC_CONFIG_FILES([Makefile xmlto xmlto.spec])
  162 AC_OUTPUT