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
|
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/dockapp.h)
AM_INIT_AUTOMAKE(libdockapp, 0.6.0)
AM_MAINTAINER_MODE
dnl
dnl Specify whether to install font and examples
dnl ============================================
AC_ARG_WITH(font,
[ --with-font install the dockapp font (default=yes)],
with_font=$withval,
with_font=yes)
AC_ARG_WITH(examples,
[ --with-examples install the examples (default=yes)],
with_examples=$withval,
with_examples=yes)
dnl
dnl
dnl
AM_CONDITIONAL(COND_FONT, [test "$with_font" = yes])
AM_CONDITIONAL(COND_EXAMPLES, [test "$with_examples" = yes])
dnl Checks for programs.
AC_PROG_RANLIB
AC_PROG_LIBTOOL
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
dnl Checks for libraries.
AC_PATH_XTRA
AC_CHECK_LIB(Xext, XShapeCombineMask,,
[echo "The shape extension could not be found in the X client libraries"
exit 1],
$X_LIBS $X_EXTRA_LIBS -lX11)
AC_CHECK_LIB(Xpm, XpmCreatePixmapFromData,,
[echo "The libXpm library was not found, but is necessary to build this library"
exit 1],
$X_LIBS $X_EXTRA_LIBS -lX11)
dnl Checks for header files.
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Debugging
dnl =========
AC_ARG_ENABLE(debug,
[ --enable-debug enable debugging ],, enable_debug=no)
if test "$enable_debug" = yes; then
DFLAGS="-Wall -g -ansi -pedantic"
fi
AC_SUBST(DFLAGS)
dnl Checks for library functions.
AC_OUTPUT([Makefile
src/Makefile
fonts/Makefile
examples/Makefile])
|