I need to write a tex file which checks whether certain files can be found by kpathsea library. It is easy to check whether a sty or an `fd file can be found:
\IfFileExists{hyperref.sty}{Hyperref found}{Hyperref is not found}
\IfFileExists{t1stix.fd}{Stix FD found }{Stix FD is not found}
However, I want to know whether, say, stix-mathrm.pfb can be found. Of course, I can easily do this from command line, as
kpsewhich stix-mathrm.pfb
Well, I can use write18 to call this command from a TeX file, but I wonder if there is a simpler way to do it.
Update: Ok, I probably should explain better what do I want. I want to check whether an installation of TeX is good enough for acmart to work. I know how to check the existence of style files and their versions.
What sometimes happens is that a user has incomplete font installation: fd and and sty are present, but the fonts themselves are absent. I need to check whether this is the case.
Since the check must be run by a user, I cannot rearrange file locations, input path, or use write18 because many users just do not know how to enable it.
Ideally I want a tex file which produces a pdf that says: "You have a good enough hyperref, but you lack libertine fonts. Please install them from .."
Well, I guess I need to parse log file then :(
Update 2: . Silly me. kpsewhich is enabled in write18 by default in TeXLive and MikTeX. I thought it was not.
Sorry for asking a stupid question.