 c83d4f3dbb
			
		
	
	c83d4f3dbb
	
	
	
		
			
			git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4191 ec53bebd-3082-4978-b11e-865c3cabbd6b
		
			
				
	
	
		
			33 lines
		
	
	
		
			570 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			570 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| dnl $Id$
 | |
| dnl
 | |
| AC_DEFUN(AC_GROK_TYPE, [
 | |
| AC_CACHE_VAL(ac_cv_type_$1, 
 | |
| AC_TRY_COMPILE([
 | |
| #ifdef HAVE_SYS_TYPES_H
 | |
| #include <sys/types.h>
 | |
| #endif
 | |
| #ifdef HAVE_SYS_BITYPES_H
 | |
| #include <sys/bitypes.h>
 | |
| #endif
 | |
| #ifdef HAVE_NETINET_IN6_MACHTYPES_H
 | |
| #include <netinet/in6_machtypes.h>
 | |
| #endif
 | |
| ],
 | |
| $i x;
 | |
| ,
 | |
| eval ac_cv_type_$1=yes,
 | |
| eval ac_cv_type_$1=no))])
 | |
| 
 | |
| AC_DEFUN(AC_GROK_TYPES, [
 | |
| for i in $1; do
 | |
| 	AC_MSG_CHECKING(for $i)
 | |
| 	AC_GROK_TYPE($i)
 | |
| 	eval ac_res=\$ac_cv_type_$i
 | |
| 	if test "$ac_res" = yes; then
 | |
| 		type=HAVE_[]upcase($i)
 | |
| 		AC_DEFINE_UNQUOTED($type)
 | |
| 	fi
 | |
| 	AC_MSG_RESULT($ac_res)
 | |
| done
 | |
| ])
 |