Subject: Re: libtool question...
To: Nick Hudson <skrll@netbsd.org>
From: Todd Vierling <tv@wasabisystems.com>
List: tech-pkg
Date: 03/22/2001 09:38:08
On Thu, 22 Mar 2001, Todd Vierling wrote:

: : 	[lt_cv_deplibs_check_method='file_magic \/lib[^\/]+\.so\(\.[0-9]+\)*$']

: The ones I gave are very strict about the file extension, as they match
: files the same way the linker does when searching for -l libraries.

...making the final result:

changequote({, })
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    {lt_cv_deplibs_check_method='file_magic /lib[^/\.]\.so\.[0-9]+\.[0-9]+$'}
  else
    {lt_cv_deplibs_check_method='file_magic /lib[^/\.]\.so$'}
  fi
changequote([, ])

I didn't escape the / characters, but you can if you want (it's an egrep, so
it's not needed in the current case), but the presence of \., to disallow
periods, in the first [] is very important.  I also changed the [] around
the statement -- because of changequote, these needed changing too(!).

-- 
-- Todd Vierling <tv@wasabisystems.com>  *  Wasabi NetBSD:  Run with it.
-- NetBSD 1.5 now available on CD-ROM  --  http://www.wasabisystems.com/