forked from ruby-rice/rice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
55 lines (42 loc) · 1.08 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
AC_INIT(rice, 1.1)
AC_CONFIG_SRCDIR(rice)
AM_INIT_AUTOMAKE([subdir-objects])
AC_CONFIG_HEADERS(rice/config.hpp)
AC_LANG(C++)
AC_PROG_CXX
AC_PROG_RANLIB
RICE_CPPFLAGS="$CPPFLAGS"
AC_SUBST(RICE_CPPFLAGS)
RICE_LDFLAGS="$LDFLAGS"
AC_SUBST(RICE_LDFLAGS)
AC_MINGW32
if test x"${MINGW32}"x = xyesx; then
RICE_USING_MINGW32="true"
else
RICE_USING_MINGW32="false"
fi
m4_include(check_stdcxx_11.ac)
AX_CXX_COMPILE_STDCXX_11(,optional)
AC_SUBST(RICE_USING_MINGW32)
m4_include(ruby.ac)
RB_INIT_RUBY
m4_include(doxygen.ac)
DX_HTML_FEATURE(ON)
DX_CHM_FEATURE(OFF)
DX_CHI_FEATURE(OFF)
DX_MAN_FEATURE(OFF)
DX_RTF_FEATURE(OFF)
DX_XML_FEATURE(OFF)
DX_PDF_FEATURE(OFF)
DX_PS_FEATURE(OFF)
DX_INIT_DOXYGEN(rice, Doxyfile, doc)
RICE_SAMPLES="enum map inheritance"
AC_SUBST(RICE_SAMPLES)
RICE_ROOT=`pwd`
AC_SUBST(RICE_ROOT)
AC_CONFIG_FILES(Makefile rice/Makefile test/Makefile sample/Makefile
ruby/Makefile ruby/lib/Makefile test/ext/Makefile
ruby/lib/mkmf-rice.rb rice/detail/ruby_version_code.hpp)
AC_OUTPUT
dnl Work around a bug in older versions of Rubygems
chmod +x install-sh