Prev Up (Under construction)

a2ps

Any to PostScript filter

Compilation

Needs gperf.

V4.13b

Generic:
make distclean
./configure --prefix=/tmp/a2ps-4.13 # for gcc
make
make install                        # goes into tmp directory above

HP-UX

11.00
Seems that in m4/Makefile $< isn't resolved correctly, at
Makefile.am: Makefile.am.in
11.11
./configure CC=cc CFLAGS="-fast -D_REENTRANT -D_FILE_OFFSET_BITS=64 +z" --prefix=/tmp/a2ps-4.13b # 11.11, native cc
make
make install

V4.14

Uses va_copy() thus needs C99 standard.

AIX

   # AIX 6.1/7.1, C 9.0/12.1
   ./configure --prefix=/tmp/a2ps-4.14 CC=cc CFLAGS="-O2 -D_LARGE_FILES -qlanglvl=extc99" --enable-static --disable-shared --disable-rpath

   make clean
   make
   make install

HP-UX

./configure CC=cc CFLAGS="-fast -D_REENTRANT -D_FILE_OFFSET_BITS=64 +z" --prefix=/tmp/a2ps-4.14 # 11.11, native cc
make
make install
fails with
cc: "strtoimax.c", line 39: error 1000: Unexpected symbol: "this configure-time declaration test was not run".

Installation & configuration

a2ps uses configuration files in the following order:
$A2PS_CONFIG       # default: /usr/local/etc/a2ps.cfg
~/.a2ps/a2psrc
./.a2psrc
a2ps.cfg includes another, site-specific config file, a2ps-site.cfg which can be used to save site-specific information from being overwritten by upgrade installations. In a2ps-site.cfg define a default medium. Note that the LibraryPath definitions in a2ps.cfg needs to be adapted too.
Define the A2PS_CONFIG location at a central place (e.g. .profile):
export A2PS_CONFIG=/bio/local/etc/a2ps.cfg
More information here.
Last updated: Sun, Mar 2, 2014 01:10:03 PM , M.Kraemer