502 |
if test -z "$srcdir"; then |
if test -z "$srcdir"; then |
503 |
ac_srcdir_defaulted=yes |
ac_srcdir_defaulted=yes |
504 |
# Try the directory containing this script, then its parent. |
# Try the directory containing this script, then its parent. |
505 |
ac_prog=$[0] |
ac_confdir=`AS_DIRNAME(["$[0]"])` |
|
dnl FIXME: should use AS_DIRNAME here once it is made DOS-friendly. |
|
|
ac_confdir=`echo "$ac_prog" | sed 's%[[\\/][^\\/][^\\/]]*$%%'` |
|
|
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
|
506 |
srcdir=$ac_confdir |
srcdir=$ac_confdir |
507 |
if test ! -r $srcdir/$ac_unique_file; then |
if test ! -r $srcdir/$ac_unique_file; then |
508 |
srcdir=.. |
srcdir=.. |