From: Stefan v. d. W. <st...@su...> - 2005-04-13 13:03:01
|
How about the following patch, as well as renaming pcregexp.cc to pcregexp.cc.in and doing a variable substitution: #include <@PCRE_H@> If you think this will do the job I can apply the patch. It's a pity we arn't use subversion: svn move instead of delete (lose history), rename, commit. Regards Stefan Index: configure.add =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/octave/octave-forge/main/strings/configure.add,v retrieving revision 1.2 diff -u -r1.2 configure.add --- configure.add 1 Mar 2005 16:33:33 -0000 1.2 +++ configure.add 13 Apr 2005 12:57:00 -0000 @@ -5,7 +5,13 @@ else AC_SUBST(HAVE_PCRE) - AC_CHECK_HEADER(pcre.h, HAVE_PCRE=3Dyes, HAVE_PCRE=3Dno) + AC_SUBST(PCRE_H) + + AC_CHECK_HEADER(pcre.h, [HAVE_PCRE=3Dyes;PCRE_H=3Dpcre.h], HAVE_PCRE= =3Dno) + if test $HAVE_PCRE =3D no ; then + AC_CHECK_HEADER(pcre/pcre.h, [HAVE_PCRE=3Dyes;PCRE_H=3Dpcre/pcre.h= ], HAVE_PCRE=3Dno) + fi + if test $HAVE_PCRE =3D yes ; then OF_CHECK_LIB(pcre, pcre_compile, HAVE_PCRE=3Dyes, HAVE_PCRE=3Dno) if test $HAVE_PCRE =3D no ; then @@ -16,7 +22,8 @@ else STATUS=3D"pcre.h not found" fi - + + AC_OUTPUT(main/strings/pcregexp.cc) fi STATUS_MSG=3D"$STATUS_MSG On Wed, Apr 13, 2005 at 07:35:14AM -0400, Paul Kienzle wrote: > The spelling error is in: >=20 > main/strings/configure.add >=20 > I don't know what the proper solution to pcre/pcre.h > is off hand. >=20 > - Paul >=20 > On Apr 13, 2005, at 3:09 AM, Dmitri A. Sergatskov wrote: >=20 > >using 2005.04.12 cvs snapshot. > > > >./configure reports > > > >... > > > >Perl compatible regular expresions: pcre.h not found > > ^^^^^^^^^^^^(sic!) > > > >pcre.h is in /usr/include/pcre/pcre.h > > > >Configure apparently checks for <pcre.h> (and not for <pcre/pcre.h>) . > >I do not know what is really broken here, and what is the > >proper way of fixing it. (I also cannot figure out > >where did "expresions" is coming from, may be this is an autoconf > >typo.) > > > >Sincerely, > > > >Dmitri. >=20 >=20 >=20 > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=3Dclick > _______________________________________________ > Octave-dev mailing list > Oct...@li... > https://lists.sourceforge.net/lists/listinfo/octave-dev |