X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpandora_vc_build.m4;fp=m4%2Fpandora_vc_build.m4;h=ada6ccf6c693f7e66419ac403356745b7ffad330;hb=36c6f6f7178cd69c4c0746dfee06e67f8e83cb0a;hp=0000000000000000000000000000000000000000;hpb=7968ba456c94e012f278f6e27a784550d5d48b04;p=awesomized%2Flibmemcached diff --git a/m4/pandora_vc_build.m4 b/m4/pandora_vc_build.m4 new file mode 100644 index 00000000..ada6ccf6 --- /dev/null +++ b/m4/pandora_vc_build.m4 @@ -0,0 +1,32 @@ +dnl Copyright (C) 2009 Sun Microsystems +dnl This file is free software; Sun Microsystems +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +AC_DEFUN([PANDORA_BUILDING_FROM_VC],[ + + ac_cv_building_from_vc=no + + AS_IF([test -d "${srcdir}/.bzr"],[ + ac_cv_building_from_bzr=yes + ac_cv_building_from_vc=yes + ],[ + ac_cv_building_from_bzr=no + ]) + + AS_IF([test -d "${srcdir}/.svn"],[ + ac_cv_building_from_svn=yes + ac_cv_building_from_vc=yes + ],[ + ac_cv_building_from_svn=no + ]) + + AS_IF([test -d "${srcdir}/.hg"],[ + ac_cv_building_from_hg=yes + ac_cv_building_from_vc=yes + ],[ + ac_cv_building_from_hg=no + ]) + +]) +