Index: config/imake/imake.c =================================================================== RCS file: /cvs/xorg/xc/config/imake/imake.c,v retrieving revision 1.7 diff -u -r1.7 imake.c --- config/imake/imake.c 2 Mar 2005 11:20:29 -0000 1.7 +++ config/imake/imake.c 18 Jul 2005 19:17:22 -0000 @@ -251,7 +251,7 @@ # define SYS_NMLN 257 # endif #endif -#if defined(linux) || defined(__GNU__) +#if defined(linux) || defined(__GNU__) || defined(__GLIBC__) #include #include #endif @@ -913,7 +913,7 @@ } #endif -#if defined linux +#if defined(linux) || defined(__GLIBC__) const char *libc_c= "#include \n" "#include \n" @@ -1048,7 +1048,7 @@ #endif -#if defined CROSSCOMPILE || defined linux +#if defined CROSSCOMPILE || defined linux || defined(__GLIBC__) static void get_distrib(FILE *inFile) { @@ -1355,7 +1355,8 @@ defined(__APPLE__) || \ defined(__CYGWIN__) || \ defined(__MINGW32__) || \ - defined(__GNU__) + defined(__GNU__) || \ + defined(__GLIBC__) "/usr/bin/cc", /* for Linux PostIncDir */ # endif "/usr/local/bin/gcc", @@ -1448,7 +1449,7 @@ else name = &uts_name; } -#if defined CROSSCOMPILE && defined linux +#if defined CROSSCOMPILE && (defined linux || defined(__GLIBC__)) else { strncpy(uts_name.sysname,cross_uts_sysname,SYS_NMLN); strncpy(uts_name.release,cross_uts_release,SYS_NMLN); @@ -1605,13 +1606,13 @@ # if defined CROSSCOMPILE if (CrossCompiling && sys == LinuX) # endif -# if defined CROSSCOMPILE || defined linux -# ifdef CROSSCOMPILE +# if defined CROSSCOMPILE || defined linux || defined(__GLIBC__) +# if defined(CROSSCOMPILE) && defined(__linux__) if (sys == LinuX) # endif get_distrib (inFile); # endif -# if defined linux +# if defined linux || defined(__GLIBC__) # if defined CROSSCOMPILE if (!CrossCompiling) # endif @@ -1625,9 +1626,9 @@ fprintf(inFile,"#define DefaultLinuxCLibTeenyVersion 0\n"); } # endif -# endif /* linux */ -# if defined CROSSCOMPILE || defined linux -# if defined CROSSCOMPILE +# endif /* linux || __GLIBC__ */ +# if defined CROSSCOMPILE || defined linux || defined(__GLIBC__) +# if defined CROSSCOMPILE && defined(__linux__) if (sys == LinuX) # endif get_ld_version(inFile); Index: config/imake/imakemdep.h =================================================================== RCS file: /cvs/xorg/xc/config/imake/imakemdep.h,v retrieving revision 1.9 diff -u -r1.9 imakemdep.h --- config/imake/imakemdep.h 2 Mar 2005 11:20:29 -0000 1.9 +++ config/imake/imakemdep.h 18 Jul 2005 19:17:22 -0000 @@ -358,7 +358,8 @@ #endif #if defined(__386BSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \ defined(__FreeBSD__) || defined(__DragonFly__) || defined(MACH) || \ - defined(linux) || defined(__GNU__) || defined(__bsdi__) || defined(__GNUC__) + defined(linux) || defined(__GNU__) || defined(__bsdi__) || \ + defined(__GNUC__) || defined(__GLIBC__) # ifdef __i386__ "-D__i386__", # if defined(__GNUC__) && (__GNUC__ >= 3) @@ -836,7 +837,7 @@ # define DEFAULT_OS_MINOR_REV "r %*d.%[0-9]" # define DEFAULT_OS_TEENY_REV "v %[0-9]" /* # define DEFAULT_OS_NAME "srm %[^\n]" */ /* Not useful on ISC */ -# elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) +# elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__) || defined(__DragonFly__) /* BSD/OS too? */ /* uname -r returns "x.y[.z]-mumble", e.g. "2.1.5-RELEASE" or "2.2-0801SNAP" */ # define DEFAULT_OS_MAJOR_REV "r %[0-9]" @@ -1445,7 +1446,7 @@ dragonfly } System; -# ifdef linux +# if defined(linux) || defined(__GLIBC__) System sys = LinuX; # elif defined __FreeBSD__ System sys = freebsd; @@ -1468,7 +1469,7 @@ int gnu_c = 0; int gnu_c_minor = -1; # endif -# if defined linux +# if defined(linux) || defined(__GLIBC__) # include int glibc_major = __GLIBC__ + 4; int glibc_minor = __GLIBC_MINOR__;