Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 94268 invoked by uid 500); 2 Jun 2003 12:50:53 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 94237 invoked from network); 2 Jun 2003 12:50:53 -0000 Date: 2 Jun 2003 12:50:53 -0000 Message-ID: <20030602125053.16810.qmail@icarus.apache.org> From: striker@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr apr-config.in X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N striker 2003/06/02 05:50:53 Modified: . apr-config.in Log: Add a check to see if the sourcedir actually exists. If it doesn't, which is likely when installed by a package, don't try and expand the path using realpath. Revision Changes Path 1.34 +3 -1 apr/apr-config.in Index: apr-config.in =================================================================== RCS file: /home/cvs/apr/apr-config.in,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- apr-config.in 21 Apr 2003 14:21:59 -0000 1.33 +++ apr-config.in 2 Jun 2003 12:50:52 -0000 1.34 @@ -134,7 +134,9 @@ # Otherwise, being in a symlinked dir may result in incorrect output. if test -x "`which realpath 2>/dev/null`"; then thisdir="`realpath $thisdir`" - APR_SOURCE_DIR="`realpath $APR_SOURCE_DIR`" + if test -d "$APR_SOURCE_DIR"; then + APR_SOURCE_DIR="`realpath $APR_SOURCE_DIR`" + fi if test -n $tmpbindir; then tmpbindir="`realpath $tmpbindir`" fi