-
Notifications
You must be signed in to change notification settings - Fork 4
/
configure.in
48 lines (37 loc) · 1.05 KB
/
configure.in
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
AC_INIT(f2j, 0.8.1, [[email protected]])
AC_REVISION([$Revision$])
AC_CONFIG_SRCDIR(f2j_TODO.txt)
if test "x$prefix" != xNONE; then
F2J_INSTALL_PREFIX=${prefix}
else
F2J_INSTALL_PREFIX=`pwd`
fi
AC_SUBST(F2J_INSTALL_PREFIX)
prefix=$F2J_INSTALL_PREFIX
AC_CONFIG_SUBDIRS(libbytecode)
AC_PROG_CC(gcc cc ecc xlc)
AC_C_BIGENDIAN
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_PATH_PROG(AR, ar)
AC_SUBST(AR)
AC_PATH_PROG(JAVAC, javac)
AC_SUBST(JAVAC)
AC_PATH_PROG(JAVA, java)
AC_SUBST(JAVA)
# AC_PROG_YACC
AC_CHECK_PROGS(YACC,'bison -y' yacc byacc,"")
F2J_VERSION=AC_PACKAGE_VERSION
AC_SUBST(F2J_VERSION)
if test "x$YACC" = x; then
AC_MSG_ERROR([You need yacc or bison.])
fi
AC_ARG_WITH(libbytecode-dir,
[ --with-libbytecode-dir=dir directory containing bytecode library],
[BYTE_DIR="$with_libbytecode_dir"],
[BYTE_DIR="$PWD/libbytecode"])
AC_SUBST(BYTE_DIR)
F2J_PACKAGE_STRING=AC_PACKAGE_NAME-AC_PACKAGE_VERSION
AC_SUBST(F2J_PACKAGE_STRING)
AC_CONFIG_FILES(Makefile src/make.def goto_trans/make.def util/make.def)
AC_OUTPUT(src/f2j-config.h)