How well does gcc support cross compile?
Joel Sherrill
joel.sherrill@OARcorp.com
Sun Apr 27 02:07:00 GMT 2003
H. J. Lu wrote:
>I compared
>
>./libstdc++-v3/config.h
>./libiberty/config.h
>./libf2c/libU77/config.h
>./libf2c/libI77/config.h
>./libobjc/config.h
>./libjava/include/config.h
>
>built natively and cross compiled from Linux/x86 for Linux/ia64. They
>are quite different, which leads to the libjava failure since config.h
>is correct. My question is how well gcc supports cross compile. I know
>it is not easy. But I think gcc can do better than it is doing now.
>
>
I am not sure if I am reading the diff correctly but it looks like the
cross build didn't see a
C library when it was built. At least a lot of symbols don't appear to
be available for
use in one of the configurations.
--joel sherrill
>
>H.J.
>---
>--- ./libstdc++-v3/config.h 2003-04-25 16:03:50.000000000 -0700
>+++ /net/gnu-2/export/build/gnu/gcc-3.2-redhat-8/build-ia64-linux/ia64-unknown-linux-gnu/./libstdc++-v3/config.h 2003-04-25 12:29:51.000000000 -0700
>@@ -17,7 +17,7 @@
> #define _GLIBCPP_USE_WCHAR_T 1
>
> // Define if using setrlimit to limit memory usage during 'make check'.
>-/* #undef _GLIBCPP_MEM_LIMITS */
>+#define _GLIBCPP_MEM_LIMITS 1
>
> // Define to use concept checking code from the boost libraries.
> /* #undef _GLIBCPP_CONCEPT_CHECKS */
>@@ -46,25 +46,25 @@
> #define HAVE_MODFF 1
>
> // Define if you have the modfl function.
>-/* #undef HAVE_MODFL */
>+#define HAVE_MODFL 1
>
> // Define if you have the expf function.
> #define HAVE_EXPF 1
>
> // Define if you have the expl function.
>-/* #undef HAVE_EXPL */
>+#define HAVE_EXPL 1
>
> // Define if you have the hypotf function.
> #define HAVE_HYPOTF 1
>
> // Define if you have the hypotl function.
>-/* #undef HAVE_HYPOTL */
>+#define HAVE_HYPOTL 1
>
> // Define if the compiler/host combination has __builtin_abs
>-/* #undef HAVE___BUILTIN_ABS */
>+#define HAVE___BUILTIN_ABS 1
>
> // Define if the compiler/host combination has __builtin_labs
>-/* #undef HAVE___BUILTIN_LABS */
>+#define HAVE___BUILTIN_LABS 1
>
> // Define if the compiler/host combination has __builtin_cos
> /* #undef HAVE___BUILTIN_COS */
>@@ -76,13 +76,13 @@
> /* #undef HAVE___BUILTIN_COSL */
>
> // Define if the compiler/host combination has __builtin_fabs
>-/* #undef HAVE___BUILTIN_FABS */
>+#define HAVE___BUILTIN_FABS 1
>
> // Define if the compiler/host combination has __builtin_fabsf
>-/* #undef HAVE___BUILTIN_FABSF */
>+#define HAVE___BUILTIN_FABSF 1
>
> // Define if the compiler/host combination has __builtin_fabsl
>-/* #undef HAVE___BUILTIN_FABSL */
>+#define HAVE___BUILTIN_FABSL 1
>
> // Define if the compiler/host combination has __builtin_sin
> /* #undef HAVE___BUILTIN_SIN */
>@@ -103,7 +103,7 @@
> /* #undef HAVE___BUILTIN_SQRTL */
>
> // Define if LC_MESSAGES is available in <locale.h>.
>-/* #undef HAVE_LC_MESSAGES */
>+#define HAVE_LC_MESSAGES 1
>
> /* Define if you have the __signbit function. */
> #define HAVE___SIGNBIT 1
>@@ -112,7 +112,7 @@
> #define HAVE___SIGNBITF 1
>
> /* Define if you have the __signbitl function. */
>-/* #undef HAVE___SIGNBITL */
>+#define HAVE___SIGNBITL 1
>
> /* Define if you have the _acosf function. */
> /* #undef HAVE__ACOSF */
>@@ -307,25 +307,25 @@
> #define HAVE_ACOSF 1
>
> /* Define if you have the acosl function. */
>-/* #undef HAVE_ACOSL */
>+#define HAVE_ACOSL 1
>
> /* Define if you have the asinf function. */
> #define HAVE_ASINF 1
>
> /* Define if you have the asinl function. */
>-/* #undef HAVE_ASINL */
>+#define HAVE_ASINL 1
>
> /* Define if you have the atan2f function. */
> #define HAVE_ATAN2F 1
>
> /* Define if you have the atan2l function. */
>-/* #undef HAVE_ATAN2L */
>+#define HAVE_ATAN2L 1
>
> /* Define if you have the atanf function. */
> #define HAVE_ATANF 1
>
> /* Define if you have the atanl function. */
>-/* #undef HAVE_ATANL */
>+#define HAVE_ATANL 1
>
> /* Define if you have the btowc function. */
> #define HAVE_BTOWC 1
>@@ -334,7 +334,7 @@
> #define HAVE_CEILF 1
>
> /* Define if you have the ceill function. */
>-/* #undef HAVE_CEILL */
>+#define HAVE_CEILL 1
>
> /* Define if you have the copysign function. */
> #define HAVE_COPYSIGN 1
>@@ -343,7 +343,7 @@
> #define HAVE_COPYSIGNF 1
>
> /* Define if you have the copysignl function. */
>-/* #undef HAVE_COPYSIGNL */
>+#define HAVE_COPYSIGNL 1
>
> /* Define if you have the cosf function. */
> #define HAVE_COSF 1
>@@ -352,25 +352,25 @@
> #define HAVE_COSHF 1
>
> /* Define if you have the coshl function. */
>-/* #undef HAVE_COSHL */
>+#define HAVE_COSHL 1
>
> /* Define if you have the cosl function. */
>-/* #undef HAVE_COSL */
>+#define HAVE_COSL 1
>
> /* Define if you have the drand48 function. */
>-/* #undef HAVE_DRAND48 */
>+#define HAVE_DRAND48 1
>
> /* Define if you have the expf function. */
> #define HAVE_EXPF 1
>
> /* Define if you have the expl function. */
>-/* #undef HAVE_EXPL */
>+#define HAVE_EXPL 1
>
> /* Define if you have the fabsf function. */
> #define HAVE_FABSF 1
>
> /* Define if you have the fabsl function. */
>-/* #undef HAVE_FABSL */
>+#define HAVE_FABSL 1
>
> /* Define if you have the fgetwc function. */
> #define HAVE_FGETWC 1
>@@ -385,19 +385,19 @@
> #define HAVE_FINITEF 1
>
> /* Define if you have the finitel function. */
>-/* #undef HAVE_FINITEL */
>+#define HAVE_FINITEL 1
>
> /* Define if you have the floorf function. */
> #define HAVE_FLOORF 1
>
> /* Define if you have the floorl function. */
>-/* #undef HAVE_FLOORL */
>+#define HAVE_FLOORL 1
>
> /* Define if you have the fmodf function. */
> #define HAVE_FMODF 1
>
> /* Define if you have the fmodl function. */
>-/* #undef HAVE_FMODL */
>+#define HAVE_FMODL 1
>
> /* Define if you have the fpclass function. */
> /* #undef HAVE_FPCLASS */
>@@ -412,7 +412,7 @@
> #define HAVE_FREXPF 1
>
> /* Define if you have the frexpl function. */
>-/* #undef HAVE_FREXPL */
>+#define HAVE_FREXPL 1
>
> /* Define if you have the fwide function. */
> #define HAVE_FWIDE 1
>@@ -424,7 +424,7 @@
> #define HAVE_FWSCANF 1
>
> /* Define if you have the getpagesize function. */
>-/* #undef HAVE_GETPAGESIZE */
>+#define HAVE_GETPAGESIZE 1
>
> /* Define if you have the getwc function. */
> #define HAVE_GETWC 1
>@@ -433,13 +433,13 @@
> #define HAVE_GETWCHAR 1
>
> /* Define if you have the hypot function. */
>-/* #undef HAVE_HYPOT */
>+#define HAVE_HYPOT 1
>
> /* Define if you have the hypotf function. */
> #define HAVE_HYPOTF 1
>
> /* Define if you have the hypotl function. */
>-/* #undef HAVE_HYPOTL */
>+#define HAVE_HYPOTL 1
>
> /* Define if you have the iconv function. */
> #define HAVE_ICONV 1
>@@ -451,7 +451,7 @@
> #define HAVE_ICONV_OPEN 1
>
> /* Define if you have the isatty function. */
>-/* #undef HAVE_ISATTY */
>+#define HAVE_ISATTY 1
>
> /* Define if you have the isinf function. */
> #define HAVE_ISINF 1
>@@ -460,7 +460,7 @@
> #define HAVE_ISINFF 1
>
> /* Define if you have the isinfl function. */
>-/* #undef HAVE_ISINFL */
>+#define HAVE_ISINFL 1
>
> /* Define if you have the isnan function. */
> #define HAVE_ISNAN 1
>@@ -469,25 +469,25 @@
> #define HAVE_ISNANF 1
>
> /* Define if you have the isnanl function. */
>-/* #undef HAVE_ISNANL */
>+#define HAVE_ISNANL 1
>
> /* Define if you have the ldexpf function. */
> #define HAVE_LDEXPF 1
>
> /* Define if you have the ldexpl function. */
>-/* #undef HAVE_LDEXPL */
>+#define HAVE_LDEXPL 1
>
> /* Define if you have the log10f function. */
> #define HAVE_LOG10F 1
>
> /* Define if you have the log10l function. */
>-/* #undef HAVE_LOG10L */
>+#define HAVE_LOG10L 1
>
> /* Define if you have the logf function. */
> #define HAVE_LOGF 1
>
> /* Define if you have the logl function. */
>-/* #undef HAVE_LOGL */
>+#define HAVE_LOGL 1
>
> /* Define if you have the mbrlen function. */
> #define HAVE_MBRLEN 1
>@@ -505,7 +505,7 @@
> #define HAVE_MODFF 1
>
> /* Define if you have the modfl function. */
>-/* #undef HAVE_MODFL */
>+#define HAVE_MODFL 1
>
> /* Define if you have the nan function. */
> #define HAVE_NAN 1
>@@ -517,7 +517,7 @@
> #define HAVE_POWF 1
>
> /* Define if you have the powl function. */
>-/* #undef HAVE_POWL */
>+#define HAVE_POWL 1
>
> /* Define if you have the putwc function. */
> #define HAVE_PUTWC 1
>@@ -529,7 +529,7 @@
> /* #undef HAVE_QFPCLASS */
>
> /* Define if you have the setenv function. */
>-/* #undef HAVE_SETENV */
>+#define HAVE_SETENV 1
>
> /* Define if you have the sincos function. */
> #define HAVE_SINCOS 1
>@@ -538,7 +538,7 @@
> #define HAVE_SINCOSF 1
>
> /* Define if you have the sincosl function. */
>-/* #undef HAVE_SINCOSL */
>+#define HAVE_SINCOSL 1
>
> /* Define if you have the sinf function. */
> #define HAVE_SINF 1
>@@ -547,16 +547,16 @@
> #define HAVE_SINHF 1
>
> /* Define if you have the sinhl function. */
>-/* #undef HAVE_SINHL */
>+#define HAVE_SINHL 1
>
> /* Define if you have the sinl function. */
>-/* #undef HAVE_SINL */
>+#define HAVE_SINL 1
>
> /* Define if you have the sqrtf function. */
> #define HAVE_SQRTF 1
>
> /* Define if you have the sqrtl function. */
>-/* #undef HAVE_SQRTL */
>+#define HAVE_SQRTL 1
>
> /* Define if you have the strtof function. */
> #define HAVE_STRTOF 1
>@@ -577,10 +577,10 @@
> #define HAVE_TANHF 1
>
> /* Define if you have the tanhl function. */
>-/* #undef HAVE_TANHL */
>+#define HAVE_TANHL 1
>
> /* Define if you have the tanl function. */
>-/* #undef HAVE_TANL */
>+#define HAVE_TANL 1
>
> /* Define if you have the ungetwc function. */
> #define HAVE_UNGETWC 1
>@@ -706,7 +706,7 @@
> /* #undef HAVE_FP_H */
>
> /* Define if you have the <gconv.h> header file. */
>-/* #undef HAVE_GCONV_H */
>+#define HAVE_GCONV_H 1
>
> /* Define if you have the <ieeefp.h> header file. */
> /* #undef HAVE_IEEEFP_H */
>@@ -739,16 +739,16 @@
> /* #undef HAVE_SYS_MACHINE_H */
>
> /* Define if you have the <sys/resource.h> header file. */
>-/* #undef HAVE_SYS_RESOURCE_H */
>+#define HAVE_SYS_RESOURCE_H 1
>
> /* Define if you have the <sys/stat.h> header file. */
>-/* #undef HAVE_SYS_STAT_H */
>+#define HAVE_SYS_STAT_H 1
>
> /* Define if you have the <sys/types.h> header file. */
> #define HAVE_SYS_TYPES_H 1
>
> /* Define if you have the <unistd.h> header file. */
>-/* #undef HAVE_UNISTD_H */
>+#define HAVE_UNISTD_H 1
>
> /* Define if you have the <wchar.h> header file. */
> #define HAVE_WCHAR_H 1
>@@ -769,19 +769,19 @@
> /* #undef _GLIBCPP_SJLJ_EXCEPTIONS */
>
> /* Define if sigsetjmp is available. */
>-/* #undef HAVE_SIGSETJMP */
>+#define HAVE_SIGSETJMP 1
>
> /* Only used in build directory testsuite_hooks.h. */
>-/* #undef HAVE_MEMLIMIT_DATA */
>+#define HAVE_MEMLIMIT_DATA 1
>
> /* Only used in build directory testsuite_hooks.h. */
>-/* #undef HAVE_MEMLIMIT_RSS */
>+#define HAVE_MEMLIMIT_RSS 1
>
> /* Only used in build directory testsuite_hooks.h. */
>-/* #undef HAVE_MEMLIMIT_VMEM */
>+#define HAVE_MEMLIMIT_VMEM 0
>
> /* Only used in build directory testsuite_hooks.h. */
>-/* #undef HAVE_MEMLIMIT_AS */
>+#define HAVE_MEMLIMIT_AS 1
>
> //
> // Systems that have certain non-standard functions prefixed with an
>--- ./libiberty/config.h 2003-04-25 16:04:02.000000000 -0700
>+++ /net/gnu-2/export/build/gnu/gcc-3.2-redhat-8/build-ia64-linux/ia64-unknown-linux-gnu/./libiberty/config.h 2003-04-25 12:30:07.000000000 -0700
>@@ -5,7 +5,7 @@
> /* #undef const */
>
> /* Define if you have a working `mmap' system call. */
>-/* #undef HAVE_MMAP */
>+#define HAVE_MMAP 1
>
> /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
> #define HAVE_SYS_WAIT_H 1
>@@ -16,9 +16,6 @@
> /* Define as __inline if that's what the C compiler calls it. */
> /* #undef inline */
>
>-/* Define if your C compiler doesn't accept -c and -o together. */
>-/* #undef NO_MINUS_C_MINUS_O */
>-
> /* Define to `int' if <sys/types.h> doesn't define. */
> /* #undef pid_t */
>
>@@ -26,7 +23,7 @@
> /* #undef _POSIX_SOURCE */
>
> /* Define if you have the ANSI C header files. */
>-/* #undef STDC_HEADERS */
>+#define STDC_HEADERS 1
>
> /* Define if you can safely include both <sys/time.h> and <time.h>. */
> #define TIME_WITH_SYS_TIME 1
>@@ -64,9 +61,6 @@
> /* Define if you have the calloc function. */
> #define HAVE_CALLOC 1
>
>-/* Define if you have the canonicalize_file_name function. */
>-#define HAVE_CANONICALIZE_FILE_NAME 1
>-
> /* Define if you have the clock function. */
> #define HAVE_CLOCK 1
>
>@@ -82,9 +76,6 @@
> /* Define if you have the getrusage function. */
> #define HAVE_GETRUSAGE 1
>
>-/* Define if you have the getsysinfo function. */
>-/* #undef HAVE_GETSYSINFO */
>-
> /* Define if you have the gettimeofday function. */
> #define HAVE_GETTIMEOFDAY 1
>
>@@ -106,9 +97,6 @@
> /* Define if you have the memmove function. */
> #define HAVE_MEMMOVE 1
>
>-/* Define if you have the mempcpy function. */
>-#define HAVE_MEMPCPY 1
>-
> /* Define if you have the memset function. */
> #define HAVE_MEMSET 1
>
>@@ -121,21 +109,12 @@
> /* Define if you have the psignal function. */
> #define HAVE_PSIGNAL 1
>
>-/* Define if you have the pstat_getdynamic function. */
>-/* #undef HAVE_PSTAT_GETDYNAMIC */
>-
>-/* Define if you have the pstat_getstatic function. */
>-/* #undef HAVE_PSTAT_GETSTATIC */
>-
> /* Define if you have the putenv function. */
> #define HAVE_PUTENV 1
>
> /* Define if you have the random function. */
> #define HAVE_RANDOM 1
>
>-/* Define if you have the realpath function. */
>-#define HAVE_REALPATH 1
>-
> /* Define if you have the rename function. */
> #define HAVE_RENAME 1
>
>@@ -151,15 +130,6 @@
> /* Define if you have the sigsetmask function. */
> #define HAVE_SIGSETMASK 1
>
>-/* Define if you have the snprintf function. */
>-#define HAVE_SNPRINTF 1
>-
>-/* Define if you have the stpcpy function. */
>-#define HAVE_STPCPY 1
>-
>-/* Define if you have the stpncpy function. */
>-#define HAVE_STPNCPY 1
>-
> /* Define if you have the strcasecmp function. */
> #define HAVE_STRCASECMP 1
>
>@@ -196,15 +166,6 @@
> /* Define if you have the sysconf function. */
> #define HAVE_SYSCONF 1
>
>-/* Define if you have the sysctl function. */
>-#define HAVE_SYSCTL 1
>-
>-/* Define if you have the sysmp function. */
>-/* #undef HAVE_SYSMP */
>-
>-/* Define if you have the table function. */
>-/* #undef HAVE_TABLE */
>-
> /* Define if you have the times function. */
> #define HAVE_TIMES 1
>
>@@ -220,9 +181,6 @@
> /* Define if you have the vprintf function. */
> #define HAVE_VPRINTF 1
>
>-/* Define if you have the vsnprintf function. */
>-#define HAVE_VSNPRINTF 1
>-
> /* Define if you have the vsprintf function. */
> #define HAVE_VSPRINTF 1
>
>@@ -232,18 +190,12 @@
> /* Define if you have the <alloca.h> header file. */
> #define HAVE_ALLOCA_H 1
>
>-/* Define if you have the <dlfcn.h> header file. */
>-#define HAVE_DLFCN_H 1
>-
> /* Define if you have the <fcntl.h> header file. */
> #define HAVE_FCNTL_H 1
>
> /* Define if you have the <limits.h> header file. */
> #define HAVE_LIMITS_H 1
>
>-/* Define if you have the <machine/hal_sysinfo.h> header file. */
>-/* #undef HAVE_MACHINE_HAL_SYSINFO_H */
>-
> /* Define if you have the <stdlib.h> header file. */
> #define HAVE_STDLIB_H 1
>
>@@ -262,30 +214,12 @@
> /* Define if you have the <sys/param.h> header file. */
> #define HAVE_SYS_PARAM_H 1
>
>-/* Define if you have the <sys/pstat.h> header file. */
>-/* #undef HAVE_SYS_PSTAT_H */
>-
> /* Define if you have the <sys/resource.h> header file. */
> #define HAVE_SYS_RESOURCE_H 1
>
> /* Define if you have the <sys/stat.h> header file. */
> #define HAVE_SYS_STAT_H 1
>
>-/* Define if you have the <sys/sysctl.h> header file. */
>-#define HAVE_SYS_SYSCTL_H 1
>-
>-/* Define if you have the <sys/sysinfo.h> header file. */
>-#define HAVE_SYS_SYSINFO_H 1
>-
>-/* Define if you have the <sys/sysmp.h> header file. */
>-/* #undef HAVE_SYS_SYSMP_H */
>-
>-/* Define if you have the <sys/systemcfg.h> header file. */
>-/* #undef HAVE_SYS_SYSTEMCFG_H */
>-
>-/* Define if you have the <sys/table.h> header file. */
>-/* #undef HAVE_SYS_TABLE_H */
>-
> /* Define if you have the <sys/time.h> header file. */
> #define HAVE_SYS_TIME_H 1
>
>@@ -301,12 +235,6 @@
> /* Define if you have the `uintptr_t' type. */
> #define HAVE_UINTPTR_T 1
>
>-/* Define if weak symbol works. */
>-#define HAVE_WEAK_SYMBOL 1
>-
>-/* Define if dlopen exists. */
>-#define HAVE_DLOPEN 1
>-
> /* Define if you have the sys_errlist variable. */
> #define HAVE_SYS_ERRLIST 1
>
>@@ -316,9 +244,6 @@
> /* Define if you have the sys_siglist variable. */
> #define HAVE_SYS_SIGLIST 1
>
>-/* Define if you have the _system_configuration variable. */
>-/* #undef HAVE__SYSTEM_CONFIGURATION */
>-
> /* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP
> systems. This function is required for alloca.c support on those
> systems. */
>@@ -329,8 +254,5 @@
> STACK_DIRECTION > 0 => grows toward higher addresses
> STACK_DIRECTION < 0 => grows toward lower addresses
> STACK_DIRECTION = 0 => direction of growth unknown */
>-#define STACK_DIRECTION 0
>-
>-/* Define if canonicalize_file_name is not declared in system header files. */
>-#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1
>+#define STACK_DIRECTION -1
>
>--- ./libf2c/libU77/config.h 2003-04-25 16:06:14.000000000 -0700
>+++ /net/gnu-2/export/build/gnu/gcc-3.2-redhat-8/build-ia64-linux/ia64-unknown-linux-gnu/./libf2c/libU77/config.h 2003-04-25 12:40:06.000000000 -0700
>@@ -23,7 +23,7 @@
> /* #undef size_t */
>
> /* Define if you have the ANSI C header files. */
>-/* #undef STDC_HEADERS */
>+#define STDC_HEADERS 1
>
> /* Define if you can safely include both <sys/time.h> and <time.h>. */
> #define TIME_WITH_SYS_TIME 1
>--- ./libf2c/libI77/config.h 2003-04-25 16:06:15.000000000 -0700
>+++ /net/gnu-2/export/build/gnu/gcc-3.2-redhat-8/build-ia64-linux/ia64-unknown-linux-gnu/./libf2c/libI77/config.h 2003-04-25 12:40:08.000000000 -0700
>@@ -11,7 +11,7 @@
> /* #undef size_t */
>
> /* Define if you have the ANSI C header files. */
>-/* #undef STDC_HEADERS */
>+#define STDC_HEADERS 1
>
> /* Define if you have the fseeko function. */
> #define HAVE_FSEEKO 1
>@@ -50,7 +50,7 @@
> /* #undef NON_UNIX_STDIO */
>
> /* Define if we use strlen. */
>-#define USE_STRLEN 1
>+/* #undef USE_STRLEN */
>
> /* Define if we have non ANSI RW modes. */
> #define NON_ANSI_RW_MODES 1
>--- ./libjava/include/config.h 2003-04-25 16:08:34.000000000 -0700
>+++ /net/gnu-2/export/build/gnu/gcc-3.2-redhat-8/build-ia64-linux/ia64-unknown-linux-gnu/./libjava/include/config.h 2003-04-25 12:46:43.000000000 -0700
>@@ -18,7 +18,7 @@
> #define HAVE_SYS_WAIT_H 1
>
> /* Define if your struct tm has tm_zone. */
>-/* #undef HAVE_TM_ZONE */
>+#define HAVE_TM_ZONE 1
>
> /* Define if you don't have tm_zone but do have the external array
> tzname. */
>@@ -34,7 +34,7 @@
> /* #undef STACK_DIRECTION */
>
> /* Define if you have the ANSI C header files. */
>-/* #undef STDC_HEADERS */
>+#define STDC_HEADERS 1
>
> /* Define if your <sys/time.h> declares struct tm. */
> /* #undef TM_IN_SYS_TIME */
>@@ -104,13 +104,13 @@
> #define HAVE_BOEHM_GC 1
>
> /* Define if gethostname is declared in <unistd.h>. */
>-/* #undef HAVE_GETHOSTNAME_DECL */
>+#define HAVE_GETHOSTNAME_DECL 1
>
> /* Define if gethostbyname_r returns `int'. */
>-/* #undef GETHOSTBYNAME_R_RETURNS_INT */
>+#define GETHOSTBYNAME_R_RETURNS_INT 1
>
> /* Define if gethostbyaddr_r returns `int'. */
>-/* #undef GETHOSTBYADDR_R_RETURNS_INT */
>+#define GETHOSTBYADDR_R_RETURNS_INT 1
>
> /* Define if struct tm has tm_gmtoff field. */
> #define STRUCT_TM_HAS_GMTOFF 1
>@@ -123,16 +123,16 @@
> /* #undef SLOW_PTHREAD_SELF */
>
> /* Define if you have the appropriate function. */
>-/* #undef HAVE_ACCESS */
>-/* #undef HAVE_STAT */
>-/* #undef HAVE_MKDIR */
>-/* #undef HAVE_RENAME */
>-/* #undef HAVE_RMDIR */
>-/* #undef HAVE_UNLINK */
>-/* #undef HAVE_REALPATH */
>-/* #undef HAVE_READDIR_R */
>-/* #undef HAVE_GETHOSTBYNAME_R */
>-/* #undef HAVE_GETHOSTBYADDR_R */
>+#define HAVE_ACCESS 1
>+#define HAVE_STAT 1
>+#define HAVE_MKDIR 1
>+#define HAVE_RENAME 1
>+#define HAVE_RMDIR 1
>+#define HAVE_UNLINK 1
>+#define HAVE_REALPATH 1
>+#define HAVE_READDIR_R 1
>+#define HAVE_GETHOSTBYNAME_R 1
>+#define HAVE_GETHOSTBYADDR_R 1
>
> /* Define if you want a bytecode interpreter. */
> #define INTERPRETER 1
>@@ -141,7 +141,7 @@
> /* #undef PTHREAD_MUTEX_HAVE_M_COUNT */
>
> /* Define if pthread_mutex_t has __m_count member. */
>-/* #undef PTHREAD_MUTEX_HAVE___M_COUNT */
>+#define PTHREAD_MUTEX_HAVE___M_COUNT 1
>
> /* Define if java.net native functions should be stubbed out. */
> /* #undef DISABLE_JAVA_NET */
>@@ -157,17 +157,17 @@
> /* #undef DISABLE_MAIN_ARGS */
>
> /* Define if you have /proc/self/exe */
>-/* #undef HAVE_PROC_SELF_EXE */
>+#define HAVE_PROC_SELF_EXE 1
>
>
> /* Define if you have dladdr() */
>-/* #undef HAVE_DLADDR */
>+#define HAVE_DLADDR 1
>
> /* Define if getuid() and friends are missing. */
>-#define NO_GETUID 1
>+/* #undef NO_GETUID */
>
> /* Define if libltdl is in use. */
>-/* #undef USE_LTDL */
>+#define USE_LTDL 1
>
> /* Define if g++ has a bug preventing us from inlining math routines. */
> /* #undef __NO_MATH_INLINES */
>@@ -176,46 +176,46 @@
> #define ENABLE_JVMPI 1
>
> /* Define if you have the access function. */
>-/* #undef HAVE_ACCESS */
>+#define HAVE_ACCESS 1
>
> /* Define if you have the backtrace function. */
> /* #undef HAVE_BACKTRACE */
>
> /* Define if you have the chmod function. */
>-/* #undef HAVE_CHMOD */
>+#define HAVE_CHMOD 1
>
> /* Define if you have the execvp function. */
>-/* #undef HAVE_EXECVP */
>+#define HAVE_EXECVP 1
>
> /* Define if you have the fork function. */
>-/* #undef HAVE_FORK */
>+#define HAVE_FORK 1
>
> /* Define if you have the fstat function. */
>-/* #undef HAVE_FSTAT */
>+#define HAVE_FSTAT 1
>
> /* Define if you have the fsync function. */
>-/* #undef HAVE_FSYNC */
>+#define HAVE_FSYNC 1
>
> /* Define if you have the ftime function. */
>-/* #undef HAVE_FTIME */
>+#define HAVE_FTIME 1
>
> /* Define if you have the getcwd function. */
>-/* #undef HAVE_GETCWD */
>+#define HAVE_GETCWD 1
>
> /* Define if you have the gethostbyaddr_r function. */
>-/* #undef HAVE_GETHOSTBYADDR_R */
>+#define HAVE_GETHOSTBYADDR_R 1
>
> /* Define if you have the gethostbyname_r function. */
>-/* #undef HAVE_GETHOSTBYNAME_R */
>+#define HAVE_GETHOSTBYNAME_R 1
>
> /* Define if you have the gethostname function. */
>-/* #undef HAVE_GETHOSTNAME */
>+#define HAVE_GETHOSTNAME 1
>
> /* Define if you have the getpwuid_r function. */
>-/* #undef HAVE_GETPWUID_R */
>+#define HAVE_GETPWUID_R 1
>
> /* Define if you have the gettimeofday function. */
>-/* #undef HAVE_GETTIMEOFDAY */
>+#define HAVE_GETTIMEOFDAY 1
>
> /* Define if you have the gmtime_r function. */
> #define HAVE_GMTIME_R 1
>@@ -224,16 +224,16 @@
> /* #undef HAVE_INET_ADDR */
>
> /* Define if you have the inet_aton function. */
>-/* #undef HAVE_INET_ATON */
>+#define HAVE_INET_ATON 1
>
> /* Define if you have the inet_ntoa function. */
>-/* #undef HAVE_INET_NTOA */
>+#define HAVE_INET_NTOA 1
>
> /* Define if you have the inet_pton function. */
>-/* #undef HAVE_INET_PTON */
>+#define HAVE_INET_PTON 1
>
> /* Define if you have the ioctl function. */
>-/* #undef HAVE_IOCTL */
>+#define HAVE_IOCTL 1
>
> /* Define if you have the localtime_r function. */
> #define HAVE_LOCALTIME_R 1
>@@ -245,55 +245,55 @@
> #define HAVE_MEMMOVE 1
>
> /* Define if you have the mkdir function. */
>-/* #undef HAVE_MKDIR */
>+#define HAVE_MKDIR 1
>
> /* Define if you have the nl_langinfo function. */
>-/* #undef HAVE_NL_LANGINFO */
>+#define HAVE_NL_LANGINFO 1
>
> /* Define if you have the open function. */
>-/* #undef HAVE_OPEN */
>+#define HAVE_OPEN 1
>
> /* Define if you have the opendir function. */
>-/* #undef HAVE_OPENDIR */
>+#define HAVE_OPENDIR 1
>
> /* Define if you have the pipe function. */
>-/* #undef HAVE_PIPE */
>+#define HAVE_PIPE 1
>
> /* Define if you have the pthread_mutexattr_setkind_np function. */
>-/* #undef HAVE_PTHREAD_MUTEXATTR_SETKIND_NP */
>+#define HAVE_PTHREAD_MUTEXATTR_SETKIND_NP 1
>
> /* Define if you have the pthread_mutexattr_settype function. */
>-/* #undef HAVE_PTHREAD_MUTEXATTR_SETTYPE */
>+#define HAVE_PTHREAD_MUTEXATTR_SETTYPE 1
>
> /* Define if you have the readdir_r function. */
>-/* #undef HAVE_READDIR_R */
>+#define HAVE_READDIR_R 1
>
> /* Define if you have the realpath function. */
>-/* #undef HAVE_REALPATH */
>+#define HAVE_REALPATH 1
>
> /* Define if you have the rename function. */
>-/* #undef HAVE_RENAME */
>+#define HAVE_RENAME 1
>
> /* Define if you have the rmdir function. */
>-/* #undef HAVE_RMDIR */
>+#define HAVE_RMDIR 1
>
> /* Define if you have the sched_yield function. */
>-/* #undef HAVE_SCHED_YIELD */
>+#define HAVE_SCHED_YIELD 1
>
> /* Define if you have the select function. */
>-/* #undef HAVE_SELECT */
>+#define HAVE_SELECT 1
>
> /* Define if you have the setlocale function. */
>-/* #undef HAVE_SETLOCALE */
>+#define HAVE_SETLOCALE 1
>
> /* Define if you have the sigaction function. */
>-/* #undef HAVE_SIGACTION */
>+#define HAVE_SIGACTION 1
>
> /* Define if you have the sleep function. */
>-/* #undef HAVE_SLEEP */
>+#define HAVE_SLEEP 1
>
> /* Define if you have the stat function. */
>-/* #undef HAVE_STAT */
>+#define HAVE_STAT 1
>
> /* Define if you have the strerror function. */
> #define HAVE_STRERROR 1
>@@ -302,13 +302,13 @@
> #define HAVE_TIME 1
>
> /* Define if you have the uname function. */
>-/* #undef HAVE_UNAME */
>+#define HAVE_UNAME 1
>
> /* Define if you have the unlink function. */
>-/* #undef HAVE_UNLINK */
>+#define HAVE_UNLINK 1
>
> /* Define if you have the utime function. */
>-/* #undef HAVE_UTIME */
>+#define HAVE_UTIME 1
>
> /* Define if you have the <arpa/inet.h> header file. */
> #define HAVE_ARPA_INET_H 1
>@@ -320,10 +320,10 @@
> #define HAVE_DIRENT_H 1
>
> /* Define if you have the <dlfcn.h> header file. */
>-/* #undef HAVE_DLFCN_H */
>+#define HAVE_DLFCN_H 1
>
> /* Define if you have the <execinfo.h> header file. */
>-/* #undef HAVE_EXECINFO_H */
>+#define HAVE_EXECINFO_H 1
>
> /* Define if you have the <fcntl.h> header file. */
> #define HAVE_FCNTL_H 1
>@@ -395,13 +395,13 @@
> #define JV_HASH_SYNCHRONIZATION 1
>
> /* Define if you have the iconv() function. */
>-/* #undef HAVE_ICONV */
>+#define HAVE_ICONV 1
>
> /* Define as const if the declaration of iconv() needs const. */
>-/* #undef ICONV_CONST */
>+#define ICONV_CONST
>
> /* Define if your <locale.h> file defines LC_MESSAGES. */
>-/* #undef HAVE_LC_MESSAGES */
>+#define HAVE_LC_MESSAGES 1
>
> /* Required define if using POSIX threads */
> /* #undef _REENTRANT */
>@@ -410,7 +410,7 @@
> /* #undef HAVE_STRUCT_HOSTENT_DATA */
>
> /* Define if dlopen is available */
>-/* #undef HAVE_DLOPEN */
>+#define HAVE_DLOPEN 1
>
> /* The number of bytes in type void * */
> #define SIZEOF_VOID_P 8
>
>
>
More information about the Gcc
mailing list