[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdepim
From:       Stephan Kulow <coolo () kde ! org>
Date:       2003-10-27 15:38:08
[Download RAW message or body]

CVS commit by coolo: 

after we figured kdepim doesn't check for endianness (but kdenetwork does),
I thought it's time to move the kdenetwork checks in bigger chunks than
as we find problems with them ;(


  M +56 -0     configure.in.in   1.30


--- kdepim/configure.in.in  #1.29:1.30
@@ -38,2 +38,58 @@
 
 
+dnl the below is copied from kdenetwork's configure as too many apps moved
+dnl and noone can say which tests are needed and which are obsolete for kdepim ;(
+
+dnl Checks for header files.
+AC_CHECK_HEADERS(linux/tcp.h linux/if_ppp.h)
+AC_CHECK_HEADERS(net/errno.h net/if_ppp.h)
+AC_CHECK_HEADERS(asm/param.h)
+AC_CHECK_HEADERS(sys/file.h sys/stat.h sys/time.h sys/cdefs.h sys/sockio.h)
+AC_CHECK_HEADERS(fcntl.h unistd.h fnmatch.h sysent.h strings.h paths.h)
+AC_CHECK_HEADERS(utmp.h re_comp.h getopt.h resolv.h byteswap.h)
+
+
+AC_SYS_LARGEFILE
+if test "$ac_cv_sys_file_offset_bits" != no; then
+  CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
+fi
+
+if test "x$ac_cv_sys_large_files" != "xno"; then
+  CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=1"
+fi
+
+AC_CHECK_FUNCS(flock)
+AC_CHECK_USLEEP
+
+dnl Checks for library functions.
+AC_CHECK_FUNCS(socket fabsl strdup vsnprintf tzset)
+AC_CHECK_GETDOMAINNAME
+AC_CHECK_GETHOSTNAME
+AC_C_BIGENDIAN
+
+AC_CHECK_FUNC(res_init)
+if test "$ac_cv_func_res_init" = no; then
+  AC_CHECK_LIB(resolv, res_init, LIBRESOLV="-lresolv $LIBSOCKET", , $LIBSOCKET)
+fi
+AC_SUBST(LIBRESOLV)
+
+AC_CACHE_CHECK(for timezone variable, ac_cv_var_timezone,
+        AC_TRY_COMPILE([
+                #include <time.h>
+        ], [
+                timezone = 1;
+        ], ac_cv_var_timezone=yes, ac_cv_var_timezone=no))
+if test $ac_cv_var_timezone = yes; then
+        AC_DEFINE(HAVE_TIMEZONE, 1, [define if you have a timezone variable])
+fi
+AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,      
+        AC_TRY_COMPILE([
+                #include <time.h>
+        ], [
+                struct tm tm;
+                tm.tm_gmtoff = 1;
+        ], ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no))
+if test $ac_cv_struct_tm_gmtoff = yes; then
+        AC_DEFINE(HAVE_TM_GMTOFF, 1, [Define if you have a tm_gmtoff member in struct tm])
+fi
+


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic