makefile - Making a configuration file in linux -
i making configure.ac file tool made , need check whether pdflatex installed in users system. how do ? checking other libraries included test programs using ac_compile_ifelse, dont know if pdflatex can invoked program.
also regular practise install required packages automatically using script or can specify in readme file packages required , upto user install packages.
you can use ac_check_prog([have_pdflatex], [pdflatex], [yes], [no])
check if exists , set have_pdflatex
yes
if so. it's more you'll want use ac_path_prog([pdflatex], [pdflatex])
find actual path of program if exists , store in pdflatex
.
i think it's best let user install prerequisites themself. don't know how install software (apt? yum? pacman? emerge? source?) , wouldn't worth effort try cover cases. it's sufficient mention them in readme , test them autoconf macros.
Comments
Post a Comment