From: michael Date: Thu, 1 Jan 2015 18:15:57 +0000 (+0000) Subject: - Further cleanups to configure.ac X-Git-Tag: 1.1.0beta1~218 X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=cf59da60ffdf846a2e557f0105e6e97493aa3e3c;p=hopm.git - Further cleanups to configure.ac git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@5264 82007160-df01-0410-b94d-b575c5fd34c7 --- diff --git a/configure b/configure index dae9cc3..ba041d9 100755 --- a/configure +++ b/configure @@ -12074,13 +12074,12 @@ CC=$lt_save_CC -for ac_header in fcntl.h sys/time.h unistd.h +for ac_header in sys/time.h do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : + ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_time_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +#define HAVE_SYS_TIME_H 1 _ACEOF fi @@ -12123,41 +12122,6 @@ $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h fi -{ $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 -#include - -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 - for ac_prog in 'bison -y' byacc @@ -12550,7 +12514,7 @@ fi fi -for ac_func in strlcpy strlcat socket +for ac_func in strlcpy strlcat do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" diff --git a/configure.ac b/configure.ac index 511ff7b..9234035 100644 --- a/configure.ac +++ b/configure.ac @@ -14,11 +14,10 @@ AC_PROG_LIBTOOL dnl Checks for libraries. -AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h) +AC_CHECK_HEADERS(sys/time.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_HEADER_TIME -AC_STRUCT_TM dnl check for yacc AC_PROG_INSTALL @@ -32,7 +31,7 @@ AC_SEARCH_LIBS([socket],[socket],,[AC_MSG_ERROR([socket library not found])]) AC_CHECK_FUNC(getaddrinfo, [], AC_SEARCH_LIBS(getaddrinfo, nsl)) AC_CHECK_FUNC(getnameinfo, [], AC_SEARCH_LIBS(getnameinfo, nsl)) -AC_CHECK_FUNCS(strlcpy strlcat socket) +AC_CHECK_FUNCS(strlcpy strlcat) dnl AIX fun AC_C_BIGENDIAN diff --git a/src/libopm/src/inet.h b/src/libopm/src/inet.h index d7d03d8..de62b94 100644 --- a/src/libopm/src/inet.h +++ b/src/libopm/src/inet.h @@ -6,9 +6,7 @@ #include #include #include -#ifdef HAVE_FCNTL_H -# include -#endif +#include #include typedef struct _opm_sockaddr opm_sockaddr; diff --git a/src/setup.h.in b/src/setup.h.in index a08173d..be66626 100644 --- a/src/setup.h.in +++ b/src/setup.h.in @@ -6,18 +6,12 @@ /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H -/* Define to 1 if you have the header file. */ -#undef HAVE_FCNTL_H - /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H -/* Define to 1 if you have the `socket' function. */ -#undef HAVE_SOCKET - /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H @@ -78,9 +72,6 @@ /* Define to 1 if you can safely include both and . */ #undef TIME_WITH_SYS_TIME -/* Define to 1 if your declares `struct tm'. */ -#undef TM_IN_SYS_TIME - /* Version number of package */ #undef VERSION