diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2001-03-03 15:53:41 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2001-03-03 15:53:41 +0000 |
commit | 23e41fb7fbce0ef6ddcba3caafbde772ede62af6 (patch) | |
tree | c0f9029f4caf339cc31b038388d8adc41c613d1d /config | |
parent | 7a2fdd96329571dc65f2d4cba8a9b441c2f202fd (diff) | |
download | postgresql-23e41fb7fbce0ef6ddcba3caafbde772ede62af6.tar.gz |
Add configure check for -lunix, for QNX.
Recode test for equality of source and build directory using 'test -ef',
because even using pwd you might not get equal strings. Thanks, QNX.
Diffstat (limited to 'config')
-rw-r--r-- | config/prep_buildtree | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/config/prep_buildtree b/config/prep_buildtree index 0a421a046c..a9faea85a8 100644 --- a/config/prep_buildtree +++ b/config/prep_buildtree @@ -15,20 +15,25 @@ elif test x"$1" = x"--help"; then echo "$help" exit 0 fi -sourcetree=$1 -buildtree=${2:-'.'} +unset CDPATH + +sourcetree=`cd $1 && pwd` + +buildtree=`cd ${2:-'.'} && pwd` for item in `find "$sourcetree" -type d \( -name CVS -prune -o -print \)`; do subdir=`expr "$item" : "$sourcetree\(.*\)"` if test ! -d "$buildtree/$subdir"; then - mkdir -p "$buildtree/$subdir" || exit + mkdir -p "$buildtree/$subdir" || exit 1 fi done for item in `find "$sourcetree" -name Makefile -o -name GNUmakefile`; do subdir=`expr "$item" : "$sourcetree\(.*\)"` if test ! -f "${item}.in"; then - ln -fs "$item" "$buildtree/$subdir" || exit + ln -fs "$item" "$buildtree/$subdir" || exit 1 fi done + +exit 0 |