automake
[Top][All Lists]
Advanced

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

Re: configure dies for automake1.5 on MacOS 10.1


From: Kyle F. Downey
Subject: Re: configure dies for automake1.5 on MacOS 10.1
Date: Tue, 16 Oct 2001 14:30:31 +0000 (GMT)

Your problem is probably not with sed, but with a broken AM_AUX_DIR macro
definition under zsh (which is what /bin/sh on MacOS X is). This
discussion has been going on for several days. If you add to a
configure.ac or acinclude.m4 the following, it will work:

AC_DEFUN([AM_AUX_DIR_EXPAND], [
# expand $ac_aux_dir to an absolute path
if test "${CDPATH+set}" = set; then
  CDPATH=${ZSH_VERSION+.}:   # as recommended in autoconf.texi
fi
am_aux_dir=`cd $ac_aux_dir && pwd`
])

Alternatively, you can edit /usr/share/aclocal/auxdir.m4 to apply the fix
globally to a machine.

The original definition results in a line-break in the sed script that
causes sed to choke. With this patch, I'm able to run and build using a
configure script generated using automake 1.5, autoconf 2.52 and libtool
1.4.2 (albeit with an additional patch applied to libtool). The libtool
patch macro is as follows, if you need that too:

AC_DEFUN([PATCH_LIBTOOL_ON_DARWIN_FOR_OVERQUOTING],
[# Darwin's shell blows up on one stray overquote in libtool 1.4.2
case "$target" in
  *-*-darwin*)
AC_MSG_RESULT(patching libtool to fix overquoting on MacOS X)
      test -f libtool.old || (mv libtool libtool.old && cp libtool.old
libtool)
      sed -e 's/\\\\"x\\$module\\\\"/\\"x\\$module\\"/' libtool >
libtool.new
      mv libtool.new libtool
      test -f libtool || (test -f libtool.old && mv libtool.old libtool)
  ;;
esac
])

This will be fixed in libtool 1.4.3.

--kd

>
> I've searched the net, read through list archives, and can't seem to
> find any reference to this sort of problem on MacOS 10.1 -- since the
> error message indicates a problem with sed, I've downloaded, compiled
> and installed gnu sed (and made sure its in the path, and rm'd
> config.cache) to make sure it wasn't a broken sed causing the problem.
>
> I've also looked for files named conftest* but can't seem to find one...
>
> Can someone point me in the right direction?
>
> Thanks!
>
>
> configure dies with the following error:
>
> > [localhost:~/Santoshima/src/automake-1.5] pietro% ./configure
> > loading cache ./config.cache
> > checking for a BSD compatible install... (cached) /usr/bin/install -c
> > checking whether build environment is sane... yes
> > checking for mawk... (cached) awk
> > checking whether make sets ${MAKE}... (cached) yes
> > checking for perl... (cached) /usr/bin/perl
> > creating ./config.status
> > creating Makefile
> > sed: file conftest.s1 line 34: Unterminated `s' command
> > creating lib/Makefile
> > sed: file conftest.s1 line 34: Unterminated `s' command
> > creating lib/Automake/Makefile
> > sed: file conftest.s1 line 34: Unterminated `s' command
> > creating lib/am/Makefile
> > sed: file conftest.s1 line 34: Unterminated `s' command
> > creating m4/Makefile
> > sed: file conftest.s1 line 34: Unterminated `s' command
> > creating tests/Makefile
> > sed: file conftest.s1 line 34: Unterminated `s' command
> > creating automake
> > sed: file conftest.s1 line 34: Unterminated `s' command
> > creating aclocal
> > sed: file conftest.s1 line 34: Unterminated `s' command
> > [localhost:~/Santoshima/src/automake-1.5] pietro%
>
>
>

-- 
"Opportunity is missed by most people because it is dressed in overalls
and looks like work." -- Thomas Edison




reply via email to

[Prev in Thread] Current Thread [Next in Thread]