[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev "configure" advice needed

From: pg
Subject: lynx-dev "configure" advice needed
Date: Sat, 17 Oct 1998 11:11:23 -0600 (MDT)

Hello, Lyncei,

As I work on my patch for Lynx on a non-ASCII system, I
have put the following in config.hin:

    + #undef  NOT_ASCII
    + #if '0'!=48   /* S/390 -- gil -- 1404 */
    + #define NOT_ASCII 1
    + #if '0'==240
    + #undef  EBCDIC
    + #define EBCDIC 1
    + #else
    + #error "Unknown character set"
    + #endif
    + #endif

I now realize this is poorly done; the script that extracts
the configuration definitions is not sensitive to the
compile-time conditionals.  But the C compiler makes these
tests easily, and I know of no simple way to make the same test
in a shell script.  Can anyone suggest a clever way to do
this test at "configure" time?  Should I add a C program
to the suite to emit the lines?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]