371 |
371 |
372 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then |
372 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then |
373 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for |
373 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for |
374 # other files |
374 # other files |
375 files_present=`$LS $OUTPUT_ROOT` |
375 files_present=`$LS $OUTPUT_ROOT` |
376 if test "x$files_present" != x; then |
376 # Configure has already touched config.log and confdefs.h in the current dir when this check |
|
377 # is performed. |
|
378 filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ |
|
379 | $TR -d '\n'` |
|
380 if test "x$filtered_files" != x; then |
377 AC_MSG_NOTICE([Current directory is $CURDIR.]) |
381 AC_MSG_NOTICE([Current directory is $CURDIR.]) |
378 AC_MSG_NOTICE([Since this is not the source root, configure will output the configuration here]) |
382 AC_MSG_NOTICE([Since this is not the source root, configure will output the configuration here]) |
379 AC_MSG_NOTICE([(as opposed to creating a configuration in <src_root>/build/<conf-name>).]) |
383 AC_MSG_NOTICE([(as opposed to creating a configuration in <src_root>/build/<conf-name>).]) |
380 AC_MSG_NOTICE([However, this directory is not empty. This is not allowed, since it could]) |
384 AC_MSG_NOTICE([However, this directory is not empty. This is not allowed, since it could]) |
381 AC_MSG_NOTICE([seriously mess up just about everything.]) |
385 AC_MSG_NOTICE([seriously mess up just about everything.]) |