Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / cf / crosstools.m4
CommitLineData
805e021f
CE
1AC_DEFUN([OPENAFS_CROSSTOOLS],[
2if test "x$with_crosstools_dir" != "x"; then
3 if test -f "$with_crosstools_dir/rxgen" -a -f "$with_crosstools_dir/compile_et" -a -f "$with_crosstools_dir/config"; then
4 COMPILE_ET_PATH=$with_crosstools_dir/compile_et
5 CONFIGTOOL_PATH=$with_crosstools_dir/config
6 RXGEN_PATH=$with_crosstools_dir/rxgen
7 else
8 AC_MSG_ERROR(Tools not found in $with_crosstools_dir)
9 exit 1
10 fi
11else
12 COMPILE_ET_PATH="${SRCDIR_PARENT}/src/comerr/compile_et"
13 CONFIGTOOL_PATH="${SRCDIR_PARENT}/src/config/config"
14 RXGEN_PATH="${SRCDIR_PARENT}/src/rxgen/rxgen"
15fi
16AC_SUBST(COMPILE_ET_PATH)
17AC_SUBST(CONFIGTOOL_PATH)
18AC_SUBST(RXGEN_PATH)
19])