Re: Patches for saned/net/scanimage/user-authorization....

From: Oliver Rauch (oliver.rauch@Wolfsburg.DE)
Date: Sun Nov 19 2000 - 04:44:05 PST

  • Next message: Peter Kirchgessner: "Re: TODO list"

    Jochen Eisinger wrote:
    >
    >
    > I suggest testing for string.h/index and if this fails for
    > strings.h/index...
    >
    > something like this:
    >
    > AC_MSG_CHECKING([for string.h containing index])
    > AC_TRY_COMPILE([
    > #include <string.h>
    > ],[char a[] = "a";
    > int c = index(" ", ' ') - a;],
    > ac_need_strings_h="no";
    > [AC_MSG_RESULT([yes])],
    > ac_need_strings_h="yes";
    > [AC_MSG_RESULT([no])])
    >
    > if test "$ac_need_strings_h" = "yes" ; then
    >
    > AC_MSG_CHECKING([for strings.h containing index])
    > AC_TRY_COMPILE([
    > #include <strings.h>
    > ],[char a[] = "a";
    > int c = index(" ", ' ') - a;],
    > CPPFLAGS="${CPPFLAGS} -DNEED_STRINGS_H";
    > [AC_MSG_RESULT([yes])],
    > [AC_MSG_ERROR([index () is neither in string.h nor in strings.h])])
    >
    >

    Hi Jochen,

    that is much better.

    Bye
    Oliver

    -- 
    Homepage:	http://www.wolfsburg.de/~rauch
    sane-umax:	http://www.wolfsburg.de/~rauch/sane/sane-umax.html
    xsane:		http://www.wolfsburg.de/~rauch/sane/sane-xsane.html
    E-Mail:		mailto:Oliver.Rauch@Wolfsburg.DE
    

    -- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com



    This archive was generated by hypermail 2b29 : Sun Nov 19 2000 - 04:28:55 PST