File: configure.in

package info (click to toggle)
gif2png 2.2.5-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 360 kB
  • ctags: 288
  • sloc: sh: 1,684; ansic: 1,557; python: 244; makefile: 61
file content (56 lines) | stat: -rw-r--r-- 1,568 bytes parent folder | download
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
52
53
54
55
56
dnl Autoconfigure input file for gif2png
dnl Eric S. Raymond <esr@thyrsus.com>
dnl
dnl Process this file with autoconf to produce a configure script.
dnl

AC_INIT(gif2png.h)		dnl A distinctive file to look for in srcdir. 

AM_INIT_AUTOMAKE(gif2png, 2.2.5)
AM_CONFIG_HEADER(config.h)

AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_CPP			dnl Later checks need this.
AC_PROG_CC_C_O
AC_HEADER_STDC
AC_ARG_PROGRAM

AC_ARG_WITH(png,[  --with-png=DIR             location of png lib/inc],
		[LDFLAGS="${LDFLAGS} -L${withval}"
		CFLAGS="${CFLAGS} -I${withval}"])
  
AC_ARG_WITH(png-lib,[  --with-png-lib=DIR         location of png library],
		[LDFLAGS="${LDFLAGS} -L${withval}"])
                
AC_ARG_WITH(png-inc,[  --with-png-inc=DIR         location of the libpng include files],
                [CFLAGS="${CFLAGS} -I${withval}"])

###	use option --enable-TMPFILE to set TMPFILE mode
AC_ARG_ENABLE(TMPFILE,
	[  --enable-TMPFILE           compile in TMPFILE support],
	[with_TMPFILE=$enableval],
	[with_TMPFILE=no])
test "$with_TMPFILE" = "yes" && AC_DEFINE(TMPFILE_ENABLE)

AC_CHECK_LIB(z, deflate)
AC_CHECK_LIB(m, pow)
AC_CHECK_LIB(png, png_write_init, , , $LIBS)

if test "$ac_cv_lib_png_png_write_init" = "no"
then
    AC_ERROR([PNG library is missing! Please get it.])
fi
if test "$ac_cv_lib_z_deflate" = "no"
then
    AC_ERROR([ZLIB library is missing! Please get it.])
fi

AC_OUTPUT(Makefile gif2png.spec)

dnl Local Variables:
dnl comment-start: "dnl "
dnl comment-end: ""
dnl comment-start-skip: "\\bdnl\\b\\s *"
dnl compile-command: "make configure config.h.in"
dnl End: