ffi 1.9.21-x64-mingw32 → 1.9.22-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ffi might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.gitignore +22 -0
- data/.gitmodules +3 -0
- data/.travis.yml +52 -0
- data/.yardopts +5 -0
- data/Gemfile +15 -0
- data/{spec/ffi/LICENSE.SPECS → LICENSE.SPECS} +1 -1
- data/README.md +1 -1
- data/Rakefile +28 -3
- data/appveyor.yml +22 -0
- data/ffi.gemspec +14 -1
- data/lib/2.0/ffi_c.so +0 -0
- data/lib/2.1/ffi_c.so +0 -0
- data/lib/2.2/ffi_c.so +0 -0
- data/lib/2.3/ffi_c.so +0 -0
- data/lib/2.4/ffi_c.so +0 -0
- data/lib/2.5/ffi_c.so +0 -0
- data/lib/ffi/library.rb +1 -1
- data/lib/ffi/version.rb +1 -1
- data/samples/getlogin.rb +8 -0
- data/samples/getpid.rb +8 -0
- data/samples/gettimeofday.rb +18 -0
- data/samples/hello.rb +7 -0
- data/samples/inotify.rb +60 -0
- data/samples/pty.rb +76 -0
- data/samples/qsort.rb +21 -0
- data/samples/sample_helper.rb +6 -0
- metadata +17 -526
- data/ext/ffi_c/AbstractMemory.c +0 -1109
- data/ext/ffi_c/AbstractMemory.h +0 -175
- data/ext/ffi_c/ArrayType.c +0 -162
- data/ext/ffi_c/ArrayType.h +0 -59
- data/ext/ffi_c/Buffer.c +0 -365
- data/ext/ffi_c/Call.c +0 -517
- data/ext/ffi_c/Call.h +0 -110
- data/ext/ffi_c/ClosurePool.c +0 -283
- data/ext/ffi_c/ClosurePool.h +0 -57
- data/ext/ffi_c/DataConverter.c +0 -91
- data/ext/ffi_c/DynamicLibrary.c +0 -339
- data/ext/ffi_c/DynamicLibrary.h +0 -98
- data/ext/ffi_c/Function.c +0 -998
- data/ext/ffi_c/Function.h +0 -87
- data/ext/ffi_c/FunctionInfo.c +0 -271
- data/ext/ffi_c/LastError.c +0 -184
- data/ext/ffi_c/LastError.h +0 -47
- data/ext/ffi_c/LongDouble.c +0 -63
- data/ext/ffi_c/LongDouble.h +0 -51
- data/ext/ffi_c/MappedType.c +0 -168
- data/ext/ffi_c/MappedType.h +0 -59
- data/ext/ffi_c/MemoryPointer.c +0 -197
- data/ext/ffi_c/MemoryPointer.h +0 -53
- data/ext/ffi_c/MethodHandle.c +0 -358
- data/ext/ffi_c/MethodHandle.h +0 -55
- data/ext/ffi_c/Platform.c +0 -129
- data/ext/ffi_c/Platform.h +0 -45
- data/ext/ffi_c/Pointer.c +0 -508
- data/ext/ffi_c/Pointer.h +0 -63
- data/ext/ffi_c/Struct.c +0 -829
- data/ext/ffi_c/Struct.h +0 -106
- data/ext/ffi_c/StructByReference.c +0 -190
- data/ext/ffi_c/StructByReference.h +0 -50
- data/ext/ffi_c/StructByValue.c +0 -150
- data/ext/ffi_c/StructByValue.h +0 -55
- data/ext/ffi_c/StructLayout.c +0 -698
- data/ext/ffi_c/Thread.c +0 -352
- data/ext/ffi_c/Thread.h +0 -95
- data/ext/ffi_c/Type.c +0 -397
- data/ext/ffi_c/Type.h +0 -62
- data/ext/ffi_c/Types.c +0 -139
- data/ext/ffi_c/Types.h +0 -89
- data/ext/ffi_c/Variadic.c +0 -304
- data/ext/ffi_c/compat.h +0 -78
- data/ext/ffi_c/extconf.rb +0 -71
- data/ext/ffi_c/ffi.c +0 -98
- data/ext/ffi_c/libffi.bsd.mk +0 -40
- data/ext/ffi_c/libffi.darwin.mk +0 -105
- data/ext/ffi_c/libffi.gnu.mk +0 -32
- data/ext/ffi_c/libffi.mk +0 -18
- data/ext/ffi_c/libffi.vc.mk +0 -26
- data/ext/ffi_c/libffi.vc64.mk +0 -26
- data/ext/ffi_c/libffi/ChangeLog.libffi +0 -584
- data/ext/ffi_c/libffi/ChangeLog.libffi-3.1 +0 -6000
- data/ext/ffi_c/libffi/ChangeLog.libgcj +0 -40
- data/ext/ffi_c/libffi/ChangeLog.v1 +0 -764
- data/ext/ffi_c/libffi/LICENSE +0 -21
- data/ext/ffi_c/libffi/Makefile.am +0 -205
- data/ext/ffi_c/libffi/Makefile.in +0 -1805
- data/ext/ffi_c/libffi/README +0 -454
- data/ext/ffi_c/libffi/acinclude.m4 +0 -473
- data/ext/ffi_c/libffi/aclocal.m4 +0 -2134
- data/ext/ffi_c/libffi/autogen.sh +0 -2
- data/ext/ffi_c/libffi/autom4te.cache/output.0 +0 -21972
- data/ext/ffi_c/libffi/autom4te.cache/output.1 +0 -21972
- data/ext/ffi_c/libffi/autom4te.cache/output.2 +0 -21972
- data/ext/ffi_c/libffi/autom4te.cache/output.3 +0 -21972
- data/ext/ffi_c/libffi/autom4te.cache/requests +0 -331
- data/ext/ffi_c/libffi/autom4te.cache/traces.0 +0 -4010
- data/ext/ffi_c/libffi/autom4te.cache/traces.1 +0 -1005
- data/ext/ffi_c/libffi/autom4te.cache/traces.2 +0 -4010
- data/ext/ffi_c/libffi/autom4te.cache/traces.3 +0 -4010
- data/ext/ffi_c/libffi/compile +0 -347
- data/ext/ffi_c/libffi/config.guess +0 -1462
- data/ext/ffi_c/libffi/config.sub +0 -1825
- data/ext/ffi_c/libffi/configure +0 -21972
- data/ext/ffi_c/libffi/configure.ac +0 -388
- data/ext/ffi_c/libffi/configure.host +0 -272
- data/ext/ffi_c/libffi/depcomp +0 -791
- data/ext/ffi_c/libffi/doc/Makefile.am +0 -3
- data/ext/ffi_c/libffi/doc/Makefile.in +0 -811
- data/ext/ffi_c/libffi/doc/libffi.texi +0 -985
- data/ext/ffi_c/libffi/doc/mdate-sh +0 -228
- data/ext/ffi_c/libffi/doc/texinfo.tex +0 -10079
- data/ext/ffi_c/libffi/doc/version.texi +0 -4
- data/ext/ffi_c/libffi/fficonfig.h.in +0 -210
- data/ext/ffi_c/libffi/fficonfig.h.in~ +0 -210
- data/ext/ffi_c/libffi/generate-darwin-source-and-headers.py +0 -207
- data/ext/ffi_c/libffi/include/Makefile.am +0 -9
- data/ext/ffi_c/libffi/include/Makefile.in +0 -604
- data/ext/ffi_c/libffi/include/ffi.h.in +0 -484
- data/ext/ffi_c/libffi/include/ffi_cfi.h +0 -55
- data/ext/ffi_c/libffi/include/ffi_common.h +0 -147
- data/ext/ffi_c/libffi/install-sh +0 -508
- data/ext/ffi_c/libffi/libffi.map.in +0 -80
- data/ext/ffi_c/libffi/libffi.pc.in +0 -11
- data/ext/ffi_c/libffi/libffi.xcodeproj/project.pbxproj +0 -637
- data/ext/ffi_c/libffi/libtool-ldflags +0 -106
- data/ext/ffi_c/libffi/libtool-version +0 -29
- data/ext/ffi_c/libffi/ltmain.sh +0 -11156
- data/ext/ffi_c/libffi/m4/asmcfi.m4 +0 -13
- data/ext/ffi_c/libffi/m4/ax_append_flag.m4 +0 -69
- data/ext/ffi_c/libffi/m4/ax_cc_maxopt.m4 +0 -181
- data/ext/ffi_c/libffi/m4/ax_cflags_warn_all.m4 +0 -122
- data/ext/ffi_c/libffi/m4/ax_check_compile_flag.m4 +0 -72
- data/ext/ffi_c/libffi/m4/ax_compiler_vendor.m4 +0 -84
- data/ext/ffi_c/libffi/m4/ax_configure_args.m4 +0 -70
- data/ext/ffi_c/libffi/m4/ax_enable_builddir.m4 +0 -301
- data/ext/ffi_c/libffi/m4/ax_gcc_archflag.m4 +0 -225
- data/ext/ffi_c/libffi/m4/ax_gcc_x86_cpuid.m4 +0 -79
- data/ext/ffi_c/libffi/m4/libtool.m4 +0 -8387
- data/ext/ffi_c/libffi/m4/ltoptions.m4 +0 -437
- data/ext/ffi_c/libffi/m4/ltsugar.m4 +0 -124
- data/ext/ffi_c/libffi/m4/ltversion.m4 +0 -23
- data/ext/ffi_c/libffi/m4/lt~obsolete.m4 +0 -99
- data/ext/ffi_c/libffi/man/Makefile.am +0 -8
- data/ext/ffi_c/libffi/man/Makefile.in +0 -558
- data/ext/ffi_c/libffi/man/ffi.3 +0 -41
- data/ext/ffi_c/libffi/man/ffi_call.3 +0 -103
- data/ext/ffi_c/libffi/man/ffi_prep_cif.3 +0 -68
- data/ext/ffi_c/libffi/man/ffi_prep_cif_var.3 +0 -73
- data/ext/ffi_c/libffi/missing +0 -215
- data/ext/ffi_c/libffi/msvcc.sh +0 -260
- data/ext/ffi_c/libffi/src/aarch64/ffi.c +0 -941
- data/ext/ffi_c/libffi/src/aarch64/ffitarget.h +0 -81
- data/ext/ffi_c/libffi/src/aarch64/internal.h +0 -67
- data/ext/ffi_c/libffi/src/aarch64/sysv.S +0 -438
- data/ext/ffi_c/libffi/src/alpha/ffi.c +0 -521
- data/ext/ffi_c/libffi/src/alpha/ffitarget.h +0 -57
- data/ext/ffi_c/libffi/src/alpha/internal.h +0 -23
- data/ext/ffi_c/libffi/src/alpha/osf.S +0 -282
- data/ext/ffi_c/libffi/src/arc/arcompact.S +0 -135
- data/ext/ffi_c/libffi/src/arc/ffi.c +0 -266
- data/ext/ffi_c/libffi/src/arc/ffitarget.h +0 -53
- data/ext/ffi_c/libffi/src/arm/ffi.c +0 -808
- data/ext/ffi_c/libffi/src/arm/ffitarget.h +0 -82
- data/ext/ffi_c/libffi/src/arm/internal.h +0 -7
- data/ext/ffi_c/libffi/src/arm/sysv.S +0 -383
- data/ext/ffi_c/libffi/src/avr32/ffi.c +0 -423
- data/ext/ffi_c/libffi/src/avr32/ffitarget.h +0 -55
- data/ext/ffi_c/libffi/src/avr32/sysv.S +0 -208
- data/ext/ffi_c/libffi/src/bfin/ffi.c +0 -196
- data/ext/ffi_c/libffi/src/bfin/ffitarget.h +0 -43
- data/ext/ffi_c/libffi/src/bfin/sysv.S +0 -179
- data/ext/ffi_c/libffi/src/closures.c +0 -890
- data/ext/ffi_c/libffi/src/cris/ffi.c +0 -386
- data/ext/ffi_c/libffi/src/cris/ffitarget.h +0 -56
- data/ext/ffi_c/libffi/src/cris/sysv.S +0 -215
- data/ext/ffi_c/libffi/src/debug.c +0 -64
- data/ext/ffi_c/libffi/src/dlmalloc.c +0 -5166
- data/ext/ffi_c/libffi/src/frv/eabi.S +0 -128
- data/ext/ffi_c/libffi/src/frv/ffi.c +0 -292
- data/ext/ffi_c/libffi/src/frv/ffitarget.h +0 -62
- data/ext/ffi_c/libffi/src/ia64/ffi.c +0 -586
- data/ext/ffi_c/libffi/src/ia64/ffitarget.h +0 -55
- data/ext/ffi_c/libffi/src/ia64/ia64_flags.h +0 -40
- data/ext/ffi_c/libffi/src/ia64/unix.S +0 -560
- data/ext/ffi_c/libffi/src/java_raw_api.c +0 -374
- data/ext/ffi_c/libffi/src/m32r/ffi.c +0 -232
- data/ext/ffi_c/libffi/src/m32r/ffitarget.h +0 -53
- data/ext/ffi_c/libffi/src/m32r/sysv.S +0 -121
- data/ext/ffi_c/libffi/src/m68k/ffi.c +0 -362
- data/ext/ffi_c/libffi/src/m68k/ffitarget.h +0 -54
- data/ext/ffi_c/libffi/src/m68k/sysv.S +0 -357
- data/ext/ffi_c/libffi/src/m88k/ffi.c +0 -400
- data/ext/ffi_c/libffi/src/m88k/ffitarget.h +0 -49
- data/ext/ffi_c/libffi/src/m88k/obsd.S +0 -209
- data/ext/ffi_c/libffi/src/metag/ffi.c +0 -330
- data/ext/ffi_c/libffi/src/metag/ffitarget.h +0 -53
- data/ext/ffi_c/libffi/src/metag/sysv.S +0 -311
- data/ext/ffi_c/libffi/src/microblaze/ffi.c +0 -321
- data/ext/ffi_c/libffi/src/microblaze/ffitarget.h +0 -53
- data/ext/ffi_c/libffi/src/microblaze/sysv.S +0 -302
- data/ext/ffi_c/libffi/src/mips/ffi.c +0 -1105
- data/ext/ffi_c/libffi/src/mips/ffitarget.h +0 -249
- data/ext/ffi_c/libffi/src/mips/n32.S +0 -661
- data/ext/ffi_c/libffi/src/mips/o32.S +0 -502
- data/ext/ffi_c/libffi/src/moxie/eabi.S +0 -101
- data/ext/ffi_c/libffi/src/moxie/ffi.c +0 -272
- data/ext/ffi_c/libffi/src/moxie/ffitarget.h +0 -52
- data/ext/ffi_c/libffi/src/nios2/ffi.c +0 -304
- data/ext/ffi_c/libffi/src/nios2/ffitarget.h +0 -52
- data/ext/ffi_c/libffi/src/nios2/sysv.S +0 -136
- data/ext/ffi_c/libffi/src/or1k/ffi.c +0 -328
- data/ext/ffi_c/libffi/src/or1k/ffitarget.h +0 -58
- data/ext/ffi_c/libffi/src/or1k/sysv.S +0 -107
- data/ext/ffi_c/libffi/src/pa/ffi.c +0 -719
- data/ext/ffi_c/libffi/src/pa/ffitarget.h +0 -85
- data/ext/ffi_c/libffi/src/pa/hpux32.S +0 -368
- data/ext/ffi_c/libffi/src/pa/linux.S +0 -357
- data/ext/ffi_c/libffi/src/powerpc/aix.S +0 -328
- data/ext/ffi_c/libffi/src/powerpc/aix_closure.S +0 -447
- data/ext/ffi_c/libffi/src/powerpc/asm.h +0 -125
- data/ext/ffi_c/libffi/src/powerpc/darwin.S +0 -378
- data/ext/ffi_c/libffi/src/powerpc/darwin_closure.S +0 -571
- data/ext/ffi_c/libffi/src/powerpc/ffi.c +0 -173
- data/ext/ffi_c/libffi/src/powerpc/ffi_darwin.c +0 -1359
- data/ext/ffi_c/libffi/src/powerpc/ffi_linux64.c +0 -945
- data/ext/ffi_c/libffi/src/powerpc/ffi_powerpc.h +0 -94
- data/ext/ffi_c/libffi/src/powerpc/ffi_sysv.c +0 -923
- data/ext/ffi_c/libffi/src/powerpc/ffitarget.h +0 -195
- data/ext/ffi_c/libffi/src/powerpc/linux64.S +0 -228
- data/ext/ffi_c/libffi/src/powerpc/linux64_closure.S +0 -488
- data/ext/ffi_c/libffi/src/powerpc/ppc_closure.S +0 -397
- data/ext/ffi_c/libffi/src/powerpc/sysv.S +0 -175
- data/ext/ffi_c/libffi/src/prep_cif.c +0 -261
- data/ext/ffi_c/libffi/src/raw_api.c +0 -267
- data/ext/ffi_c/libffi/src/s390/ffi.c +0 -756
- data/ext/ffi_c/libffi/src/s390/ffitarget.h +0 -70
- data/ext/ffi_c/libffi/src/s390/internal.h +0 -11
- data/ext/ffi_c/libffi/src/s390/sysv.S +0 -325
- data/ext/ffi_c/libffi/src/sh/ffi.c +0 -717
- data/ext/ffi_c/libffi/src/sh/ffitarget.h +0 -54
- data/ext/ffi_c/libffi/src/sh/sysv.S +0 -850
- data/ext/ffi_c/libffi/src/sh64/ffi.c +0 -469
- data/ext/ffi_c/libffi/src/sh64/ffitarget.h +0 -58
- data/ext/ffi_c/libffi/src/sh64/sysv.S +0 -539
- data/ext/ffi_c/libffi/src/sparc/ffi.c +0 -468
- data/ext/ffi_c/libffi/src/sparc/ffi64.c +0 -608
- data/ext/ffi_c/libffi/src/sparc/ffitarget.h +0 -81
- data/ext/ffi_c/libffi/src/sparc/internal.h +0 -26
- data/ext/ffi_c/libffi/src/sparc/v8.S +0 -443
- data/ext/ffi_c/libffi/src/sparc/v9.S +0 -440
- data/ext/ffi_c/libffi/src/tile/ffi.c +0 -355
- data/ext/ffi_c/libffi/src/tile/ffitarget.h +0 -65
- data/ext/ffi_c/libffi/src/tile/tile.S +0 -360
- data/ext/ffi_c/libffi/src/types.c +0 -106
- data/ext/ffi_c/libffi/src/vax/elfbsd.S +0 -195
- data/ext/ffi_c/libffi/src/vax/ffi.c +0 -276
- data/ext/ffi_c/libffi/src/vax/ffitarget.h +0 -49
- data/ext/ffi_c/libffi/src/x86/asmnames.h +0 -30
- data/ext/ffi_c/libffi/src/x86/ffi.c +0 -733
- data/ext/ffi_c/libffi/src/x86/ffi64.c +0 -857
- data/ext/ffi_c/libffi/src/x86/ffitarget.h +0 -141
- data/ext/ffi_c/libffi/src/x86/ffiw64.c +0 -287
- data/ext/ffi_c/libffi/src/x86/internal.h +0 -29
- data/ext/ffi_c/libffi/src/x86/internal64.h +0 -22
- data/ext/ffi_c/libffi/src/x86/sysv.S +0 -1043
- data/ext/ffi_c/libffi/src/x86/unix64.S +0 -525
- data/ext/ffi_c/libffi/src/x86/win64.S +0 -232
- data/ext/ffi_c/libffi/src/x86/win64_intel.S +0 -237
- data/ext/ffi_c/libffi/src/xtensa/ffi.c +0 -298
- data/ext/ffi_c/libffi/src/xtensa/ffitarget.h +0 -53
- data/ext/ffi_c/libffi/src/xtensa/sysv.S +0 -253
- data/ext/ffi_c/libffi/stamp-h.in +0 -1
- data/ext/ffi_c/libffi/testsuite/Makefile.am +0 -85
- data/ext/ffi_c/libffi/testsuite/Makefile.in +0 -607
- data/ext/ffi_c/libffi/testsuite/config/default.exp +0 -1
- data/ext/ffi_c/libffi/testsuite/lib/libffi.exp +0 -445
- data/ext/ffi_c/libffi/testsuite/lib/target-libpath.exp +0 -283
- data/ext/ffi_c/libffi/testsuite/lib/wrapper.exp +0 -45
- data/ext/ffi_c/libffi/testsuite/libffi.call/align_mixed.c +0 -46
- data/ext/ffi_c/libffi/testsuite/libffi.call/call.exp +0 -30
- data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn0.c +0 -89
- data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn1.c +0 -81
- data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn2.c +0 -81
- data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn3.c +0 -82
- data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn4.c +0 -89
- data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn5.c +0 -92
- data/ext/ffi_c/libffi/testsuite/libffi.call/closure_fn6.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.call/closure_loc_fn0.c +0 -95
- data/ext/ffi_c/libffi/testsuite/libffi.call/closure_simple.c +0 -55
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_12byte.c +0 -94
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_16byte.c +0 -95
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_18byte.c +0 -96
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_19byte.c +0 -102
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_1_1byte.c +0 -89
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_20byte.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_20byte1.c +0 -93
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_24byte.c +0 -113
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_2byte.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_3_1byte.c +0 -95
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_3byte1.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_3byte2.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_4_1byte.c +0 -98
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_4byte.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_5_1_byte.c +0 -109
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_5byte.c +0 -98
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_64byte.c +0 -124
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_6_1_byte.c +0 -113
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_6byte.c +0 -99
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_7_1_byte.c +0 -117
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_7byte.c +0 -97
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_8byte.c +0 -88
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_9byte1.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_9byte2.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_double.c +0 -93
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_float.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble.c +0 -92
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble_split.c +0 -132
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_longdouble_split2.c +0 -115
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_pointer.c +0 -95
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint16.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint32.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_sint64.c +0 -92
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint16.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint32.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_align_uint64.c +0 -93
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_dbls_struct.c +0 -66
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_double.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_double_va.c +0 -61
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_float.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_longdouble.c +0 -105
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_longdouble_va.c +0 -61
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_many_mixed_args.c +0 -70
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_many_mixed_float_double.c +0 -55
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_schar.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_sshort.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_sshortchar.c +0 -86
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_uchar.c +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_ushort.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_multi_ushortchar.c +0 -86
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_pointer.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_pointer_stack.c +0 -142
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_schar.c +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_sint.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_sshort.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_struct_va1.c +0 -114
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_uchar.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_uchar_va.c +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_uint.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_uint_va.c +0 -45
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_ulong_va.c +0 -45
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_ulonglong.c +0 -47
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_ushort.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.call/cls_ushort_va.c +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_abi.c +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.call/err_bad_typedef.c +0 -26
- data/ext/ffi_c/libffi/testsuite/libffi.call/ffitest.h +0 -136
- data/ext/ffi_c/libffi/testsuite/libffi.call/float.c +0 -59
- data/ext/ffi_c/libffi/testsuite/libffi.call/float1.c +0 -60
- data/ext/ffi_c/libffi/testsuite/libffi.call/float2.c +0 -60
- data/ext/ffi_c/libffi/testsuite/libffi.call/float3.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.call/float4.c +0 -62
- data/ext/ffi_c/libffi/testsuite/libffi.call/float_va.c +0 -107
- data/ext/ffi_c/libffi/testsuite/libffi.call/huge_struct.c +0 -341
- data/ext/ffi_c/libffi/testsuite/libffi.call/many.c +0 -59
- data/ext/ffi_c/libffi/testsuite/libffi.call/many2.c +0 -57
- data/ext/ffi_c/libffi/testsuite/libffi.call/many_double.c +0 -70
- data/ext/ffi_c/libffi/testsuite/libffi.call/many_mixed.c +0 -78
- data/ext/ffi_c/libffi/testsuite/libffi.call/negint.c +0 -52
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct.c +0 -152
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct1.c +0 -161
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct10.c +0 -133
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct11.c +0 -121
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct2.c +0 -110
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct3.c +0 -111
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct4.c +0 -111
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct5.c +0 -112
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct6.c +0 -131
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct7.c +0 -111
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct8.c +0 -131
- data/ext/ffi_c/libffi/testsuite/libffi.call/nested_struct9.c +0 -131
- data/ext/ffi_c/libffi/testsuite/libffi.call/offsets.c +0 -46
- data/ext/ffi_c/libffi/testsuite/libffi.call/pr1172638.c +0 -127
- data/ext/ffi_c/libffi/testsuite/libffi.call/problem1.c +0 -90
- data/ext/ffi_c/libffi/testsuite/libffi.call/promotion.c +0 -59
- data/ext/ffi_c/libffi/testsuite/libffi.call/pyobjc-tc.c +0 -114
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl.c +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl1.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_dbl2.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl.c +0 -35
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl1.c +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl2.c +0 -49
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_fl3.c +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ldl.c +0 -34
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c +0 -41
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ll1.c +0 -43
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_sc.c +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_sl.c +0 -38
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_uc.c +0 -38
- data/ext/ffi_c/libffi/testsuite/libffi.call/return_ul.c +0 -38
- data/ext/ffi_c/libffi/testsuite/libffi.call/stret_large.c +0 -145
- data/ext/ffi_c/libffi/testsuite/libffi.call/stret_large2.c +0 -148
- data/ext/ffi_c/libffi/testsuite/libffi.call/stret_medium.c +0 -124
- data/ext/ffi_c/libffi/testsuite/libffi.call/stret_medium2.c +0 -125
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen.c +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen2.c +0 -49
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen3.c +0 -49
- data/ext/ffi_c/libffi/testsuite/libffi.call/strlen4.c +0 -55
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct1.c +0 -67
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct2.c +0 -67
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct3.c +0 -60
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct4.c +0 -64
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct5.c +0 -66
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct6.c +0 -64
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct7.c +0 -74
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct8.c +0 -81
- data/ext/ffi_c/libffi/testsuite/libffi.call/struct9.c +0 -68
- data/ext/ffi_c/libffi/testsuite/libffi.call/testclosure.c +0 -70
- data/ext/ffi_c/libffi/testsuite/libffi.call/uninitialized.c +0 -61
- data/ext/ffi_c/libffi/testsuite/libffi.call/unwindtest.cc +0 -117
- data/ext/ffi_c/libffi/testsuite/libffi.call/unwindtest_ffi_call.cc +0 -54
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_1.c +0 -196
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct1.c +0 -121
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct2.c +0 -123
- data/ext/ffi_c/libffi/testsuite/libffi.call/va_struct3.c +0 -125
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex.inc +0 -91
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_align_complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex.inc +0 -42
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct.inc +0 -71
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_struct_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va.inc +0 -80
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_float.c +0 -16
- data/ext/ffi_c/libffi/testsuite/libffi.complex/cls_complex_va_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex.exp +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex.inc +0 -51
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_double.inc +0 -7
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_float.inc +0 -7
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_defs_longdouble.inc +0 -7
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_int.c +0 -86
- data/ext/ffi_c/libffi/testsuite/libffi.complex/complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/ffitest.h +0 -1
- data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex.inc +0 -78
- data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/many_complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex.inc +0 -37
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1.inc +0 -41
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex1_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2.inc +0 -44
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex2_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_double.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_float.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.complex/return_complex_longdouble.c +0 -10
- data/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c +0 -34
- data/ext/ffi_c/libffi/testsuite/libffi.go/closure1.c +0 -28
- data/ext/ffi_c/libffi/testsuite/libffi.go/ffitest.h +0 -1
- data/ext/ffi_c/libffi/testsuite/libffi.go/go.exp +0 -36
- data/ext/ffi_c/libffi/testsuite/libffi.go/static-chain.h +0 -19
- data/ext/ffi_c/rbffi.h +0 -57
- data/ext/ffi_c/rbffi_endian.h +0 -59
- data/ext/ffi_c/win32/stdbool.h +0 -8
- data/ext/ffi_c/win32/stdint.h +0 -201
- data/gen/Rakefile +0 -30
- data/libtest/Benchmark.c +0 -52
- data/libtest/BoolTest.c +0 -34
- data/libtest/BufferTest.c +0 -31
- data/libtest/ClosureTest.c +0 -205
- data/libtest/EnumTest.c +0 -51
- data/libtest/FunctionTest.c +0 -70
- data/libtest/GNUmakefile +0 -149
- data/libtest/GlobalVariable.c +0 -62
- data/libtest/LastErrorTest.c +0 -21
- data/libtest/NumberTest.c +0 -132
- data/libtest/PointerTest.c +0 -63
- data/libtest/ReferenceTest.c +0 -23
- data/libtest/StringTest.c +0 -34
- data/libtest/StructTest.c +0 -243
- data/libtest/UnionTest.c +0 -43
- data/libtest/VariadicTest.c +0 -99
- data/spec/ffi/async_callback_spec.rb +0 -35
- data/spec/ffi/bitmask_spec.rb +0 -575
- data/spec/ffi/bool_spec.rb +0 -32
- data/spec/ffi/buffer_spec.rb +0 -279
- data/spec/ffi/callback_spec.rb +0 -773
- data/spec/ffi/custom_param_type.rb +0 -37
- data/spec/ffi/custom_type_spec.rb +0 -74
- data/spec/ffi/dup_spec.rb +0 -52
- data/spec/ffi/embed-test/ext/Makefile +0 -242
- data/spec/ffi/enum_spec.rb +0 -423
- data/spec/ffi/errno_spec.rb +0 -20
- data/spec/ffi/ffi_spec.rb +0 -28
- data/spec/ffi/fixtures/Benchmark.c +0 -52
- data/spec/ffi/fixtures/BitmaskTest.c +0 -51
- data/spec/ffi/fixtures/BoolTest.c +0 -34
- data/spec/ffi/fixtures/BufferTest.c +0 -31
- data/spec/ffi/fixtures/ClosureTest.c +0 -205
- data/spec/ffi/fixtures/EnumTest.c +0 -51
- data/spec/ffi/fixtures/FunctionTest.c +0 -142
- data/spec/ffi/fixtures/GNUmakefile +0 -149
- data/spec/ffi/fixtures/GlobalVariable.c +0 -62
- data/spec/ffi/fixtures/LastErrorTest.c +0 -21
- data/spec/ffi/fixtures/NumberTest.c +0 -132
- data/spec/ffi/fixtures/PipeHelper.h +0 -21
- data/spec/ffi/fixtures/PipeHelperPosix.c +0 -41
- data/spec/ffi/fixtures/PipeHelperWindows.c +0 -72
- data/spec/ffi/fixtures/PointerTest.c +0 -63
- data/spec/ffi/fixtures/ReferenceTest.c +0 -23
- data/spec/ffi/fixtures/StringTest.c +0 -34
- data/spec/ffi/fixtures/StructTest.c +0 -243
- data/spec/ffi/fixtures/UnionTest.c +0 -43
- data/spec/ffi/fixtures/VariadicTest.c +0 -99
- data/spec/ffi/fixtures/classes.rb +0 -438
- data/spec/ffi/function_spec.rb +0 -97
- data/spec/ffi/io_spec.rb +0 -16
- data/spec/ffi/library_spec.rb +0 -286
- data/spec/ffi/long_double.rb +0 -30
- data/spec/ffi/managed_struct_spec.rb +0 -68
- data/spec/ffi/memorypointer_spec.rb +0 -78
- data/spec/ffi/number_spec.rb +0 -247
- data/spec/ffi/platform_spec.rb +0 -114
- data/spec/ffi/pointer_spec.rb +0 -285
- data/spec/ffi/rbx/attach_function_spec.rb +0 -34
- data/spec/ffi/rbx/memory_pointer_spec.rb +0 -198
- data/spec/ffi/rbx/spec_helper.rb +0 -6
- data/spec/ffi/rbx/struct_spec.rb +0 -18
- data/spec/ffi/spec_helper.rb +0 -93
- data/spec/ffi/string_spec.rb +0 -118
- data/spec/ffi/strptr_spec.rb +0 -50
- data/spec/ffi/struct_by_ref_spec.rb +0 -43
- data/spec/ffi/struct_callback_spec.rb +0 -69
- data/spec/ffi/struct_initialize_spec.rb +0 -35
- data/spec/ffi/struct_packed_spec.rb +0 -50
- data/spec/ffi/struct_spec.rb +0 -882
- data/spec/ffi/typedef_spec.rb +0 -91
- data/spec/ffi/union_spec.rb +0 -67
- data/spec/ffi/variadic_spec.rb +0 -132
- data/spec/spec.opts +0 -4
@@ -1,388 +0,0 @@
|
|
1
|
-
dnl Process this with autoconf to create configure
|
2
|
-
|
3
|
-
AC_PREREQ(2.68)
|
4
|
-
|
5
|
-
AC_INIT([libffi], [3.99999], [http://github.com/libffi/libffi/issues])
|
6
|
-
AC_CONFIG_HEADERS([fficonfig.h])
|
7
|
-
|
8
|
-
AC_CANONICAL_SYSTEM
|
9
|
-
target_alias=${target_alias-$host_alias}
|
10
|
-
|
11
|
-
case "${host}" in
|
12
|
-
frv*-elf)
|
13
|
-
LDFLAGS=`echo $LDFLAGS | sed "s/\-B[^ ]*libgloss\/frv\///"`\ -B`pwd`/../libgloss/frv/
|
14
|
-
;;
|
15
|
-
esac
|
16
|
-
|
17
|
-
AX_ENABLE_BUILDDIR
|
18
|
-
|
19
|
-
AM_INIT_AUTOMAKE
|
20
|
-
|
21
|
-
# The same as in boehm-gc and libstdc++. Have to borrow it from there.
|
22
|
-
# We must force CC to /not/ be precious variables; otherwise
|
23
|
-
# the wrong, non-multilib-adjusted value will be used in multilibs.
|
24
|
-
# As a side effect, we have to subst CFLAGS ourselves.
|
25
|
-
# Also save and restore CFLAGS, since AC_PROG_CC will come up with
|
26
|
-
# defaults of its own if none are provided.
|
27
|
-
|
28
|
-
m4_rename([_AC_ARG_VAR_PRECIOUS],[real_PRECIOUS])
|
29
|
-
m4_define([_AC_ARG_VAR_PRECIOUS],[])
|
30
|
-
save_CFLAGS=$CFLAGS
|
31
|
-
AC_PROG_CC
|
32
|
-
AC_PROG_CXX
|
33
|
-
CFLAGS=$save_CFLAGS
|
34
|
-
m4_undefine([_AC_ARG_VAR_PRECIOUS])
|
35
|
-
m4_rename_force([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])
|
36
|
-
|
37
|
-
AC_SUBST(CFLAGS)
|
38
|
-
|
39
|
-
AM_PROG_AS
|
40
|
-
AM_PROG_CC_C_O
|
41
|
-
AC_PROG_LIBTOOL
|
42
|
-
AC_CONFIG_MACRO_DIR([m4])
|
43
|
-
|
44
|
-
# Test for 64-bit build.
|
45
|
-
AC_CHECK_SIZEOF([size_t])
|
46
|
-
|
47
|
-
AX_COMPILER_VENDOR
|
48
|
-
AX_CC_MAXOPT
|
49
|
-
# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
|
50
|
-
# compiler.
|
51
|
-
if test "$ax_cv_c_compiler_vendor" != "sun"; then
|
52
|
-
AX_CFLAGS_WARN_ALL
|
53
|
-
fi
|
54
|
-
|
55
|
-
if test "x$GCC" = "xyes"; then
|
56
|
-
CFLAGS="$CFLAGS -fexceptions"
|
57
|
-
fi
|
58
|
-
|
59
|
-
cat > local.exp <<EOF
|
60
|
-
set CC_FOR_TARGET "$CC"
|
61
|
-
set CXX_FOR_TARGET "$CXX"
|
62
|
-
EOF
|
63
|
-
|
64
|
-
AM_MAINTAINER_MODE
|
65
|
-
|
66
|
-
AC_CHECK_HEADERS(sys/mman.h)
|
67
|
-
AC_CHECK_FUNCS([mmap mkostemp])
|
68
|
-
AC_FUNC_MMAP_BLACKLIST
|
69
|
-
|
70
|
-
dnl The -no-testsuite modules omit the test subdir.
|
71
|
-
AM_CONDITIONAL(TESTSUBDIR, test -d $srcdir/testsuite)
|
72
|
-
|
73
|
-
TARGETDIR="unknown"
|
74
|
-
HAVE_LONG_DOUBLE_VARIANT=0
|
75
|
-
|
76
|
-
. ${srcdir}/configure.host
|
77
|
-
|
78
|
-
if test -n "${UNSUPPORTED}"; then
|
79
|
-
AC_MSG_ERROR(["libffi has not been ported to $host."])
|
80
|
-
fi
|
81
|
-
|
82
|
-
AC_SUBST(AM_RUNTESTFLAGS)
|
83
|
-
AC_SUBST(AM_LTLDFLAGS)
|
84
|
-
|
85
|
-
AC_HEADER_STDC
|
86
|
-
AC_CHECK_FUNCS(memcpy)
|
87
|
-
AC_FUNC_ALLOCA
|
88
|
-
|
89
|
-
AC_CHECK_SIZEOF(double)
|
90
|
-
AC_CHECK_SIZEOF(long double)
|
91
|
-
|
92
|
-
# Also AC_SUBST this variable for ffi.h.
|
93
|
-
if test -z "$HAVE_LONG_DOUBLE"; then
|
94
|
-
HAVE_LONG_DOUBLE=0
|
95
|
-
if test $ac_cv_sizeof_long_double != 0; then
|
96
|
-
if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
|
97
|
-
AC_DEFINE(HAVE_LONG_DOUBLE_VARIANT, 1, [Define if you support more than one size of the long double type])
|
98
|
-
HAVE_LONG_DOUBLE=1
|
99
|
-
else
|
100
|
-
if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
|
101
|
-
HAVE_LONG_DOUBLE=1
|
102
|
-
AC_DEFINE(HAVE_LONG_DOUBLE, 1, [Define if you have the long double type and it is bigger than a double])
|
103
|
-
fi
|
104
|
-
fi
|
105
|
-
fi
|
106
|
-
fi
|
107
|
-
AC_SUBST(HAVE_LONG_DOUBLE)
|
108
|
-
AC_SUBST(HAVE_LONG_DOUBLE_VARIANT)
|
109
|
-
|
110
|
-
AC_C_BIGENDIAN
|
111
|
-
|
112
|
-
GCC_AS_CFI_PSEUDO_OP
|
113
|
-
|
114
|
-
case "$TARGET" in
|
115
|
-
SPARC)
|
116
|
-
AC_CACHE_CHECK([assembler and linker support unaligned pc related relocs],
|
117
|
-
libffi_cv_as_sparc_ua_pcrel, [
|
118
|
-
save_CFLAGS="$CFLAGS"
|
119
|
-
save_LDFLAGS="$LDFLAGS"
|
120
|
-
CFLAGS="$CFLAGS -fpic"
|
121
|
-
LDFLAGS="$LDFLAGS -shared"
|
122
|
-
AC_TRY_LINK([asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");],,
|
123
|
-
[libffi_cv_as_sparc_ua_pcrel=yes],
|
124
|
-
[libffi_cv_as_sparc_ua_pcrel=no])
|
125
|
-
CFLAGS="$save_CFLAGS"
|
126
|
-
LDFLAGS="$save_LDFLAGS"])
|
127
|
-
if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
|
128
|
-
AC_DEFINE(HAVE_AS_SPARC_UA_PCREL, 1,
|
129
|
-
[Define if your assembler and linker support unaligned PC relative relocs.])
|
130
|
-
fi
|
131
|
-
|
132
|
-
AC_CACHE_CHECK([assembler .register pseudo-op support],
|
133
|
-
libffi_cv_as_register_pseudo_op, [
|
134
|
-
libffi_cv_as_register_pseudo_op=unknown
|
135
|
-
# Check if we have .register
|
136
|
-
AC_TRY_COMPILE(,[asm (".register %g2, #scratch");],
|
137
|
-
[libffi_cv_as_register_pseudo_op=yes],
|
138
|
-
[libffi_cv_as_register_pseudo_op=no])
|
139
|
-
])
|
140
|
-
if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
|
141
|
-
AC_DEFINE(HAVE_AS_REGISTER_PSEUDO_OP, 1,
|
142
|
-
[Define if your assembler supports .register.])
|
143
|
-
fi
|
144
|
-
;;
|
145
|
-
|
146
|
-
X86*)
|
147
|
-
AC_CACHE_CHECK([assembler supports pc related relocs],
|
148
|
-
libffi_cv_as_x86_pcrel, [
|
149
|
-
libffi_cv_as_x86_pcrel=no
|
150
|
-
echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
|
151
|
-
if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
|
152
|
-
libffi_cv_as_x86_pcrel=yes
|
153
|
-
fi
|
154
|
-
])
|
155
|
-
if test "x$libffi_cv_as_x86_pcrel" = xyes; then
|
156
|
-
AC_DEFINE(HAVE_AS_X86_PCREL, 1,
|
157
|
-
[Define if your assembler supports PC relative relocs.])
|
158
|
-
fi
|
159
|
-
;;
|
160
|
-
|
161
|
-
S390)
|
162
|
-
AC_CACHE_CHECK([compiler uses zarch features],
|
163
|
-
libffi_cv_as_s390_zarch, [
|
164
|
-
libffi_cv_as_s390_zarch=no
|
165
|
-
echo 'void foo(void) { bar(); bar(); }' > conftest.c
|
166
|
-
if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then
|
167
|
-
if grep -q brasl conftest.s; then
|
168
|
-
libffi_cv_as_s390_zarch=yes
|
169
|
-
fi
|
170
|
-
fi
|
171
|
-
])
|
172
|
-
if test "x$libffi_cv_as_s390_zarch" = xyes; then
|
173
|
-
AC_DEFINE(HAVE_AS_S390_ZARCH, 1,
|
174
|
-
[Define if the compiler uses zarch features.])
|
175
|
-
fi
|
176
|
-
;;
|
177
|
-
esac
|
178
|
-
|
179
|
-
# On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
|
180
|
-
AC_ARG_ENABLE(pax_emutramp,
|
181
|
-
[ --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC],
|
182
|
-
if test "$enable_pax_emutramp" = "yes"; then
|
183
|
-
AC_DEFINE(FFI_MMAP_EXEC_EMUTRAMP_PAX, 1,
|
184
|
-
[Define this if you want to enable pax emulated trampolines])
|
185
|
-
fi)
|
186
|
-
|
187
|
-
LT_SYS_SYMBOL_USCORE
|
188
|
-
if test "x$sys_symbol_underscore" = xyes; then
|
189
|
-
AC_DEFINE(SYMBOL_UNDERSCORE, 1, [Define if symbols are underscored.])
|
190
|
-
fi
|
191
|
-
|
192
|
-
FFI_EXEC_TRAMPOLINE_TABLE=0
|
193
|
-
case "$target" in
|
194
|
-
*arm*-apple-darwin* | aarch64-apple-darwin*)
|
195
|
-
FFI_EXEC_TRAMPOLINE_TABLE=1
|
196
|
-
AC_DEFINE(FFI_EXEC_TRAMPOLINE_TABLE, 1,
|
197
|
-
[Cannot use PROT_EXEC on this target, so, we revert to
|
198
|
-
alternative means])
|
199
|
-
;;
|
200
|
-
*-apple-darwin* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
|
201
|
-
AC_DEFINE(FFI_MMAP_EXEC_WRIT, 1,
|
202
|
-
[Cannot use malloc on this target, so, we revert to
|
203
|
-
alternative means])
|
204
|
-
;;
|
205
|
-
esac
|
206
|
-
AM_CONDITIONAL(FFI_EXEC_TRAMPOLINE_TABLE, test x$FFI_EXEC_TRAMPOLINE_TABLE = x1)
|
207
|
-
AC_SUBST(FFI_EXEC_TRAMPOLINE_TABLE)
|
208
|
-
|
209
|
-
if test x$TARGET = xX86_64; then
|
210
|
-
AC_CACHE_CHECK([toolchain supports unwind section type],
|
211
|
-
libffi_cv_as_x86_64_unwind_section_type, [
|
212
|
-
cat > conftest1.s << EOF
|
213
|
-
.text
|
214
|
-
.globl foo
|
215
|
-
foo:
|
216
|
-
jmp bar
|
217
|
-
.section .eh_frame,"a",@unwind
|
218
|
-
bar:
|
219
|
-
EOF
|
220
|
-
|
221
|
-
cat > conftest2.c << EOF
|
222
|
-
extern void foo();
|
223
|
-
int main(){foo();}
|
224
|
-
EOF
|
225
|
-
|
226
|
-
libffi_cv_as_x86_64_unwind_section_type=no
|
227
|
-
# we ensure that we can compile _and_ link an assembly file containing an @unwind section
|
228
|
-
# since the compiler can support it and not the linker (ie old binutils)
|
229
|
-
if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
|
230
|
-
$CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
|
231
|
-
libffi_cv_as_x86_64_unwind_section_type=yes
|
232
|
-
fi
|
233
|
-
])
|
234
|
-
if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
|
235
|
-
AC_DEFINE(HAVE_AS_X86_64_UNWIND_SECTION_TYPE, 1,
|
236
|
-
[Define if your assembler supports unwind section type.])
|
237
|
-
fi
|
238
|
-
fi
|
239
|
-
|
240
|
-
if test "x$GCC" = "xyes"; then
|
241
|
-
AC_CACHE_CHECK([whether .eh_frame section should be read-only],
|
242
|
-
libffi_cv_ro_eh_frame, [
|
243
|
-
libffi_cv_ro_eh_frame=no
|
244
|
-
echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
|
245
|
-
if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
|
246
|
-
objdump -h conftest.o > conftest.dump 2>&1
|
247
|
-
libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
|
248
|
-
if test "x$libffi_eh_frame_line" != "x"; then
|
249
|
-
libffi_test_line=`expr $libffi_eh_frame_line + 1`p
|
250
|
-
sed -n $libffi_test_line conftest.dump > conftest.line
|
251
|
-
if grep READONLY conftest.line > /dev/null; then
|
252
|
-
libffi_cv_ro_eh_frame=yes
|
253
|
-
fi
|
254
|
-
fi
|
255
|
-
fi
|
256
|
-
rm -f conftest.*
|
257
|
-
])
|
258
|
-
if test "x$libffi_cv_ro_eh_frame" = xyes; then
|
259
|
-
AC_DEFINE(HAVE_RO_EH_FRAME, 1,
|
260
|
-
[Define if .eh_frame sections should be read-only.])
|
261
|
-
AC_DEFINE(EH_FRAME_FLAGS, "a",
|
262
|
-
[Define to the flags needed for the .section .eh_frame directive. ])
|
263
|
-
else
|
264
|
-
AC_DEFINE(EH_FRAME_FLAGS, "aw",
|
265
|
-
[Define to the flags needed for the .section .eh_frame directive. ])
|
266
|
-
fi
|
267
|
-
|
268
|
-
AC_CACHE_CHECK([for __attribute__((visibility("hidden")))],
|
269
|
-
libffi_cv_hidden_visibility_attribute, [
|
270
|
-
echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
|
271
|
-
libffi_cv_hidden_visibility_attribute=no
|
272
|
-
if AC_TRY_COMMAND(${CC-cc} -Werror -S conftest.c -o conftest.s 1>&AS_MESSAGE_LOG_FD); then
|
273
|
-
if grep '\.hidden.*foo' conftest.s >/dev/null; then
|
274
|
-
libffi_cv_hidden_visibility_attribute=yes
|
275
|
-
fi
|
276
|
-
fi
|
277
|
-
rm -f conftest.*
|
278
|
-
])
|
279
|
-
if test $libffi_cv_hidden_visibility_attribute = yes; then
|
280
|
-
AC_DEFINE(HAVE_HIDDEN_VISIBILITY_ATTRIBUTE, 1,
|
281
|
-
[Define if __attribute__((visibility("hidden"))) is supported.])
|
282
|
-
fi
|
283
|
-
fi
|
284
|
-
|
285
|
-
AC_ARG_ENABLE(docs,
|
286
|
-
AC_HELP_STRING([--disable-docs],
|
287
|
-
[Disable building of docs (default: no)]),
|
288
|
-
[enable_docs=no],
|
289
|
-
[enable_docs=yes])
|
290
|
-
AM_CONDITIONAL(BUILD_DOCS, [test x$enable_docs = xyes])
|
291
|
-
|
292
|
-
AH_BOTTOM([
|
293
|
-
#ifdef HAVE_HIDDEN_VISIBILITY_ATTRIBUTE
|
294
|
-
#ifdef LIBFFI_ASM
|
295
|
-
#define FFI_HIDDEN(name) .hidden name
|
296
|
-
#else
|
297
|
-
#define FFI_HIDDEN __attribute__ ((visibility ("hidden")))
|
298
|
-
#endif
|
299
|
-
#else
|
300
|
-
#ifdef LIBFFI_ASM
|
301
|
-
#define FFI_HIDDEN(name)
|
302
|
-
#else
|
303
|
-
#define FFI_HIDDEN
|
304
|
-
#endif
|
305
|
-
#endif
|
306
|
-
])
|
307
|
-
|
308
|
-
AC_SUBST(TARGET)
|
309
|
-
AC_SUBST(TARGETDIR)
|
310
|
-
|
311
|
-
changequote(<,>)
|
312
|
-
TARGET_OBJ=
|
313
|
-
for i in $SOURCES; do
|
314
|
-
TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
|
315
|
-
done
|
316
|
-
changequote([,])
|
317
|
-
AC_SUBST(TARGET_OBJ)
|
318
|
-
|
319
|
-
AC_SUBST(SHELL)
|
320
|
-
|
321
|
-
AC_ARG_ENABLE(debug,
|
322
|
-
[ --enable-debug debugging mode],
|
323
|
-
if test "$enable_debug" = "yes"; then
|
324
|
-
AC_DEFINE(FFI_DEBUG, 1, [Define this if you want extra debugging.])
|
325
|
-
fi)
|
326
|
-
AM_CONDITIONAL(FFI_DEBUG, test "$enable_debug" = "yes")
|
327
|
-
|
328
|
-
AC_ARG_ENABLE(structs,
|
329
|
-
[ --disable-structs omit code for struct support],
|
330
|
-
if test "$enable_structs" = "no"; then
|
331
|
-
AC_DEFINE(FFI_NO_STRUCTS, 1, [Define this if you do not want support for aggregate types.])
|
332
|
-
fi)
|
333
|
-
AM_CONDITIONAL(FFI_DEBUG, test "$enable_debug" = "yes")
|
334
|
-
|
335
|
-
AC_ARG_ENABLE(raw-api,
|
336
|
-
[ --disable-raw-api make the raw api unavailable],
|
337
|
-
if test "$enable_raw_api" = "no"; then
|
338
|
-
AC_DEFINE(FFI_NO_RAW_API, 1, [Define this if you do not want support for the raw API.])
|
339
|
-
fi)
|
340
|
-
|
341
|
-
AC_ARG_ENABLE(purify-safety,
|
342
|
-
[ --enable-purify-safety purify-safe mode],
|
343
|
-
if test "$enable_purify_safety" = "yes"; then
|
344
|
-
AC_DEFINE(USING_PURIFY, 1, [Define this if you are using Purify and want to suppress spurious messages.])
|
345
|
-
fi)
|
346
|
-
|
347
|
-
AC_ARG_ENABLE(multi-os-directory,
|
348
|
-
[ --disable-multi-os-directory
|
349
|
-
disable use of gcc --print-multi-os-directory to change the library installation directory])
|
350
|
-
|
351
|
-
# These variables are only ever used when we cross-build to X86_WIN32.
|
352
|
-
# And we only support this with GCC, so...
|
353
|
-
if test "x$GCC" = "xyes"; then
|
354
|
-
if test -n "$with_cross_host" &&
|
355
|
-
test x"$with_cross_host" != x"no"; then
|
356
|
-
toolexecdir="${exec_prefix}"/'$(target_alias)'
|
357
|
-
toolexeclibdir="${toolexecdir}"/lib
|
358
|
-
else
|
359
|
-
toolexecdir="${libdir}"/gcc-lib/'$(target_alias)'
|
360
|
-
toolexeclibdir="${libdir}"
|
361
|
-
fi
|
362
|
-
if test x"$enable_multi_os_directory" != x"no"; then
|
363
|
-
multi_os_directory=`$CC $CFLAGS -print-multi-os-directory`
|
364
|
-
case $multi_os_directory in
|
365
|
-
.) ;; # Avoid trailing /.
|
366
|
-
../*) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
|
367
|
-
esac
|
368
|
-
fi
|
369
|
-
AC_SUBST(toolexecdir)
|
370
|
-
else
|
371
|
-
toolexeclibdir="${libdir}"
|
372
|
-
fi
|
373
|
-
AC_SUBST(toolexeclibdir)
|
374
|
-
|
375
|
-
# Check linker support.
|
376
|
-
LIBFFI_ENABLE_SYMVERS
|
377
|
-
|
378
|
-
AC_CONFIG_COMMANDS(include, [test -d include || mkdir include])
|
379
|
-
AC_CONFIG_COMMANDS(src, [
|
380
|
-
test -d src || mkdir src
|
381
|
-
test -d src/$TARGETDIR || mkdir src/$TARGETDIR
|
382
|
-
], [TARGETDIR="$TARGETDIR"])
|
383
|
-
|
384
|
-
AC_CONFIG_LINKS(include/ffitarget.h:src/$TARGETDIR/ffitarget.h)
|
385
|
-
|
386
|
-
AC_CONFIG_FILES(include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile doc/Makefile libffi.pc)
|
387
|
-
|
388
|
-
AC_OUTPUT
|
@@ -1,272 +0,0 @@
|
|
1
|
-
# configure.host
|
2
|
-
#
|
3
|
-
# This shell script handles all host based configuration for libffi.
|
4
|
-
#
|
5
|
-
|
6
|
-
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
7
|
-
# Most of the time we can define all the variables all at once...
|
8
|
-
case "${host}" in
|
9
|
-
aarch64*-*-*)
|
10
|
-
TARGET=AARCH64; TARGETDIR=aarch64
|
11
|
-
SOURCES="ffi.c sysv.S"
|
12
|
-
;;
|
13
|
-
|
14
|
-
alpha*-*-*)
|
15
|
-
TARGET=ALPHA; TARGETDIR=alpha;
|
16
|
-
# Support 128-bit long double, changeable via command-line switch.
|
17
|
-
HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
|
18
|
-
SOURCES="ffi.c osf.S"
|
19
|
-
;;
|
20
|
-
|
21
|
-
arc*-*-*)
|
22
|
-
TARGET=ARC; TARGETDIR=arc
|
23
|
-
SOURCES="ffi.c arcompact.S"
|
24
|
-
;;
|
25
|
-
|
26
|
-
arm*-*-*)
|
27
|
-
TARGET=ARM; TARGETDIR=arm
|
28
|
-
SOURCES="ffi.c sysv.S"
|
29
|
-
;;
|
30
|
-
|
31
|
-
avr32*-*-*)
|
32
|
-
TARGET=AVR32; TARGETDIR=avr32
|
33
|
-
SOURCES="ffi.c sysv.S"
|
34
|
-
;;
|
35
|
-
|
36
|
-
bfin*)
|
37
|
-
TARGET=BFIN; TARGETDIR=bfin
|
38
|
-
SOURCES="ffi.c sysv.S"
|
39
|
-
;;
|
40
|
-
|
41
|
-
cris-*-*)
|
42
|
-
TARGET=LIBFFI_CRIS; TARGETDIR=cris
|
43
|
-
SOURCES="ffi.c sysv.S"
|
44
|
-
;;
|
45
|
-
|
46
|
-
frv-*-*)
|
47
|
-
TARGET=FRV; TARGETDIR=frv
|
48
|
-
SOURCES="ffi.c eabi.S"
|
49
|
-
;;
|
50
|
-
|
51
|
-
hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
|
52
|
-
TARGET=PA_LINUX; TARGETDIR=pa
|
53
|
-
SOURCES="ffi.c linux.S"
|
54
|
-
;;
|
55
|
-
hppa*64-*-hpux*)
|
56
|
-
TARGET=PA64_HPUX; TARGETDIR=pa
|
57
|
-
;;
|
58
|
-
hppa*-*-hpux*)
|
59
|
-
TARGET=PA_HPUX; TARGETDIR=pa
|
60
|
-
SOURCES="ffi.c hpux32.S"
|
61
|
-
;;
|
62
|
-
|
63
|
-
i?86-*-freebsd* | i?86-*-openbsd*)
|
64
|
-
TARGET=X86_FREEBSD; TARGETDIR=x86
|
65
|
-
;;
|
66
|
-
|
67
|
-
i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix* \
|
68
|
-
| x86_64-*-cygwin* | x86_64-*-mingw* | x86_64-*-win* )
|
69
|
-
TARGETDIR=x86
|
70
|
-
if test $ac_cv_sizeof_size_t = 4; then
|
71
|
-
TARGET=X86_WIN32
|
72
|
-
else
|
73
|
-
TARGET=X86_WIN64
|
74
|
-
fi
|
75
|
-
if test "${ax_cv_c_compiler_vendor}" = "microsoft"; then
|
76
|
-
MSVC=1
|
77
|
-
if test $ac_cv_sizeof_size_t = 4; then
|
78
|
-
# libffi does not support microsoft tools for 32-bit windows
|
79
|
-
# hosts. Try porting src/x86/sysv.S to intel assembly
|
80
|
-
# format.
|
81
|
-
UNSUPPORTED=1
|
82
|
-
fi
|
83
|
-
fi
|
84
|
-
# All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
|
85
|
-
# We must also check with_cross_host to decide if this is a native
|
86
|
-
# or cross-build and select where to install dlls appropriately.
|
87
|
-
if test -n "$with_cross_host" &&
|
88
|
-
test x"$with_cross_host" != x"no"; then
|
89
|
-
AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
|
90
|
-
else
|
91
|
-
AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
|
92
|
-
fi
|
93
|
-
;;
|
94
|
-
|
95
|
-
i?86-*-darwin* | x86_64-*-darwin*)
|
96
|
-
TARGETDIR=x86
|
97
|
-
if test $ac_cv_sizeof_size_t = 4; then
|
98
|
-
TARGET=X86_DARWIN
|
99
|
-
else
|
100
|
-
TARGET=X86_64
|
101
|
-
fi
|
102
|
-
;;
|
103
|
-
|
104
|
-
i?86-*-* | x86_64-*-* | amd64-*)
|
105
|
-
TARGETDIR=x86
|
106
|
-
if test $ac_cv_sizeof_size_t = 4; then
|
107
|
-
case "$host" in
|
108
|
-
x86_64-*x32|x86_64-x32-*)
|
109
|
-
TARGET=X86_64
|
110
|
-
;;
|
111
|
-
*)
|
112
|
-
TARGET=X86
|
113
|
-
;;
|
114
|
-
esac
|
115
|
-
else
|
116
|
-
TARGET=X86_64;
|
117
|
-
fi
|
118
|
-
;;
|
119
|
-
|
120
|
-
ia64*-*-*)
|
121
|
-
TARGET=IA64; TARGETDIR=ia64
|
122
|
-
SOURCES="ffi.c unix.S"
|
123
|
-
;;
|
124
|
-
|
125
|
-
m32r*-*-*)
|
126
|
-
TARGET=M32R; TARGETDIR=m32r
|
127
|
-
SOURCES="ffi.c sysv.S"
|
128
|
-
;;
|
129
|
-
|
130
|
-
m68k-*-*)
|
131
|
-
TARGET=M68K; TARGETDIR=m68k
|
132
|
-
SOURCES="ffi.c sysv.S"
|
133
|
-
;;
|
134
|
-
|
135
|
-
m88k-*-*)
|
136
|
-
TARGET=M88K; TARGETDIR=m88k
|
137
|
-
SOURCES="ffi.c obsd.S"
|
138
|
-
;;
|
139
|
-
|
140
|
-
microblaze*-*-*)
|
141
|
-
TARGET=MICROBLAZE; TARGETDIR=microblaze
|
142
|
-
SOURCES="ffi.c sysv.S"
|
143
|
-
;;
|
144
|
-
|
145
|
-
moxie-*-*)
|
146
|
-
TARGET=MOXIE; TARGETDIR=moxie
|
147
|
-
SOURCES="ffi.c eabi.S"
|
148
|
-
;;
|
149
|
-
|
150
|
-
metag-*-*)
|
151
|
-
TARGET=METAG; TARGETDIR=metag
|
152
|
-
SOURCES="ffi.c sysv.S"
|
153
|
-
;;
|
154
|
-
|
155
|
-
mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
|
156
|
-
TARGET=MIPS; TARGETDIR=mips
|
157
|
-
;;
|
158
|
-
mips*-*linux* | mips*-*-openbsd*)
|
159
|
-
# Support 128-bit long double for NewABI.
|
160
|
-
HAVE_LONG_DOUBLE='defined(__mips64)'
|
161
|
-
TARGET=MIPS; TARGETDIR=mips
|
162
|
-
;;
|
163
|
-
|
164
|
-
nios2*-linux*)
|
165
|
-
TARGET=NIOS2; TARGETDIR=nios2
|
166
|
-
SOURCES="ffi.c sysv.S"
|
167
|
-
;;
|
168
|
-
|
169
|
-
or1k*-linux*)
|
170
|
-
TARGET=OR1K; TARGETDIR=or1k
|
171
|
-
SOURCES="ffi.c sysv.S"
|
172
|
-
;;
|
173
|
-
|
174
|
-
powerpc*-*-linux* | powerpc-*-sysv*)
|
175
|
-
TARGET=POWERPC; TARGETDIR=powerpc
|
176
|
-
HAVE_LONG_DOUBLE_VARIANT=1
|
177
|
-
;;
|
178
|
-
powerpc-*-amigaos*)
|
179
|
-
TARGET=POWERPC; TARGETDIR=powerpc
|
180
|
-
;;
|
181
|
-
powerpc-*-beos*)
|
182
|
-
TARGET=POWERPC; TARGETDIR=powerpc
|
183
|
-
;;
|
184
|
-
powerpc-*-darwin* | powerpc64-*-darwin*)
|
185
|
-
TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
|
186
|
-
;;
|
187
|
-
powerpc-*-aix* | rs6000-*-aix*)
|
188
|
-
TARGET=POWERPC_AIX; TARGETDIR=powerpc
|
189
|
-
;;
|
190
|
-
powerpc-*-freebsd* | powerpc-*-openbsd* | powerpc-*-netbsd*)
|
191
|
-
TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
|
192
|
-
HAVE_LONG_DOUBLE_VARIANT=1
|
193
|
-
;;
|
194
|
-
powerpc64-*-freebsd*)
|
195
|
-
TARGET=POWERPC; TARGETDIR=powerpc
|
196
|
-
;;
|
197
|
-
powerpc*-*-rtems*)
|
198
|
-
TARGET=POWERPC; TARGETDIR=powerpc
|
199
|
-
;;
|
200
|
-
|
201
|
-
s390-*-* | s390x-*-*)
|
202
|
-
TARGET=S390; TARGETDIR=s390
|
203
|
-
SOURCES="ffi.c sysv.S"
|
204
|
-
;;
|
205
|
-
|
206
|
-
sh-*-* | sh[34]*-*-*)
|
207
|
-
TARGET=SH; TARGETDIR=sh
|
208
|
-
SOURCES="ffi.c sysv.S"
|
209
|
-
;;
|
210
|
-
sh64-*-* | sh5*-*-*)
|
211
|
-
TARGET=SH64; TARGETDIR=sh64
|
212
|
-
SOURCES="ffi.c sysv.S"
|
213
|
-
;;
|
214
|
-
|
215
|
-
sparc*-*-*)
|
216
|
-
TARGET=SPARC; TARGETDIR=sparc
|
217
|
-
SOURCES="ffi.c ffi64.c v8.S v9.S"
|
218
|
-
;;
|
219
|
-
|
220
|
-
tile*-*)
|
221
|
-
TARGET=TILE; TARGETDIR=tile
|
222
|
-
SOURCES="ffi.c tile.S"
|
223
|
-
;;
|
224
|
-
|
225
|
-
vax-*-*)
|
226
|
-
TARGET=VAX; TARGETDIR=vax
|
227
|
-
SOURCES="ffi.c elfbsd.S"
|
228
|
-
;;
|
229
|
-
|
230
|
-
xtensa*-*)
|
231
|
-
TARGET=XTENSA; TARGETDIR=xtensa
|
232
|
-
SOURCES="ffi.c sysv.S"
|
233
|
-
;;
|
234
|
-
esac
|
235
|
-
|
236
|
-
# ... but some of the cases above share configury.
|
237
|
-
case "${TARGET}" in
|
238
|
-
MIPS)
|
239
|
-
SOURCES="ffi.c o32.S n32.S"
|
240
|
-
;;
|
241
|
-
POWERPC)
|
242
|
-
SOURCES="ffi.c ffi_sysv.c ffi_linux64.c sysv.S ppc_closure.S"
|
243
|
-
SOURCES="${SOURCES} linux64.S linux64_closure.S"
|
244
|
-
;;
|
245
|
-
POWERPC_AIX)
|
246
|
-
SOURCES="ffi_darwin.c aix.S aix_closure.S"
|
247
|
-
;;
|
248
|
-
POWERPC_DARWIN)
|
249
|
-
SOURCES="ffi_darwin.c darwin.S darwin_closure.S"
|
250
|
-
;;
|
251
|
-
POWERPC_FREEBSD)
|
252
|
-
SOURCES="ffi.c ffi_sysv.c sysv.S ppc_closure.S"
|
253
|
-
;;
|
254
|
-
X86 | X86_DARWIN | X86_FREEBSD | X86_WIN32)
|
255
|
-
SOURCES="ffi.c sysv.S"
|
256
|
-
;;
|
257
|
-
X86_64)
|
258
|
-
SOURCES="ffi64.c unix64.S ffiw64.c win64.S"
|
259
|
-
;;
|
260
|
-
X86_WIN64)
|
261
|
-
if test "$MSVC" = 1; then
|
262
|
-
SOURCES="ffiw64.c win64_intel.S"
|
263
|
-
else
|
264
|
-
SOURCES="ffiw64.c win64.S"
|
265
|
-
fi
|
266
|
-
;;
|
267
|
-
esac
|
268
|
-
|
269
|
-
# If we failed to configure SOURCES, we can't do anything.
|
270
|
-
if test -z "${SOURCES}"; then
|
271
|
-
UNSUPPORTED=1
|
272
|
-
fi
|