|
|
# Try the directory containing this script, then its parent. | # Try the directory containing this script, then its parent. |
ac_confdir=`AS_DIRNAME(["$[0]"])` | ac_confdir=`AS_DIRNAME(["$[0]"])` |
srcdir=$ac_confdir | srcdir=$ac_confdir |
if test ! -r $srcdir/$ac_unique_file; then |
if test ! -r "$srcdir/$ac_unique_file"; then |
srcdir=.. | srcdir=.. |
fi | fi |
else | else |
ac_srcdir_defaulted=no | ac_srcdir_defaulted=no |
fi | fi |
if test ! -r $srcdir/$ac_unique_file; then |
if test ! -r "$srcdir/$ac_unique_file"; then |
if test "$ac_srcdir_defaulted" = yes; then | if test "$ac_srcdir_defaulted" = yes; then |
AC_MSG_ERROR([cannot find sources ($ac_unique_file) in $ac_confdir or ..]) | AC_MSG_ERROR([cannot find sources ($ac_unique_file) in $ac_confdir or ..]) |
else | else |