1# Process this file with autoconf 2.52 to produce a configure script. 2 3AC_INIT(vdmfec, 1.0) 4AC_CONFIG_SRCDIR([vdmfec.c]) 5AC_CONFIG_HEADERS([config.h]) 6 7# Checks for programs. 8AC_PROG_CC 9 10# Default flags for gcc. 11if test "$GCC" = yes; then 12 if test "$ac_env_CFLAGS_set" != set; then 13 CFLAGS="-O3 -Wall" 14 fi 15 if test "$ac_env_LDFLAGS_set" != set; then 16 LDFLAGS=-s 17 fi 18fi 19 20# Checks for libraries. 21 22# Checks for header files. 23AC_HEADER_STDC 24AC_HEADER_TIME 25AC_CHECK_HEADERS([netinet/in.h errno.h]) 26 27# Checks for typedefs, structures, and compiler characteristics. 28AC_C_CONST 29AC_C_INLINE 30AC_TYPE_SIZE_T 31AC_TYPE_OFF_T 32AC_CHECK_SIZEOF(int) 33AC_CHECK_SIZEOF(long) 34AC_CHECK_TYPES(u_char) 35AC_CHECK_TYPES(u_int32_t) 36 37# Checks for library functions. @@@ these should have workarounds 38AC_FUNC_MEMCMP 39if test $ac_cv_func_memcmp_working = no; then 40 AC_MSG_ERROR([can't find working memcmp]) 41fi 42AC_FUNC_VPRINTF 43AC_CHECK_FUNCS([bzero gettimeofday memset]) 44 45AC_CONFIG_FILES([Makefile version.h]) 46AC_OUTPUT 47