File: configure.in

package info (click to toggle)
gphoto 0.3.5-6
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,636 kB
  • ctags: 1,973
  • sloc: ansic: 23,035; sh: 4,851; makefile: 175
file content (77 lines) | stat: -rw-r--r-- 2,237 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/gallery.c)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(gphoto, 0.3.5)
AM_MAINTAINER_MODE

dnl Checks for programs.
AC_PROG_CC
AC_PROG_CPP
AM_PROG_LIBTOOL

dnl Completed by AM_INIT_AUTOMAKE
dnl AC_PROG_INSTALL
dnl AC_PROG_MAKE_SET

dnl Checks for libraries.
dnl Check -ldl
AC_CHECK_LIB(dl, dlopen)
dnl Check for X
AC_PATH_X
dnl Check -ljpeg:
AC_CHECK_LIB(jpeg, jpeg_start_decompress)
dnl Check for glib
AM_PATH_GLIB(1.2.0)
dnl Check for gtk
AM_PATH_GTK(1.2.0)
dnl Check for gdk_imlib
AM_PATH_GDK_IMLIB(1.4.0)

dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_DIRENT
AC_CHECK_HEADERS(sys/param.h termios.h sgetty.h ttold.h ioctl-types.h \
	fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h unistd.h \
	endian.h byteswap.h asm/io.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_C_CONST
AC_TYPE_UID_T
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM

dnl Check if TIOCM_RTS is included in one of several possible files
AC_TRY_COMPILE([#include <termios.h>], [int foo = TIOCM_RTS;], 	
			AC_DEFINE(HAVE_RTS_IOCTL))
AC_TRY_COMPILE([#include <termio.h>], [int foo = TIOCM_RTS;], 	
			AC_DEFINE(HAVE_RTS_IOCTL))
AC_TRY_COMPILE([#include <ioctl-types.h>], [int foo = TIOCM_RTS;], 	
			AC_DEFINE(HAVE_RTS_IOCTL))
AC_TRY_COMPILE([#include <sys/ioctl.h>], [int foo = TIOCM_RTS;], 	
			AC_DEFINE(HAVE_RTS_IOCTL))

dnl Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_FUNC_MEMCMP
AC_FUNC_STRFTIME
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(setreuid mkdir mktime strcspn strdup strerror strtol select)

dnl Local setup
dnl Is there a better way of doing docs?
GPHOTO_EXPAND_DIR(DOCDIR, "$datadir/gphoto/doc")
AC_DEFINE_UNQUOTED(DOCDIR, "$DOCDIR")
driversdir='${pkgdatadir}/drivers'
AC_SUBST(driversdir)
gallerydir='${pkgdatadir}/gallery'
AC_SUBST(gallerydir)

AC_OUTPUT(casio/Makefile fuji/Makefile kodak/Makefile konica/Makefile \
	philips/Makefile photopc/Makefile ricoh/Makefile \
	kodak_generic/Makefile sony/Makefile directory/Makefile \
	src/Makefile src/icons/Makefile gallery/Makefile minolta/Makefile \
	gallery/Default/Makefile gallery/RedNGray/Makefile \
	gallery/CSStheme/Makefile man/Makefile Makefile gphoto.spec)