| 1 |
# Do all the work for Automake. This macro actually does too much -- |
| 2 |
# some checks are only needed if your package does certain things. |
| 3 |
# But this isn't really a big deal. |
| 4 |
|
| 5 |
# serial 1 |
| 6 |
|
| 7 |
dnl Usage: |
| 8 |
dnl AM_INIT_AUTOMAKE(package,version, [no-define]) |
| 9 |
|
| 10 |
AC_DEFUN(AM_INIT_AUTOMAKE, |
| 11 |
[AC_REQUIRE([AC_PROG_INSTALL]) |
| 12 |
PACKAGE=[$1] |
| 13 |
AC_SUBST(PACKAGE) |
| 14 |
VERSION=[$2] |
| 15 |
AC_SUBST(VERSION) |
| 16 |
dnl test to see if srcdir already configured |
| 17 |
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
| 18 |
AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
| 19 |
fi |
| 20 |
ifelse([$3],, |
| 21 |
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
| 22 |
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])]) |
| 23 |
AC_REQUIRE([AM_SANITY_CHECK]) |
| 24 |
AC_REQUIRE([AC_ARG_PROGRAM]) |
| 25 |
dnl FIXME This is truly gross. |
| 26 |
missing_dir=`cd $ac_aux_dir && pwd` |
| 27 |
# |
| 28 |
ac_prog_editor=`echo $program_transform_name| sed -e 's/\\$\\$/$/g'` |
| 29 |
# |
| 30 |
ac_prog_actual=`echo autoconf|sed -e $ac_prog_editor` |
| 31 |
AM_MISSING_PROG(AUTOCONF, $ac_prog_actual, $missing_dir) |
| 32 |
# |
| 33 |
ac_prog_actual=`echo autoheader|sed -e $ac_prog_editor` |
| 34 |
AM_MISSING_PROG(AUTOHEADER, $ac_prog_actual, $missing_dir) |
| 35 |
# |
| 36 |
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) |
| 37 |
AC_REQUIRE([AC_PROG_MAKE_SET])]) |