After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 62891 - configure.in needs some 'lovin
configure.in needs some 'lovin
Status: VERIFIED FIXED
Product: libxslt
Classification: Platform
Component: general
unspecified
Other All
: Normal minor
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2001-10-23 22:20 UTC by David
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch with some changes to configure.in (3.42 KB, patch)
2001-10-23 22:22 UTC, David
none Details | Review
Some cleanups of configure.in (2.91 KB, patch)
2001-10-30 16:38 UTC, David
none Details | Review
Adds --with-libxml-src= (1016 bytes, patch)
2001-10-30 16:39 UTC, David
none Details | Review

Description David 2001-10-23 22:20:46 UTC
I'm currently working on some minor changes to configure.in, patch to
follow shortly...
Comment 1 David 2001-10-23 22:22:16 UTC
Created attachment 5901 [details] [review]
Patch with some changes to configure.in
Comment 2 David 2001-10-23 22:29:37 UTC
Patch does the following:

o changes --with-libxml-prefix to --with-libxml-config-prefix 
(since thats all it's used for, to find xml2-config)

o adds some comments on that change inside the file
(feel free to remove that)

o adds --with-libxml-src which allows libxslt to be built even though
libxml isn't installed yet

o moved some commented out i18n stuff to the end of the file 
(so thats its not in the middle of all libxml finding code)

o fixed a small bug where a string containing a ',' wasn't protected
with []
Comment 3 Daniel Veillard 2001-10-29 11:12:49 UTC
Tried, I applied the patch, applied correctly,
removed config.cache, launched

./autogen.sh --prefix=/usr --disable-shared

which failed with:

checking for perl... perl
Enabling memory debug support
checking for libxml libraries >= 2.4.6... configure: error: Could not
find libxml2 anywhere, check ftp://xmlsoft.org/.

Now type 'make' to compile libxslt.


  xml2-config is here and in the path,

So what is the patch really about ?
  - the change of --with-libxml-prefix seems a bit gratuitous, right ?
    doesn't seems a problem. Changing is more likely to break 
    people scripts than do any real good
  - the --with-libxml-src option is not understandable to me. You
    need libxml to build libxslt. What's the real purpose of this
    option ? 
  - the I18N comment should simply be removed. But it's not harmful
  - the , "fix" is it seems actually breaking the configure stage.

Daniel




Comment 4 David 2001-10-30 16:37:46 UTC
First off....whoops...not my intention to send a broken patch :)

>So what is the patch really about ?
>  - the change of --with-libxml-prefix seems a bit gratuitous, 
>    right ? doesn't seems a problem. Changing is more likely to 
>    break people scripts than do any real good

Ok, I agree somewhat, the new patch doesn't change it (although it 
does change the help text that explains the option (since it's only 
used to fins xml2-config)

>  - the --with-libxml-src option is not understandable to me. You
>    need libxml to build libxslt. What's the real purpose of this
>    option ? 

The purpose was this. I'm working for XFree86 to convert their docs 
over to DocBook XML instead of the current LinuxDoc SGML versions. 
Part of that means making available tarballs with all necessary 
software so I wanted to bundle libxml and libxslt together and write 
a little makefile glue to allow both to be built after each other and 
*then* for both to be installed after each other. For that purpose I 
needed the src-switch. 

The decision may shif to just pointing people to the original sources 
instead so this might not be needed anymore. I've separated it into 
an optional patch.

>  - the I18N comment should simply be removed. But it's not harmful

Done.

>  - the , "fix" is it seems actually breaking the configure stage.

An error in thought. Fixed as well.

I have made two new patches, one that just cleans up the configure 
script a bit, makes it a little more verbose about missing/found 
versions of libxml and fixes where a string containing a ',' wasn't 
protected with []. The other one adds --with-libxml-src and thus 
makes it optional. I include it here for your information.

Regards,
David
Comment 5 David 2001-10-30 16:38:33 UTC
Created attachment 5934 [details] [review]
Some cleanups of configure.in
Comment 6 David 2001-10-30 16:39:06 UTC
Created attachment 5935 [details] [review]
Adds --with-libxml-src=
Comment 7 Daniel Veillard 2001-10-30 18:34:31 UTC
Okay, applied both patches and commited after checking,
this should close the issue,

   thanks,

Daniel
Comment 8 Daniel Veillard 2001-11-26 13:57:01 UTC
Hum, I think this was shipped in the last releases, let's close this,

Daniel