[dovecot-cvs] dovecot acconfig.h,1.16,1.17 configure.in,1.55,1.56

cras at procontrol.fi cras at procontrol.fi
Tue Nov 26 20:47:45 EET 2002


Update of /home/cvs/dovecot
In directory danu:/tmp/cvs-serv18780

Modified Files:
	acconfig.h configure.in 
Log Message:
We compile now if dev_t is a structure (eg. glibc+tcc).



Index: acconfig.h
===================================================================
RCS file: /home/cvs/dovecot/acconfig.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- acconfig.h	26 Nov 2002 13:07:53 -0000	1.16
+++ acconfig.h	26 Nov 2002 18:47:43 -0000	1.17
@@ -21,6 +21,9 @@
 /* Define if you have struct iovec */
 #undef HAVE_STRUCT_IOVEC
 
+/* Define if your dev_t is a structure instead of integer type */
+#undef DEV_T_STRUCT
+
 #undef USERINFO_PASSWD
 #undef USERINFO_PASSWD_FILE
 #undef USERINFO_SHADOW

Index: configure.in
===================================================================
RCS file: /home/cvs/dovecot/configure.in,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- configure.in	26 Nov 2002 13:13:20 -0000	1.55
+++ configure.in	26 Nov 2002 18:47:43 -0000	1.56
@@ -1,7 +1,7 @@
 AC_INIT(src)
 
 AM_CONFIG_HEADER(config.h)
-AM_INIT_AUTOMAKE(dovecot, 0.99.1)
+AM_INIT_AUTOMAKE(dovecot, 0.99.2)
 
 AM_MAINTAINER_MODE
 
@@ -127,6 +127,12 @@
 	ssldir=/etc/ssl
 )
 
+dnl * gcc specific options
+if test "x$ac_cv_prog_gcc" = "xyes"; then
+	# -Wchar-subscripts -Wpointer-arith -Wcast-qual -Wcast-align -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
+	CFLAGS="$CFLAGS -Wall -W"
+fi
+
 dnl **
 dnl ** just some generic stuff...
 dnl **
@@ -167,12 +173,6 @@
 dnl * memory alignment
 AC_DEFINE_UNQUOTED(MEM_ALIGN_SIZE, $mem_align)
 
-dnl * gcc specific options
-if test "x$ac_cv_prog_gcc" = "xyes"; then
-	# -Wchar-subscripts -Wpointer-arith -Wcast-qual -Wcast-align -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-	CFLAGS="$CFLAGS -Wall -W"
-fi
-
 dnl * OS specific options
 case "$host_os" in
 	hpux*)
@@ -348,6 +348,20 @@
 	AC_DEFINE(HAVE_STRUCT_IOVEC)
 fi
 AC_MSG_RESULT($i_cv_struct_iovec)
+
+dnl * is dev_t an integer or something else?
+AC_TRY_COMPILE([
+  #include <sys/types.h>
+  struct test { dev_t a; };
+  static struct test t = { 0 };
+],,, [
+  AC_DEFINE(DEV_T_STRUCT)
+
+  dnl we can't initialize structures, so don't warn about them either
+  if test "x$ac_cv_prog_gcc" = "xyes"; then
+    CFLAGS=`echo $CFLAGS|sed 's/ -W\b//'`
+  fi
+])
 
 dnl * Linux compatible mremap()
 AC_MSG_CHECKING([Linux compatible mremap()])




More information about the dovecot-cvs mailing list