-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
- ])
-
- AS_IF([test -d "${srcdir}/.git"],[
- ac_cv_building_from_git=yes
- ac_cv_building_from_vc=yes
- ],[
- ac_cv_building_from_git=no
- ])
-
-
+AC_DEFUN([PANDORA_TEST_VC_DIR],[
+ pandora_building_from_vc=no
+
+ if test -d ".bzr" ; then
+ pandora_building_from_bzr=yes
+ pandora_building_from_vc=yes
+ else
+ pandora_building_from_bzr=no
+ fi
+
+ if test -d ".svn" ; then
+ pandora_building_from_svn=yes
+ pandora_building_from_vc=yes
+ else
+ pandora_building_from_svn=no
+ fi
+
+ if test -d ".hg" ; then
+ pandora_building_from_hg=yes
+ pandora_building_from_vc=yes
+ else
+ pandora_building_from_hg=no
+ fi
+
+ if test -d ".git" ; then
+ pandora_building_from_git=yes
+ pandora_building_from_vc=yes
+ else
+ pandora_building_from_git=no
+ fi