|
|
|
@ -1877,6 +1877,109 @@ $as_echo "$ac_res" >&6; }
|
|
|
|
|
|
|
|
|
|
} # ac_fn_c_check_header_compile
|
|
|
|
|
|
|
|
|
|
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
|
|
|
|
|
# ----------------------------------------------------
|
|
|
|
|
# Tries to find if the field MEMBER exists in type AGGR, after including
|
|
|
|
|
# INCLUDES, setting cache variable VAR accordingly.
|
|
|
|
|
ac_fn_c_check_member ()
|
|
|
|
|
{
|
|
|
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
|
|
|
|
|
$as_echo_n "checking for $2.$3... " >&6; }
|
|
|
|
|
if eval \${$4+:} false; then :
|
|
|
|
|
$as_echo_n "(cached) " >&6
|
|
|
|
|
else
|
|
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
$5
|
|
|
|
|
int
|
|
|
|
|
main ()
|
|
|
|
|
{
|
|
|
|
|
static $2 ac_aggr;
|
|
|
|
|
if (ac_aggr.$3)
|
|
|
|
|
return 0;
|
|
|
|
|
;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
_ACEOF
|
|
|
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
|
|
eval "$4=yes"
|
|
|
|
|
else
|
|
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
$5
|
|
|
|
|
int
|
|
|
|
|
main ()
|
|
|
|
|
{
|
|
|
|
|
static $2 ac_aggr;
|
|
|
|
|
if (sizeof ac_aggr.$3)
|
|
|
|
|
return 0;
|
|
|
|
|
;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
_ACEOF
|
|
|
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
|
|
eval "$4=yes"
|
|
|
|
|
else
|
|
|
|
|
eval "$4=no"
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
fi
|
|
|
|
|
eval ac_res=\$$4
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
|
|
|
$as_echo "$ac_res" >&6; }
|
|
|
|
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
|
|
|
|
|
|
|
|
} # ac_fn_c_check_member
|
|
|
|
|
|
|
|
|
|
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
|
|
|
|
|
# ---------------------------------------------
|
|
|
|
|
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
|
|
|
|
|
# accordingly.
|
|
|
|
|
ac_fn_c_check_decl ()
|
|
|
|
|
{
|
|
|
|
|
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
|
|
|
|
|
as_decl_name=`echo $2|sed 's/ *(.*//'`
|
|
|
|
|
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
|
|
|
|
|
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
|
|
|
|
|
if eval \${$3+:} false; then :
|
|
|
|
|
$as_echo_n "(cached) " >&6
|
|
|
|
|
else
|
|
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
$4
|
|
|
|
|
int
|
|
|
|
|
main ()
|
|
|
|
|
{
|
|
|
|
|
#ifndef $as_decl_name
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
(void) $as_decl_use;
|
|
|
|
|
#else
|
|
|
|
|
(void) $as_decl_name;
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
_ACEOF
|
|
|
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
|
|
eval "$3=yes"
|
|
|
|
|
else
|
|
|
|
|
eval "$3=no"
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
|
fi
|
|
|
|
|
eval ac_res=\$$3
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
|
|
|
|
|
$as_echo "$ac_res" >&6; }
|
|
|
|
|
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
|
|
|
|
|
|
|
|
|
|
} # ac_fn_c_check_decl
|
|
|
|
|
|
|
|
|
|
# ac_fn_c_try_link LINENO
|
|
|
|
|
# -----------------------
|
|
|
|
|
# Try to link conftest.$ac_ext, and return whether this succeeded.
|
|
|
|
@ -5468,6 +5571,109 @@ _ACEOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
|
|
|
|
|
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
|
|
|
|
|
if ${ac_cv_struct_tm+:} false; then :
|
|
|
|
|
$as_echo_n "(cached) " >&6
|
|
|
|
|
else
|
|
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
#include <time.h>
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
|
main ()
|
|
|
|
|
{
|
|
|
|
|
struct tm tm;
|
|
|
|
|
int *p = &tm.tm_sec;
|
|
|
|
|
return !p;
|
|
|
|
|
;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
_ACEOF
|
|
|
|
|
if ac_fn_c_try_compile "$LINENO"; then :
|
|
|
|
|
ac_cv_struct_tm=time.h
|
|
|
|
|
else
|
|
|
|
|
ac_cv_struct_tm=sys/time.h
|
|
|
|
|
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" >&5
|
|
|
|
|
$as_echo "$ac_cv_struct_tm" >&6; }
|
|
|
|
|
if test $ac_cv_struct_tm = sys/time.h; then
|
|
|
|
|
|
|
|
|
|
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
|
|
|
|
|
#include <$ac_cv_struct_tm>
|
|
|
|
|
|
|
|
|
|
"
|
|
|
|
|
if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
|
|
|
|
|
|
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
|
|
|
#define HAVE_STRUCT_TM_TM_ZONE 1
|
|
|
|
|
_ACEOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
|
|
|
|
|
|
|
|
|
|
$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
|
|
|
|
|
"
|
|
|
|
|
if test "x$ac_cv_have_decl_tzname" = xyes; then :
|
|
|
|
|
ac_have_decl=1
|
|
|
|
|
else
|
|
|
|
|
ac_have_decl=0
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
cat >>confdefs.h <<_ACEOF
|
|
|
|
|
#define HAVE_DECL_TZNAME $ac_have_decl
|
|
|
|
|
_ACEOF
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
|
|
|
|
|
$as_echo_n "checking for tzname... " >&6; }
|
|
|
|
|
if ${ac_cv_var_tzname+:} false; then :
|
|
|
|
|
$as_echo_n "(cached) " >&6
|
|
|
|
|
else
|
|
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
|
|
|
|
/* end confdefs.h. */
|
|
|
|
|
#include <time.h>
|
|
|
|
|
#if !HAVE_DECL_TZNAME
|
|
|
|
|
extern char *tzname[];
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
|
main ()
|
|
|
|
|
{
|
|
|
|
|
return tzname[0][0];
|
|
|
|
|
;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
_ACEOF
|
|
|
|
|
if ac_fn_c_try_link "$LINENO"; then :
|
|
|
|
|
ac_cv_var_tzname=yes
|
|
|
|
|
else
|
|
|
|
|
ac_cv_var_tzname=no
|
|
|
|
|
fi
|
|
|
|
|
rm -f core conftest.err conftest.$ac_objext \
|
|
|
|
|
conftest$ac_exeext conftest.$ac_ext
|
|
|
|
|
fi
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
|
|
|
|
|
$as_echo "$ac_cv_var_tzname" >&6; }
|
|
|
|
|
if test $ac_cv_var_tzname = yes; then
|
|
|
|
|
|
|
|
|
|
$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
|
|
|
|
|
$as_echo_n "checking for library containing openpty... " >&6; }
|
|
|
|
|
if ${ac_cv_search_openpty+:} false; then :
|
|
|
|
|