summaryrefslogtreecommitdiffstats
path: root/src/aclocal.m4
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2011-09-18 09:43:33 +0000
committerKen Raeburn <raeburn@mit.edu>2011-09-18 09:43:33 +0000
commita6c06f10e95d47e9e33f7baa3f72624cbeece4f6 (patch)
tree56bc410d0544627359b04eddd033613f243c14bd /src/aclocal.m4
parent0bc7ef8f41450025e5024ba428cef2ec36fd1076 (diff)
downloadkrb5-a6c06f10e95d47e9e33f7baa3f72624cbeece4f6.tar.gz
krb5-a6c06f10e95d47e9e33f7baa3f72624cbeece4f6.tar.xz
krb5-a6c06f10e95d47e9e33f7baa3f72624cbeece4f6.zip
Drop code for finding top source directory among several
possibilities, since with only one configure script now, we know exactly where it is. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25183 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/aclocal.m4')
-rw-r--r--src/aclocal.m421
1 files changed, 1 insertions, 20 deletions
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index e1eef0ba83..68ef439d7f 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -3,26 +3,7 @@ AC_COPYRIGHT([Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 20
Massachusetts Institute of Technology.
])
dnl
-dnl Figure out the top of the source and build trees. We depend on localdir
-dnl being a relative pathname; we could make it general later, but for now
-dnl this is good enough.
-dnl
-dnl esyscmd([test -r aclocal.m4 && echo YES])
-define([fileexists],[dnl
-pushdef([x],esyscmd([if test -r $1; then echo YES;else echo NO; fi]))dnl
-dnl Strip out newline.
-ifelse(x,[YES
-],[YES],x,[NO
-],[NO],UNKNOWN)[]popdef([x])])
-define([K5_TOPDIR],dnl
-ifelse(fileexists(./aclocal.m4),YES,[.],[dnl
-ifelse(fileexists(../aclocal.m4),YES,[..],[dnl
-ifelse(fileexists(../../aclocal.m4),YES,[../..],[dnl
-ifelse(fileexists(../../../aclocal.m4),YES,[../../..],[dnl
-ifelse(fileexists(../../../../aclocal.m4),YES,[../../../..],[dnl
-errprint(__file__:__line__: Cannot find path to aclocal.m4[
-]) m4exit(1) dnl sometimes that does not work?
-builtin(m4exit,1)UNKNOWN])])])])]))
+define([K5_TOPDIR],[.])dnl
dnl
AC_DEFUN(V5_SET_TOPDIR,[dnl
ac_reltopdir="K5_TOPDIR"