sane-project-website/old-archive/2000-11/0250.html

140 wiersze
5.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>sane-devel: Re: Patches for saned/net/scanimage/user-authorizat</TITLE>
<META NAME="Author" CONTENT="Jochen Eisinger (jochen.eisinger@gno.de)">
<META NAME="Subject" CONTENT="Re: Patches for saned/net/scanimage/user-authorization....">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Re: Patches for saned/net/scanimage/user-authorization....</H1>
<!-- received="Sun Nov 19 04:22:25 2000" -->
<!-- isoreceived="20001119122225" -->
<!-- sent="Sun, 19 Nov 2000 13:35:40 +0100" -->
<!-- isosent="20001119123540" -->
<!-- name="Jochen Eisinger" -->
<!-- email="jochen.eisinger@gno.de" -->
<!-- subject="Re: Patches for saned/net/scanimage/user-authorization...." -->
<!-- id="3A17C91C.18A627B2@gno.de" -->
<!-- inreplyto="3A17C095.B58CA22A@wolfsburg.de" -->
<STRONG>From:</STRONG> Jochen Eisinger (<A HREF="mailto:jochen.eisinger@gno.de?Subject=Re:%20Patches%20for%20saned/net/scanimage/user-authorization....&In-Reply-To=&lt;3A17C91C.18A627B2@gno.de&gt;"><EM>jochen.eisinger@gno.de</EM></A>)<BR>
<STRONG>Date:</STRONG> Sun Nov 19 2000 - 04:35:40 PST
<P>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0251.html">Oliver Rauch: "Re: Patches for saned/net/scanimage/user-authorization...."</A>
<UL>
<LI><STRONG>Previous message:</STRONG> <A HREF="0249.html">Oliver Rauch: "Re: Patches for saned/net/scanimage/user-authorization...."</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0249.html">Oliver Rauch: "Re: Patches for saned/net/scanimage/user-authorization...."</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0251.html">Oliver Rauch: "Re: Patches for saned/net/scanimage/user-authorization...."</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0251.html">Oliver Rauch: "Re: Patches for saned/net/scanimage/user-authorization...."</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#250">[ date ]</A>
<A HREF="index.html#250">[ thread ]</A>
<A HREF="subject.html#250">[ subject ]</A>
<A HREF="author.html#250">[ author ]</A>
</UL>
<HR NOSHADE><P>
<!-- body="start" -->
<P>
Hi!
<BR>
<P>[Oliver Rauch]
<BR>
<EM>&gt; I think this test is not nice because
</EM><BR>
<EM>&gt; you do not test for strings.h at all.
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Does it work if we include string.h and strings.h if both exist?
</EM><BR>
<EM>&gt; If yes I suggest to add &quot;strings.h&quot; to
</EM><BR>
<EM>&gt; AC_CHECK_HEADERS(..)
</EM><BR>
<EM>&gt;
</EM><BR>
<EM>&gt; Or we do a AC_TRY_COMPILE([#include &lt;strings.h&gt;...)
</EM><BR>
<P>I suggest testing for string.h/index and if this fails for
<BR>
strings.h/index...
<BR>
<P>something like this:
<BR>
<P>AC_MSG_CHECKING([for string.h containing index])
<BR>
AC_TRY_COMPILE([
<BR>
#include &lt;string.h&gt;
<BR>
],[char a[] = &quot;a&quot;;
<BR>
int c = index(&quot; &quot;, ' ') - a;],
<BR>
ac_need_strings_h=&quot;no&quot;;
<BR>
[AC_MSG_RESULT([yes])],
<BR>
ac_need_strings_h=&quot;yes&quot;;
<BR>
[AC_MSG_RESULT([no])])
<BR>
<P>if test &quot;$ac_need_strings_h&quot; = &quot;yes&quot; ; then
<BR>
<P>AC_MSG_CHECKING([for strings.h containing index])
<BR>
AC_TRY_COMPILE([
<BR>
#include &lt;strings.h&gt;
<BR>
],[char a[] = &quot;a&quot;;
<BR>
int c = index(&quot; &quot;, ' ') - a;],
<BR>
CPPFLAGS=&quot;${CPPFLAGS} -DNEED_STRINGS_H&quot;;
<BR>
[AC_MSG_RESULT([yes])],
<BR>
[AC_MSG_ERROR([index () is neither in string.h nor in strings.h])])
<BR>
<P>fi
<BR>
<P>-- jochen
<BR>
<P><PRE>
--
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20Patches%20for%20saned/net/scanimage/user-authorization....&In-Reply-To=&lt;3A17C91C.18A627B2@gno.de&gt;">majordomo@mostang.com</A>
</PRE>
<P><!-- body="end" -->
<HR NOSHADE>
<UL>
<!-- next="start" -->
<LI><STRONG>Next message:</STRONG> <A HREF="0251.html">Oliver Rauch: "Re: Patches for saned/net/scanimage/user-authorization...."</A>
<LI><STRONG>Previous message:</STRONG> <A HREF="0249.html">Oliver Rauch: "Re: Patches for saned/net/scanimage/user-authorization...."</A>
<LI><STRONG>In reply to:</STRONG> <A HREF="0249.html">Oliver Rauch: "Re: Patches for saned/net/scanimage/user-authorization...."</A>
<!-- nextthread="start" -->
<LI><STRONG>Next in thread:</STRONG> <A HREF="0251.html">Oliver Rauch: "Re: Patches for saned/net/scanimage/user-authorization...."</A>
<LI><STRONG>Reply:</STRONG> <A HREF="0251.html">Oliver Rauch: "Re: Patches for saned/net/scanimage/user-authorization...."</A>
<!-- reply="end" -->
<LI><STRONG>Messages sorted by:</STRONG>
<A HREF="date.html#250">[ date ]</A>
<A HREF="index.html#250">[ thread ]</A>
<A HREF="subject.html#250">[ subject ]</A>
<A HREF="author.html#250">[ author ]</A>
</UL>
<!-- trailer="footer" -->
<HR NOSHADE>
<P>
<SMALL>
<EM>
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
: <EM>Sun Nov 19 2000 - 04:22:50 PST</EM>
</EM>
</SMALL>
</BODY>
</HTML>