Blame SOURCES/config.h

d54c42
/*
d54c42
 * This config.h is a wrapper include file for the original ruby/config.h,
d54c42
 * which has been renamed to ruby/config-<arch>.h. There are conflicts for the
d54c42
 * original ruby/config.h on multilib systems, which result from arch-specific
d54c42
 * configuration options. Please do not use the arch-specific file directly.
d54c42
 */
d54c42
d54c42
/*
d54c42
 * This wrapped is addpated from SDL's one:
d54c42
 * http://pkgs.fedoraproject.org/cgit/SDL.git/tree/SDL_config.h
d54c42
 */
d54c42
d54c42
#ifdef ruby_config_wrapper_h
d54c42
#error "ruby_config_wrapper_h should not be defined!"
d54c42
#endif
d54c42
#define ruby_config_wrapper_h
d54c42
d54c42
#if defined(__i386__)
d54c42
#include "ruby/config-i386.h"
d54c42
#elif defined(__ia64__)
d54c42
#include "ruby/config-ia64.h"
d54c42
#elif defined(__powerpc64__)
d54c42
#include <endian.h>
d54c42
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
d54c42
#include "ruby/config-ppc64.h"
d54c42
#else
d54c42
#include "ruby/config-ppc64le.h"
d54c42
#endif
d54c42
#elif defined(__powerpc__)
d54c42
#include "ruby/config-ppc.h"
d54c42
#elif defined(__s390x__)
d54c42
#include "ruby/config-s390x.h"
d54c42
#elif defined(__s390__)
d54c42
#include "ruby/config-s390.h"
d54c42
#elif defined(__x86_64__)
d54c42
#include "ruby/config-x86_64.h"
d54c42
#elif defined(__arm__)
d54c42
#include "ruby/config-arm.h"
d54c42
#elif defined(__alpha__)
d54c42
#include "ruby/config-alpha.h"
d54c42
#elif defined(__sparc__) && defined (__arch64__)
d54c42
#include "ruby/config-sparc64.h"
d54c42
#elif defined(__sparc__)
d54c42
#include "ruby/config-sparc.h"
d54c42
#elif defined(__aarch64__)
d54c42
#include "ruby/config-aarch64.h"
d54c42
#else
d54c42
#error "The ruby-devel package is not usable with the architecture."
d54c42
#endif
d54c42
d54c42
#undef ruby_config_wrapper_h