File: acinclude.m4

package info (click to toggle)
gfontview 0.5.0-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,440 kB
  • ctags: 616
  • sloc: sh: 7,980; cpp: 6,373; ansic: 2,209; makefile: 193; sed: 93
file content (35 lines) | stat: -rw-r--r-- 780 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

# Look for a way to send a print job (either lpr or lp)
AC_DEFUN(AC_FIND_SPOOLER,
[dnl
AC_PATH_PROG(SPOOLER, "lpr")
if test -z "$SPOOLER" ; then
  AC_PATH_PROG(SPOOLER, "lp")
fi
if test -z "$SPOOLER" ; then
  AC_MSG_ERROR(Cannot determine your print spooling system)
fi

if test `basename $SPOOLER` = lpr ; then
  AC_DEFINE_UNQUOTED(PRINTER_SPOOLER, "$SPOOLER -P")
else
  AC_DEFINE_UNQUOTED(PRINTER_SPOOLER, "$SPOOLER -d")
fi
])


# Check whether the bool type is known to the compiler
AC_DEFUN(AC_CHECK_BOOL,
[dnl
AC_CACHE_CHECK([for bool type],
  ac_cv_bool,
  [AC_LANG_SAVE
   AC_LANG_CPLUSPLUS
   AC_TRY_COMPILE([#include<stdio.h>], [bool a;],
                  ac_cv_bool=yes, ac_cv_bool=no)
   AC_LANG_RESTORE
])
if test $ac_cv_bool = no; then
  AC_DEFINE(bool, int)
fi
])