dnl $Id: configure.in,v 1.5 1999/11/09 00:43:39 MRO Exp $ dnl dnl configure.in, LaTeX2HTML Release 98.2 dnl dnl GNU autoconf script for latex2html dnl dnl This script is mainly a wrapper for config.pl on UNIX and dnl UNIXish platforms dnl dnl Author: Marek Rouchal dnl dnl This software is part of Latex2HTML, originally by Nikos Drakos dnl It is published under the Gnu Public License and comes without any dnl warranty. dnl -------------------------------------------------------------------------- dnl Preamble,Options dnl -------------------------------------------------------------------------- AC_INIT(latex2html.pin) AC_PREFIX_DEFAULT(/usr/local) AC_ARG_WITH(perl, [ --with-perl=PATH path/name of the Perl interpreter],PERL=$withval,PERL=${PERL:-}) AC_ARG_WITH(oldconfig,[ --with-oldconfig=PATH use settings from this cfgcache.pm file],,with_oldconfig=${OLDCONFIG:-}) AC_ARG_WITH(extrapath,[ --with-extrapath=EPATH search for executables in EPATH, too],,with_extrapath=${EXTRAPATH:-}) AC_ARG_WITH(gsdevice, [ --with-gsdevice=DEVICE use Ghostscript portable image device (default: chosen automatically, possible choices: ppmraw,pgnmraw,pgmraw,pnmraw,pbmraw,ppm,pgnm,pnm,pbm)],,with_gsdevice=${GSDEVICE:-}) AC_ARG_WITH(gsalias, [ --with-gsalias=DEVICE use Ghostscript portable image device for anti-aliased image rendering (default: ppmraw, pgmraw)],,with_gsalias=${GSALIASDEVICE:-}) AC_ARG_WITH(iconpath, [ --with-iconpath=PATH URL to access LaTeX2HTML icons on http server],,with_iconpath=${ICONPATH:-}) AC_ARG_WITH(iconstorage,[ --with-iconstorage=PATH path where LaTeX2HTML icons are stored],,with_iconstorage=${ICONSTORAGE:-}) AC_ARG_WITH(texpath, [ --with-texpath=PATH path where TeX include files will be installed],,with_texpath=${TEXPATH:-}) AC_ARG_WITH(rgb, [ --with-rgb=PATH path of the system rgb.txt file],,with_rgb=${RGB:-}) AC_ARG_WITH(crayola, [ --with-crayola=PATH path of the system crayola.txt file],,with_crayola=${CRAYOLA:-}) AC_ARG_ENABLE(images, [ --enable-images add support of images (default: yes)],,enable_images='') AC_ARG_ENABLE(pk, [ --enable-pk create fonts for image generation (default: no)],,enable_pk='') AC_ARG_WITH(metamode, [ --with-metamode=MODE use MetaFont mode MODE for font generation],,with_metamode=${METAMODE:-}) AC_ARG_WITH(metadpi, [ --with-metadpi=DPI the DPI resolution the MetaFont mode MODE uses],,with_metadpi=${METADPI:-}) AC_ARG_ENABLE(eps, [ --enable-eps use EPS support in dvips if available],,enable_eps='') AC_ARG_ENABLE(reverse,[ --enable-reverse reverse dvips output (rarely needed)],,enable_reverse='') AC_ARG_ENABLE(gif, [ --enable-gif add support of GIF images],,enable_gif='') AC_ARG_ENABLE(png, [ --enable-png add support of PNG images],,enable_png='') AC_ARG_ENABLE(pipes, [ --enable-pipes use pipes to connect portable bitmap programs],,enable_pipes='') AC_ARG_ENABLE(paths, [ --enable-paths store absolute pathnames of external programs],,enable_paths='') AC_ARG_ENABLE(wrapper,[ --enable-wrapper build wrapper script to start latex2html],,enable_wrapper='') AC_ARG_ENABLE(texlive,[ --enable-texlive build LaTeX2HTML for TeXlive cdrom],,enable_texlive='') AC_ARG_WITH(gs, [ --with-gs=PATH path/name of the GhostScript executable],,with_gs=${GS:-}) AC_ARG_WITH(dvips, [ --with-dvips=PATH path/name of the dvips executable],,with_dvips=${DVIPS:-}) AC_ARG_WITH(latex, [ --with-latex=PATH path/name of the LaTeX executable],,with_latex=${LATEX:-}) AC_ARG_WITH(pnmcrop, [ --with-pnmcrop=PATH path/name of the pnmcrop executable],,with_latex=${PNMCROP:-}) AC_ARG_WITH(tex, [ --with-tex=PATH path/name of the TeX executable],,with_tex=${TEX:-}) AC_ARG_WITH(initex, [ --with-initex=PATH path/name of the IniTeX executable],,with_initex=${INITEX:-}) AC_ARG_WITH(kpsewhich,[ --with-kpsewhich=PATH path/name of the kpsewhich executable],,with_kpsewhich=${KPSEWHICH:-}) AC_ARG_WITH(mktexlsr, [ --with-mktexlsr=PATH path/name of the mktexlsr (or texhash) executable],,with_mktexlsr=${MKTEXLSR:-}) AC_ARG_WITH(validator,[ --with-validator=PATH path/name of a HTML validator executable],,with_validator=${HTML_VALIDATOR:-}) AC_ARG_WITH(pnmflip, [ --with-pnmflip=PATH path/name of the pnmflip executable],,with_pnmflip=${PNMFLIP:-}) AC_ARG_WITH(ppmquant, [ --with-ppmquant=PATH path/name of the ppmquant executable],,with_ppmquant=${PPMQUANT:-}) AC_ARG_WITH(pnmfile, [ --with-pnmfile=PATH path/name of the pnmfile executable],,with_pnmfile=${PNMFILE:-}) AC_ARG_WITH(pnmcat, [ --with-pnmcat=PATH path/name of the pnmcat executable],,with_pnmcat=${PNMCAT:-}) AC_ARG_WITH(pbmmake, [ --with-pbmmake=PATH path/name of the pnmmake executable],,with_pnmmake=${PBMMAKE:-}) AC_ARG_WITH(ppmtogif, [ --with-ppmtogif=PATH path/name of the ppmtogif executable],,with_ppmtogif=${PPMTOGIF:-}) AC_ARG_WITH(pnmtopng, [ --with-pnmtopng=PATH path/name of the pnmtopng executable],,with_pnmtopng=${PNMTOPNG:-}) AC_ARG_WITH(giftool, [ --with-giftool=PATH path/name of the giftool executable],,with_giftool=${GIFTOOL:-}) AC_ARG_WITH(giftrans, [ --with-giftrans=PATH path/name of the giftrans executable],,with_giftrans=${GIFTRANS:-}) dnl -------------------------------------------------------------------------- dnl perl dnl -------------------------------------------------------------------------- if test -n "$PERL"; then if echo "$PERL" | grep '^/' >/dev/null; then AC_MSG_CHECKING(for $PERL) if test -s "$PERL"; then AC_MSG_RESULT(yes) else AC_MSG_RESULT(no) PERL='none' fi else find_perl="$PERL" PERL='' fi else find_perl="perl perl5" fi if test -z "$PERL"; then AC_PATH_PROGS(PERL,$find_perl,none) fi if test "$PERL" = 'none'; then AC_MSG_ERROR(perl not found. LaTeX2HTML *needs* perl 5.00305 or higher.) fi dnl -------------------------------------------------------------------------- dnl can we do hashbang script starts? dnl -------------------------------------------------------------------------- AC_SYS_INTERPRETER dnl -------------------------------------------------------------------------- dnl now pass to config.pl dnl -------------------------------------------------------------------------- echo "launching proprietary configuration..." $PERL $srcdir/config/config.pl \ HASHBANG=$ac_cv_sys_interpreter \ OLDCONFIG=$with_oldconfig \ EXTRAPATH=$with_extrapath \ GSDEVICE=$with_gsdevice \ GSALIASDEVICE=$with_gsalias \ ICONPATH=$with_iconpath \ ICONSTORAGE=$with_iconstorage \ TEXPATH=$with_texpath \ RGB=$with_rgb \ CRAYOLA=$with_crayola \ IMAGES=$enable_images \ PK=$enable_pk \ METAMODE=$with_metamode \ METADPI=$with_metadpi \ EPS=$enable_eps \ REVERSE=$enable_reverse \ GIF=$enable_gif \ PNG=$enable_png \ PIPES=$enable_pipes \ ABSPATHS=$enable_paths \ PREFIX=$prefix \ BINDIR=$bindir \ LIBDIR=$libdir \ WRAPPER=$enable_wrapper \ TEXLIVE=$enable_texlive \ GS=$with_gs \ DVIPS=$with_dvips \ LATEX=$with_latex \ PNMCROP=$with_latex \ TEX=$with_tex \ INITEX=$with_initex \ KPSEWHICH=$with_kpsewhich \ MKTEXLSR=$with_mktexlsr \ HTML_VALIDATOR=$with_validator \ PNMFLIP=$with_pnmflip \ PPMQUANT=$with_ppmquant \ PNMFILE=$with_pnmfile \ PNMCAT=$with_pnmcat \ PBMMAKE=$with_pnmmake \ PPMTOGIF=$with_ppmtogif \ PNMTOPNG=$with_pnmtopng \ GIFTOOL=$with_giftool \ GIFTRANS=$with_giftrans if test "$?" != "0"; then exit 1 fi # this is used to get the values from the config file eval `perl -w -e 'use cfgcache; foreach(keys %cfg) { print qq($_='"'"'$cfg{$_}'"'"'\n);}'` AC_SUBST(plat) AC_SUBST(distver) AC_OUTPUT(Makefile) # This in a kludge. The cache confuses the results. rm -f config.cache echo echo "If everything went well, you may run 'make'"