2011-11-16 09:04:03 -05:00
|
|
|
dnl Process this file with Autoconf to produce configure dnl
|
|
|
|
|
2011-11-23 19:26:50 -05:00
|
|
|
AC_INIT([stow], [2.1.0], [bug-stow@gnu.org])
|
2011-11-16 09:04:03 -05:00
|
|
|
AC_PREREQ([2.61])
|
2011-11-21 08:59:36 -05:00
|
|
|
AC_CONFIG_AUX_DIR([automake])
|
2011-11-24 11:32:01 -05:00
|
|
|
# Unfortunately we have to disable warnings for overrides, because we
|
|
|
|
# need to override the built-in `check' rule and also the TEXI2DVI
|
|
|
|
# variable.
|
2011-11-24 11:22:11 -05:00
|
|
|
AM_INIT_AUTOMAKE([-Wall -Werror -Wno-override dist-bzip2])
|
2011-11-16 09:04:03 -05:00
|
|
|
AC_PROG_INSTALL
|
|
|
|
|
|
|
|
dnl Check for perl on our system
|
|
|
|
dnl call to AC_SUBST(PERL) is implicit
|
|
|
|
AC_PATH_PROGS([PERL], [perl] [perl5], [false])
|
|
|
|
if test "x$PERL" = xfalse
|
|
|
|
then
|
|
|
|
AC_MSG_WARN([WARNING: Perl not found; you must edit line 1 of 'stow'])
|
|
|
|
fi
|
|
|
|
|
2011-11-24 11:28:09 -05:00
|
|
|
AC_ARG_WITH(
|
|
|
|
pmdir,
|
2011-12-06 10:57:20 -05:00
|
|
|
[ --with-pmdir=DIR Perl modules are in DIR [[LIBDIR/perl5]]],
|
|
|
|
[PMDIR=${withval}],
|
|
|
|
[eval `$PERL -V:installsitelib -V:siteprefix`
|
|
|
|
PMDIR='${prefix}'/"${installsitelib#$siteprefix/}"])
|
|
|
|
AC_CONFIG_COMMANDS_POST([eval echo "Perl modules will be installed to $PMDIR"])
|
2011-12-06 05:33:34 -05:00
|
|
|
AC_SUBST([PMDIR])
|
2011-11-24 11:28:09 -05:00
|
|
|
|
2011-11-16 09:04:03 -05:00
|
|
|
AC_CONFIG_FILES([Makefile])
|
|
|
|
AC_OUTPUT
|