X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=old-door-deamon%2Flibparportled-0.5.1%2Fconfigure.in;fp=old-door-deamon%2Flibparportled-0.5.1%2Fconfigure.in;h=2b34d3605bfe80994e9c426854d93946f580ae84;hb=449ec160563729c65a6210431ba86eb463ed6373;hp=0000000000000000000000000000000000000000;hpb=02329ab3fb38d1f22f7c910be92ae4388a132b01;p=svn42.git diff --git a/old-door-deamon/libparportled-0.5.1/configure.in b/old-door-deamon/libparportled-0.5.1/configure.in new file mode 100644 index 0000000..2b34d36 --- /dev/null +++ b/old-door-deamon/libparportled-0.5.1/configure.in @@ -0,0 +1,48 @@ +# Process this file with autoconf to produce a configure script. +AC_INIT(led.c, 0.1, julien@jdanjou.org) +AC_CONFIG_HEADER([parportled.h]) + +# Checks for programs. +AC_PROG_CC + +# Checks for libraries. +# FIXME: Replace `main' with a function in `-lpthread': +AC_CHECK_LIB([pthread], [pthread_create]) + +# Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADERS([stdlib.h unistd.h sys/io.h]) + +# Checks for typedefs, structures, and compiler characteristics. + +# Checks for library functions. +AC_CHECK_FUNCS(malloc) + +# Checks for options +AC_DEFINE(MAXLED,8,[maxled]) +AC_DEFINE(BASEPORT,0x378,[baseport]) + +AC_ARG_WITH(maxled, +[--with-maxled=MAXLED Set the number of connected LED (Default is 8)], + [ if test "x$withval" != "xno" ; then + if test "x$withval" != "xyes" ; then + AC_DEFINE_UNQUOTED(MAXLED,$withval,[maxled]) + fi + fi ],) + +AC_ARG_WITH(baseport, +[--with-port=BASEPORT Set the IO address of parralel port (Default is 0x378)], + [ if test "x$withval" != "xno" ; then + if test "x$withval" != "xyes" ; then + AC_DEFINE_UNQUOTED(BASEPORT,$withval,[baseport]) + fi + fi ],) + + + +dnl Checks for programs. +AC_PROG_INSTALL + +dnl AC_CONFIG_FILES([Makefile]) +AC_CONFIG_HEADER(config.h) +AC_OUTPUT(Makefile)