From a4ad39acd3aa8d503ee6c6b33acba415e027aae4 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 26 Dec 2014 17:24:01 +0000 Subject: [PATCH] - configure.ac: removed useless AC_TYPE_SIZE_T git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/branches/1.0.x@5161 82007160-df01-0410-b94d-b575c5fd34c7 --- configure | 65 --------------------------------------- configure.ac | 1 - src/libopm/configure | 65 --------------------------------------- src/libopm/configure.ac | 1 - src/libopm/src/setup.h.in | 3 -- src/setup.h.in | 3 -- 6 files changed, 138 deletions(-) diff --git a/configure b/configure index 4335723..77d8017 100755 --- a/configure +++ b/configure @@ -1872,60 +1872,6 @@ fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel - -# ac_fn_c_check_type LINENO TYPE VAR INCLUDES -# ------------------------------------------- -# Tests whether TYPE exists after having included INCLUDES, setting cache -# variable VAR accordingly. -ac_fn_c_check_type () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval "$3=no" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -if (sizeof ($2)) - return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -if (sizeof (($2))) - return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - eval "$3=yes" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_type cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. @@ -12284,17 +12230,6 @@ fi done -ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -#define size_t unsigned int -_ACEOF - -fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } if ${ac_cv_header_time+:} false; then : diff --git a/configure.ac b/configure.ac index 2e4e7cd..46c5ea7 100644 --- a/configure.ac +++ b/configure.ac @@ -41,7 +41,6 @@ AC_CHECK_HEADERS(sys/poll.h, have_poll_sys_h=yes, have_sys_poll_h=no) AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h strings.h) dnl Checks for typedefs, structures, and compiler characteristics. -AC_TYPE_SIZE_T AC_HEADER_TIME AC_STRUCT_TM diff --git a/src/libopm/configure b/src/libopm/configure index 93728a6..8c115db 100755 --- a/src/libopm/configure +++ b/src/libopm/configure @@ -1858,60 +1858,6 @@ fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel - -# ac_fn_c_check_type LINENO TYPE VAR INCLUDES -# ------------------------------------------- -# Tests whether TYPE exists after having included INCLUDES, setting cache -# variable VAR accordingly. -ac_fn_c_check_type () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -$as_echo_n "checking for $2... " >&6; } -if eval \${$3+:} false; then : - $as_echo_n "(cached) " >&6 -else - eval "$3=no" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -if (sizeof ($2)) - return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main () -{ -if (sizeof (($2))) - return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - -else - eval "$3=yes" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -eval ac_res=\$$3 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -$as_echo "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_type cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. @@ -12268,17 +12214,6 @@ fi done -ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" -if test "x$ac_cv_type_size_t" = xyes; then : - -else - -cat >>confdefs.h <<_ACEOF -#define size_t unsigned int -_ACEOF - -fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } if ${ac_cv_header_time+:} false; then : diff --git a/src/libopm/configure.ac b/src/libopm/configure.ac index 0387200..4b4ac07 100644 --- a/src/libopm/configure.ac +++ b/src/libopm/configure.ac @@ -30,7 +30,6 @@ AC_CHECK_HEADERS(sys/poll.h, have_poll_sys_h=yes, have_sys_poll_h=no) AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h strings.h) dnl Checks for typedefs, structures, and compiler characteristics. -AC_TYPE_SIZE_T AC_HEADER_TIME dnl if they want select() or they don't have poll() then we need to check diff --git a/src/libopm/src/setup.h.in b/src/libopm/src/setup.h.in index afb7e78..13bb0ca 100644 --- a/src/libopm/src/setup.h.in +++ b/src/libopm/src/setup.h.in @@ -98,6 +98,3 @@ # undef WORDS_BIGENDIAN # endif #endif - -/* Define to `unsigned int' if does not define. */ -#undef size_t diff --git a/src/setup.h.in b/src/setup.h.in index 72255ef..c0a4b8a 100644 --- a/src/setup.h.in +++ b/src/setup.h.in @@ -117,6 +117,3 @@ /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ #undef YYTEXT_POINTER - -/* Define to `unsigned int' if does not define. */ -#undef size_t -- 2.30.2