ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/ac-tools/aclocal.m4
(Generate patch)

Comparing trunk/OOPSE-2.0/ac-tools/aclocal.m4 (file contents):
Revision 1515 by gezelter, Fri Sep 24 04:16:43 2004 UTC vs.
Revision 1516 by gezelter, Fri Oct 1 21:22:27 2004 UTC

# Line 1065 | Line 1065 | AC_DEFUN([adl_FUNC_GETOPT_LONG],
1065        AC_LIBOBJ(getopt)
1066        AC_LIBOBJ(getopt1)
1067        AC_CONFIG_LINKS([utils/getopt.h:utils/gnugetopt.h])])])])
1068 +
1069 +
1070 + AC_DEFUN([ACX_CONFIG_HOME], [
1071 + myDir=${0%/*}
1072 + if [ "$myDir" = "$0" ]; then
1073 +    # Ran from local directory
1074 +     myDir=$PWD
1075 + fi
1076 + # Resolve symlinks.
1077 + myProgram="$0"
1078 + while [ -L "$myProgram" ]; do
1079 +    ls=`/bin/ls -ld "$myProgram"`
1080 +    link=`/usr/bin/expr "$ls" : '.*-> \(.*\)$'`
1081 +    if /usr/bin/expr "$link" : '.*/.*' > /dev/null; then
1082 +       myProgram="$link"
1083 +    else
1084 +       myProgram="`AS_DIRNAME([$myProgram])`/$link"
1085 +    fi
1086 + done
1087 + myDir=`AS_DIRNAME([$myProgram])`
1088 + fi
1089 + CONFIG_HOME=$myDir
1090 + ])

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines