Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 23e41fb

Browse files
committed
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.
1 parent 7a2fdd9 commit 23e41fb

File tree

5 files changed

+484
-422
lines changed

5 files changed

+484
-422
lines changed

config/prep_buildtree

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,25 @@ elif test x"$1" = x"--help"; then
1515
echo "$help"
1616
exit 0
1717
fi
18-
sourcetree=$1
1918

20-
buildtree=${2:-'.'}
19+
unset CDPATH
20+
21+
sourcetree=`cd $1 && pwd`
22+
23+
buildtree=`cd ${2:-'.'} && pwd`
2124

2225
for item in `find "$sourcetree" -type d \( -name CVS -prune -o -print \)`; do
2326
subdir=`expr "$item" : "$sourcetree\(.*\)"`
2427
if test ! -d "$buildtree/$subdir"; then
25-
mkdir -p "$buildtree/$subdir" || exit
28+
mkdir -p "$buildtree/$subdir" || exit 1
2629
fi
2730
done
2831

2932
for item in `find "$sourcetree" -name Makefile -o -name GNUmakefile`; do
3033
subdir=`expr "$item" : "$sourcetree\(.*\)"`
3134
if test ! -f "${item}.in"; then
32-
ln -fs "$item" "$buildtree/$subdir" || exit
35+
ln -fs "$item" "$buildtree/$subdir" || exit 1
3336
fi
3437
done
38+
39+
exit 0

0 commit comments

Comments
 (0)