configure.in
上传用户:sy_wanhua
上传日期:2013-07-25
资源大小:3048k
文件大小:1k
- # this is our autoconf generator. in reality, autoconf does much less
- # work than in a "traditional" make system. This is a feature, not a bug.
- AC_INIT(build/Makefile.pre)dnl
- AC_DEFUN(AC_CHECK_DIR, echo $ac_n checking for "$2" directory... "" ;
- if test -d "$2" ; then HAVE_$1=1 ; echo 'found' ; else HAVE_$1=0 ; echo 'not found' ; fi
- )dnl
- AC_SUBST(HAVE_DO_NOT_DISTRIBUTE)dnl
- AC_CHECK_DIR(DO_NOT_DISTRIBUTE, do-not-distribute)dnl
- AC_PATH_PROG(GNU_MAKE, make, '', $PATH:/usr/bin:/usr/local/bin)dnl
- AC_ARG_WITH(toolchain, [
- Build options:
- --with-toolchain=gnu use alternate toolchain to compile.],
- [VOCAL_USE_TOOLCHAIN=$with_toolchain],
- [VOCAL_USE_TOOLCHAIN=default])
- AC_SUBST(VOCAL_USE_TOOLCHAIN)dnl
- AC_ARG_WITH(builddir, [
- Toolchain options:
- --with-builddir=/path/to/builddir build in a local directory],
- [echo USE_BUILDDIR=$with_builddir > .make_prefs])
- AC_ARG_WITH(ar, [
- --with-ar=/usr/local/bin/ar path to GNU ar],
- [VOCAL_AR_PATH=$with_ar])
- AC_SUBST(VOCAL_AR_PATH)dnl
- AC_OUTPUT(build/Makefile.conf)dnl