kopia lustrzana https://gitlab.com/sane-project/website
140 wiersze
5.0 KiB
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=<3A17C91C.18A627B2@gno.de>"><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>> I think this test is not nice because
|
|
</EM><BR>
|
|
<EM>> you do not test for strings.h at all.
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Does it work if we include string.h and strings.h if both exist?
|
|
</EM><BR>
|
|
<EM>> If yes I suggest to add "strings.h" to
|
|
</EM><BR>
|
|
<EM>> AC_CHECK_HEADERS(..)
|
|
</EM><BR>
|
|
<EM>>
|
|
</EM><BR>
|
|
<EM>> Or we do a AC_TRY_COMPILE([#include <strings.h>...)
|
|
</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 <string.h>
|
|
<BR>
|
|
],[char a[] = "a";
|
|
<BR>
|
|
int c = index(" ", ' ') - a;],
|
|
<BR>
|
|
ac_need_strings_h="no";
|
|
<BR>
|
|
[AC_MSG_RESULT([yes])],
|
|
<BR>
|
|
ac_need_strings_h="yes";
|
|
<BR>
|
|
[AC_MSG_RESULT([no])])
|
|
<BR>
|
|
<P>if test "$ac_need_strings_h" = "yes" ; then
|
|
<BR>
|
|
<P>AC_MSG_CHECKING([for strings.h containing index])
|
|
<BR>
|
|
AC_TRY_COMPILE([
|
|
<BR>
|
|
#include <strings.h>
|
|
<BR>
|
|
],[char a[] = "a";
|
|
<BR>
|
|
int c = index(" ", ' ') - a;],
|
|
<BR>
|
|
CPPFLAGS="${CPPFLAGS} -DNEED_STRINGS_H";
|
|
<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=<3A17C91C.18A627B2@gno.de>">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>
|