-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathconfigure.ac
51 lines (39 loc) · 1.11 KB
/
configure.ac
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.71])
AC_INIT([ptouch-driver],[1.7],[[email protected]])
AM_INIT_AUTOMAKE([-Wall -Wno-portability])
AC_CONFIG_SRCDIR([rastertoptch.c])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
# Checks for libraries.
INITIAL_LIBS=$LIBS
AC_CHECK_LIB([m], [lrint])
LIBM=$LIBS
LIBS=$INITIAL_LIBS
AC_CHECK_LIB([cups], [cupsParseOptions])
LIBCUPS=$LIBS
LIBS=$INITIAL_LIBS
AC_CHECK_LIB([cupsimage], [cupsRasterReadHeader])
LIBCUPSIMAGE=$LIBS
LIBS=$INITIAL_LIBS
AC_CHECK_LIB([png], [png_write_row])
LIBPNG=$LIBS
LIBS=$INITIALL_LIBS
AC_SUBST([LIBM])
AC_SUBST([LIBCUPS])
AC_SUBST([LIBCUPSIMAGE])
AC_SUBST([LIBPNG])
# Checks for header files.
AC_CHECK_HEADERS([cups/cups.h cups/raster.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
# Checks for library functions.
AC_CHECK_FUNCS([strcasecmp strtol])
AC_CONFIG_FILES([Makefile
ptouch-driver.spec
ptouch-driver-foomatic.spec])
AC_OUTPUT