Re: AC_CONFIG_MACRO_DIR([m4])

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Pete Zaitcev wrote:
> Hi, Jim:
>
> Autoconf printed a warning when reconfiguting Hail, so I gave up and
> added this:
>
> diff --git a/configure.ac b/configure.ac
> index 9cfad23..d378854 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -62,6 +62,8 @@ AC_PROG_GCC_TRADITIONAL
>  AM_PROG_CC_C_O
>  AM_PROG_LIBTOOL
>
> +AC_CONFIG_MACRO_DIR([m4])
> +
>  dnl Checks for header files.
>  AC_HEADER_STDC
>  dnl AC_CHECK_HEADERS(sys/ioctl.h unistd.h)
>
> Now I have a directory m4/ with symlinks... This does not seem to be
> helping any portability, unless I miss where the promised macro are
> being saved locally. What was this about, do you happen to know?

Hi Pete,

The symlinks are ok, since "make dist" dereferences them
when creating a tarball.  However, if for some reason you find
a problem due to the use of symlinks (in that case, please
let us know -- who knows, might have to change the default) you
can add --copy (-c) to the libtoolize invocation in autogen.sh.

You'll also want the following patch, so that aclocal
knows where to find the .m4 files:

diff --git a/Makefile.am b/Makefile.am
index 38a1d92..e5bf438 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,7 +2,8 @@
 ## Toplevel Makefile.am
 ##

+ACLOCAL_AMFLAGS = -I m4
+
 SUBDIRS		= doc lib include cld chunkd tools test

 EXTRA_DIST	= autogen.sh Doxyfile COPYING LICENSE
-
--
To unsubscribe from this list: send the line "unsubscribe hail-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Fedora Clound]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux