From 69e5d63839a551a931933bce9a4a06c06732a480 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 13 Jul 1997 19:52:10 +0000 Subject: [PATCH] AIX nm fix from Gerhard --- src/backend/port/aix/mkldexport.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/backend/port/aix/mkldexport.sh b/src/backend/port/aix/mkldexport.sh index 87f78b05f4..6242b609c2 100755 --- a/src/backend/port/aix/mkldexport.sh +++ b/src/backend/port/aix/mkldexport.sh @@ -17,7 +17,19 @@ # # setting this to nm -B might be better -NM=/usr/ucb/nm +# ... due to changes in AIX 4.x ... +# ... let us search in different directories - Gerhard Reithofer +if [ -x /usr/ucb/nm ] +then NM=/usr/ucb/nm +elif [ -x /usr/bin/nm ] +then NM=/usr/bin/nm +elif [ -x /usr/ccs/bin/nm ] +then NM=/usr/ccs/bin/nm +elif [ -x /usr/usg/bin/nm ] +then NM=/usr/usg/bin/nm +else echo "Fatal error: cannot find `nm' ... please check your installation." + exit 1 +fi CMDNAME=`basename $0` if [ -z "$1" ]; then