[Poppler-bugs] [Bug 9139] Fixed for the build to work in native MSYS environment

bugzilla-daemon at annarchy.freedesktop.org bugzilla-daemon at annarchy.freedesktop.org
Thu Nov 23 18:36:36 PST 2006


Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=9139          
     




------- Additional Comments From alexis at m2osw.com  2006-11-23 18:36 -------
Okay, I have to say that there is currently a problem with the config.h file.

You define the file named poppler-config.h.in in the poppler directory. That
file has different configuration information that you say come from the
$(topdir)/config.h file. This is not correct. What you need to do is include the
config.h file. If you need to install it (which is a problem I ran into!) then
you need to use the AC_CONFIG_HEADERS () and rename (and possibly move!) that
header file.

The poppler-config.h.in, as it stands, is NOT an AC_CONFIG_HEADERS(). Actually,
at some point, I deleted it thinking that it was. It is not since it has
additional information that the autoreconf tool suite cannot regenerate. So it
is a header you created. Clearly!

What I'd suggest is something like that:

poppler/poppler-config.h
+#include <config.h>
-<all these #ifndef <blah> which are in config.h>

configure.ac
-AC_CONFIG_HEADERS([config.h:config.h.in])
+AC_CONFIG_HEADERS([poppler/config.h:poppler/config.h.in])
-AC_CONFIG_HEADERS([poppler/poppler-config.h:poppler/poppler-config.h.in])

You may want to talk about this to other autoconf savvy people...

If you need to install the poppler-config.h, this is not going to be the best
way because the the name 'config.h' is way to common. So in that case, you may
want to rename both files (possibly the config.h as poppler-config.h and maybe
move the poppler-config.h into the poppler.h header?)

If you read this about AC_CONFIG_HEADERS()

http://www.gnu.org/software/autoconf/manual/autoconf-2.57/html_node/autoconf_27.html

they show an example with two lines, but in the text they clearly talk about the
config file in singular: i.e. just one file. Though you can auto-generate
duplicates, people generally don't do that.

Also, if you never include config.h anywhere, then you clearly don't make use of
these #define! 8-) [it has been only a little over 1 year I really started to
learn about the configure tools... so I do not know everything, but this just
makes sense]

Again, before you turn down this specific entry, try to talk with some other
people about this. Look at other projects to see whether they have similar
setups. I'd be surprised if any would offer a config.h.in which wasn't generated
by autoreconf.

Thank you for looking into those!
Alexis
          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Poppler-bugs mailing list