Mercurial > emacs
comparison configure @ 31153:49294d7cfd5b
*** empty log message ***
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 24 Aug 2000 11:42:48 +0000 |
parents | e53905a0a16b |
children | 0c280e986946 |
comparison
equal
deleted
inserted
replaced
31152:fb30bcf39f12 | 31153:49294d7cfd5b |
---|---|
682 : | 682 : |
683 fi | 683 fi |
684 | 684 |
685 | 685 |
686 #### Make srcdir absolute, if it isn't already. It's important to | 686 #### Make srcdir absolute, if it isn't already. It's important to |
687 #### avoid running the path through pwd unnecessary, since pwd can | 687 #### avoid running the path through pwd unnecessarily, since pwd can |
688 #### give you automounter prefixes, which can go away. We do all this | 688 #### give you automounter prefixes, which can go away. We do all this |
689 #### so Emacs can find its files when run uninstalled. | 689 #### so Emacs can find its files when run uninstalled. |
690 ## Make sure CDPATH doesn't affect cd (in case PWD is relative). | |
691 unset CDPATH | |
690 case "${srcdir}" in | 692 case "${srcdir}" in |
691 /* ) ;; | 693 /* ) ;; |
692 . ) | 694 . ) |
693 ## We may be able to use the $PWD environment variable to make this | 695 ## We may be able to use the $PWD environment variable to make this |
694 ## absolute. But sometimes PWD is inaccurate. | 696 ## absolute. But sometimes PWD is inaccurate. |
695 ## Make sure CDPATH doesn't affect cd (in case PWD is relative). | 697 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}" ; |
696 unset CDPATH | |
697 if test "${PWD}" != "" && test "`(cd ${PWD} ; sh -c pwd)`" = "`pwd`" ; | |
698 then | 698 then |
699 srcdir="$PWD" | 699 srcdir="$PWD" |
700 else | 700 else |
701 srcdir="`(cd ${srcdir}; pwd)`" | 701 srcdir="`(cd ${srcdir}; pwd)`" |
702 fi | 702 fi |