[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HOWTO get content of config.h into a userdefined header (for distrib
Re: HOWTO get content of config.h into a userdefined header (for distribution)
Sun, 7 Jan 2001 14:00:13 +0100
On Sun, Jan 07, 2001 at 11:55:36AM +0100, Oliver wrote:
> I've made a litle library-project with GNU-autoconf/make/libtool. My library
> depends on the content of config.h which tests for some header files. If some
> other project (which uses autoconf) would use my library ithe config.h
> files would collide. So I want the content of config.h into my header common.h
> which I can reference in the headers of my lib. I tried following in
> if test x$ac_cv_header_signal_h = xyes; then
> echo '#include <signal.h>' >> libdir/comon.h
> This should create a file common.h which contains someting depended of what
> configure has found. But this doesn't work.
> Please, can you give me some help?
You could add
# include <signal.h>
in your libdir/comon.h. The HAVE_SIGNAL_H macro is only set to 1 if
AC_CHECK_HEADERS(signal.h) finds a signal.h.
Uwe Hermann <address@hidden>
Re: HOWTO get content of config.h into a userdefined header (for distribution), Alexandre Duret-Lutz, 2001/01/07