Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC
View | Details | Raw Unified | Return to bug 373347
Collapse All | Expand All

(-)configure.in (-24 / +32 lines)
Lines 89-120 Link Here
89
AC_CHECK_FUNCS(flock fcntl uname gethostname sysinfo getdomainname)
89
AC_CHECK_FUNCS(flock fcntl uname gethostname sysinfo getdomainname)
90
AC_CHECK_FUNCS(stricmp random rand snprintf vsnprintf)
90
AC_CHECK_FUNCS(stricmp random rand snprintf vsnprintf)
91
91
92
if test "$ac_cv_func_uname" = 'yes'
92
AC_CACHE_CHECK([for field domainname in struct utsname], ac_cv_struct_utsname,
93
then
93
 [AC_TRY_RUN([
94
	AC_MSG_CHECKING([for field domainname in struct utsname])
94
  #include <sys/utsname.h>
95
	AC_TRY_RUN([
96
	#include <sys/utsname.h>
97
	
95
	
98
	main(int argc, char **argv)
96
  main(int argc, char **argv)
99
	{
97
  {
100
		struct utsname uts;
98
    struct utsname uts;
101
		uts.domainname[0] = '\0';
99
    uts.domainname[0] = '\0';
102
	}
100
  }
103
	],
101
 ],
104
	AC_MSG_RESULT(yes)
102
 ac_cv_struct_utsname=yes,
105
	AC_DEFINE(HAVE_STRUCT_UTSNAME_DOMAINNAME),
103
 ac_cv_struct_utsname=no,
106
	AC_MSG_RESULT(no)
104
 [AC_MSG_ERROR([cross-compiling,
107
	)
105
  presetting ac_cv_struct_utsname=(yes|no) will help])]
108
fi
106
 )
107
])
108
AS_VAR_IF(ac_cv_struct_utsname, yes,
109
 [AC_DEFINE(HAVE_STRUCT_UTSNAME_DOMAINNAME)],
110
)
109
111
110
AC_MSG_CHECKING([for /dev/urandom])
112
AC_CACHE_CHECK([for /dev/urandom], ac_cv_file__dev_urandom,
111
if test -c /dev/urandom
113
 [AS_IF([test "$cross_compiling" = yes],
112
then
114
  [AC_MSG_ERROR([cross-compiling,
113
	AC_MSG_RESULT(yes)
115
   presetting ac_cv_file__dev_urandom=(yes|no) will help])],
114
	AC_DEFINE(HAVE_DEV_URANDOM)
116
  if test -c /dev/urandom ; then
115
else
117
    ac_cv_file__dev_urandom=yes
116
	AC_MSG_RESULT(no)
118
  else
117
fi
119
    ac_cv_file__dev_urandom=no
120
  fi
121
 )]
122
)
123
AS_VAR_IF(ac_cv_file__dev_urandom, yes,
124
 [AC_DEFINE(HAVE_DEV_URANDOM)]
125
)
118
126
119
dnl Determine PATH setting
127
dnl Determine PATH setting
120
echo $ac_n "using the following PATH setting for exec'ed programs... $ac_c" 1>&6
128
echo $ac_n "using the following PATH setting for exec'ed programs... $ac_c" 1>&6

Return to bug 373347