diff options
Diffstat (limited to 'gas/configure')
-rwxr-xr-x | gas/configure | 120 |
1 files changed, 119 insertions, 1 deletions
diff --git a/gas/configure b/gas/configure index e4ed8c4..a0d1763 100755 --- a/gas/configure +++ b/gas/configure @@ -12062,6 +12062,10 @@ _ACEOF te_file=$em fi + case ${te_file} in + vms) extra_objects="$extra_objects te-vms.o" ;; + esac + # From target name and format, produce a list of supported emulations. case ${generic_target}-${fmt} in @@ -12976,7 +12980,7 @@ fi -for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h +for ac_header in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h errno.h sys/types.h limits.h time.h sys/stat.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" @@ -13790,6 +13794,120 @@ $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h ;; esac +# Support for VMS timestamps via cross compile + +if test "$ac_cv_header_time_h" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5 +$as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; } + if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _BSD_SOURCE 1 +#include <time.h> +int +main () +{ +struct tm avar; void* aref = (void*) &avar.tm_gmtoff + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gas_cv_have_time_type_member_tm_gmtoff=yes +else + gas_cv_have_time_type_member_tm_gmtoff=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + + if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then + +$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5 +$as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; } + +fi + +if test "$ac_cv_header_sys_stat_h" = yes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5 +$as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; } + if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _BSD_SOURCE 1 +#include <sys/stat.h> +int +main () +{ +struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes +else + gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + + if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then + +$as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5 +$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; } + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5 +$as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; } + if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#define _BSD_SOURCE 1 +#include <sys/stat.h> +int +main () +{ +struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes +else + gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi + + if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then + +$as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5 +$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; } + +fi + + |