Search
lxdream.org :: lxdream/configure.in
lxdream 0.9.1
released Jun 29
Download Now
filename configure.in
changeset 489:45c8ddcf52cb
prev487:b34abd796f5e
next503:36a668469e37
author nkeynes
date Sun Nov 04 05:07:49 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Test for presence of linux/cdrom.h at configure time, and only build the
linux driver if it's found successfully
view annotate diff log raw
     1 dnl Process this file with autoconf to produce a configure script.
     3 AC_INIT(configure.in)
     4 AM_INIT_AUTOMAKE(dream, 0.1)
     5 AM_MAINTAINER_MODE
     6 AM_CONFIG_HEADER(config.h)
     8 AC_ISC_POSIX
     9 AC_PROG_CC
    10 AM_PROG_CC_STDC
    11 AC_HEADER_STDC
    13 PKG_CHECK_MODULES(PACKAGE, 
    14    [ gtk+-2.0 dnl
    15      esound dnl
    16      libpng ])
    17 AC_SUBST(PACKAGE_CFLAGS)
    18 AC_SUBST(PACKAGE_LIBS)
    20 AC_CHECK_LIB(z, uncompress, [], [
    21     echo "Zlib (libz.so) could not be found, but is required."
    22     exit 1])
    23 AC_CHECK_LIB(GL, glXQueryVersion, [], [
    24     echo "The OpenGL library (libGL.so) could not be found, but is required."
    25     exit 1])
    27 dnl Check for cdrom device support
    28 AC_CHECK_HEADER([linux/cdrom.h], [HAVE_LINUX_CDROM_H=yes], [
    29     echo "Linux CDROM support not found, building without it."]  )
    30 AM_CONDITIONAL(CDROM_LINUX, [test "$HAVE_LINUX_CDROM_H" = "yes"])
    32 GETTEXT_PACKAGE=dream
    33 AC_SUBST(GETTEXT_PACKAGE)
    34 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
    36 dnl Add the languages which your application supports here.
    37 ALL_LINGUAS=""
    38 AM_GLIB_GNU_GETTEXT
    40 AC_OUTPUT([
    41 Makefile
    42 src/Makefile
    43 po/Makefile.in
    44 ])
.