diff options
Diffstat (limited to 'libgm2/configure')
-rwxr-xr-x | libgm2/configure | 258 |
1 files changed, 258 insertions, 0 deletions
diff --git a/libgm2/configure b/libgm2/configure index ee5d86e..74f93ac 100755 --- a/libgm2/configure +++ b/libgm2/configure @@ -16130,7 +16130,58 @@ _ACEOF fi +ac_fn_c_check_type "$LINENO" "struct tm" "ac_cv_type_struct_tm" "$ac_includes_default" +if test "x$ac_cv_type_struct_tm" = xyes; then : +cat >>confdefs.h <<_ACEOF +#define HAVE_STRUCT_TM 1 +_ACEOF + + +fi + + +# Check if struct tm contains the tm_gmtoff field. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5 +$as_echo_n "checking for tm_gmtoff in struct tm... " >&6; } +if ${ac_cv_struct_tm_gmtoff+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include <time.h> + +int +main () +{ + + struct tm tm; + tm.tm_gmtoff = 1; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ac_cv_struct_tm_gmtoff=yes +else + ac_cv_struct_tm_gmtoff=no + +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5 +$as_echo "$ac_cv_struct_tm_gmtoff" >&6; } + +if (test "$ac_cv_struct_tm_gmtoff" = "yes"); then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end detects struct tm with the tm_gmtoff field." >&5 +$as_echo_n "checking m2 front end detects struct tm with the tm_gmtoff field.... " >&6; } + +$as_echo "#define HAVE_TM_TM_GMTOFF 1" >>confdefs.h + +fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -17305,6 +17356,75 @@ $as_echo "#define HAVE_CREAT 1" >>confdefs.h fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for daylight" >&5 +$as_echo_n "checking m2 front end checking c library for daylight... " >&6; } + if test x$gcc_no_link != xyes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight in -lc" >&5 +$as_echo_n "checking for daylight in -lc... " >&6; } +if ${ac_cv_lib_c_daylight+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char daylight (); +int +main () +{ +return daylight (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_c_daylight=yes +else + ac_cv_lib_c_daylight=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_daylight" >&5 +$as_echo "$ac_cv_lib_c_daylight" >&6; } +if test "x$ac_cv_lib_c_daylight" = xyes; then : + +$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h + +else + + $as_echo "#undef HAVE_DAYLIGHT" >>confdefs.h + +fi + + else + if test "x$ac_cv_lib_c_daylight" = xyes; then + +$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h + + elif test "x$ac_cv_func_daylight" = xyes; then + +$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h + + else + + $as_echo "#undef HAVE_DAYLIGHT" >>confdefs.h + + fi + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for dup" >&5 $as_echo_n "checking m2 front end checking c library for dup... " >&6; } if test x$gcc_no_link != xyes; then @@ -19237,6 +19357,144 @@ $as_echo "#define HAVE_TIMES 1" >>confdefs.h fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for timezone" >&5 +$as_echo_n "checking m2 front end checking c library for timezone... " >&6; } + if test x$gcc_no_link != xyes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone in -lc" >&5 +$as_echo_n "checking for timezone in -lc... " >&6; } +if ${ac_cv_lib_c_timezone+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char timezone (); +int +main () +{ +return timezone (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_c_timezone=yes +else + ac_cv_lib_c_timezone=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_timezone" >&5 +$as_echo "$ac_cv_lib_c_timezone" >&6; } +if test "x$ac_cv_lib_c_timezone" = xyes; then : + +$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h + +else + + $as_echo "#undef HAVE_TIMEZONE" >>confdefs.h + +fi + + else + if test "x$ac_cv_lib_c_timezone" = xyes; then + +$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h + + elif test "x$ac_cv_func_timezone" = xyes; then + +$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h + + else + + $as_echo "#undef HAVE_TIMEZONE" >>confdefs.h + + fi + fi + + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for tzname" >&5 +$as_echo_n "checking m2 front end checking c library for tzname... " >&6; } + if test x$gcc_no_link != xyes; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname in -lc" >&5 +$as_echo_n "checking for tzname in -lc... " >&6; } +if ${ac_cv_lib_c_tzname+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lc $LIBS" +if test x$gcc_no_link = xyes; then + as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 +fi +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char tzname (); +int +main () +{ +return tzname (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_c_tzname=yes +else + ac_cv_lib_c_tzname=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_tzname" >&5 +$as_echo "$ac_cv_lib_c_tzname" >&6; } +if test "x$ac_cv_lib_c_tzname" = xyes; then : + +$as_echo "#define HAVE_TZNAME 1" >>confdefs.h + +else + + $as_echo "#undef HAVE_TZNAME" >>confdefs.h + +fi + + else + if test "x$ac_cv_lib_c_tzname" = xyes; then + +$as_echo "#define HAVE_TZNAME 1" >>confdefs.h + + elif test "x$ac_cv_func_tzname" = xyes; then + +$as_echo "#define HAVE_TZNAME 1" >>confdefs.h + + else + + $as_echo "#undef HAVE_TZNAME" >>confdefs.h + + fi + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for unlink" >&5 $as_echo_n "checking m2 front end checking c library for unlink... " >&6; } if test x$gcc_no_link != xyes; then |