According to Joe R. Jah:
> Thank you Gilles; I used the "gmake LOCAL_DEFINES=-DHAVE_SYS_WAIT_H." It
> compiled without a hitch, and digs just fine;) To make your patch work
> universally, however, I'd need to follow your advice and pick up a C/C++
> guide, to test which one of /usr/include/wait.h or /usr/include/sys/wait.h
> exist, and have the correct definition inserted in include/htconfig.h or
> Makefile.config. I made a shortcut and defined them both in
> include/htconfig.h, but it failed; it looks for /usr/include/wait.h
> regardless of the order of definitions in include/htconfig.h;(
The order of the definitions doesn't matter. You're defining two
different symbols, so one will have no effect on the other. If you
look at the code in the patched ExternalParser.cc you'll see how
they're used. If HAVE_WAIT_H is defined, it will include <wait.h>.
Otherwise, if HAVE_SYS_WAIT_H is defined, it will include <sys/wait.h>.
If they're both defined, it still only attempts to include wait.h because
the ordering of the #ifdef's gives HAVE_WAIT_H precedence.
It's important that you only define a HAVE_* or HAVE_*_H macro if you
actually do have the corresponding function or header file. Normally this
is all handled by autoconf, but I didn't have the fixes for this when
I put together the ExternalParser.2 patch.
Figuring out manually which header files you have is no big mystery!
Just use the ls command to see what you have. E.g.:
ls -l /usr/include/wait.h /usr/include/sys/wait.h
I wasn't recommending the C/C++ guide for figuring out autoconf and
automake. I suggested it because in your earlier e-mail you didn't
seem to know how to define a C macro. This is pretty fundamental stuff.
Maybe I misunderstood the question, and what you really meant to ask is
how to define them *automatically*.
--
Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba Phone: (204)789-3766
Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html