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