File: configure.in

package info (click to toggle)
eject 2.1.5%2Bdeb1-4
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 904 kB
  • ctags: 99
  • sloc: sh: 2,924; ansic: 1,204; makefile: 112
file content (41 lines) | stat: -rw-r--r-- 1,194 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
dnl Process this file with autoconf to produce a configure script.
AC_INIT(eject.c)
AM_INIT_AUTOMAKE(eject, 2.1.5)

dnl Checks for programs
AC_PROG_CC

dnl Checks for options
AC_ARG_ENABLE(default-device,
	[  --enable-default-device set default CD-ROM device @<:@default=cdrom@:>@],
	DEFAULTDEVICE=$enableval, DEFAULTDEVICE=cdrom)
AC_SUBST(DEFAULTDEVICE)

AC_ARG_ENABLE(nls,
	[  --disable-nls           disable support for nls @<:@default=enable@:>@],
	use_nls=$enableval, use_nls=yes)
if test "x$use_nls" != "xno" ; then
	CFLAGS="$CFLAGS -DUSE_NLS=1"
fi
AM_CONDITIONAL(USE_NLS, test "x$use_nls" != "xno")

dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h unistd.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST

dnl Checks for library functions.
AC_CHECK_FUNCS(regcomp strdup strerror)

dnl only try standard kernel paths if the toolchain
dnl is unable to locate linux includes by itself
AC_CHECK_HEADER([linux/version.h],,[
	unset ac_cv_header_linux_version_h
	CPPFLAGS="$CPPFLAGS -I/usr/src/linux/include"
	AC_CHECK_HEADER([linux/version.h],,[CPPFLAGS="$CPPFLAGS -I/usr/src/linux"])
])

AC_OUTPUT(Makefile)