added logo for sticker
[svn42.git] / old-door-deamon / libparportled-0.5.1 / configure.in
1 # Process this file with autoconf to produce a configure script.
2 AC_INIT(led.c, 0.1, julien@jdanjou.org)
3 AC_CONFIG_HEADER([parportled.h])
4
5 # Checks for programs.
6 AC_PROG_CC
7
8 # Checks for libraries.
9 # FIXME: Replace `main' with a function in `-lpthread':
10 AC_CHECK_LIB([pthread], [pthread_create])
11
12 # Checks for header files.
13 AC_HEADER_STDC
14 AC_CHECK_HEADERS([stdlib.h unistd.h sys/io.h])
15
16 # Checks for typedefs, structures, and compiler characteristics.
17
18 # Checks for library functions.
19 AC_CHECK_FUNCS(malloc)
20
21 # Checks for options
22 AC_DEFINE(MAXLED,8,[maxled])
23 AC_DEFINE(BASEPORT,0x378,[baseport])
24
25 AC_ARG_WITH(maxled,
26 [--with-maxled=MAXLED      Set the number of connected LED (Default is 8)],
27  [ if test "x$withval" != "xno" ; then
28      if test "x$withval" != "xyes" ; then
29         AC_DEFINE_UNQUOTED(MAXLED,$withval,[maxled])
30         fi
31  fi ],)
32
33 AC_ARG_WITH(baseport,
34 [--with-port=BASEPORT      Set the IO address of parralel port (Default is 0x378)],
35  [ if test "x$withval" != "xno" ; then
36      if test "x$withval" != "xyes" ; then
37         AC_DEFINE_UNQUOTED(BASEPORT,$withval,[baseport])
38         fi
39  fi ],)
40
41
42
43 dnl Checks for programs.
44 AC_PROG_INSTALL
45
46 dnl AC_CONFIG_FILES([Makefile])
47 AC_CONFIG_HEADER(config.h)
48 AC_OUTPUT(Makefile)