Re: AC_CONFIG_HEADERS & AC_CONFIG_FILES combo

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

 



Sam Steingold wrote:
I have a header file avcall.h which collects the results of autoconf tests, so it is mentioned in AC_CONFIG_HEADERS.
I also want it to define the package version cpp macro, so I added

#if !defined(LIBFFCALL_VERSION)
# define LIBFFCALL_VERSION @PACKAGE_VERSION@
#endif

I guess I can do this:

#if !defined(LIBFFCALL_VERSION)
# undef PACKAGE_VERSION
# define LIBFFCALL_VERSION PACKAGE_VERSION
#endif

and autoconf will replace it with

#if !defined(LIBFFCALL_VERSION)
# define PACKAGE_VERSION  123
# define LIBFFCALL_VERSION PACKAGE_VERSION
#endif

however, this is not good because the users of this package will have a conflict of my PACKAGE_VERSION with their PACKAGE_VERSION from their config.h. I cannot undef PACKAGE_VERSION in avcall.h because autoconf will replace it with "#define PACKAGE_VERSION ...".



_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux