Hello,
I don't have enough experience to answer all your question, but I'll try
to provide one suggestion:
On Thu, Dec 02, 2004 at 05:31:15PM -0600, Robert Lowe wrote:
> 2. A header file which seems to be in different places on some platforms
> (net/ethernet.h, sys/ethernet.h, and perhaps others). What am I
> supposed to construct to define something that will help me include
> the correct header file?
configure.ac should contain:
AC_CHECK_HEADERS([net/ethernet.h sys/ethernet.h])
And in the header of your project:
#ifdef HAVE_NET_ETHERNET_H
# include <net/ethernet.h>
#else
# ifdef HAVE_SYS_ETHERNET_H
# include <sys/ethernet.h>
# endif
#endif
If you need at least one of the headers, you can have this in configure.ac:
ethernet_h_found=no
AC_CHECK_HEADERS([net/ethernet.h sys/ethernet.h], [ethernet_h_found=yes])
if test $ethernet_h_found = no; then
AC_MSG_ERROR([cannot find ethernet.h])
fi
Have a nice day,
Stepan Kasal
_______________________________________________
Autoconf mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/autoconf