| | 8493 | # Check if stat struct has st_birthtime member |
|---|
| | 8494 | { echo "$as_me:$LINENO: checking for struct stat.st_birthtime" >&5 |
|---|
| | 8495 | echo $ECHO_N "checking for struct stat.st_birthtime... $ECHO_C" >&6; } |
|---|
| | 8496 | if test "${ac_cv_member_struct_stat_st_birthtime+set}" = set; then |
|---|
| | 8497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 8498 | else |
|---|
| | 8499 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 8500 | /* confdefs.h. */ |
|---|
| | 8501 | _ACEOF |
|---|
| | 8502 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 8503 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 8504 | /* end confdefs.h. */ |
|---|
| | 8505 | |
|---|
| | 8506 | #include <sys/types.h> |
|---|
| | 8507 | |
|---|
| | 8508 | |
|---|
| | 8509 | int |
|---|
| | 8510 | main () |
|---|
| | 8511 | { |
|---|
| | 8512 | static struct stat ac_aggr; |
|---|
| | 8513 | if (ac_aggr.st_birthtime) |
|---|
| | 8514 | return 0; |
|---|
| | 8515 | ; |
|---|
| | 8516 | return 0; |
|---|
| | 8517 | } |
|---|
| | 8518 | _ACEOF |
|---|
| | 8519 | rm -f conftest.$ac_objext |
|---|
| | 8520 | if { (ac_try="$ac_compile" |
|---|
| | 8521 | case "(($ac_try" in |
|---|
| | 8522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| | 8523 | *) ac_try_echo=$ac_try;; |
|---|
| | 8524 | esac |
|---|
| | 8525 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| | 8526 | (eval "$ac_compile") 2>conftest.er1 |
|---|
| | 8527 | ac_status=$? |
|---|
| | 8528 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 8529 | rm -f conftest.er1 |
|---|
| | 8530 | cat conftest.err >&5 |
|---|
| | 8531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 8532 | (exit $ac_status); } && { |
|---|
| | 8533 | test -z "$ac_c_werror_flag" || |
|---|
| | 8534 | test ! -s conftest.err |
|---|
| | 8535 | } && test -s conftest.$ac_objext; then |
|---|
| | 8536 | ac_cv_member_struct_stat_st_birthtime=yes |
|---|
| | 8537 | else |
|---|
| | 8538 | echo "$as_me: failed program was:" >&5 |
|---|
| | 8539 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 8540 | |
|---|
| | 8541 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 8542 | /* confdefs.h. */ |
|---|
| | 8543 | _ACEOF |
|---|
| | 8544 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 8545 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 8546 | /* end confdefs.h. */ |
|---|
| | 8547 | |
|---|
| | 8548 | #include <sys/types.h> |
|---|
| | 8549 | |
|---|
| | 8550 | |
|---|
| | 8551 | int |
|---|
| | 8552 | main () |
|---|
| | 8553 | { |
|---|
| | 8554 | static struct stat ac_aggr; |
|---|
| | 8555 | if (sizeof ac_aggr.st_birthtime) |
|---|
| | 8556 | return 0; |
|---|
| | 8557 | ; |
|---|
| | 8558 | return 0; |
|---|
| | 8559 | } |
|---|
| | 8560 | _ACEOF |
|---|
| | 8561 | rm -f conftest.$ac_objext |
|---|
| | 8562 | if { (ac_try="$ac_compile" |
|---|
| | 8563 | case "(($ac_try" in |
|---|
| | 8564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| | 8565 | *) ac_try_echo=$ac_try;; |
|---|
| | 8566 | esac |
|---|
| | 8567 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| | 8568 | (eval "$ac_compile") 2>conftest.er1 |
|---|
| | 8569 | ac_status=$? |
|---|
| | 8570 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 8571 | rm -f conftest.er1 |
|---|
| | 8572 | cat conftest.err >&5 |
|---|
| | 8573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 8574 | (exit $ac_status); } && { |
|---|
| | 8575 | test -z "$ac_c_werror_flag" || |
|---|
| | 8576 | test ! -s conftest.err |
|---|
| | 8577 | } && test -s conftest.$ac_objext; then |
|---|
| | 8578 | ac_cv_member_struct_stat_st_birthtime=yes |
|---|
| | 8579 | else |
|---|
| | 8580 | echo "$as_me: failed program was:" >&5 |
|---|
| | 8581 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 8582 | |
|---|
| | 8583 | ac_cv_member_struct_stat_st_birthtime=no |
|---|
| | 8584 | fi |
|---|
| | 8585 | |
|---|
| | 8586 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| | 8587 | fi |
|---|
| | 8588 | |
|---|
| | 8589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|---|
| | 8590 | fi |
|---|
| | 8591 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtime" >&5 |
|---|
| | 8592 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_birthtime" >&6; } |
|---|
| | 8593 | if test $ac_cv_member_struct_stat_st_birthtime = yes; then |
|---|
| | 8594 | |
|---|
| | 8595 | cat >>confdefs.h <<_ACEOF |
|---|
| | 8596 | #define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 |
|---|
| | 8597 | _ACEOF |
|---|
| | 8598 | |
|---|
| | 8599 | |
|---|
| | 8600 | fi |
|---|
| | 8601 | |
|---|
| | 8602 | |
|---|
| | 8603 | |
|---|