Re: XForms: autoconf/automake patch

From: Jean-Marc Lasgouttes (Jean-Marc.Lasgouttes@inria.fr)
Date: Wed Apr 23 2003 - 09:19:05 EDT

  • Next message: jac@casurgica.com: "Re: XForms: Re: Big time lag using XCopyArea, and get_next_event() event backlog problem."

    # To subscribers of the xforms list from Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr> :

    To continue on my previous remark (which still has not made it to the
    list) about most of HAVE_ preprocessor symbols being useless, the
    following shell hack gives me a list of useful defines:

    schuss: for sym in `grep 'undef HAVE_' config.h.in | sed 's/#undef //'` ; do grep -qr "#.*$sym" [^ac]*/ && echo $sym; done
    HAVE_DECL_SNPRINTF
    HAVE_DECL_VSNPRINTF
    HAVE_GL_GLX_H
    HAVE_SNPRINTF
    HAVE_STRCASECMP
    HAVE_STRERROR

    Since only these defines are actually used, I propose to remove all
    other tests.

    Then there are other defines that may or may not be useful:

    /* Define to 1 if `lstat' dereferences a symlink specified with a trailing
       slash. */
    #undef LSTAT_FOLLOWS_SLASHED_SYMLINK

    /* Define as the return type of signal handlers (`int' or `void'). */
    #undef RETSIGTYPE

    /* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
    #undef STAT_MACROS_BROKEN

    /* Define to 1 if you have the ANSI C header files. */
    #undef STDC_HEADERS

    /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
    #undef TIME_WITH_SYS_TIME

    /* Define to 1 if your <sys/time.h> declares `struct tm'. */
    #undef TM_IN_SYS_TIME

    /* Define to empty if `const' does not conform to ANSI C. */
    #undef const

    /* Define to `int' if <sys/types.h> does not define. */
    #undef pid_t

    /* Define to `unsigned' if <sys/types.h> does not define. */
    #undef size_t

    /* Define as `fork' if `vfork' does not work. */
    #undef vfork

    JMarc
    _________________________________________________
    To unsubscribe, send the message "unsubscribe" to
    xforms-request@bob.usuhs.mil or see
    http://bob.usuhs.mil/mailserv/xforms.html
    XForms Home Page: http://world.std.com/~xforms
    List Archive: http://bob.usuhs.mil/mailserv/list-archives/
    Development: http://savannah.nongnu.org/files/?group=xforms



    This archive was generated by hypermail 2b29 : Wed Apr 23 2003 - 09:20:05 EDT