File: configure.in

package info (click to toggle)
otf2bdf 3.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 460 kB
  • sloc: ansic: 1,233; makefile: 39; sh: 23
file content (44 lines) | stat: -rw-r--r-- 746 bytes parent folder | download | duplicates (2)
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
dnl Process this file with autoconf to produce a configure script.

AC_INIT(otf2bdf.c)

AC_PROG_CC
PKG_PROG_PKG_CONFIG

PKG_CHECK_MODULES(
	[FREETYPE],
	[freetype2],
	[
		CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
		LIBS="$LIBS $FREETYPE_LIBS"
	],
	[AC_MSG_ERROR([Can't find Freetype library])])
AC_SUBST(LIBS)

dnl get Compiler flags right.

if test "x$CC" = xgcc; then
	XX_CFLAGS="-Wall -pedantic"
else
	case "$host" in
  		alpha-dec-osf*)
        	XX_CFLAGS="-std1 -O2 -g3"
       		;;
  		*)
          	XX_CFLAGS=
       		;;
	esac
fi
AC_SUBST(XX_CFLAGS)

AC_CHECK_PROG(RM, rm, rm)
AC_CHECK_PROG(CP, cp, cp)

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h)

dnl Checks for library functions.
AC_FUNC_MEMCMP

AC_OUTPUT(Makefile)