mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Fix the hanging problem when invoked with -xpm (and possibly other flags) and
no include/Xm.h is found anywhere.
This commit is contained in:
parent
09fd23574e
commit
8983760953
@ -431,17 +431,21 @@ fi
|
||||
##
|
||||
for d in $MOTIF_SEARCH_PATH
|
||||
do
|
||||
if [ -d $d/include/Xm -a -f $d/include/Xm/Xm.h ]
|
||||
# Check for $d that exists and is readable
|
||||
if [ -d $d -a -r $d ]
|
||||
then
|
||||
MOTIF_INCLUDE_DIR=$d/include
|
||||
break;
|
||||
if [ -d $d/include/Xm -a -f $d/include/Xm/Xm.h ]
|
||||
then
|
||||
MOTIF_INCLUDE_DIR=$d/include
|
||||
break;
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
##
|
||||
## Make sure the <Xm/Xm.h> header was found.
|
||||
##
|
||||
if [ -z $MOTIF_INCLUDE_DIR ]
|
||||
if [ "$MOTIF_INCLUDE_DIR" = "unknown" ]
|
||||
then
|
||||
echo
|
||||
echo "Could not find <Xm/Xm.h> anywhere on your system."
|
||||
|
Loading…
Reference in New Issue
Block a user