Remove all unused program, header, and function checks to speed up the
configure script.

With some exceptions, the AC_PROG_*, AC_CHECK_HEADERS, and
AC_CHECK_FUNCS macros in configure.ac were not doing much.  If a
program, header, or function was missing, the configure script
continued without error and no alternative behavior was selected
(e.g., enable a replacement function or disable an optional feature).

Rather than test every possible utility, header, or function that
might be used, a better approach is to:

  * Assume the platform follows a standard or standards (e.g., C99,
    POSIX Issue 7, 2013 edition).
  * Where convenient, test to see if the platform at least appears to
    conform to the standard(s) (e.g., AC_PROG_CC_C99).
  * Don't bother testing for specific standard behavior unless the
    software fails to build or function properly on a platform of
    interest (due to lack of standard conformance).
  * Add autoconf tests for any behavior not completely specified by
    the standard(s) (e.g., MySQL).
---
 configure.ac | 20 +-------------------
 1 file changed, 1 insertion(+), 19 deletions(-)

diff --git a/configure.ac b/configure.ac
index 7dfcb67..01a561d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,13 +52,8 @@ AC_SUBST([MIN_PYTHON_VERSION])
 AM_MAINTAINER_MODE
 : ${CFLAGS=""}
 # Checks for programs.
-#AC_PROG_CXX
 AC_PROG_CC
-AM_PROG_CC_C_O
-#AC_PROG_AWK
-AC_PROG_MAKE_SET
 AC_PROG_RANLIB
-#AC_PROG_LIBTOOL
 AC_PROG_SED
 AM_PATH_PYTHON([$MIN_PYTHON_VERSION])
 AC_PROG_LN_S
@@ -244,7 +239,6 @@ AC_SEARCH_LIBS([v3_addr_validate_path], [crypto],[],[
 # Checks for header files.
 AC_HEADER_STDC
 AC_HEADER_SYS_WAIT
-AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h memory.h my_global.h mysql.h 
netdb.h netinet/in.h semaphore.h stdbool.h stdlib.h string.h strings.h 
sys/file.h sys/ioctl.h sys/socket.h sys/time.h syslog.h termios.h unistd.h 
wchar.h])
 
 # Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
@@ -258,19 +252,7 @@ AC_HEADER_TIME
 AC_STRUCT_TM
 
 # Checks for library functions.
-AC_FUNC_ERROR_AT_LINE
-AC_FUNC_FORK
-AC_FUNC_GETPGRP
-AC_PROG_GCC_TRADITIONAL
-#AC_FUNC_MALLOC
-AC_FUNC_MEMCMP
-AC_FUNC_MMAP
-#AC_FUNC_REALLOC
-AC_FUNC_SELECT_ARGTYPES
-AC_TYPE_SIGNAL
-AC_FUNC_STAT
-AC_FUNC_VPRINTF
-AC_CHECK_FUNCS([alarm bzero clock_gettime dup2 getcwd gethostbyaddr 
gethostbyname gethostname getline getpass memmove memset mkdir munmap 
mysql_real_connect select sem_timedwait socket strcasecmp strchr strdup 
strerror strncasecmp strpbrk strrchr strstr strtol strtoul strtoull])
+AC_CHECK_FUNCS([clock_gettime getline sem_timedwait])
 if test "$ac_cv_func_getline" != yes; then
     AC_MSG_ERROR([The getline() function from POSIX 2008 is required.])
 fi
-- 
2.4.5


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
rpstir-devel mailing list
rpstir-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpstir-devel

Reply via email to