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
|
dnl
dnl Process this file with autoconf to produce a configure script
dnl
AC_INIT(git-dpm, 0.2.1, git-scm-devel@alioth.debian.org)
AC_CONFIG_SRCDIR(git-dpm.sh)
AC_CONFIG_AUX_DIR(ac)
AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability])
AM_MAINTAINER_MODE
AC_PROG_INSTALL
AC_ARG_VAR([GIT], [Git binary the installed script should use])
AC_CHECK_PROG([GIT], [git], [git])
if test x"$GIT" = x ; then
AC_MSG_ERROR([GIT variable not set and no git found!])
fi
builddocs=true
AC_ARG_ENABLE([documentation], AS_HELP_STRING([--disable-documentation], [don't build documentation]), [
if test x$enableval = xno ; then
builddocs=false
else
builddocs=true
fi], [builddocs=true])
AM_CONDITIONAL(BUILDDOCS, $builddocs)
AC_ARG_VAR([GS], [Ghostscript interpreter to generate the images for the documentation])
AC_ARG_VAR([PS2PDF], [ps2pdf binary to produce manpage.pdf])
AC_ARG_VAR([GROFF], [Groff binary (supporting mandoc, ps and html output)])
if $builddocs ; then
AC_CHECK_PROG([GS], [gs], [gs])
if test x"$GS" = x ; then
AC_MSG_ERROR([GS variable not set and no ghostscript gs found!
Try --disable-documentation to do without.])
fi
AC_CHECK_PROG([PS2PDF], [ps2pdf], [ps2pdf])
if test x"$PS2PDF" = x ; then
AC_MSG_ERROR([PS2PDF variable not set and no ps2pdf found!
Try --disable-documentation to do without.])
fi
AC_CHECK_PROG([GROFF], [groff], [groff])
if test x"$GROFF" = x ; then
AC_MSG_ERROR([GROFF variable not set and no groff found!
Try --disable-documentation to do without.])
fi
fi
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
|